Top Methods
com.google.protobuf

public Interface FieldOrBuilder

extends MessageOrBuilder
Known Direct Implementers
com.google.protobuf.Field, com.google.protobuf.Field.Builder

Method Summary

Modifier and TypeMethod and Description
public Field.Cardinality
getCardinality()

The field cardinality.
public int
getCardinalityValue()

The field cardinality.
public String
getDefaultValue()

The string value of the default value of this field.
public ByteString
getDefaultValueBytes()

The string value of the default value of this field.
public String
getJsonName()

The field JSON name.
public ByteString
getJsonNameBytes()

The field JSON name.
public Field.Kind
getKind()

The field type.
public int
getKindValue()

The field type.
public String
getName()

The field name.
public ByteString
getNameBytes()

The field name.
public int
getNumber()

The field number.
public int
getOneofIndex()

The index of the field type in `Type.oneofs`, for message or enumeration
types.
public Option
getOptions(int index)

The protocol buffer options.
public int
getOptionsCount()

The protocol buffer options.
public List<Option>
getOptionsList()

The protocol buffer options.
public OptionOrBuilder
getOptionsOrBuilder(int index)

The protocol buffer options.
public List<? extends OptionOrBuilder>
getOptionsOrBuilderList()

The protocol buffer options.
public boolean
getPacked()

Whether to use alternative packed wire representation.
public String
getTypeUrl()

The field type URL, without the scheme, for message or enumeration
types.
public ByteString
getTypeUrlBytes()

The field type URL, without the scheme, for message or enumeration
types.
Inherited from com.google.protobuf.MessageOrBuilder:
findInitializationErrorsgetAllFieldsgetDefaultInstanceForTypegetDescriptorForTypegetFieldgetInitializationErrorStringgetOneofFieldDescriptorgetRepeatedFieldgetRepeatedFieldCountgetUnknownFieldshasFieldhasOneof

Method Detail

getCardinalityback to summary
public Field.Cardinality getCardinality()
The field cardinality.
.google.protobuf.Field.Cardinality cardinality = 2;
getCardinalityValueback to summary
public int getCardinalityValue()
The field cardinality.
.google.protobuf.Field.Cardinality cardinality = 2;
getDefaultValueback to summary
public String getDefaultValue()
The string value of the default value of this field. Proto2 syntax only.
string default_value = 11;
getDefaultValueBytesback to summary
public ByteString getDefaultValueBytes()
The string value of the default value of this field. Proto2 syntax only.
string default_value = 11;
getJsonNameback to summary
public String getJsonName()
The field JSON name.
string json_name = 10;
getJsonNameBytesback to summary
public ByteString getJsonNameBytes()
The field JSON name.
string json_name = 10;
getKindback to summary
public Field.Kind getKind()
The field type.
.google.protobuf.Field.Kind kind = 1;
getKindValueback to summary
public int getKindValue()
The field type.
.google.protobuf.Field.Kind kind = 1;
getNameback to summary
public String getName()
The field name.
string name = 4;
getNameBytesback to summary
public ByteString getNameBytes()
The field name.
string name = 4;
getNumberback to summary
public int getNumber()
The field number.
int32 number = 3;
getOneofIndexback to summary
public 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;
getOptionsback to summary
public Option getOptions(int index)
The protocol buffer options.
repeated .google.protobuf.Option options = 9;
getOptionsCountback to summary
public int getOptionsCount()
The protocol buffer options.
repeated .google.protobuf.Option options = 9;
getOptionsListback to summary
public List<Option> getOptionsList()
The protocol buffer options.
repeated .google.protobuf.Option options = 9;
getOptionsOrBuilderback to summary
public OptionOrBuilder getOptionsOrBuilder(int index)
The protocol buffer options.
repeated .google.protobuf.Option options = 9;
getOptionsOrBuilderListback to summary
public List<? extends OptionOrBuilder> getOptionsOrBuilderList()
The protocol buffer options.
repeated .google.protobuf.Option options = 9;
getPackedback to summary
public boolean getPacked()
Whether to use alternative packed wire representation.
bool packed = 8;
getTypeUrlback to summary
public 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;
getTypeUrlBytesback to summary
public 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;