Class GKE.Builder (1.12.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public GKE.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
GKE.Builder
Overrides

build()

public GKE build()
Returns
TypeDescription
GKE

buildPartial()

public GKE buildPartial()
Returns
TypeDescription
GKE

clear()

public GKE.Builder clear()
Returns
TypeDescription
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
TypeDescription
GKE.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public GKE.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
GKE.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public GKE.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
GKE.Builder

This builder for chaining.

clone()

public GKE.Builder clone()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
ByteString

The bytes for cluster.

getDefaultInstanceForType()

public GKE getDefaultInstanceForType()
Returns
TypeDescription
GKE

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
ByteString

The bytes for path.

getService()

public String getService()

Required. Name of the GKE service.

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

Returns
TypeDescription
String

The service.

getServiceBytes()

public ByteString getServiceBytes()

Required. Name of the GKE service.

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

Returns
TypeDescription
ByteString

The bytes for service.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(GKE other)

public GKE.Builder mergeFrom(GKE other)
Parameter
NameDescription
otherGKE
Returns
TypeDescription
GKE.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public GKE.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
GKE.Builder
Overrides Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public GKE.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
GKE.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final GKE.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueString

The cluster to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for cluster to set.

Returns
TypeDescription
GKE.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public GKE.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueString

The location to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for location to set.

Returns
TypeDescription
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
NameDescription
valueString

The namespace to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for namespace to set.

Returns
TypeDescription
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
NameDescription
valueString

The path to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for path to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
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
NameDescription
valueString

The service to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for service to set.

Returns
TypeDescription
GKE.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final GKE.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
GKE.Builder
Overrides