Reference documentation and code samples for the Google API Common Protos Client class FieldInfo.
Rich semantic information of an API field beyond basic typing.
Generated from protobuf message google.api.FieldInfo
Namespace
Google \ ApiMethods
__construct
Constructor.
Parameters | |
---|---|
Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ format |
int
The standard format of a field value. This does not explicitly configure any API consumer, just documents the API's format for the field it is applied to. |
↳ referenced_types |
array<Google\Api\TypeReference>
The type(s) that the annotated, generic field may represent. Currently, this must only be used on fields of type |
getFormat
The standard format of a field value. This does not explicitly configure any API consumer, just documents the API's format for the field it is applied to.
Returns | |
---|---|
Type | Description |
int |
setFormat
The standard format of a field value. This does not explicitly configure any API consumer, just documents the API's format for the field it is applied to.
Parameter | |
---|---|
Name | Description |
var |
int
|
Returns | |
---|---|
Type | Description |
$this |
getReferencedTypes
The type(s) that the annotated, generic field may represent.
Currently, this must only be used on fields of type google.protobuf.Any
.
Supporting other generic types may be considered in the future.
Returns | |
---|---|
Type | Description |
Google\Protobuf\Internal\RepeatedField |
setReferencedTypes
The type(s) that the annotated, generic field may represent.
Currently, this must only be used on fields of type google.protobuf.Any
.
Supporting other generic types may be considered in the future.
Parameter | |
---|---|
Name | Description |
var |
array<Google\Api\TypeReference>
|
Returns | |
---|---|
Type | Description |
$this |