Reference documentation and code samples for the Google Cloud Eventarc V1 Client class GKE.
Represents a GKE destination.
Generated from protobuf messagegoogle.cloud.eventarc.v1.GKE
Namespace
Google \ Cloud \ Eventarc \ V1
Methods
__construct
Constructor.
Parameters
Name
Description
data
array
Optional. Data for populating the Message object.
↳ cluster
string
Required. The name of the cluster the GKE service is running in. The cluster must be running in the same project as the trigger being created.
↳ location
string
Required. The name of the Google Compute Engine in which the cluster resides, which can either be compute zone (for example, us-central1-a) for the zonal clusters or region (for example, us-central1) for regional clusters.
↳ namespace
string
Required. The namespace the GKE service is running in.
↳ service
string
Required. Name of the GKE service.
↳ path
string
Optional. The relative path on the GKE service the events should be sent to. The value must conform to the definition of a URI path segment (section 3.3 of RFC2396). Examples: "/route", "route", "route/subroute".
getCluster
Required. The name of the cluster the GKE service is running in. The
cluster must be running in the same project as the trigger being created.
Returns
Type
Description
string
setCluster
Required. The name of the cluster the GKE service is running in. The
cluster must be running in the same project as the trigger being created.
Parameter
Name
Description
var
string
Returns
Type
Description
$this
getLocation
Required. The name of the Google Compute Engine in which the cluster
resides, which can either be compute zone (for example, us-central1-a) for
the zonal clusters or region (for example, us-central1) for regional
clusters.
Returns
Type
Description
string
setLocation
Required. The name of the Google Compute Engine in which the cluster
resides, which can either be compute zone (for example, us-central1-a) for
the zonal clusters or region (for example, us-central1) for regional
clusters.
Parameter
Name
Description
var
string
Returns
Type
Description
$this
getNamespace
Required. The namespace the GKE service is running in.
Returns
Type
Description
string
setNamespace
Required. The namespace the GKE service is running in.
Parameter
Name
Description
var
string
Returns
Type
Description
$this
getService
Required. Name of the GKE service.
Returns
Type
Description
string
setService
Required. Name of the GKE service.
Parameter
Name
Description
var
string
Returns
Type
Description
$this
getPath
Optional. The relative path on the GKE service the events should be sent
to.
The value must conform to the definition of a URI path segment (section 3.3
of RFC2396). Examples: "/route", "route", "route/subroute".
Returns
Type
Description
string
setPath
Optional. The relative path on the GKE service the events should be sent
to.
The value must conform to the definition of a URI path segment (section 3.3
of RFC2396). Examples: "/route", "route", "route/subroute".
[[["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 Eventarc V1 Client - Class GKE (2.1.5)\n\nVersion latestkeyboard_arrow_down\n\n- [2.1.5 (latest)](/php/docs/reference/cloud-eventarc/latest/V1.GKE)\n- [2.1.4](/php/docs/reference/cloud-eventarc/2.1.4/V1.GKE)\n- [2.0.1](/php/docs/reference/cloud-eventarc/2.0.1/V1.GKE)\n- [1.3.5](/php/docs/reference/cloud-eventarc/1.3.5/V1.GKE)\n- [1.2.2](/php/docs/reference/cloud-eventarc/1.2.2/V1.GKE)\n- [1.1.1](/php/docs/reference/cloud-eventarc/1.1.1/V1.GKE)\n- [1.0.5](/php/docs/reference/cloud-eventarc/1.0.5/V1.GKE) \nReference documentation and code samples for the Google Cloud Eventarc V1 Client class GKE.\n\nRepresents a GKE destination.\n\nGenerated from protobuf message `google.cloud.eventarc.v1.GKE`\n\nNamespace\n---------\n\nGoogle \\\\ Cloud \\\\ Eventarc \\\\ V1\n\nMethods\n-------\n\n### __construct\n\nConstructor.\n\n### getCluster\n\nRequired. The name of the cluster the GKE service is running in. The\ncluster must be running in the same project as the trigger being created.\n\n### setCluster\n\nRequired. The name of the cluster the GKE service is running in. The\ncluster must be running in the same project as the trigger being created.\n\n### getLocation\n\nRequired. The name of the Google Compute Engine in which the cluster\nresides, which can either be compute zone (for example, us-central1-a) for\nthe zonal clusters or region (for example, us-central1) for regional\nclusters.\n\n### setLocation\n\nRequired. The name of the Google Compute Engine in which the cluster\nresides, which can either be compute zone (for example, us-central1-a) for\nthe zonal clusters or region (for example, us-central1) for regional\nclusters.\n\n### getNamespace\n\nRequired. The namespace the GKE service is running in.\n\n### setNamespace\n\nRequired. The namespace the GKE service is running in.\n\n### getService\n\nRequired. Name of the GKE service.\n\n### setService\n\nRequired. Name of the GKE service.\n\n### getPath\n\nOptional. The relative path on the GKE service the events should be sent\nto.\n\nThe value must conform to the definition of a URI path segment (section 3.3\nof RFC2396). Examples: \"/route\", \"route\", \"route/subroute\".\n\n### setPath\n\nOptional. The relative path on the GKE service the events should be sent\nto.\n\nThe value must conform to the definition of a URI path segment (section 3.3\nof RFC2396). Examples: \"/route\", \"route\", \"route/subroute\"."]]