Package com.google.protobuf
Interface FieldOrBuilder
- All Superinterfaces:
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"];string default_value = 11 [json_name = "defaultValue"];string json_name = 10 [json_name = "jsonName"];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"];string name = 4 [json_name = "name"];intint32 number = 3 [json_name = "number"];intint32 oneof_index = 7 [json_name = "oneofIndex"];getOptions(int index) repeated .google.protobuf.Option options = 9 [json_name = "options"];intrepeated .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"];booleanbool packed = 8 [json_name = "packed"];string type_url = 6 [json_name = "typeUrl"];string type_url = 6 [json_name = "typeUrl"];Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder
isInitializedMethods 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
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
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
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
ByteString getDefaultValueBytes()string default_value = 11 [json_name = "defaultValue"];- Returns:
- The bytes for defaultValue.
-