Class GKE.Builder (1.42.0)

public static final class GKE.Builder extends GeneratedMessageV3.Builder<GKE.Builder> implements GKEOrBuilder

Represents a GKE destination.

Protobuf type google.cloud.eventarc.v1.GKE

Implements

GKEOrBuilder

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public GKE.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
GKE.Builder
Overrides

build()

public GKE build()
Returns
Type Description
GKE

buildPartial()

public GKE buildPartial()
Returns
Type Description
GKE

clear()

public GKE.Builder clear()
Returns
Type Description
GKE.Builder
Overrides

clearCluster()

public GKE.Builder clearCluster()

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.

string cluster = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
GKE.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public GKE.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
GKE.Builder
Overrides

clearLocation()

public GKE.Builder clearLocation()

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.

string location = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
GKE.Builder

This builder for chaining.

clearNamespace()

public GKE.Builder clearNamespace()

Required. The namespace the GKE service is running in.

string namespace = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
GKE.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public GKE.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
GKE.Builder
Overrides

clearPath()

public GKE.Builder clearPath()

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".

string path = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
GKE.Builder

This builder for chaining.

clearService()

public GKE.Builder clearService()

Required. Name of the GKE service.

string service = 4 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
GKE.Builder

This builder for chaining.

clone()

public GKE.Builder clone()
Returns
Type Description
GKE.Builder
Overrides

getCluster()

public String 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.

string cluster = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The cluster.

getClusterBytes()

public ByteString getClusterBytes()

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.

string cluster = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for cluster.

getDefaultInstanceForType()

public GKE getDefaultInstanceForType()
Returns
Type Description
GKE

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getLocation()

public String 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.

string location = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The location.

getLocationBytes()

public ByteString getLocationBytes()

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.

string location = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for location.

getNamespace()

public String getNamespace()

Required. The namespace the GKE service is running in.

string namespace = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The namespace.

getNamespaceBytes()

public ByteString getNamespaceBytes()

Required. The namespace the GKE service is running in.

string namespace = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for namespace.

getPath()

public String 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".

string path = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The path.

getPathBytes()

public ByteString getPathBytes()

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".

string path = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for path.

getService()

public String getService()

Required. Name of the GKE service.

string service = 4 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The service.

getServiceBytes()

public ByteString getServiceBytes()

Required. Name of the GKE service.

string service = 4 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for service.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(GKE other)

public GKE.Builder mergeFrom(GKE other)
Parameter
Name Description
other GKE
Returns
Type Description
GKE.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public GKE.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
GKE.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public GKE.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
GKE.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final GKE.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
GKE.Builder
Overrides

setCluster(String value)

public GKE.Builder setCluster(String value)

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.

string cluster = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value String

The cluster to set.

Returns
Type Description
GKE.Builder

This builder for chaining.

setClusterBytes(ByteString value)

public GKE.Builder setClusterBytes(ByteString value)

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.

string cluster = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ByteString

The bytes for cluster to set.

Returns
Type Description
GKE.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public GKE.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
GKE.Builder
Overrides

setLocation(String value)

public GKE.Builder setLocation(String value)

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.

string location = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value String

The location to set.

Returns
Type Description
GKE.Builder

This builder for chaining.

setLocationBytes(ByteString value)

public GKE.Builder setLocationBytes(ByteString value)

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.

string location = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ByteString

The bytes for location to set.

Returns
Type Description
GKE.Builder

This builder for chaining.

setNamespace(String value)

public GKE.Builder setNamespace(String value)

Required. The namespace the GKE service is running in.

string namespace = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value String

The namespace to set.

Returns
Type Description
GKE.Builder

This builder for chaining.

setNamespaceBytes(ByteString value)

public GKE.Builder setNamespaceBytes(ByteString value)

Required. The namespace the GKE service is running in.

string namespace = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ByteString

The bytes for namespace to set.

Returns
Type Description
GKE.Builder

This builder for chaining.

setPath(String value)

public GKE.Builder setPath(String value)

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".

string path = 5 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value String

The path to set.

Returns
Type Description
GKE.Builder

This builder for chaining.

setPathBytes(ByteString value)

public GKE.Builder setPathBytes(ByteString value)

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".

string path = 5 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ByteString

The bytes for path to set.

Returns
Type Description
GKE.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public GKE.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
GKE.Builder
Overrides

setService(String value)

public GKE.Builder setService(String value)

Required. Name of the GKE service.

string service = 4 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value String

The service to set.

Returns
Type Description
GKE.Builder

This builder for chaining.

setServiceBytes(ByteString value)

public GKE.Builder setServiceBytes(ByteString value)

Required. Name of the GKE service.

string service = 4 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ByteString

The bytes for service to set.

Returns
Type Description
GKE.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final GKE.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
GKE.Builder
Overrides