public interface FieldOrBuilder extends MessageOrBuilder
Modifier and Type | Method and Description |
---|---|
Field.Cardinality |
getCardinality()
The field cardinality.
|
int |
getCardinalityValue()
The field cardinality.
|
String |
getDefaultValue()
The string value of the default value of this field.
|
ByteString |
getDefaultValueBytes()
The string value of the default value of this field.
|
String |
getJsonName()
The field JSON name.
|
ByteString |
getJsonNameBytes()
The field JSON name.
|
Field.Kind |
getKind()
The field type.
|
int |
getKindValue()
The field type.
|
String |
getName()
The field name.
|
ByteString |
getNameBytes()
The field name.
|
int |
getNumber()
The field number.
|
int |
getOneofIndex()
The index of the field type in `Type.oneofs`, for message or enumeration
types.
|
Option |
getOptions(int index)
The protocol buffer options.
|
int |
getOptionsCount()
The protocol buffer options.
|
List<Option> |
getOptionsList()
The protocol buffer options.
|
OptionOrBuilder |
getOptionsOrBuilder(int index)
The protocol buffer options.
|
List<? extends OptionOrBuilder> |
getOptionsOrBuilderList()
The protocol buffer options.
|
boolean |
getPacked()
Whether to use alternative packed wire representation.
|
String |
getTypeUrl()
The field type URL, without the scheme, for message or enumeration
types.
|
ByteString |
getTypeUrlBytes()
The field type URL, without the scheme, for message or enumeration
types.
|
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
isInitialized
int getKindValue()
The field type.
.google.protobuf.Field.Kind kind = 1;
Field.Kind getKind()
The field type.
.google.protobuf.Field.Kind kind = 1;
int getCardinalityValue()
The field cardinality.
.google.protobuf.Field.Cardinality cardinality = 2;
Field.Cardinality getCardinality()
The field cardinality.
.google.protobuf.Field.Cardinality cardinality = 2;
int getNumber()
The field number.
int32 number = 3;
String getName()
The field name.
string name = 4;
ByteString getNameBytes()
The field name.
string name = 4;
String getTypeUrl()
The field type URL, without the scheme, for message or enumeration types. Example: `"type.googleapis.com/google.protobuf.Timestamp"`.
string type_url = 6;
ByteString getTypeUrlBytes()
The field type URL, without the scheme, for message or enumeration types. Example: `"type.googleapis.com/google.protobuf.Timestamp"`.
string type_url = 6;
int getOneofIndex()
The index of the field type in `Type.oneofs`, for message or enumeration types. The first type has index 1; zero means the type is not in the list.
int32 oneof_index = 7;
boolean getPacked()
Whether to use alternative packed wire representation.
bool packed = 8;
List<Option> getOptionsList()
The protocol buffer options.
repeated .google.protobuf.Option options = 9;
Option getOptions(int index)
The protocol buffer options.
repeated .google.protobuf.Option options = 9;
int getOptionsCount()
The protocol buffer options.
repeated .google.protobuf.Option options = 9;
List<? extends OptionOrBuilder> getOptionsOrBuilderList()
The protocol buffer options.
repeated .google.protobuf.Option options = 9;
OptionOrBuilder getOptionsOrBuilder(int index)
The protocol buffer options.
repeated .google.protobuf.Option options = 9;
String getJsonName()
The field JSON name.
string json_name = 10;
ByteString getJsonNameBytes()
The field JSON name.
string json_name = 10;
String getDefaultValue()
The string value of the default value of this field. Proto2 syntax only.
string default_value = 11;
ByteString getDefaultValueBytes()
The string value of the default value of this field. Proto2 syntax only.
string default_value = 11;
Copyright © 2008–2019. All rights reserved.