Class ProvisionDeploymentGroupRequest.Builder (0.68.0)

public static final class ProvisionDeploymentGroupRequest.Builder extends GeneratedMessage.Builder<ProvisionDeploymentGroupRequest.Builder> implements ProvisionDeploymentGroupRequestOrBuilder

The request message for the ProvisionDeploymentGroup method.

Protobuf type google.cloud.config.v1.ProvisionDeploymentGroupRequest

Static Methods

getDescriptor()

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

Methods

build()

public ProvisionDeploymentGroupRequest build()
Returns
Type Description
ProvisionDeploymentGroupRequest

buildPartial()

public ProvisionDeploymentGroupRequest buildPartial()
Returns
Type Description
ProvisionDeploymentGroupRequest

clear()

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

clearDeploymentSpecs()

public ProvisionDeploymentGroupRequest.Builder clearDeploymentSpecs()
Returns
Type Description
ProvisionDeploymentGroupRequest.Builder

clearName()

public ProvisionDeploymentGroupRequest.Builder clearName()

Required. The name of the deployment group to provision. Format: 'projects/{project_id}/locations/{location}/deploymentGroups/{deployment_group}'.

string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
ProvisionDeploymentGroupRequest.Builder

This builder for chaining.

containsDeploymentSpecs(String key)

public boolean containsDeploymentSpecs(String key)

Optional. The deployment specs of the deployment units to be created within the same project and location of the deployment group. The key is the unit ID, and the value is the DeploymentSpec. Provisioning will fail if a deployment_spec has a deployment_id that matches an existing deployment in the same project and location. If an existing deployment was part of the last successful revision but is no longer in the current DeploymentGroup's deployment_units, it will be recreated if included in deployment_specs.

map<string, .google.cloud.config.v1.DeploymentSpec> deployment_specs = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
key String
Returns
Type Description
boolean

getDefaultInstanceForType()

public ProvisionDeploymentGroupRequest getDefaultInstanceForType()
Returns
Type Description
ProvisionDeploymentGroupRequest

getDeploymentSpecs() (deprecated)

public Map<String,DeploymentSpec> getDeploymentSpecs()
Returns
Type Description
Map<String,DeploymentSpec>

getDeploymentSpecsCount()

public int getDeploymentSpecsCount()

Optional. The deployment specs of the deployment units to be created within the same project and location of the deployment group. The key is the unit ID, and the value is the DeploymentSpec. Provisioning will fail if a deployment_spec has a deployment_id that matches an existing deployment in the same project and location. If an existing deployment was part of the last successful revision but is no longer in the current DeploymentGroup's deployment_units, it will be recreated if included in deployment_specs.

map<string, .google.cloud.config.v1.DeploymentSpec> deployment_specs = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

getDeploymentSpecsMap()

public Map<String,DeploymentSpec> getDeploymentSpecsMap()

Optional. The deployment specs of the deployment units to be created within the same project and location of the deployment group. The key is the unit ID, and the value is the DeploymentSpec. Provisioning will fail if a deployment_spec has a deployment_id that matches an existing deployment in the same project and location. If an existing deployment was part of the last successful revision but is no longer in the current DeploymentGroup's deployment_units, it will be recreated if included in deployment_specs.

map<string, .google.cloud.config.v1.DeploymentSpec> deployment_specs = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Map<String,DeploymentSpec>

getDeploymentSpecsOrDefault(String key, DeploymentSpec defaultValue)

public DeploymentSpec getDeploymentSpecsOrDefault(String key, DeploymentSpec defaultValue)

Optional. The deployment specs of the deployment units to be created within the same project and location of the deployment group. The key is the unit ID, and the value is the DeploymentSpec. Provisioning will fail if a deployment_spec has a deployment_id that matches an existing deployment in the same project and location. If an existing deployment was part of the last successful revision but is no longer in the current DeploymentGroup's deployment_units, it will be recreated if included in deployment_specs.

map<string, .google.cloud.config.v1.DeploymentSpec> deployment_specs = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
key String
defaultValue DeploymentSpec
Returns
Type Description
DeploymentSpec

getDeploymentSpecsOrThrow(String key)

public DeploymentSpec getDeploymentSpecsOrThrow(String key)

Optional. The deployment specs of the deployment units to be created within the same project and location of the deployment group. The key is the unit ID, and the value is the DeploymentSpec. Provisioning will fail if a deployment_spec has a deployment_id that matches an existing deployment in the same project and location. If an existing deployment was part of the last successful revision but is no longer in the current DeploymentGroup's deployment_units, it will be recreated if included in deployment_specs.

map<string, .google.cloud.config.v1.DeploymentSpec> deployment_specs = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
key String
Returns
Type Description
DeploymentSpec

getDescriptorForType()

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

getMutableDeploymentSpecs() (deprecated)

public Map<String,DeploymentSpec> getMutableDeploymentSpecs()

Use alternate mutation accessors instead.

Returns
Type Description
Map<String,DeploymentSpec>

getName()

public String getName()

Required. The name of the deployment group to provision. Format: 'projects/{project_id}/locations/{location}/deploymentGroups/{deployment_group}'.

string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

Required. The name of the deployment group to provision. Format: 'projects/{project_id}/locations/{location}/deploymentGroups/{deployment_group}'.

string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
ByteString

The bytes for name.

internalGetFieldAccessorTable()

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

internalGetMapFieldReflection(int number)

protected MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
Parameter
Name Description
number int
Returns
Type Description
com.google.protobuf.MapFieldReflectionAccessor
Overrides
com.google.protobuf.GeneratedMessage.Builder.internalGetMapFieldReflection(int)

internalGetMutableMapFieldReflection(int number)

protected MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number)
Parameter
Name Description
number int
Returns
Type Description
com.google.protobuf.MapFieldReflectionAccessor
Overrides
com.google.protobuf.GeneratedMessage.Builder.internalGetMutableMapFieldReflection(int)

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(ProvisionDeploymentGroupRequest other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

putAllDeploymentSpecs(Map<String,DeploymentSpec> values)

public ProvisionDeploymentGroupRequest.Builder putAllDeploymentSpecs(Map<String,DeploymentSpec> values)

Optional. The deployment specs of the deployment units to be created within the same project and location of the deployment group. The key is the unit ID, and the value is the DeploymentSpec. Provisioning will fail if a deployment_spec has a deployment_id that matches an existing deployment in the same project and location. If an existing deployment was part of the last successful revision but is no longer in the current DeploymentGroup's deployment_units, it will be recreated if included in deployment_specs.

map<string, .google.cloud.config.v1.DeploymentSpec> deployment_specs = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
values Map<String,DeploymentSpec>
Returns
Type Description
ProvisionDeploymentGroupRequest.Builder

putDeploymentSpecs(String key, DeploymentSpec value)

public ProvisionDeploymentGroupRequest.Builder putDeploymentSpecs(String key, DeploymentSpec value)

Optional. The deployment specs of the deployment units to be created within the same project and location of the deployment group. The key is the unit ID, and the value is the DeploymentSpec. Provisioning will fail if a deployment_spec has a deployment_id that matches an existing deployment in the same project and location. If an existing deployment was part of the last successful revision but is no longer in the current DeploymentGroup's deployment_units, it will be recreated if included in deployment_specs.

map<string, .google.cloud.config.v1.DeploymentSpec> deployment_specs = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
key String
value DeploymentSpec
Returns
Type Description
ProvisionDeploymentGroupRequest.Builder

putDeploymentSpecsBuilderIfAbsent(String key)

public DeploymentSpec.Builder putDeploymentSpecsBuilderIfAbsent(String key)

Optional. The deployment specs of the deployment units to be created within the same project and location of the deployment group. The key is the unit ID, and the value is the DeploymentSpec. Provisioning will fail if a deployment_spec has a deployment_id that matches an existing deployment in the same project and location. If an existing deployment was part of the last successful revision but is no longer in the current DeploymentGroup's deployment_units, it will be recreated if included in deployment_specs.

map<string, .google.cloud.config.v1.DeploymentSpec> deployment_specs = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
key String
Returns
Type Description
DeploymentSpec.Builder

removeDeploymentSpecs(String key)

public ProvisionDeploymentGroupRequest.Builder removeDeploymentSpecs(String key)

Optional. The deployment specs of the deployment units to be created within the same project and location of the deployment group. The key is the unit ID, and the value is the DeploymentSpec. Provisioning will fail if a deployment_spec has a deployment_id that matches an existing deployment in the same project and location. If an existing deployment was part of the last successful revision but is no longer in the current DeploymentGroup's deployment_units, it will be recreated if included in deployment_specs.

map<string, .google.cloud.config.v1.DeploymentSpec> deployment_specs = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
key String
Returns
Type Description
ProvisionDeploymentGroupRequest.Builder

setName(String value)

public ProvisionDeploymentGroupRequest.Builder setName(String value)

Required. The name of the deployment group to provision. Format: 'projects/{project_id}/locations/{location}/deploymentGroups/{deployment_group}'.

string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value String

The name to set.

Returns
Type Description
ProvisionDeploymentGroupRequest.Builder

This builder for chaining.

setNameBytes(ByteString value)

public ProvisionDeploymentGroupRequest.Builder setNameBytes(ByteString value)

Required. The name of the deployment group to provision. Format: 'projects/{project_id}/locations/{location}/deploymentGroups/{deployment_group}'.

string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
ProvisionDeploymentGroupRequest.Builder

This builder for chaining.