Field
class Field extends Message
A single field of a message type.
Protobuf type Google\Protobuf\Field
Methods
No description
The field type.
The field type.
The field cardinality.
The field cardinality.
The field number.
The field number.
The field name.
The field name.
The field type URL, without the scheme, for message or enumeration
types. Example: "type.googleapis.com/google.protobuf.Timestamp"
.
The field type URL, without the scheme, for message or enumeration
types. Example: "type.googleapis.com/google.protobuf.Timestamp"
.
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.
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.
Whether to use alternative packed wire representation.
Whether to use alternative packed wire representation.
The protocol buffer options.
The protocol buffer options.
The field JSON name.
The field JSON name.
The string value of the default value of this field. Proto2 syntax only.
The string value of the default value of this field. Proto2 syntax only.
Details
at line 81
__construct()
at line 92
int
getKind()
The field type.
Generated from protobuf field .google.protobuf.Field.Kind kind = 1;
at line 103
setKind(int $var)
The field type.
Generated from protobuf field .google.protobuf.Field.Kind kind = 1;
at line 115
int
getCardinality()
The field cardinality.
Generated from protobuf field .google.protobuf.Field.Cardinality cardinality = 2;
at line 126
setCardinality(int $var)
The field cardinality.
Generated from protobuf field .google.protobuf.Field.Cardinality cardinality = 2;
at line 138
int
getNumber()
The field number.
Generated from protobuf field int32 number = 3;
at line 149
setNumber(int $var)
The field number.
Generated from protobuf field int32 number = 3;
at line 161
string
getName()
The field name.
Generated from protobuf field string name = 4;
at line 172
setName(string $var)
The field name.
Generated from protobuf field string name = 4;
at line 185
string
getTypeUrl()
The field type URL, without the scheme, for message or enumeration
types. Example: "type.googleapis.com/google.protobuf.Timestamp"
.
Generated from protobuf field string type_url = 6;
at line 197
setTypeUrl(string $var)
The field type URL, without the scheme, for message or enumeration
types. Example: "type.googleapis.com/google.protobuf.Timestamp"
.
Generated from protobuf field string type_url = 6;
at line 210
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.
Generated from protobuf field int32 oneof_index = 7;
at line 222
setOneofIndex(int $var)
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.
Generated from protobuf field int32 oneof_index = 7;
at line 234
bool
getPacked()
Whether to use alternative packed wire representation.
Generated from protobuf field bool packed = 8;
at line 245
setPacked(bool $var)
Whether to use alternative packed wire representation.
Generated from protobuf field bool packed = 8;
at line 257
RepeatedField
getOptions()
The protocol buffer options.
Generated from protobuf field repeated .google.protobuf.Option options = 9;
at line 268
setOptions(array|RepeatedField $var)
The protocol buffer options.
Generated from protobuf field repeated .google.protobuf.Option options = 9;
at line 280
string
getJsonName()
The field JSON name.
Generated from protobuf field string json_name = 10;
at line 291
setJsonName(string $var)
The field JSON name.
Generated from protobuf field string json_name = 10;
at line 303
string
getDefaultValue()
The string value of the default value of this field. Proto2 syntax only.
Generated from protobuf field string default_value = 11;
at line 314
setDefaultValue(string $var)
The string value of the default value of this field. Proto2 syntax only.
Generated from protobuf field string default_value = 11;