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 Summary
Modifier and TypeMethodDescriptionaddRepeatedField
(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) build()
clear()
The column position on the line.clearField
(com.google.protobuf.Descriptors.FieldDescriptor field) The line number of the generated code.clearOneof
(com.google.protobuf.Descriptors.OneofDescriptor oneof) The original mapping for this line mapping.clone()
int
The column position on the line.static final com.google.protobuf.Descriptors.Descriptor
com.google.protobuf.Descriptors.Descriptor
int
The line number of the generated code.The original mapping for this line mapping.The original mapping for this line mapping.The original mapping for this line mapping.boolean
The column position on the line.boolean
The line number of the generated code.boolean
The original mapping for this line mapping.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
final boolean
mergeFrom
(Mapping.LineMapping other) mergeFrom
(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom
(com.google.protobuf.Message other) The original mapping for this line mapping.mergeUnknownFields
(com.google.protobuf.UnknownFieldSet unknownFields) setColumnPosition
(int value) The column position on the line.setLineNumber
(int value) The line number of the generated code.The original mapping for this line mapping.setOriginalMapping
(Mapping.OriginalMapping.Builder builderForValue) The original mapping for this line mapping.setRepeatedField
(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) setUnknownFields
(com.google.protobuf.UnknownFieldSet unknownFields) Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFrom
Methods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFrom
Methods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<Mapping.LineMapping.Builder>
-
clear
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<Mapping.LineMapping.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<Mapping.LineMapping.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.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 interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Mapping.LineMapping.Builder>
-
clearField
public Mapping.LineMapping.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) - Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Mapping.LineMapping.Builder>
-
clearOneof
public Mapping.LineMapping.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) - Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.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 interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.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 interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Mapping.LineMapping.Builder>
-
mergeFrom
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<Mapping.LineMapping.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.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 interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in classcom.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 interfaceMapping.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 interfaceMapping.LineMappingOrBuilder
- Returns:
- The lineNumber.
-
setLineNumber
The line number of the generated code.
optional int32 line_number = 1;
- Parameters:
value
- The lineNumber to set.- Returns:
- This builder for chaining.
-
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 interfaceMapping.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 interfaceMapping.LineMappingOrBuilder
- Returns:
- The columnPosition.
-
setColumnPosition
The column position on the line.
optional int32 column_position = 2;
- Parameters:
value
- The columnPosition to set.- Returns:
- This builder for chaining.
-
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 interfaceMapping.LineMappingOrBuilder
- Returns:
- Whether the originalMapping field is set.
-
getOriginalMapping
The original mapping for this line mapping.
optional .sourcemap.OriginalMapping original_mapping = 3;
- Specified by:
getOriginalMapping
in interfaceMapping.LineMappingOrBuilder
- Returns:
- The originalMapping.
-
setOriginalMapping
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
The original mapping for this line mapping.
optional .sourcemap.OriginalMapping original_mapping = 3;
-
clearOriginalMapping
The original mapping for this line mapping.
optional .sourcemap.OriginalMapping original_mapping = 3;
-
getOriginalMappingBuilder
The original mapping for this line mapping.
optional .sourcemap.OriginalMapping original_mapping = 3;
-
getOriginalMappingOrBuilder
The original mapping for this line mapping.
optional .sourcemap.OriginalMapping original_mapping = 3;
- Specified by:
getOriginalMappingOrBuilder
in interfaceMapping.LineMappingOrBuilder
-
setUnknownFields
public final Mapping.LineMapping.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<Mapping.LineMapping.Builder>
-
mergeUnknownFields
public final Mapping.LineMapping.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<Mapping.LineMapping.Builder>
-