Package com.google.protobuf
Interface FieldOrBuilder
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder
,MessageOrBuilder
- All Known Implementing Classes:
Field
,Field.Builder
-
Method Summary
Modifier and TypeMethodDescription.google.protobuf.Field.Cardinality cardinality = 2 [json_name = "cardinality"];
int
.google.protobuf.Field.Cardinality cardinality = 2 [json_name = "cardinality"];
string default_value = 11 [json_name = "defaultValue"];
com.google.protobuf.ByteString
string default_value = 11 [json_name = "defaultValue"];
string json_name = 10 [json_name = "jsonName"];
com.google.protobuf.ByteString
string json_name = 10 [json_name = "jsonName"];
getKind()
.google.protobuf.Field.Kind kind = 1 [json_name = "kind"];
int
.google.protobuf.Field.Kind kind = 1 [json_name = "kind"];
getName()
string name = 4 [json_name = "name"];
com.google.protobuf.ByteString
string name = 4 [json_name = "name"];
int
int32 number = 3 [json_name = "number"];
int
int32 oneof_index = 7 [json_name = "oneofIndex"];
getOptions
(int index) repeated .google.protobuf.Option options = 9 [json_name = "options"];
int
repeated .google.protobuf.Option options = 9 [json_name = "options"];
repeated .google.protobuf.Option options = 9 [json_name = "options"];
getOptionsOrBuilder
(int index) repeated .google.protobuf.Option options = 9 [json_name = "options"];
List
<? extends OptionOrBuilder> repeated .google.protobuf.Option options = 9 [json_name = "options"];
boolean
bool packed = 8 [json_name = "packed"];
string type_url = 6 [json_name = "typeUrl"];
com.google.protobuf.ByteString
string type_url = 6 [json_name = "typeUrl"];
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
-
getKindValue
int getKindValue().google.protobuf.Field.Kind kind = 1 [json_name = "kind"];
- Returns:
- The enum numeric value on the wire for kind.
-
getKind
Field.Kind getKind().google.protobuf.Field.Kind kind = 1 [json_name = "kind"];
- Returns:
- The kind.
-
getCardinalityValue
int getCardinalityValue().google.protobuf.Field.Cardinality cardinality = 2 [json_name = "cardinality"];
- Returns:
- The enum numeric value on the wire for cardinality.
-
getCardinality
Field.Cardinality getCardinality().google.protobuf.Field.Cardinality cardinality = 2 [json_name = "cardinality"];
- Returns:
- The cardinality.
-
getNumber
int getNumber()int32 number = 3 [json_name = "number"];
- Returns:
- The number.
-
getName
String getName()string name = 4 [json_name = "name"];
- Returns:
- The name.
-
getNameBytes
com.google.protobuf.ByteString getNameBytes()string name = 4 [json_name = "name"];
- Returns:
- The bytes for name.
-
getTypeUrl
String getTypeUrl()string type_url = 6 [json_name = "typeUrl"];
- Returns:
- The typeUrl.
-
getTypeUrlBytes
com.google.protobuf.ByteString getTypeUrlBytes()string type_url = 6 [json_name = "typeUrl"];
- Returns:
- The bytes for typeUrl.
-
getOneofIndex
int getOneofIndex()int32 oneof_index = 7 [json_name = "oneofIndex"];
- Returns:
- The oneofIndex.
-
getPacked
boolean getPacked()bool packed = 8 [json_name = "packed"];
- Returns:
- The packed.
-
getOptionsList
repeated .google.protobuf.Option options = 9 [json_name = "options"];
-
getOptions
repeated .google.protobuf.Option options = 9 [json_name = "options"];
-
getOptionsCount
int getOptionsCount()repeated .google.protobuf.Option options = 9 [json_name = "options"];
-
getOptionsOrBuilderList
List<? extends OptionOrBuilder> getOptionsOrBuilderList()repeated .google.protobuf.Option options = 9 [json_name = "options"];
-
getOptionsOrBuilder
repeated .google.protobuf.Option options = 9 [json_name = "options"];
-
getJsonName
String getJsonName()string json_name = 10 [json_name = "jsonName"];
- Returns:
- The jsonName.
-
getJsonNameBytes
com.google.protobuf.ByteString getJsonNameBytes()string json_name = 10 [json_name = "jsonName"];
- Returns:
- The bytes for jsonName.
-
getDefaultValue
String getDefaultValue()string default_value = 11 [json_name = "defaultValue"];
- Returns:
- The defaultValue.
-
getDefaultValueBytes
com.google.protobuf.ByteString getDefaultValueBytes()string default_value = 11 [json_name = "defaultValue"];
- Returns:
- The bytes for defaultValue.
-