Class Mapping.OriginalMapping.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderType>
com.google.protobuf.GeneratedMessageV3.Builder<Mapping.OriginalMapping.Builder>
com.google.debugging.sourcemap.proto.Mapping.OriginalMapping.Builder
- All Implemented Interfaces:
Mapping.OriginalMappingOrBuilder
,com.google.protobuf.Message.Builder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,Cloneable
- Enclosing class:
- Mapping.OriginalMapping
public static final class Mapping.OriginalMapping.Builder
extends com.google.protobuf.GeneratedMessageV3.Builder<Mapping.OriginalMapping.Builder>
implements Mapping.OriginalMappingOrBuilder
Protobuf type
sourcemap.OriginalMapping
-
Method Summary
Modifier and TypeMethodDescriptionaddRepeatedField
(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) build()
clear()
The column number on the line.clearField
(com.google.protobuf.Descriptors.FieldDescriptor field) The original name of the identifier.The line in the original file.clearOneof
(com.google.protobuf.Descriptors.OneofDescriptor oneof) The original source file.clone()
int
The column number on the line.static final com.google.protobuf.Descriptors.Descriptor
com.google.protobuf.Descriptors.Descriptor
The original name of the identifier.com.google.protobuf.ByteString
The original name of the identifier.int
The line in the original file.The original source file.com.google.protobuf.ByteString
The original source file.boolean
The column number on the line.boolean
The original name of the identifier.boolean
The line in the original file.boolean
The original source file.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
final boolean
mergeFrom
(Mapping.OriginalMapping other) mergeFrom
(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom
(com.google.protobuf.Message other) mergeUnknownFields
(com.google.protobuf.UnknownFieldSet unknownFields) setColumnPosition
(int value) The column number on the line.setIdentifier
(String value) The original name of the identifier.setIdentifierBytes
(com.google.protobuf.ByteString value) The original name of the identifier.setLineNumber
(int value) The line in the original file.setOriginalFile
(String value) The original source file.setOriginalFileBytes
(com.google.protobuf.ByteString value) The original source file.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.OriginalMapping.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.OriginalMapping.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.OriginalMapping.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.OriginalMapping.Builder>
-
setField
public Mapping.OriginalMapping.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.OriginalMapping.Builder>
-
clearField
public Mapping.OriginalMapping.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.OriginalMapping.Builder>
-
clearOneof
public Mapping.OriginalMapping.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.OriginalMapping.Builder>
-
setRepeatedField
public Mapping.OriginalMapping.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.OriginalMapping.Builder>
-
addRepeatedField
public Mapping.OriginalMapping.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.OriginalMapping.Builder>
-
mergeFrom
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<Mapping.OriginalMapping.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3.Builder<Mapping.OriginalMapping.Builder>
-
mergeFrom
public Mapping.OriginalMapping.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.OriginalMapping.Builder>
- Throws:
IOException
-
hasOriginalFile
public boolean hasOriginalFile()The original source file.
optional string original_file = 1;
- Specified by:
hasOriginalFile
in interfaceMapping.OriginalMappingOrBuilder
- Returns:
- Whether the originalFile field is set.
-
getOriginalFile
The original source file.
optional string original_file = 1;
- Specified by:
getOriginalFile
in interfaceMapping.OriginalMappingOrBuilder
- Returns:
- The originalFile.
-
getOriginalFileBytes
public com.google.protobuf.ByteString getOriginalFileBytes()The original source file.
optional string original_file = 1;
- Specified by:
getOriginalFileBytes
in interfaceMapping.OriginalMappingOrBuilder
- Returns:
- The bytes for originalFile.
-
setOriginalFile
The original source file.
optional string original_file = 1;
- Parameters:
value
- The originalFile to set.- Returns:
- This builder for chaining.
-
clearOriginalFile
The original source file.
optional string original_file = 1;
- Returns:
- This builder for chaining.
-
setOriginalFileBytes
The original source file.
optional string original_file = 1;
- Parameters:
value
- The bytes for originalFile to set.- Returns:
- This builder for chaining.
-
hasLineNumber
public boolean hasLineNumber()The line in the original file.
optional int32 line_number = 2;
- Specified by:
hasLineNumber
in interfaceMapping.OriginalMappingOrBuilder
- Returns:
- Whether the lineNumber field is set.
-
getLineNumber
public int getLineNumber()The line in the original file.
optional int32 line_number = 2;
- Specified by:
getLineNumber
in interfaceMapping.OriginalMappingOrBuilder
- Returns:
- The lineNumber.
-
setLineNumber
The line in the original file.
optional int32 line_number = 2;
- Parameters:
value
- The lineNumber to set.- Returns:
- This builder for chaining.
-
clearLineNumber
The line in the original file.
optional int32 line_number = 2;
- Returns:
- This builder for chaining.
-
hasColumnPosition
public boolean hasColumnPosition()The column number on the line.
optional int32 column_position = 3;
- Specified by:
hasColumnPosition
in interfaceMapping.OriginalMappingOrBuilder
- Returns:
- Whether the columnPosition field is set.
-
getColumnPosition
public int getColumnPosition()The column number on the line.
optional int32 column_position = 3;
- Specified by:
getColumnPosition
in interfaceMapping.OriginalMappingOrBuilder
- Returns:
- The columnPosition.
-
setColumnPosition
The column number on the line.
optional int32 column_position = 3;
- Parameters:
value
- The columnPosition to set.- Returns:
- This builder for chaining.
-
clearColumnPosition
The column number on the line.
optional int32 column_position = 3;
- Returns:
- This builder for chaining.
-
hasIdentifier
public boolean hasIdentifier()The original name of the identifier.
optional string identifier = 4;
- Specified by:
hasIdentifier
in interfaceMapping.OriginalMappingOrBuilder
- Returns:
- Whether the identifier field is set.
-
getIdentifier
The original name of the identifier.
optional string identifier = 4;
- Specified by:
getIdentifier
in interfaceMapping.OriginalMappingOrBuilder
- Returns:
- The identifier.
-
getIdentifierBytes
public com.google.protobuf.ByteString getIdentifierBytes()The original name of the identifier.
optional string identifier = 4;
- Specified by:
getIdentifierBytes
in interfaceMapping.OriginalMappingOrBuilder
- Returns:
- The bytes for identifier.
-
setIdentifier
The original name of the identifier.
optional string identifier = 4;
- Parameters:
value
- The identifier to set.- Returns:
- This builder for chaining.
-
clearIdentifier
The original name of the identifier.
optional string identifier = 4;
- Returns:
- This builder for chaining.
-
setIdentifierBytes
The original name of the identifier.
optional string identifier = 4;
- Parameters:
value
- The bytes for identifier to set.- Returns:
- This builder for chaining.
-
setUnknownFields
public final Mapping.OriginalMapping.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.OriginalMapping.Builder>
-
mergeUnknownFields
public final Mapping.OriginalMapping.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.OriginalMapping.Builder>
-