Interface DescriptorProtos.EnumDescriptorProtoOrBuilder (3.19.4)

public static interface DescriptorProtos.EnumDescriptorProtoOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getName()

public abstract String getName()

optional string name = 1;

Returns
TypeDescription
String

The name.

getNameBytes()

public abstract ByteString getNameBytes()

optional string name = 1;

Returns
TypeDescription
ByteString

The bytes for name.

getOptions()

public abstract DescriptorProtos.EnumOptions getOptions()

optional .google.protobuf.EnumOptions options = 3;

Returns
TypeDescription
DescriptorProtos.EnumOptions

The options.

getOptionsOrBuilder()

public abstract DescriptorProtos.EnumOptionsOrBuilder getOptionsOrBuilder()

optional .google.protobuf.EnumOptions options = 3;

Returns
TypeDescription
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
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
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
NameDescription
indexint

The index of the value to return.

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
DescriptorProtos.EnumValueDescriptorProto

getValueCount()

public abstract int getValueCount()

repeated .google.protobuf.EnumValueDescriptorProto value = 2;

Returns
TypeDescription
int

getValueList()

public abstract List<DescriptorProtos.EnumValueDescriptorProto> getValueList()

repeated .google.protobuf.EnumValueDescriptorProto value = 2;

Returns
TypeDescription
List<EnumValueDescriptorProto>

getValueOrBuilder(int index)

public abstract DescriptorProtos.EnumValueDescriptorProtoOrBuilder getValueOrBuilder(int index)

repeated .google.protobuf.EnumValueDescriptorProto value = 2;

Parameter
NameDescription
indexint
Returns
TypeDescription
DescriptorProtos.EnumValueDescriptorProtoOrBuilder

getValueOrBuilderList()

public abstract List<? extends DescriptorProtos.EnumValueDescriptorProtoOrBuilder> getValueOrBuilderList()

repeated .google.protobuf.EnumValueDescriptorProto value = 2;

Returns
TypeDescription
List<? extends com.google.protobuf.DescriptorProtos.EnumValueDescriptorProtoOrBuilder>

hasName()

public abstract boolean hasName()

optional string name = 1;

Returns
TypeDescription
boolean

Whether the name field is set.

hasOptions()

public abstract boolean hasOptions()

optional .google.protobuf.EnumOptions options = 3;

Returns
TypeDescription
boolean

Whether the options field is set.