Interface DescriptorProtos.EnumDescriptorProtoOrBuilder
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
DescriptorProtos.EnumDescriptorProto
,DescriptorProtos.EnumDescriptorProto.Builder
- Enclosing class:
DescriptorProtos
public static interface DescriptorProtos.EnumDescriptorProtoOrBuilder
extends com.google.protobuf.MessageOrBuilder
-
Method Summary
Modifier and TypeMethodDescriptiongetName()
optional string name = 1;
com.google.protobuf.ByteString
optional string name = 1;
optional .google.protobuf.EnumOptions options = 3;
optional .google.protobuf.EnumOptions options = 3;
getReservedName
(int index) Reserved enum value names, which may not be reused.com.google.protobuf.ByteString
getReservedNameBytes
(int index) Reserved enum value names, which may not be reused.int
Reserved enum value names, which may not be reused.Reserved enum value names, which may not be reused.getReservedRange
(int index) Range of reserved numeric values.int
Range of reserved numeric values.Range of reserved numeric values.getReservedRangeOrBuilder
(int index) Range of reserved numeric values.Range of reserved numeric values.getValue
(int index) repeated .google.protobuf.EnumValueDescriptorProto value = 2;
int
repeated .google.protobuf.EnumValueDescriptorProto value = 2;
repeated .google.protobuf.EnumValueDescriptorProto value = 2;
getValueOrBuilder
(int index) repeated .google.protobuf.EnumValueDescriptorProto value = 2;
repeated .google.protobuf.EnumValueDescriptorProto value = 2;
boolean
hasName()
optional string name = 1;
boolean
optional .google.protobuf.EnumOptions options = 3;
Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder
isInitialized
Methods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
hasName
boolean hasName()optional string name = 1;
- Returns:
- Whether the name field is set.
-
getName
-
getNameBytes
com.google.protobuf.ByteString getNameBytes()optional string name = 1;
- Returns:
- The bytes for name.
-
getValueList
List<DescriptorProtos.EnumValueDescriptorProto> getValueList()repeated .google.protobuf.EnumValueDescriptorProto value = 2;
-
getValue
repeated .google.protobuf.EnumValueDescriptorProto value = 2;
-
getValueCount
int getValueCount()repeated .google.protobuf.EnumValueDescriptorProto value = 2;
-
getValueOrBuilderList
List<? extends DescriptorProtos.EnumValueDescriptorProtoOrBuilder> getValueOrBuilderList()repeated .google.protobuf.EnumValueDescriptorProto value = 2;
-
getValueOrBuilder
repeated .google.protobuf.EnumValueDescriptorProto value = 2;
-
hasOptions
boolean hasOptions()optional .google.protobuf.EnumOptions options = 3;
- Returns:
- Whether the options field is set.
-
getOptions
DescriptorProtos.EnumOptions getOptions()optional .google.protobuf.EnumOptions options = 3;
- Returns:
- The options.
-
getOptionsOrBuilder
DescriptorProtos.EnumOptionsOrBuilder getOptionsOrBuilder()optional .google.protobuf.EnumOptions options = 3;
-
getReservedRangeList
List<DescriptorProtos.EnumDescriptorProto.EnumReservedRange> getReservedRangeList()Range of reserved numeric values. Reserved numeric values may not be used by enum values in the same enum declaration. Reserved ranges may not overlap.
repeated .google.protobuf.EnumDescriptorProto.EnumReservedRange reserved_range = 4;
-
getReservedRange
Range of reserved numeric values. Reserved numeric values may not be used by enum values in the same enum declaration. Reserved ranges may not overlap.
repeated .google.protobuf.EnumDescriptorProto.EnumReservedRange reserved_range = 4;
-
getReservedRangeCount
int getReservedRangeCount()Range of reserved numeric values. Reserved numeric values may not be used by enum values in the same enum declaration. Reserved ranges may not overlap.
repeated .google.protobuf.EnumDescriptorProto.EnumReservedRange reserved_range = 4;
-
getReservedRangeOrBuilderList
List<? extends DescriptorProtos.EnumDescriptorProto.EnumReservedRangeOrBuilder> getReservedRangeOrBuilderList()Range of reserved numeric values. Reserved numeric values may not be used by enum values in the same enum declaration. Reserved ranges may not overlap.
repeated .google.protobuf.EnumDescriptorProto.EnumReservedRange reserved_range = 4;
-
getReservedRangeOrBuilder
DescriptorProtos.EnumDescriptorProto.EnumReservedRangeOrBuilder getReservedRangeOrBuilder(int index) Range of reserved numeric values. Reserved numeric values may not be used by enum values in the same enum declaration. Reserved ranges may not overlap.
repeated .google.protobuf.EnumDescriptorProto.EnumReservedRange reserved_range = 4;
-
getReservedNameList
-
getReservedNameCount
int getReservedNameCount()Reserved enum value names, which may not be reused. A given name may only be reserved once.
repeated string reserved_name = 5;
- Returns:
- The count of reservedName.
-
getReservedName
Reserved enum value names, which may not be reused. A given name may only be reserved once.
repeated string reserved_name = 5;
- Parameters:
index
- The index of the element to return.- Returns:
- The reservedName at the given index.
-
getReservedNameBytes
com.google.protobuf.ByteString getReservedNameBytes(int index) Reserved enum value names, which may not be reused. A given name may only be reserved once.
repeated string reserved_name = 5;
- Parameters:
index
- The index of the value to return.- Returns:
- The bytes of the reservedName at the given index.
-