Package com.google.protobuf
Class DescriptorProtos.ExtensionRangeOptions.Declaration.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<DescriptorProtos.ExtensionRangeOptions.Declaration.Builder>
com.google.protobuf.DescriptorProtos.ExtensionRangeOptions.Declaration.Builder
- All Implemented Interfaces:
DescriptorProtos.ExtensionRangeOptions.DeclarationOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- DescriptorProtos.ExtensionRangeOptions.Declaration
public static final class DescriptorProtos.ExtensionRangeOptions.Declaration.Builder
extends com.google.protobuf.GeneratedMessageV3.Builder<DescriptorProtos.ExtensionRangeOptions.Declaration.Builder>
implements DescriptorProtos.ExtensionRangeOptions.DeclarationOrBuilder
Protobuf type
google.protobuf.ExtensionRangeOptions.Declaration-
Method Summary
Modifier and TypeMethodDescriptionaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) build()clear()clearField(com.google.protobuf.Descriptors.FieldDescriptor field) The fully-qualified name of the extension field.The extension number declared within the extension range.clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) If true, indicates that the extension must be defined as repeated.If true, indicates that the number is reserved in the extension range, and any extension field with the number will fail to compile.The fully-qualified type name of the extension field.clone()static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorThe fully-qualified name of the extension field.com.google.protobuf.ByteStringThe fully-qualified name of the extension field.intThe extension number declared within the extension range.booleanIf true, indicates that the extension must be defined as repeated.booleanIf true, indicates that the number is reserved in the extension range, and any extension field with the number will fail to compile.getType()The fully-qualified type name of the extension field.com.google.protobuf.ByteStringThe fully-qualified type name of the extension field.booleanThe fully-qualified name of the extension field.booleanThe extension number declared within the extension range.booleanIf true, indicates that the extension must be defined as repeated.booleanIf true, indicates that the number is reserved in the extension range, and any extension field with the number will fail to compile.booleanhasType()The fully-qualified type name of the extension field.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) setFullName(String value) The fully-qualified name of the extension field.setFullNameBytes(com.google.protobuf.ByteString value) The fully-qualified name of the extension field.setNumber(int value) The extension number declared within the extension range.setRepeated(boolean value) If true, indicates that the extension must be defined as repeated.setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) 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.The fully-qualified type name of the extension field.setTypeBytes(com.google.protobuf.ByteString value) The fully-qualified type name of the extension field.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, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods 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:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<DescriptorProtos.ExtensionRangeOptions.Declaration.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<DescriptorProtos.ExtensionRangeOptions.Declaration.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessageV3.Builder<DescriptorProtos.ExtensionRangeOptions.Declaration.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<DescriptorProtos.ExtensionRangeOptions.Declaration.Builder>
-
setField
public DescriptorProtos.ExtensionRangeOptions.Declaration.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<DescriptorProtos.ExtensionRangeOptions.Declaration.Builder>
-
clearField
public DescriptorProtos.ExtensionRangeOptions.Declaration.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) - Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<DescriptorProtos.ExtensionRangeOptions.Declaration.Builder>
-
clearOneof
public DescriptorProtos.ExtensionRangeOptions.Declaration.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) - Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<DescriptorProtos.ExtensionRangeOptions.Declaration.Builder>
-
setRepeatedField
public DescriptorProtos.ExtensionRangeOptions.Declaration.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) - Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<DescriptorProtos.ExtensionRangeOptions.Declaration.Builder>
-
addRepeatedField
public DescriptorProtos.ExtensionRangeOptions.Declaration.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<DescriptorProtos.ExtensionRangeOptions.Declaration.Builder>
-
mergeFrom
public DescriptorProtos.ExtensionRangeOptions.Declaration.Builder mergeFrom(com.google.protobuf.Message other) - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<DescriptorProtos.ExtensionRangeOptions.Declaration.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<DescriptorProtos.ExtensionRangeOptions.Declaration.Builder>
-
mergeFrom
public DescriptorProtos.ExtensionRangeOptions.Declaration.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<DescriptorProtos.ExtensionRangeOptions.Declaration.Builder>- Throws:
IOException
-
hasNumber
public boolean hasNumber()The extension number declared within the extension range.
optional int32 number = 1;- Specified by:
hasNumberin interfaceDescriptorProtos.ExtensionRangeOptions.DeclarationOrBuilder- Returns:
- Whether the number field is set.
-
getNumber
public int getNumber()The extension number declared within the extension range.
optional int32 number = 1;- Specified by:
getNumberin interfaceDescriptorProtos.ExtensionRangeOptions.DeclarationOrBuilder- Returns:
- The number.
-
setNumber
The extension number declared within the extension range.
optional int32 number = 1;- Parameters:
value- The number to set.- Returns:
- This builder for chaining.
-
clearNumber
The extension number declared within the extension range.
optional int32 number = 1;- Returns:
- This builder for chaining.
-
hasFullName
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;- Specified by:
hasFullNamein interfaceDescriptorProtos.ExtensionRangeOptions.DeclarationOrBuilder- Returns:
- Whether the fullName field is set.
-
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;- Specified by:
getFullNamein interfaceDescriptorProtos.ExtensionRangeOptions.DeclarationOrBuilder- Returns:
- The fullName.
-
getFullNameBytes
public com.google.protobuf.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;- Specified by:
getFullNameBytesin interfaceDescriptorProtos.ExtensionRangeOptions.DeclarationOrBuilder- Returns:
- The bytes for fullName.
-
setFullName
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;- Parameters:
value- The fullName to set.- Returns:
- This builder for chaining.
-
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;- Returns:
- This builder for chaining.
-
setFullNameBytes
public DescriptorProtos.ExtensionRangeOptions.Declaration.Builder setFullNameBytes(com.google.protobuf.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;- Parameters:
value- The bytes for fullName to set.- Returns:
- This builder for chaining.
-
hasType
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;- Specified by:
hasTypein interfaceDescriptorProtos.ExtensionRangeOptions.DeclarationOrBuilder- Returns:
- Whether the type field is set.
-
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;- Specified by:
getTypein interfaceDescriptorProtos.ExtensionRangeOptions.DeclarationOrBuilder- Returns:
- The type.
-
getTypeBytes
public com.google.protobuf.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;- Specified by:
getTypeBytesin interfaceDescriptorProtos.ExtensionRangeOptions.DeclarationOrBuilder- Returns:
- The bytes for type.
-
setType
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;- Parameters:
value- The type to set.- Returns:
- This builder for chaining.
-
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;- Returns:
- This builder for chaining.
-
setTypeBytes
public DescriptorProtos.ExtensionRangeOptions.Declaration.Builder setTypeBytes(com.google.protobuf.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;- Parameters:
value- The bytes for type to set.- Returns:
- This builder for chaining.
-
hasReserved
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;- Specified by:
hasReservedin interfaceDescriptorProtos.ExtensionRangeOptions.DeclarationOrBuilder- Returns:
- Whether the reserved field is set.
-
getReserved
public 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;- Specified by:
getReservedin interfaceDescriptorProtos.ExtensionRangeOptions.DeclarationOrBuilder- Returns:
- The reserved.
-
setReserved
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;- Parameters:
value- The reserved to set.- Returns:
- This builder for chaining.
-
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;- Returns:
- This builder for chaining.
-
hasRepeated
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;- Specified by:
hasRepeatedin interfaceDescriptorProtos.ExtensionRangeOptions.DeclarationOrBuilder- Returns:
- Whether the repeated field is set.
-
getRepeated
public 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;- Specified by:
getRepeatedin interfaceDescriptorProtos.ExtensionRangeOptions.DeclarationOrBuilder- Returns:
- The repeated.
-
setRepeated
If true, indicates that the extension must be defined as repeated. Otherwise the extension must be defined as optional.
optional bool repeated = 6;- Parameters:
value- The repeated to set.- Returns:
- This builder for chaining.
-
clearRepeated
If true, indicates that the extension must be defined as repeated. Otherwise the extension must be defined as optional.
optional bool repeated = 6;- Returns:
- This builder for chaining.
-
setUnknownFields
public final DescriptorProtos.ExtensionRangeOptions.Declaration.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<DescriptorProtos.ExtensionRangeOptions.Declaration.Builder>
-
mergeUnknownFields
public final DescriptorProtos.ExtensionRangeOptions.Declaration.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<DescriptorProtos.ExtensionRangeOptions.Declaration.Builder>
-