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