A single field of a message type.
New usages of this message as an alternative to FieldDescriptorProto are strongly discouraged. This message does not reliability preserve all information necessary to model the schema and preserve semantics. Instead make use of FileDescriptorSet which preserves the necessary information.
Generated from protobuf message google.protobuf.Field
| Methods |
| public __construct( $data = NULL) Constructor.
|
| public getCardinality() The field cardinality. Generated from protobuf field .google.protobuf.Field.Cardinality cardinality = 2;
|
| public getDefaultValue() The string value of the default value of this field. Proto2 syntax only. Generated from protobuf field string default_value = 11;
|
| public getJsonName() The field JSON name. Generated from protobuf field string json_name = 10;
|
| public getKind() The field type. Generated from protobuf field .google.protobuf.Field.Kind kind = 1;
|
| public getName() The field name. Generated from protobuf field string name = 4;
|
| public getNumber() The field number. Generated from protobuf field int32 number = 3;
|
| public getOneofIndex() The index of the field type in Generated from protobuf field int32 oneof_index = 7;
|
| public getOptions() The protocol buffer options. Generated from protobuf field repeated .google.protobuf.Option options = 9;
|
| public getPacked() Whether to use alternative packed wire representation. Generated from protobuf field bool packed = 8;
|
| public getTypeUrl() The field type URL, without the scheme, for message or enumeration
types. Example: Generated from protobuf field string type_url = 6;
|
| public setCardinality( $var) The field cardinality. Generated from protobuf field .google.protobuf.Field.Cardinality cardinality = 2;
|
| public setDefaultValue( $var) The string value of the default value of this field. Proto2 syntax only. Generated from protobuf field string default_value = 11;
|
| public setJsonName( $var) The field JSON name. Generated from protobuf field string json_name = 10;
|
| public setKind( $var) The field type. Generated from protobuf field .google.protobuf.Field.Kind kind = 1;
|
| public setName( $var) The field name. Generated from protobuf field string name = 4;
|
| public setNumber( $var) The field number. Generated from protobuf field int32 number = 3;
|
| public setOneofIndex( $var) The index of the field type in Generated from protobuf field int32 oneof_index = 7;
|
| public setOptions( $var) The protocol buffer options. Generated from protobuf field repeated .google.protobuf.Option options = 9;
|
| public setPacked( $var) Whether to use alternative packed wire representation. Generated from protobuf field bool packed = 8;
|
| public setTypeUrl( $var) The field type URL, without the scheme, for message or enumeration
types. Example: Generated from protobuf field string type_url = 6;
|
| Properties |
| protected $cardinality = 0 The field cardinality. Generated from protobuf field .google.protobuf.Field.Cardinality cardinality = 2; |
| protected $default_value = '' The string value of the default value of this field. Proto2 syntax only. Generated from protobuf field string default_value = 11; |
| protected $json_name = '' The field JSON name. Generated from protobuf field string json_name = 10; |
| protected $kind = 0 The field type. Generated from protobuf field .google.protobuf.Field.Kind kind = 1; |
| protected $name = '' The field name. Generated from protobuf field string name = 4; |
| protected $number = 0 The field number. Generated from protobuf field int32 number = 3; |
| protected $oneof_index = 0 The index of the field type in Generated from protobuf field int32 oneof_index = 7; |
| protected $packed = false Whether to use alternative packed wire representation. Generated from protobuf field bool packed = 8; |
| protected $type_url = '' The field type URL, without the scheme, for message or enumeration
types. Example: Generated from protobuf field string type_url = 6; |
| Methods |
| Properties |
| private $options = NULL The protocol buffer options. Generated from protobuf field repeated .google.protobuf.Option options = 9; |