Class GKEWorkload.Builder (0.24.0)

public static final class GKEWorkload.Builder extends GeneratedMessageV3.Builder<GKEWorkload.Builder> implements GKEWorkloadOrBuilder

GKEWorkload represents the Google Kubernetes Engine runtime.

Protobuf type google.cloud.developerconnect.v1.GKEWorkload

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public GKEWorkload build()
Returns
Type Description
GKEWorkload

buildPartial()

public GKEWorkload buildPartial()
Returns
Type Description
GKEWorkload

clear()

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

clearCluster()

public GKEWorkload.Builder clearCluster()

Required. Immutable. The name of the GKE cluster. Format: projects/{project}/locations/{location}/clusters/{cluster}.

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

Returns
Type Description
GKEWorkload.Builder

This builder for chaining.

clearDeployment()

public GKEWorkload.Builder clearDeployment()

Output only. The name of the GKE deployment. Format: projects/{project}/locations/{location}/clusters/{cluster}/namespaces/{namespace}/deployments/{deployment}.

string deployment = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
GKEWorkload.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getCluster()

public String getCluster()

Required. Immutable. The name of the GKE cluster. Format: projects/{project}/locations/{location}/clusters/{cluster}.

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

Returns
Type Description
String

The cluster.

getClusterBytes()

public ByteString getClusterBytes()

Required. Immutable. The name of the GKE cluster. Format: projects/{project}/locations/{location}/clusters/{cluster}.

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

Returns
Type Description
ByteString

The bytes for cluster.

getDefaultInstanceForType()

public GKEWorkload getDefaultInstanceForType()
Returns
Type Description
GKEWorkload

getDeployment()

public String getDeployment()

Output only. The name of the GKE deployment. Format: projects/{project}/locations/{location}/clusters/{cluster}/namespaces/{namespace}/deployments/{deployment}.

string deployment = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
String

The deployment.

getDeploymentBytes()

public ByteString getDeploymentBytes()

Output only. The name of the GKE deployment. Format: projects/{project}/locations/{location}/clusters/{cluster}/namespaces/{namespace}/deployments/{deployment}.

string deployment = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ByteString

The bytes for deployment.

getDescriptorForType()

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

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(GKEWorkload other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setCluster(String value)

public GKEWorkload.Builder setCluster(String value)

Required. Immutable. The name of the GKE cluster. Format: projects/{project}/locations/{location}/clusters/{cluster}.

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

Parameter
Name Description
value String

The cluster to set.

Returns
Type Description
GKEWorkload.Builder

This builder for chaining.

setClusterBytes(ByteString value)

public GKEWorkload.Builder setClusterBytes(ByteString value)

Required. Immutable. The name of the GKE cluster. Format: projects/{project}/locations/{location}/clusters/{cluster}.

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

Parameter
Name Description
value ByteString

The bytes for cluster to set.

Returns
Type Description
GKEWorkload.Builder

This builder for chaining.

setDeployment(String value)

public GKEWorkload.Builder setDeployment(String value)

Output only. The name of the GKE deployment. Format: projects/{project}/locations/{location}/clusters/{cluster}/namespaces/{namespace}/deployments/{deployment}.

string deployment = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value String

The deployment to set.

Returns
Type Description
GKEWorkload.Builder

This builder for chaining.

setDeploymentBytes(ByteString value)

public GKEWorkload.Builder setDeploymentBytes(ByteString value)

Output only. The name of the GKE deployment. Format: projects/{project}/locations/{location}/clusters/{cluster}/namespaces/{namespace}/deployments/{deployment}.

string deployment = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value ByteString

The bytes for deployment to set.

Returns
Type Description
GKEWorkload.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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