Class GKEDeploymentTarget.Builder (0.3.0)

public static final class GKEDeploymentTarget.Builder extends GeneratedMessage.Builder<GKEDeploymentTarget.Builder> implements GKEDeploymentTargetOrBuilder

The GKE deployment target.

Protobuf type google.cloud.designcenter.v1.GKEDeploymentTarget

Static Methods

getDescriptor()

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

Methods

build()

public GKEDeploymentTarget build()
Returns
Type Description
GKEDeploymentTarget

buildPartial()

public GKEDeploymentTarget buildPartial()
Returns
Type Description
GKEDeploymentTarget

clear()

public GKEDeploymentTarget.Builder clear()
Returns
Type Description
GKEDeploymentTarget.Builder
Overrides
public GKEDeploymentTarget.Builder clearClusterSelfLink()

Required. The self link of the cluster where GKE based application is deployed.

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

Returns
Type Description
GKEDeploymentTarget.Builder

This builder for chaining.

clearKubernetesServiceAccount()

public GKEDeploymentTarget.Builder clearKubernetesServiceAccount()

Required. The kubernetes service account that is created within the namespace provided above. Example: default or node-sa

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

Returns
Type Description
GKEDeploymentTarget.Builder

This builder for chaining.

clearKubernetesServiceAccountCreation()

public GKEDeploymentTarget.Builder clearKubernetesServiceAccountCreation()

Optional. Whether to create the provided KSA. If true, the KSA will be created in the namespace provided above. If false, the KSA is expected to already exist in the namespace provided above.

bool kubernetes_service_account_creation = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
GKEDeploymentTarget.Builder

This builder for chaining.

clearNamespace()

public GKEDeploymentTarget.Builder clearNamespace()

Required. The namespace where the application is deployed.

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

Returns
Type Description
GKEDeploymentTarget.Builder

This builder for chaining.

public String getClusterSelfLink()

Required. The self link of the cluster where GKE based application is deployed.

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

Returns
Type Description
String

The clusterSelfLink.

getClusterSelfLinkBytes()

public ByteString getClusterSelfLinkBytes()

Required. The self link of the cluster where GKE based application is deployed.

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

Returns
Type Description
ByteString

The bytes for clusterSelfLink.

getDefaultInstanceForType()

public GKEDeploymentTarget getDefaultInstanceForType()
Returns
Type Description
GKEDeploymentTarget

getDescriptorForType()

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

getKubernetesServiceAccount()

public String getKubernetesServiceAccount()

Required. The kubernetes service account that is created within the namespace provided above. Example: default or node-sa

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

Returns
Type Description
String

The kubernetesServiceAccount.

getKubernetesServiceAccountBytes()

public ByteString getKubernetesServiceAccountBytes()

Required. The kubernetes service account that is created within the namespace provided above. Example: default or node-sa

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

Returns
Type Description
ByteString

The bytes for kubernetesServiceAccount.

getKubernetesServiceAccountCreation()

public boolean getKubernetesServiceAccountCreation()

Optional. Whether to create the provided KSA. If true, the KSA will be created in the namespace provided above. If false, the KSA is expected to already exist in the namespace provided above.

bool kubernetes_service_account_creation = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

The kubernetesServiceAccountCreation.

getNamespace()

public String getNamespace()

Required. The namespace where the application is deployed.

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

Returns
Type Description
String

The namespace.

getNamespaceBytes()

public ByteString getNamespaceBytes()

Required. The namespace where the application is deployed.

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

Returns
Type Description
ByteString

The bytes for namespace.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(GKEDeploymentTarget other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

public GKEDeploymentTarget.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
GKEDeploymentTarget.Builder
Overrides
public GKEDeploymentTarget.Builder setClusterSelfLink(String value)

Required. The self link of the cluster where GKE based application is deployed.

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

Parameter
Name Description
value String

The clusterSelfLink to set.

Returns
Type Description
GKEDeploymentTarget.Builder

This builder for chaining.

setClusterSelfLinkBytes(ByteString value)

public GKEDeploymentTarget.Builder setClusterSelfLinkBytes(ByteString value)

Required. The self link of the cluster where GKE based application is deployed.

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

Parameter
Name Description
value ByteString

The bytes for clusterSelfLink to set.

Returns
Type Description
GKEDeploymentTarget.Builder

This builder for chaining.

setKubernetesServiceAccount(String value)

public GKEDeploymentTarget.Builder setKubernetesServiceAccount(String value)

Required. The kubernetes service account that is created within the namespace provided above. Example: default or node-sa

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

Parameter
Name Description
value String

The kubernetesServiceAccount to set.

Returns
Type Description
GKEDeploymentTarget.Builder

This builder for chaining.

setKubernetesServiceAccountBytes(ByteString value)

public GKEDeploymentTarget.Builder setKubernetesServiceAccountBytes(ByteString value)

Required. The kubernetes service account that is created within the namespace provided above. Example: default or node-sa

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

Parameter
Name Description
value ByteString

The bytes for kubernetesServiceAccount to set.

Returns
Type Description
GKEDeploymentTarget.Builder

This builder for chaining.

setKubernetesServiceAccountCreation(boolean value)

public GKEDeploymentTarget.Builder setKubernetesServiceAccountCreation(boolean value)

Optional. Whether to create the provided KSA. If true, the KSA will be created in the namespace provided above. If false, the KSA is expected to already exist in the namespace provided above.

bool kubernetes_service_account_creation = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value boolean

The kubernetesServiceAccountCreation to set.

Returns
Type Description
GKEDeploymentTarget.Builder

This builder for chaining.

setNamespace(String value)

public GKEDeploymentTarget.Builder setNamespace(String value)

Required. The namespace where the application is deployed.

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

Parameter
Name Description
value String

The namespace to set.

Returns
Type Description
GKEDeploymentTarget.Builder

This builder for chaining.

setNamespaceBytes(ByteString value)

public GKEDeploymentTarget.Builder setNamespaceBytes(ByteString value)

Required. The namespace where the application is deployed.

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

Parameter
Name Description
value ByteString

The bytes for namespace to set.

Returns
Type Description
GKEDeploymentTarget.Builder

This builder for chaining.