Class Mapping.LineMapping.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderType>
com.google.protobuf.GeneratedMessageV3.Builder<Mapping.LineMapping.Builder>
com.google.debugging.sourcemap.proto.Mapping.LineMapping.Builder
All Implemented Interfaces:
Mapping.LineMappingOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
Mapping.LineMapping

public static final class Mapping.LineMapping.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Mapping.LineMapping.Builder> implements Mapping.LineMappingOrBuilder
 Maps a position on a given line to the mapping describing
 the original code.
 
Protobuf type sourcemap.LineMapping
  • Method Details

    • getDescriptor

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

      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<Mapping.LineMapping.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.GeneratedMessageV3.Builder<Mapping.LineMapping.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.GeneratedMessageV3.Builder<Mapping.LineMapping.Builder>
    • getDefaultInstanceForType

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

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

      public Mapping.LineMapping buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • clone

      Specified by:
      clone in interface com.google.protobuf.Message.Builder
      Specified by:
      clone in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clone in class com.google.protobuf.GeneratedMessageV3.Builder<Mapping.LineMapping.Builder>
    • setField

      public Mapping.LineMapping.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
      Specified by:
      setField in interface com.google.protobuf.Message.Builder
      Overrides:
      setField in class com.google.protobuf.GeneratedMessageV3.Builder<Mapping.LineMapping.Builder>
    • clearField

      public Mapping.LineMapping.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
      Specified by:
      clearField in interface com.google.protobuf.Message.Builder
      Overrides:
      clearField in class com.google.protobuf.GeneratedMessageV3.Builder<Mapping.LineMapping.Builder>
    • clearOneof

      public Mapping.LineMapping.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
      Specified by:
      clearOneof in interface com.google.protobuf.Message.Builder
      Overrides:
      clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<Mapping.LineMapping.Builder>
    • setRepeatedField

      public Mapping.LineMapping.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
      Specified by:
      setRepeatedField in interface com.google.protobuf.Message.Builder
      Overrides:
      setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Mapping.LineMapping.Builder>
    • addRepeatedField

      public Mapping.LineMapping.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
      Specified by:
      addRepeatedField in interface com.google.protobuf.Message.Builder
      Overrides:
      addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Mapping.LineMapping.Builder>
    • mergeFrom

      public Mapping.LineMapping.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<Mapping.LineMapping.Builder>
    • mergeFrom

    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<Mapping.LineMapping.Builder>
    • mergeFrom

      public Mapping.LineMapping.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<Mapping.LineMapping.Builder>
      Throws:
      IOException
    • hasLineNumber

      public boolean hasLineNumber()
       The line number of the generated code.
       
      optional int32 line_number = 1;
      Specified by:
      hasLineNumber in interface Mapping.LineMappingOrBuilder
      Returns:
      Whether the lineNumber field is set.
    • getLineNumber

      public int getLineNumber()
       The line number of the generated code.
       
      optional int32 line_number = 1;
      Specified by:
      getLineNumber in interface Mapping.LineMappingOrBuilder
      Returns:
      The lineNumber.
    • setLineNumber

      public Mapping.LineMapping.Builder setLineNumber(int value)
       The line number of the generated code.
       
      optional int32 line_number = 1;
      Parameters:
      value - The lineNumber to set.
      Returns:
      This builder for chaining.
    • clearLineNumber

      public Mapping.LineMapping.Builder clearLineNumber()
       The line number of the generated code.
       
      optional int32 line_number = 1;
      Returns:
      This builder for chaining.
    • hasColumnPosition

      public boolean hasColumnPosition()
       The column position on the line.
       
      optional int32 column_position = 2;
      Specified by:
      hasColumnPosition in interface Mapping.LineMappingOrBuilder
      Returns:
      Whether the columnPosition field is set.
    • getColumnPosition

      public int getColumnPosition()
       The column position on the line.
       
      optional int32 column_position = 2;
      Specified by:
      getColumnPosition in interface Mapping.LineMappingOrBuilder
      Returns:
      The columnPosition.
    • setColumnPosition

      public Mapping.LineMapping.Builder setColumnPosition(int value)
       The column position on the line.
       
      optional int32 column_position = 2;
      Parameters:
      value - The columnPosition to set.
      Returns:
      This builder for chaining.
    • clearColumnPosition

      public Mapping.LineMapping.Builder clearColumnPosition()
       The column position on the line.
       
      optional int32 column_position = 2;
      Returns:
      This builder for chaining.
    • hasOriginalMapping

      public boolean hasOriginalMapping()
       The original mapping for this line mapping.
       
      optional .sourcemap.OriginalMapping original_mapping = 3;
      Specified by:
      hasOriginalMapping in interface Mapping.LineMappingOrBuilder
      Returns:
      Whether the originalMapping field is set.
    • getOriginalMapping

      public Mapping.OriginalMapping getOriginalMapping()
       The original mapping for this line mapping.
       
      optional .sourcemap.OriginalMapping original_mapping = 3;
      Specified by:
      getOriginalMapping in interface Mapping.LineMappingOrBuilder
      Returns:
      The originalMapping.
    • setOriginalMapping

      public Mapping.LineMapping.Builder setOriginalMapping(Mapping.OriginalMapping value)
       The original mapping for this line mapping.
       
      optional .sourcemap.OriginalMapping original_mapping = 3;
    • setOriginalMapping

      public Mapping.LineMapping.Builder setOriginalMapping(Mapping.OriginalMapping.Builder builderForValue)
       The original mapping for this line mapping.
       
      optional .sourcemap.OriginalMapping original_mapping = 3;
    • mergeOriginalMapping

      public Mapping.LineMapping.Builder mergeOriginalMapping(Mapping.OriginalMapping value)
       The original mapping for this line mapping.
       
      optional .sourcemap.OriginalMapping original_mapping = 3;
    • clearOriginalMapping

      public Mapping.LineMapping.Builder clearOriginalMapping()
       The original mapping for this line mapping.
       
      optional .sourcemap.OriginalMapping original_mapping = 3;
    • getOriginalMappingBuilder

      public Mapping.OriginalMapping.Builder getOriginalMappingBuilder()
       The original mapping for this line mapping.
       
      optional .sourcemap.OriginalMapping original_mapping = 3;
    • getOriginalMappingOrBuilder

      public Mapping.OriginalMappingOrBuilder getOriginalMappingOrBuilder()
       The original mapping for this line mapping.
       
      optional .sourcemap.OriginalMapping original_mapping = 3;
      Specified by:
      getOriginalMappingOrBuilder in interface Mapping.LineMappingOrBuilder
    • setUnknownFields

      public final Mapping.LineMapping.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
      Specified by:
      setUnknownFields in interface com.google.protobuf.Message.Builder
      Overrides:
      setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Mapping.LineMapping.Builder>
    • mergeUnknownFields

      public final Mapping.LineMapping.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
      Specified by:
      mergeUnknownFields in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Mapping.LineMapping.Builder>