Class DescriptorProtos.UninterpretedOption.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<DescriptorProtos.UninterpretedOption.Builder>
com.google.protobuf.GeneratedMessage.Builder<DescriptorProtos.UninterpretedOption.Builder>
com.google.protobuf.generated.DescriptorProtos.UninterpretedOption.Builder
- All Implemented Interfaces:
DescriptorProtos.UninterpretedOptionOrBuilder
,com.google.protobuf.Message.Builder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,Cloneable
- Enclosing class:
DescriptorProtos.UninterpretedOption
public static final class DescriptorProtos.UninterpretedOption.Builder
extends com.google.protobuf.GeneratedMessage.Builder<DescriptorProtos.UninterpretedOption.Builder>
implements DescriptorProtos.UninterpretedOptionOrBuilder
A message representing a option the parser does not recognize. This only appears in options protos created by the compiler::Parser class. DescriptorPool resolves these when building Descriptor objects. Therefore, options protos in descriptor objects (e.g. returned by Descriptor::options(), or produced by Descriptor::CopyTo()) will never have UninterpretedOptions in them.Protobuf type
google.protobuf.UninterpretedOption
-
Method Summary
Modifier and TypeMethodDescriptionaddAllName
(Iterable<? extends DescriptorProtos.UninterpretedOption.NamePart> values) repeated .google.protobuf.UninterpretedOption.NamePart name = 2;
addName
(int index, DescriptorProtos.UninterpretedOption.NamePart value) repeated .google.protobuf.UninterpretedOption.NamePart name = 2;
addName
(int index, DescriptorProtos.UninterpretedOption.NamePart.Builder builderForValue) repeated .google.protobuf.UninterpretedOption.NamePart name = 2;
repeated .google.protobuf.UninterpretedOption.NamePart name = 2;
addName
(DescriptorProtos.UninterpretedOption.NamePart.Builder builderForValue) repeated .google.protobuf.UninterpretedOption.NamePart name = 2;
repeated .google.protobuf.UninterpretedOption.NamePart name = 2;
addNameBuilder
(int index) repeated .google.protobuf.UninterpretedOption.NamePart name = 2;
build()
clear()
optional string aggregate_value = 8;
optional double double_value = 6;
The value of the uninterpreted option, in whatever type the tokenizer identified it as during parsing.repeated .google.protobuf.UninterpretedOption.NamePart name = 2;
optional int64 negative_int_value = 5;
optional uint64 positive_int_value = 4;
optional bytes string_value = 7;
optional string aggregate_value = 8;
com.google.protobuf.ByteString
optional string aggregate_value = 8;
static final com.google.protobuf.Descriptors.Descriptor
com.google.protobuf.Descriptors.Descriptor
double
optional double double_value = 6;
The value of the uninterpreted option, in whatever type the tokenizer identified it as during parsing.com.google.protobuf.ByteString
The value of the uninterpreted option, in whatever type the tokenizer identified it as during parsing.getName
(int index) repeated .google.protobuf.UninterpretedOption.NamePart name = 2;
getNameBuilder
(int index) repeated .google.protobuf.UninterpretedOption.NamePart name = 2;
repeated .google.protobuf.UninterpretedOption.NamePart name = 2;
int
repeated .google.protobuf.UninterpretedOption.NamePart name = 2;
repeated .google.protobuf.UninterpretedOption.NamePart name = 2;
getNameOrBuilder
(int index) repeated .google.protobuf.UninterpretedOption.NamePart name = 2;
repeated .google.protobuf.UninterpretedOption.NamePart name = 2;
long
optional int64 negative_int_value = 5;
long
optional uint64 positive_int_value = 4;
com.google.protobuf.ByteString
optional bytes string_value = 7;
boolean
optional string aggregate_value = 8;
boolean
optional double double_value = 6;
boolean
The value of the uninterpreted option, in whatever type the tokenizer identified it as during parsing.boolean
optional int64 negative_int_value = 5;
boolean
optional uint64 positive_int_value = 4;
boolean
optional bytes string_value = 7;
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
final boolean
mergeFrom
(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom
(com.google.protobuf.Message other) removeName
(int index) repeated .google.protobuf.UninterpretedOption.NamePart name = 2;
setAggregateValue
(String value) optional string aggregate_value = 8;
setAggregateValueBytes
(com.google.protobuf.ByteString value) optional string aggregate_value = 8;
setDoubleValue
(double value) optional double double_value = 6;
setIdentifierValue
(String value) The value of the uninterpreted option, in whatever type the tokenizer identified it as during parsing.setIdentifierValueBytes
(com.google.protobuf.ByteString value) The value of the uninterpreted option, in whatever type the tokenizer identified it as during parsing.setName
(int index, DescriptorProtos.UninterpretedOption.NamePart value) repeated .google.protobuf.UninterpretedOption.NamePart name = 2;
setName
(int index, DescriptorProtos.UninterpretedOption.NamePart.Builder builderForValue) repeated .google.protobuf.UninterpretedOption.NamePart name = 2;
setNegativeIntValue
(long value) optional int64 negative_int_value = 5;
setPositiveIntValue
(long value) optional uint64 positive_int_value = 4;
setStringValue
(com.google.protobuf.ByteString value) optional bytes string_value = 7;
Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, 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.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessage.Builder<DescriptorProtos.UninterpretedOption.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.GeneratedMessage.Builder<DescriptorProtos.UninterpretedOption.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.GeneratedMessage.Builder<DescriptorProtos.UninterpretedOption.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
-
mergeFrom
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<DescriptorProtos.UninterpretedOption.Builder>
-
mergeFrom
public DescriptorProtos.UninterpretedOption.Builder mergeFrom(DescriptorProtos.UninterpretedOption other) -
isInitialized
public final boolean isInitialized()- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessage.Builder<DescriptorProtos.UninterpretedOption.Builder>
-
mergeFrom
public DescriptorProtos.UninterpretedOption.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<DescriptorProtos.UninterpretedOption.Builder>
- Throws:
IOException
-
getNameList
repeated .google.protobuf.UninterpretedOption.NamePart name = 2;
- Specified by:
getNameList
in interfaceDescriptorProtos.UninterpretedOptionOrBuilder
-
getNameCount
public int getNameCount()repeated .google.protobuf.UninterpretedOption.NamePart name = 2;
- Specified by:
getNameCount
in interfaceDescriptorProtos.UninterpretedOptionOrBuilder
-
getName
repeated .google.protobuf.UninterpretedOption.NamePart name = 2;
- Specified by:
getName
in interfaceDescriptorProtos.UninterpretedOptionOrBuilder
-
setName
public DescriptorProtos.UninterpretedOption.Builder setName(int index, DescriptorProtos.UninterpretedOption.NamePart value) repeated .google.protobuf.UninterpretedOption.NamePart name = 2;
-
setName
public DescriptorProtos.UninterpretedOption.Builder setName(int index, DescriptorProtos.UninterpretedOption.NamePart.Builder builderForValue) repeated .google.protobuf.UninterpretedOption.NamePart name = 2;
-
addName
public DescriptorProtos.UninterpretedOption.Builder addName(DescriptorProtos.UninterpretedOption.NamePart value) repeated .google.protobuf.UninterpretedOption.NamePart name = 2;
-
addName
public DescriptorProtos.UninterpretedOption.Builder addName(int index, DescriptorProtos.UninterpretedOption.NamePart value) repeated .google.protobuf.UninterpretedOption.NamePart name = 2;
-
addName
public DescriptorProtos.UninterpretedOption.Builder addName(DescriptorProtos.UninterpretedOption.NamePart.Builder builderForValue) repeated .google.protobuf.UninterpretedOption.NamePart name = 2;
-
addName
public DescriptorProtos.UninterpretedOption.Builder addName(int index, DescriptorProtos.UninterpretedOption.NamePart.Builder builderForValue) repeated .google.protobuf.UninterpretedOption.NamePart name = 2;
-
addAllName
public DescriptorProtos.UninterpretedOption.Builder addAllName(Iterable<? extends DescriptorProtos.UninterpretedOption.NamePart> values) repeated .google.protobuf.UninterpretedOption.NamePart name = 2;
-
clearName
repeated .google.protobuf.UninterpretedOption.NamePart name = 2;
-
removeName
repeated .google.protobuf.UninterpretedOption.NamePart name = 2;
-
getNameBuilder
repeated .google.protobuf.UninterpretedOption.NamePart name = 2;
-
getNameOrBuilder
repeated .google.protobuf.UninterpretedOption.NamePart name = 2;
- Specified by:
getNameOrBuilder
in interfaceDescriptorProtos.UninterpretedOptionOrBuilder
-
getNameOrBuilderList
public List<? extends DescriptorProtos.UninterpretedOption.NamePartOrBuilder> getNameOrBuilderList()repeated .google.protobuf.UninterpretedOption.NamePart name = 2;
- Specified by:
getNameOrBuilderList
in interfaceDescriptorProtos.UninterpretedOptionOrBuilder
-
addNameBuilder
repeated .google.protobuf.UninterpretedOption.NamePart name = 2;
-
addNameBuilder
repeated .google.protobuf.UninterpretedOption.NamePart name = 2;
-
getNameBuilderList
repeated .google.protobuf.UninterpretedOption.NamePart name = 2;
-
hasIdentifierValue
public boolean hasIdentifierValue()The value of the uninterpreted option, in whatever type the tokenizer identified it as during parsing. Exactly one of these should be set.
optional string identifier_value = 3;
- Specified by:
hasIdentifierValue
in interfaceDescriptorProtos.UninterpretedOptionOrBuilder
- Returns:
- Whether the identifierValue field is set.
-
getIdentifierValue
The value of the uninterpreted option, in whatever type the tokenizer identified it as during parsing. Exactly one of these should be set.
optional string identifier_value = 3;
- Specified by:
getIdentifierValue
in interfaceDescriptorProtos.UninterpretedOptionOrBuilder
- Returns:
- The identifierValue.
-
getIdentifierValueBytes
public com.google.protobuf.ByteString getIdentifierValueBytes()The value of the uninterpreted option, in whatever type the tokenizer identified it as during parsing. Exactly one of these should be set.
optional string identifier_value = 3;
- Specified by:
getIdentifierValueBytes
in interfaceDescriptorProtos.UninterpretedOptionOrBuilder
- Returns:
- The bytes for identifierValue.
-
setIdentifierValue
The value of the uninterpreted option, in whatever type the tokenizer identified it as during parsing. Exactly one of these should be set.
optional string identifier_value = 3;
- Parameters:
value
- The identifierValue to set.- Returns:
- This builder for chaining.
-
clearIdentifierValue
The value of the uninterpreted option, in whatever type the tokenizer identified it as during parsing. Exactly one of these should be set.
optional string identifier_value = 3;
- Returns:
- This builder for chaining.
-
setIdentifierValueBytes
public DescriptorProtos.UninterpretedOption.Builder setIdentifierValueBytes(com.google.protobuf.ByteString value) The value of the uninterpreted option, in whatever type the tokenizer identified it as during parsing. Exactly one of these should be set.
optional string identifier_value = 3;
- Parameters:
value
- The bytes for identifierValue to set.- Returns:
- This builder for chaining.
-
hasPositiveIntValue
public boolean hasPositiveIntValue()optional uint64 positive_int_value = 4;
- Specified by:
hasPositiveIntValue
in interfaceDescriptorProtos.UninterpretedOptionOrBuilder
- Returns:
- Whether the positiveIntValue field is set.
-
getPositiveIntValue
public long getPositiveIntValue()optional uint64 positive_int_value = 4;
- Specified by:
getPositiveIntValue
in interfaceDescriptorProtos.UninterpretedOptionOrBuilder
- Returns:
- The positiveIntValue.
-
setPositiveIntValue
optional uint64 positive_int_value = 4;
- Parameters:
value
- The positiveIntValue to set.- Returns:
- This builder for chaining.
-
clearPositiveIntValue
optional uint64 positive_int_value = 4;
- Returns:
- This builder for chaining.
-
hasNegativeIntValue
public boolean hasNegativeIntValue()optional int64 negative_int_value = 5;
- Specified by:
hasNegativeIntValue
in interfaceDescriptorProtos.UninterpretedOptionOrBuilder
- Returns:
- Whether the negativeIntValue field is set.
-
getNegativeIntValue
public long getNegativeIntValue()optional int64 negative_int_value = 5;
- Specified by:
getNegativeIntValue
in interfaceDescriptorProtos.UninterpretedOptionOrBuilder
- Returns:
- The negativeIntValue.
-
setNegativeIntValue
optional int64 negative_int_value = 5;
- Parameters:
value
- The negativeIntValue to set.- Returns:
- This builder for chaining.
-
clearNegativeIntValue
optional int64 negative_int_value = 5;
- Returns:
- This builder for chaining.
-
hasDoubleValue
public boolean hasDoubleValue()optional double double_value = 6;
- Specified by:
hasDoubleValue
in interfaceDescriptorProtos.UninterpretedOptionOrBuilder
- Returns:
- Whether the doubleValue field is set.
-
getDoubleValue
public double getDoubleValue()optional double double_value = 6;
- Specified by:
getDoubleValue
in interfaceDescriptorProtos.UninterpretedOptionOrBuilder
- Returns:
- The doubleValue.
-
setDoubleValue
optional double double_value = 6;
- Parameters:
value
- The doubleValue to set.- Returns:
- This builder for chaining.
-
clearDoubleValue
optional double double_value = 6;
- Returns:
- This builder for chaining.
-
hasStringValue
public boolean hasStringValue()optional bytes string_value = 7;
- Specified by:
hasStringValue
in interfaceDescriptorProtos.UninterpretedOptionOrBuilder
- Returns:
- Whether the stringValue field is set.
-
getStringValue
public com.google.protobuf.ByteString getStringValue()optional bytes string_value = 7;
- Specified by:
getStringValue
in interfaceDescriptorProtos.UninterpretedOptionOrBuilder
- Returns:
- The stringValue.
-
setStringValue
public DescriptorProtos.UninterpretedOption.Builder setStringValue(com.google.protobuf.ByteString value) optional bytes string_value = 7;
- Parameters:
value
- The stringValue to set.- Returns:
- This builder for chaining.
-
clearStringValue
optional bytes string_value = 7;
- Returns:
- This builder for chaining.
-
hasAggregateValue
public boolean hasAggregateValue()optional string aggregate_value = 8;
- Specified by:
hasAggregateValue
in interfaceDescriptorProtos.UninterpretedOptionOrBuilder
- Returns:
- Whether the aggregateValue field is set.
-
getAggregateValue
optional string aggregate_value = 8;
- Specified by:
getAggregateValue
in interfaceDescriptorProtos.UninterpretedOptionOrBuilder
- Returns:
- The aggregateValue.
-
getAggregateValueBytes
public com.google.protobuf.ByteString getAggregateValueBytes()optional string aggregate_value = 8;
- Specified by:
getAggregateValueBytes
in interfaceDescriptorProtos.UninterpretedOptionOrBuilder
- Returns:
- The bytes for aggregateValue.
-
setAggregateValue
optional string aggregate_value = 8;
- Parameters:
value
- The aggregateValue to set.- Returns:
- This builder for chaining.
-
clearAggregateValue
optional string aggregate_value = 8;
- Returns:
- This builder for chaining.
-
setAggregateValueBytes
public DescriptorProtos.UninterpretedOption.Builder setAggregateValueBytes(com.google.protobuf.ByteString value) optional string aggregate_value = 8;
- Parameters:
value
- The bytes for aggregateValue to set.- Returns:
- This builder for chaining.
-