public static final class GKEWorkload.Builder extends GeneratedMessage.Builder<GKEWorkload.Builder> implements GKEWorkloadOrBuilderGKEWorkload represents the Google Kubernetes Engine runtime.
Protobuf type google.cloud.developerconnect.v1.GKEWorkload
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > GKEWorkload.BuilderImplements
GKEWorkloadOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
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 |
|
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. |
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 |
|
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
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 |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public GKEWorkload.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
GKEWorkload.Builder |
|
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 |
StringThe 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 |
ByteStringThe 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 |
StringThe 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 |
ByteStringThe bytes for deployment to set. |
| Returns | |
|---|---|
| Type | Description |
GKEWorkload.Builder |
This builder for chaining. |