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 \ Api
Methods
__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.
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.
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.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-04 UTC."],[],[],null,["# Google API Common Protos Client - Class FieldInfo (4.12.3)\n\nVersion latestkeyboard_arrow_down\n\n- [4.12.3 (latest)](/php/docs/reference/common-protos/latest/Api.FieldInfo)\n- [4.12.2](/php/docs/reference/common-protos/4.12.2/Api.FieldInfo)\n- [4.11.0](/php/docs/reference/common-protos/4.11.0/Api.FieldInfo)\n- [4.10.0](/php/docs/reference/common-protos/4.10.0/Api.FieldInfo)\n- [4.9.0](/php/docs/reference/common-protos/4.9.0/Api.FieldInfo)\n- [4.8.3](/php/docs/reference/common-protos/4.8.3/Api.FieldInfo) \nReference documentation and code samples for the Google API Common Protos Client class FieldInfo.\n\nRich semantic information of an API field beyond basic typing.\n\nGenerated from protobuf message `google.api.FieldInfo`\n\nNamespace\n---------\n\nGoogle \\\\ Api\n\nMethods\n-------\n\n### __construct\n\nConstructor.\n\n### getFormat\n\nThe standard format of a field value. This does not explicitly configure\nany API consumer, just documents the API's format for the field it is\napplied to.\n\n### setFormat\n\nThe standard format of a field value. This does not explicitly configure\nany API consumer, just documents the API's format for the field it is\napplied to.\n\n### getReferencedTypes\n\nThe type(s) that the annotated, generic field may represent.\n\nCurrently, this must only be used on fields of type `google.protobuf.Any`.\nSupporting other generic types may be considered in the future.\n\n### setReferencedTypes\n\nThe type(s) that the annotated, generic field may represent.\n\nCurrently, this must only be used on fields of type `google.protobuf.Any`.\nSupporting other generic types may be considered in the future."]]