Reference documentation and code samples for the Google Cloud Game Servers V1 Client class Realm.
A realm resource.
Generated from protobuf messagegoogle.cloud.gaming.v1.Realm
Namespace
Google \ Cloud \ Gaming \ V1
Methods
__construct
Constructor.
Parameters
Name
Description
data
array
Optional. Data for populating the Message object.
↳ name
string
The resource name of the realm, in the following form:projects/{project}/locations/{location}/realms/{realm}. For example,projects/my-project/locations/{location}/realms/my-realm.
The labels associated with this realm. Each label is a key-value pair.
↳ time_zone
string
Required. Time zone where all policies targeting this realm are evaluated. The value of this field must be from the IANA time zone database:https://www.iana.org/time-zones.
↳ etag
string
ETag of the resource.
↳ description
string
Human readable description of the realm.
getName
The resource name of the realm, in the following form:projects/{project}/locations/{location}/realms/{realm}. For
example,projects/my-project/locations/{location}/realms/my-realm.
Returns
Type
Description
string
setName
The resource name of the realm, in the following form:projects/{project}/locations/{location}/realms/{realm}. For
example,projects/my-project/locations/{location}/realms/my-realm.
Required. Time zone where all policies targeting this realm are evaluated. The value
of this field must be from the IANA time zone database:https://www.iana.org/time-zones.
Returns
Type
Description
string
setTimeZone
Required. Time zone where all policies targeting this realm are evaluated. The value
of this field must be from the IANA time zone database:https://www.iana.org/time-zones.
[[["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 Cloud Game Servers V1 Client - Class Realm (1.2.6)\n\nVersion latestkeyboard_arrow_down\n\n- [1.2.6 (latest)](/php/docs/reference/cloud-game-servers/latest/V1.Realm)\n- [1.2.5](/php/docs/reference/cloud-game-servers/1.2.5/V1.Realm)\n- [1.1.1](/php/docs/reference/cloud-game-servers/1.1.1/V1.Realm)\n- [1.0.5](/php/docs/reference/cloud-game-servers/1.0.5/V1.Realm) \nReference documentation and code samples for the Google Cloud Game Servers V1 Client class Realm.\n\nA realm resource.\n\nGenerated from protobuf message `google.cloud.gaming.v1.Realm`\n\nNamespace\n---------\n\nGoogle \\\\ Cloud \\\\ Gaming \\\\ V1\n\nMethods\n-------\n\n### __construct\n\nConstructor.\n\n### getName\n\nThe resource name of the realm, in the following form:\n`projects/{project}/locations/{location}/realms/{realm}`. For\nexample, `projects/my-project/locations/{location}/realms/my-realm`.\n\n### setName\n\nThe resource name of the realm, in the following form:\n`projects/{project}/locations/{location}/realms/{realm}`. For\nexample, `projects/my-project/locations/{location}/realms/my-realm`.\n\n### getCreateTime\n\nOutput only. The creation time.\n\n### hasCreateTime\n\n### clearCreateTime\n\n### setCreateTime\n\nOutput only. The creation time.\n\n### getUpdateTime\n\nOutput only. The last-modified time.\n\n### hasUpdateTime\n\n### clearUpdateTime\n\n### setUpdateTime\n\nOutput only. The last-modified time.\n\n### getLabels\n\nThe labels associated with this realm. Each label is a key-value pair.\n\n### setLabels\n\nThe labels associated with this realm. Each label is a key-value pair.\n\n### getTimeZone\n\nRequired. Time zone where all policies targeting this realm are evaluated. The value\nof this field must be from the IANA time zone database:\n\u003chttps://www.iana.org/time-zones\u003e.\n\n### setTimeZone\n\nRequired. Time zone where all policies targeting this realm are evaluated. The value\nof this field must be from the IANA time zone database:\n\u003chttps://www.iana.org/time-zones\u003e.\n\n### getEtag\n\nETag of the resource.\n\n### setEtag\n\nETag of the resource.\n\n### getDescription\n\nHuman readable description of the realm.\n\n### setDescription\n\nHuman readable description of the realm."]]