public static interface DescriptorProtos.EnumDescriptorProtoOrBuilder extends MessageOrBuilder
Implements
MessageOrBuilderMethods
getName()
public abstract String getName()
optional string name = 1;
Returns | |
---|---|
Type | Description |
String |
The name. |
getNameBytes()
public abstract ByteString getNameBytes()
optional string name = 1;
Returns | |
---|---|
Type | Description |
ByteString |
The bytes for name. |
getOptions()
public abstract DescriptorProtos.EnumOptions getOptions()
optional .google.protobuf.EnumOptions options = 3;
Returns | |
---|---|
Type | Description |
DescriptorProtos.EnumOptions |
The options. |
getOptionsOrBuilder()
public abstract DescriptorProtos.EnumOptionsOrBuilder getOptionsOrBuilder()
optional .google.protobuf.EnumOptions options = 3;
Returns | |
---|---|
Type | Description |
DescriptorProtos.EnumOptionsOrBuilder |
getReservedName(int index)
public abstract String getReservedName(int index)
Reserved enum value names, which may not be reused. A given name may only be reserved once.
repeated string reserved_name = 5;
Parameter | |
---|---|
Name | Description |
index |
int The index of the element to return. |
Returns | |
---|---|
Type | Description |
String |
The reservedName at the given index. |
getReservedNameBytes(int index)
public abstract 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;
Parameter | |
---|---|
Name | Description |
index |
int The index of the value to return. |
Returns | |
---|---|
Type | Description |
ByteString |
The bytes of the reservedName at the given index. |
getReservedNameCount()
public abstract 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 | |
---|---|
Type | Description |
int |
The count of reservedName. |
getReservedNameList()
public abstract List<String> getReservedNameList()
Reserved enum value names, which may not be reused. A given name may only be reserved once.
repeated string reserved_name = 5;
Returns | |
---|---|
Type | Description |
List<String> |
A list containing the reservedName. |
getReservedRange(int index)
public abstract DescriptorProtos.EnumDescriptorProto.EnumReservedRange getReservedRange(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;
Parameter | |
---|---|
Name | Description |
index |
int |
Returns | |
---|---|
Type | Description |
DescriptorProtos.EnumDescriptorProto.EnumReservedRange |
getReservedRangeCount()
public abstract 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;
Returns | |
---|---|
Type | Description |
int |
getReservedRangeList()
public abstract 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;
Returns | |
---|---|
Type | Description |
List<EnumReservedRange> |
getReservedRangeOrBuilder(int index)
public abstract 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;
Parameter | |
---|---|
Name | Description |
index |
int |
Returns | |
---|---|
Type | Description |
DescriptorProtos.EnumDescriptorProto.EnumReservedRangeOrBuilder |
getReservedRangeOrBuilderList()
public abstract 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;
Returns | |
---|---|
Type | Description |
List<? extends com.google.protobuf.DescriptorProtos.EnumDescriptorProto.EnumReservedRangeOrBuilder> |
getValue(int index)
public abstract DescriptorProtos.EnumValueDescriptorProto getValue(int index)
repeated .google.protobuf.EnumValueDescriptorProto value = 2;
Parameter | |
---|---|
Name | Description |
index |
int |
Returns | |
---|---|
Type | Description |
DescriptorProtos.EnumValueDescriptorProto |
getValueCount()
public abstract int getValueCount()
repeated .google.protobuf.EnumValueDescriptorProto value = 2;
Returns | |
---|---|
Type | Description |
int |
getValueList()
public abstract List<DescriptorProtos.EnumValueDescriptorProto> getValueList()
repeated .google.protobuf.EnumValueDescriptorProto value = 2;
Returns | |
---|---|
Type | Description |
List<EnumValueDescriptorProto> |
getValueOrBuilder(int index)
public abstract DescriptorProtos.EnumValueDescriptorProtoOrBuilder getValueOrBuilder(int index)
repeated .google.protobuf.EnumValueDescriptorProto value = 2;
Parameter | |
---|---|
Name | Description |
index |
int |
Returns | |
---|---|
Type | Description |
DescriptorProtos.EnumValueDescriptorProtoOrBuilder |
getValueOrBuilderList()
public abstract List<? extends DescriptorProtos.EnumValueDescriptorProtoOrBuilder> getValueOrBuilderList()
repeated .google.protobuf.EnumValueDescriptorProto value = 2;
Returns | |
---|---|
Type | Description |
List<? extends com.google.protobuf.DescriptorProtos.EnumValueDescriptorProtoOrBuilder> |
hasName()
public abstract boolean hasName()
optional string name = 1;
Returns | |
---|---|
Type | Description |
boolean |
Whether the name field is set. |
hasOptions()
public abstract boolean hasOptions()
optional .google.protobuf.EnumOptions options = 3;
Returns | |
---|---|
Type | Description |
boolean |
Whether the options field is set. |