Package p4.config.v1

Class P4Types.SourceLocation.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<P4Types.SourceLocation.Builder>
com.google.protobuf.GeneratedMessage.Builder<P4Types.SourceLocation.Builder>
p4.config.v1.P4Types.SourceLocation.Builder
All Implemented Interfaces:
com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable, P4Types.SourceLocationOrBuilder
Enclosing class:
P4Types.SourceLocation

public static final class P4Types.SourceLocation.Builder extends com.google.protobuf.GeneratedMessage.Builder<P4Types.SourceLocation.Builder> implements P4Types.SourceLocationOrBuilder
 Location of code relative to a given source file.
 
Protobuf type p4.config.v1.SourceLocation
  • Method Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<P4Types.SourceLocation.Builder>
    • clear

      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<P4Types.SourceLocation.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<P4Types.SourceLocation.Builder>
    • getDefaultInstanceForType

      public P4Types.SourceLocation getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      public P4Types.SourceLocation build()
      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public P4Types.SourceLocation buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public P4Types.SourceLocation.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<P4Types.SourceLocation.Builder>
    • mergeFrom

    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.Builder<P4Types.SourceLocation.Builder>
    • mergeFrom

      public P4Types.SourceLocation.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<P4Types.SourceLocation.Builder>
      Throws:
      IOException
    • getFile

      public String getFile()
       Path to the source file (absolute or relative to the working directory).
       
      string file = 1;
      Specified by:
      getFile in interface P4Types.SourceLocationOrBuilder
      Returns:
      The file.
    • getFileBytes

      public com.google.protobuf.ByteString getFileBytes()
       Path to the source file (absolute or relative to the working directory).
       
      string file = 1;
      Specified by:
      getFileBytes in interface P4Types.SourceLocationOrBuilder
      Returns:
      The bytes for file.
    • setFile

      public P4Types.SourceLocation.Builder setFile(String value)
       Path to the source file (absolute or relative to the working directory).
       
      string file = 1;
      Parameters:
      value - The file to set.
      Returns:
      This builder for chaining.
    • clearFile

      public P4Types.SourceLocation.Builder clearFile()
       Path to the source file (absolute or relative to the working directory).
       
      string file = 1;
      Returns:
      This builder for chaining.
    • setFileBytes

      public P4Types.SourceLocation.Builder setFileBytes(com.google.protobuf.ByteString value)
       Path to the source file (absolute or relative to the working directory).
       
      string file = 1;
      Parameters:
      value - The bytes for file to set.
      Returns:
      This builder for chaining.
    • getLine

      public int getLine()
       Line and column numbers within the source file, 1-based.
       
      int32 line = 2;
      Specified by:
      getLine in interface P4Types.SourceLocationOrBuilder
      Returns:
      The line.
    • setLine

      public P4Types.SourceLocation.Builder setLine(int value)
       Line and column numbers within the source file, 1-based.
       
      int32 line = 2;
      Parameters:
      value - The line to set.
      Returns:
      This builder for chaining.
    • clearLine

      public P4Types.SourceLocation.Builder clearLine()
       Line and column numbers within the source file, 1-based.
       
      int32 line = 2;
      Returns:
      This builder for chaining.
    • getColumn

      public int getColumn()
      int32 column = 3;
      Specified by:
      getColumn in interface P4Types.SourceLocationOrBuilder
      Returns:
      The column.
    • setColumn

      public P4Types.SourceLocation.Builder setColumn(int value)
      int32 column = 3;
      Parameters:
      value - The column to set.
      Returns:
      This builder for chaining.
    • clearColumn

      public P4Types.SourceLocation.Builder clearColumn()
      int32 column = 3;
      Returns:
      This builder for chaining.