Class DeploymentSpec.Builder (0.68.0)

public static final class DeploymentSpec.Builder extends GeneratedMessage.Builder<DeploymentSpec.Builder> implements DeploymentSpecOrBuilder

Spec for a deployment to be created.

Protobuf type google.cloud.config.v1.DeploymentSpec

Static Methods

getDescriptor()

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

Methods

build()

public DeploymentSpec build()
Returns
Type Description
DeploymentSpec

buildPartial()

public DeploymentSpec buildPartial()
Returns
Type Description
DeploymentSpec

clear()

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

clearDeployment()

public DeploymentSpec.Builder clearDeployment()

Required. The deployment to be created.

.google.cloud.config.v1.Deployment deployment = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
DeploymentSpec.Builder

clearDeploymentId()

public DeploymentSpec.Builder clearDeploymentId()

Required. The id of the deployment to be created which doesn't include the project id and location.

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

Returns
Type Description
DeploymentSpec.Builder

This builder for chaining.

getDefaultInstanceForType()

public DeploymentSpec getDefaultInstanceForType()
Returns
Type Description
DeploymentSpec

getDeployment()

public Deployment getDeployment()

Required. The deployment to be created.

.google.cloud.config.v1.Deployment deployment = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
Deployment

The deployment.

getDeploymentBuilder()

public Deployment.Builder getDeploymentBuilder()

Required. The deployment to be created.

.google.cloud.config.v1.Deployment deployment = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
Deployment.Builder

getDeploymentId()

public String getDeploymentId()

Required. The id of the deployment to be created which doesn't include the project id and location.

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

Returns
Type Description
String

The deploymentId.

getDeploymentIdBytes()

public ByteString getDeploymentIdBytes()

Required. The id of the deployment to be created which doesn't include the project id and location.

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

Returns
Type Description
ByteString

The bytes for deploymentId.

getDeploymentOrBuilder()

public DeploymentOrBuilder getDeploymentOrBuilder()

Required. The deployment to be created.

.google.cloud.config.v1.Deployment deployment = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
DeploymentOrBuilder

getDescriptorForType()

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

hasDeployment()

public boolean hasDeployment()

Required. The deployment to be created.

.google.cloud.config.v1.Deployment deployment = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the deployment field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeDeployment(Deployment value)

public DeploymentSpec.Builder mergeDeployment(Deployment value)

Required. The deployment to be created.

.google.cloud.config.v1.Deployment deployment = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value Deployment
Returns
Type Description
DeploymentSpec.Builder

mergeFrom(DeploymentSpec other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

setDeployment(Deployment value)

public DeploymentSpec.Builder setDeployment(Deployment value)

Required. The deployment to be created.

.google.cloud.config.v1.Deployment deployment = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value Deployment
Returns
Type Description
DeploymentSpec.Builder

setDeployment(Deployment.Builder builderForValue)

public DeploymentSpec.Builder setDeployment(Deployment.Builder builderForValue)

Required. The deployment to be created.

.google.cloud.config.v1.Deployment deployment = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
builderForValue Deployment.Builder
Returns
Type Description
DeploymentSpec.Builder

setDeploymentId(String value)

public DeploymentSpec.Builder setDeploymentId(String value)

Required. The id of the deployment to be created which doesn't include the project id and location.

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

Parameter
Name Description
value String

The deploymentId to set.

Returns
Type Description
DeploymentSpec.Builder

This builder for chaining.

setDeploymentIdBytes(ByteString value)

public DeploymentSpec.Builder setDeploymentIdBytes(ByteString value)

Required. The id of the deployment to be created which doesn't include the project id and location.

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

Parameter
Name Description
value ByteString

The bytes for deploymentId to set.

Returns
Type Description
DeploymentSpec.Builder

This builder for chaining.