public static final class DescriptorProtos.ExtensionRangeOptions.Declaration.Builder extends GeneratedMessageV3.Builder<DescriptorProtos.ExtensionRangeOptions.Declaration.Builder> implements DescriptorProtos.ExtensionRangeOptions.DeclarationOrBuilder
google.protobuf.ExtensionRangeOptions.Declaration| Modifier and Type | Method and Description |
|---|---|
DescriptorProtos.ExtensionRangeOptions.Declaration.Builder |
addRepeatedField(Descriptors.FieldDescriptor field,
Object value)
Like
setRepeatedField, but appends the value as a new element. |
DescriptorProtos.ExtensionRangeOptions.Declaration |
build()
Constructs the message based on the state of the Builder.
|
DescriptorProtos.ExtensionRangeOptions.Declaration |
buildPartial()
Like
MessageLite.Builder.build(), but does not throw an exception if the message is missing required
fields. |
DescriptorProtos.ExtensionRangeOptions.Declaration.Builder |
clear()
Called by the initialization and clear code paths to allow subclasses to reset any of their
builtin fields back to the initial values.
|
DescriptorProtos.ExtensionRangeOptions.Declaration.Builder |
clearField(Descriptors.FieldDescriptor field)
Clears the field.
|
DescriptorProtos.ExtensionRangeOptions.Declaration.Builder |
clearFullName()
The fully-qualified name of the extension field.
|
DescriptorProtos.ExtensionRangeOptions.Declaration.Builder |
clearIsRepeated()
Deprecated.
google.protobuf.ExtensionRangeOptions.Declaration.is_repeated is deprecated.
See google/protobuf/descriptor.proto;l=149
|
DescriptorProtos.ExtensionRangeOptions.Declaration.Builder |
clearNumber()
The extension number declared within the extension range.
|
DescriptorProtos.ExtensionRangeOptions.Declaration.Builder |
clearOneof(Descriptors.OneofDescriptor oneof)
TODO(jieluo): Clear it when all subclasses have implemented this method.
|
DescriptorProtos.ExtensionRangeOptions.Declaration.Builder |
clearRepeated()
If true, indicates that the extension must be defined as repeated.
|
DescriptorProtos.ExtensionRangeOptions.Declaration.Builder |
clearReserved()
If true, indicates that the number is reserved in the extension range,
and any extension field with the number will fail to compile.
|
DescriptorProtos.ExtensionRangeOptions.Declaration.Builder |
clearType()
The fully-qualified type name of the extension field.
|
DescriptorProtos.ExtensionRangeOptions.Declaration.Builder |
clone()
Clones the Builder.
|
DescriptorProtos.ExtensionRangeOptions.Declaration |
getDefaultInstanceForType()
Get an instance of the type with no fields set.
|
static Descriptors.Descriptor |
getDescriptor() |
Descriptors.Descriptor |
getDescriptorForType()
Get the message's type's descriptor.
|
String |
getFullName()
The fully-qualified name of the extension field.
|
ByteString |
getFullNameBytes()
The fully-qualified name of the extension field.
|
boolean |
getIsRepeated()
Deprecated.
google.protobuf.ExtensionRangeOptions.Declaration.is_repeated is deprecated.
See google/protobuf/descriptor.proto;l=149
|
int |
getNumber()
The extension number declared within the extension range.
|
boolean |
getRepeated()
If true, indicates that the extension must be defined as repeated.
|
boolean |
getReserved()
If true, indicates that the number is reserved in the extension range,
and any extension field with the number will fail to compile.
|
String |
getType()
The fully-qualified type name of the extension field.
|
ByteString |
getTypeBytes()
The fully-qualified type name of the extension field.
|
boolean |
hasFullName()
The fully-qualified name of the extension field.
|
boolean |
hasIsRepeated()
Deprecated.
google.protobuf.ExtensionRangeOptions.Declaration.is_repeated is deprecated.
See google/protobuf/descriptor.proto;l=149
|
boolean |
hasNumber()
The extension number declared within the extension range.
|
boolean |
hasRepeated()
If true, indicates that the extension must be defined as repeated.
|
boolean |
hasReserved()
If true, indicates that the number is reserved in the extension range,
and any extension field with the number will fail to compile.
|
boolean |
hasType()
The fully-qualified type name of the extension field.
|
protected GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable()
Get the FieldAccessorTable for this type.
|
boolean |
isInitialized()
Returns true if all required fields in the message and all embedded messages are set, false
otherwise.
|
DescriptorProtos.ExtensionRangeOptions.Declaration.Builder |
mergeFrom(CodedInputStream input,
ExtensionRegistryLite extensionRegistry)
Like
MessageLite.Builder.mergeFrom(CodedInputStream), but also parses extensions. |
DescriptorProtos.ExtensionRangeOptions.Declaration.Builder |
mergeFrom(DescriptorProtos.ExtensionRangeOptions.Declaration other) |
DescriptorProtos.ExtensionRangeOptions.Declaration.Builder |
mergeFrom(Message other)
Merge
other into the message being built. |
DescriptorProtos.ExtensionRangeOptions.Declaration.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields)
Merge some unknown fields into the
UnknownFieldSet for this message. |
DescriptorProtos.ExtensionRangeOptions.Declaration.Builder |
setField(Descriptors.FieldDescriptor field,
Object value)
Sets a field to the given value.
|
DescriptorProtos.ExtensionRangeOptions.Declaration.Builder |
setFullName(String value)
The fully-qualified name of the extension field.
|
DescriptorProtos.ExtensionRangeOptions.Declaration.Builder |
setFullNameBytes(ByteString value)
The fully-qualified name of the extension field.
|
DescriptorProtos.ExtensionRangeOptions.Declaration.Builder |
setIsRepeated(boolean value)
Deprecated.
google.protobuf.ExtensionRangeOptions.Declaration.is_repeated is deprecated.
See google/protobuf/descriptor.proto;l=149
|
DescriptorProtos.ExtensionRangeOptions.Declaration.Builder |
setNumber(int value)
The extension number declared within the extension range.
|
DescriptorProtos.ExtensionRangeOptions.Declaration.Builder |
setRepeated(boolean value)
If true, indicates that the extension must be defined as repeated.
|
DescriptorProtos.ExtensionRangeOptions.Declaration.Builder |
setRepeatedField(Descriptors.FieldDescriptor field,
int index,
Object value)
Sets an element of a repeated field to the given value.
|
DescriptorProtos.ExtensionRangeOptions.Declaration.Builder |
setReserved(boolean value)
If true, indicates that the number is reserved in the extension range,
and any extension field with the number will fail to compile.
|
DescriptorProtos.ExtensionRangeOptions.Declaration.Builder |
setType(String value)
The fully-qualified type name of the extension field.
|
DescriptorProtos.ExtensionRangeOptions.Declaration.Builder |
setTypeBytes(ByteString value)
The fully-qualified type name of the extension field.
|
DescriptorProtos.ExtensionRangeOptions.Declaration.Builder |
setUnknownFields(UnknownFieldSet unknownFields)
Set the
UnknownFieldSet for this message. |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitfindInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneofmergeDelimitedFrom, mergeDelimitedFrommergeFrompublic static final Descriptors.Descriptor getDescriptor()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
GeneratedMessageV3.Builderpublic DescriptorProtos.ExtensionRangeOptions.Declaration.Builder clear()
GeneratedMessageV3.Builderclear in interface Message.Builderclear in interface MessageLite.Builderclear in class GeneratedMessageV3.Builder<DescriptorProtos.ExtensionRangeOptions.Declaration.Builder>public Descriptors.Descriptor getDescriptorForType()
Message.BuilderMessageOrBuilder.getDescriptorForType().getDescriptorForType in interface Message.BuildergetDescriptorForType in interface MessageOrBuildergetDescriptorForType in class GeneratedMessageV3.Builder<DescriptorProtos.ExtensionRangeOptions.Declaration.Builder>public DescriptorProtos.ExtensionRangeOptions.Declaration getDefaultInstanceForType()
MessageLiteOrBuildergetDefaultInstance() method of generated
message classes in that this method is an abstract method of the MessageLite interface
whereas getDefaultInstance() is a static method of a specific class. They return the
same thing.getDefaultInstanceForType in interface MessageLiteOrBuildergetDefaultInstanceForType in interface MessageOrBuilderpublic DescriptorProtos.ExtensionRangeOptions.Declaration build()
MessageLite.Builderbuild in interface Message.Builderbuild in interface MessageLite.Builderpublic DescriptorProtos.ExtensionRangeOptions.Declaration buildPartial()
MessageLite.BuilderMessageLite.Builder.build(), but does not throw an exception if the message is missing required
fields. Instead, a partial message is returned. Subsequent changes to the Builder will not
affect the returned message.buildPartial in interface Message.BuilderbuildPartial in interface MessageLite.Builderpublic DescriptorProtos.ExtensionRangeOptions.Declaration.Builder clone()
MessageLite.Builderclone in interface Message.Builderclone in interface MessageLite.Builderclone in class GeneratedMessageV3.Builder<DescriptorProtos.ExtensionRangeOptions.Declaration.Builder>Object.clone()public DescriptorProtos.ExtensionRangeOptions.Declaration.Builder setField(Descriptors.FieldDescriptor field, Object value)
Message.BuilderMessageOrBuilder.getField(Descriptors.FieldDescriptor) returns.setField in interface Message.BuildersetField in class GeneratedMessageV3.Builder<DescriptorProtos.ExtensionRangeOptions.Declaration.Builder>public DescriptorProtos.ExtensionRangeOptions.Declaration.Builder clearField(Descriptors.FieldDescriptor field)
Message.BuilderclearField in interface Message.BuilderclearField in class GeneratedMessageV3.Builder<DescriptorProtos.ExtensionRangeOptions.Declaration.Builder>public DescriptorProtos.ExtensionRangeOptions.Declaration.Builder clearOneof(Descriptors.OneofDescriptor oneof)
AbstractMessage.BuilderclearOneof in interface Message.BuilderclearOneof in class GeneratedMessageV3.Builder<DescriptorProtos.ExtensionRangeOptions.Declaration.Builder>public DescriptorProtos.ExtensionRangeOptions.Declaration.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Message.BuilderMessageOrBuilder.getRepeatedField(Descriptors.FieldDescriptor,int) returns.setRepeatedField in interface Message.BuildersetRepeatedField in class GeneratedMessageV3.Builder<DescriptorProtos.ExtensionRangeOptions.Declaration.Builder>public DescriptorProtos.ExtensionRangeOptions.Declaration.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Message.BuildersetRepeatedField, but appends the value as a new element.addRepeatedField in interface Message.BuilderaddRepeatedField in class GeneratedMessageV3.Builder<DescriptorProtos.ExtensionRangeOptions.Declaration.Builder>public DescriptorProtos.ExtensionRangeOptions.Declaration.Builder mergeFrom(Message other)
Message.Builderother into the message being built. other must have the exact same type
as this (i.e. getDescriptorForType() == other.getDescriptorForType()).
Merging occurs as follows. For each field:
* For singular primitive fields, if the field is set in other, then other's
value overwrites the value in this message.
* For singular message fields, if the field is set in other, it is merged into the
corresponding sub-message of this message using the same merging rules.
* For repeated fields, the elements in other are concatenated with the elements in
this message.
* For oneof groups, if the other message has one of the fields set, the group of this message
is cleared and replaced by the field of the other message, so that the oneof constraint is
preserved.
This is equivalent to the Message::MergeFrom method in C++.
mergeFrom in interface Message.BuildermergeFrom in class AbstractMessage.Builder<DescriptorProtos.ExtensionRangeOptions.Declaration.Builder>public DescriptorProtos.ExtensionRangeOptions.Declaration.Builder mergeFrom(DescriptorProtos.ExtensionRangeOptions.Declaration other)
public final boolean isInitialized()
MessageLiteOrBuilderisInitialized in interface MessageLiteOrBuilderisInitialized in class GeneratedMessageV3.Builder<DescriptorProtos.ExtensionRangeOptions.Declaration.Builder>public DescriptorProtos.ExtensionRangeOptions.Declaration.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws IOException
MessageLite.BuilderMessageLite.Builder.mergeFrom(CodedInputStream), but also parses extensions. The extensions
that you want to be able to parse must be registered in extensionRegistry. Extensions
not in the registry will be treated as unknown fields.mergeFrom in interface Message.BuildermergeFrom in interface MessageLite.BuildermergeFrom in class AbstractMessage.Builder<DescriptorProtos.ExtensionRangeOptions.Declaration.Builder>InvalidProtocolBufferException - the bytes read are not syntactically correct according
to the protobuf wire format specification. The data is corrupt, incomplete, or was never
a protobuf in the first place.IOException - an I/O error reading from the streampublic boolean hasNumber()
The extension number declared within the extension range.
optional int32 number = 1;hasNumber in interface DescriptorProtos.ExtensionRangeOptions.DeclarationOrBuilderpublic int getNumber()
The extension number declared within the extension range.
optional int32 number = 1;getNumber in interface DescriptorProtos.ExtensionRangeOptions.DeclarationOrBuilderpublic DescriptorProtos.ExtensionRangeOptions.Declaration.Builder setNumber(int value)
The extension number declared within the extension range.
optional int32 number = 1;value - The number to set.public DescriptorProtos.ExtensionRangeOptions.Declaration.Builder clearNumber()
The extension number declared within the extension range.
optional int32 number = 1;public boolean hasFullName()
The fully-qualified name of the extension field. There must be a leading dot in front of the full name.
optional string full_name = 2;hasFullName in interface DescriptorProtos.ExtensionRangeOptions.DeclarationOrBuilderpublic String getFullName()
The fully-qualified name of the extension field. There must be a leading dot in front of the full name.
optional string full_name = 2;getFullName in interface DescriptorProtos.ExtensionRangeOptions.DeclarationOrBuilderpublic ByteString getFullNameBytes()
The fully-qualified name of the extension field. There must be a leading dot in front of the full name.
optional string full_name = 2;getFullNameBytes in interface DescriptorProtos.ExtensionRangeOptions.DeclarationOrBuilderpublic DescriptorProtos.ExtensionRangeOptions.Declaration.Builder setFullName(String value)
The fully-qualified name of the extension field. There must be a leading dot in front of the full name.
optional string full_name = 2;value - The fullName to set.public DescriptorProtos.ExtensionRangeOptions.Declaration.Builder clearFullName()
The fully-qualified name of the extension field. There must be a leading dot in front of the full name.
optional string full_name = 2;public DescriptorProtos.ExtensionRangeOptions.Declaration.Builder setFullNameBytes(ByteString value)
The fully-qualified name of the extension field. There must be a leading dot in front of the full name.
optional string full_name = 2;value - The bytes for fullName to set.public boolean hasType()
The fully-qualified type name of the extension field. Unlike Metadata.type, Declaration.type must have a leading dot for messages and enums.
optional string type = 3;hasType in interface DescriptorProtos.ExtensionRangeOptions.DeclarationOrBuilderpublic String getType()
The fully-qualified type name of the extension field. Unlike Metadata.type, Declaration.type must have a leading dot for messages and enums.
optional string type = 3;getType in interface DescriptorProtos.ExtensionRangeOptions.DeclarationOrBuilderpublic ByteString getTypeBytes()
The fully-qualified type name of the extension field. Unlike Metadata.type, Declaration.type must have a leading dot for messages and enums.
optional string type = 3;getTypeBytes in interface DescriptorProtos.ExtensionRangeOptions.DeclarationOrBuilderpublic DescriptorProtos.ExtensionRangeOptions.Declaration.Builder setType(String value)
The fully-qualified type name of the extension field. Unlike Metadata.type, Declaration.type must have a leading dot for messages and enums.
optional string type = 3;value - The type to set.public DescriptorProtos.ExtensionRangeOptions.Declaration.Builder clearType()
The fully-qualified type name of the extension field. Unlike Metadata.type, Declaration.type must have a leading dot for messages and enums.
optional string type = 3;public DescriptorProtos.ExtensionRangeOptions.Declaration.Builder setTypeBytes(ByteString value)
The fully-qualified type name of the extension field. Unlike Metadata.type, Declaration.type must have a leading dot for messages and enums.
optional string type = 3;value - The bytes for type to set.@Deprecated public boolean hasIsRepeated()
Deprecated. Please use "repeated".
optional bool is_repeated = 4 [deprecated = true];hasIsRepeated in interface DescriptorProtos.ExtensionRangeOptions.DeclarationOrBuilder@Deprecated public boolean getIsRepeated()
Deprecated. Please use "repeated".
optional bool is_repeated = 4 [deprecated = true];getIsRepeated in interface DescriptorProtos.ExtensionRangeOptions.DeclarationOrBuilder@Deprecated public DescriptorProtos.ExtensionRangeOptions.Declaration.Builder setIsRepeated(boolean value)
Deprecated. Please use "repeated".
optional bool is_repeated = 4 [deprecated = true];value - The isRepeated to set.@Deprecated public DescriptorProtos.ExtensionRangeOptions.Declaration.Builder clearIsRepeated()
Deprecated. Please use "repeated".
optional bool is_repeated = 4 [deprecated = true];public boolean hasReserved()
If true, indicates that the number is reserved in the extension range, and any extension field with the number will fail to compile. Set this when a declared extension field is deleted.
optional bool reserved = 5;hasReserved in interface DescriptorProtos.ExtensionRangeOptions.DeclarationOrBuilderpublic boolean getReserved()
If true, indicates that the number is reserved in the extension range, and any extension field with the number will fail to compile. Set this when a declared extension field is deleted.
optional bool reserved = 5;getReserved in interface DescriptorProtos.ExtensionRangeOptions.DeclarationOrBuilderpublic DescriptorProtos.ExtensionRangeOptions.Declaration.Builder setReserved(boolean value)
If true, indicates that the number is reserved in the extension range, and any extension field with the number will fail to compile. Set this when a declared extension field is deleted.
optional bool reserved = 5;value - The reserved to set.public DescriptorProtos.ExtensionRangeOptions.Declaration.Builder clearReserved()
If true, indicates that the number is reserved in the extension range, and any extension field with the number will fail to compile. Set this when a declared extension field is deleted.
optional bool reserved = 5;public boolean hasRepeated()
If true, indicates that the extension must be defined as repeated. Otherwise the extension must be defined as optional.
optional bool repeated = 6;hasRepeated in interface DescriptorProtos.ExtensionRangeOptions.DeclarationOrBuilderpublic boolean getRepeated()
If true, indicates that the extension must be defined as repeated. Otherwise the extension must be defined as optional.
optional bool repeated = 6;getRepeated in interface DescriptorProtos.ExtensionRangeOptions.DeclarationOrBuilderpublic DescriptorProtos.ExtensionRangeOptions.Declaration.Builder setRepeated(boolean value)
If true, indicates that the extension must be defined as repeated. Otherwise the extension must be defined as optional.
optional bool repeated = 6;value - The repeated to set.public DescriptorProtos.ExtensionRangeOptions.Declaration.Builder clearRepeated()
If true, indicates that the extension must be defined as repeated. Otherwise the extension must be defined as optional.
optional bool repeated = 6;public final DescriptorProtos.ExtensionRangeOptions.Declaration.Builder setUnknownFields(UnknownFieldSet unknownFields)
Message.BuilderUnknownFieldSet for this message.setUnknownFields in interface Message.BuildersetUnknownFields in class GeneratedMessageV3.Builder<DescriptorProtos.ExtensionRangeOptions.Declaration.Builder>public final DescriptorProtos.ExtensionRangeOptions.Declaration.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Message.BuilderUnknownFieldSet for this message.mergeUnknownFields in interface Message.BuildermergeUnknownFields in class GeneratedMessageV3.Builder<DescriptorProtos.ExtensionRangeOptions.Declaration.Builder>Copyright © 2008–2023. All rights reserved.