Class DeploymentGroup.Builder (0.68.0)

public static final class DeploymentGroup.Builder extends GeneratedMessage.Builder<DeploymentGroup.Builder> implements DeploymentGroupOrBuilder

A DeploymentGroup is a collection of DeploymentUnits that in a DAG-like structure.

Protobuf type google.cloud.config.v1.DeploymentGroup

Static Methods

getDescriptor()

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

Methods

addAllDeploymentUnits(Iterable<? extends DeploymentUnit> values)

public DeploymentGroup.Builder addAllDeploymentUnits(Iterable<? extends DeploymentUnit> values)

The deployment units of the deployment group in a DAG like structure. When a deployment group is being provisioned, the deployment units are deployed in a DAG order. The provided units must be in a DAG order, otherwise an error will be returned.

repeated .google.cloud.config.v1.DeploymentUnit deployment_units = 8;

Parameter
Name Description
values Iterable<? extends com.google.cloud.config.v1.DeploymentUnit>
Returns
Type Description
DeploymentGroup.Builder

addDeploymentUnits(DeploymentUnit value)

public DeploymentGroup.Builder addDeploymentUnits(DeploymentUnit value)

The deployment units of the deployment group in a DAG like structure. When a deployment group is being provisioned, the deployment units are deployed in a DAG order. The provided units must be in a DAG order, otherwise an error will be returned.

repeated .google.cloud.config.v1.DeploymentUnit deployment_units = 8;

Parameter
Name Description
value DeploymentUnit
Returns
Type Description
DeploymentGroup.Builder

addDeploymentUnits(DeploymentUnit.Builder builderForValue)

public DeploymentGroup.Builder addDeploymentUnits(DeploymentUnit.Builder builderForValue)

The deployment units of the deployment group in a DAG like structure. When a deployment group is being provisioned, the deployment units are deployed in a DAG order. The provided units must be in a DAG order, otherwise an error will be returned.

repeated .google.cloud.config.v1.DeploymentUnit deployment_units = 8;

Parameter
Name Description
builderForValue DeploymentUnit.Builder
Returns
Type Description
DeploymentGroup.Builder

addDeploymentUnits(int index, DeploymentUnit value)

public DeploymentGroup.Builder addDeploymentUnits(int index, DeploymentUnit value)

The deployment units of the deployment group in a DAG like structure. When a deployment group is being provisioned, the deployment units are deployed in a DAG order. The provided units must be in a DAG order, otherwise an error will be returned.

repeated .google.cloud.config.v1.DeploymentUnit deployment_units = 8;

Parameters
Name Description
index int
value DeploymentUnit
Returns
Type Description
DeploymentGroup.Builder

addDeploymentUnits(int index, DeploymentUnit.Builder builderForValue)

public DeploymentGroup.Builder addDeploymentUnits(int index, DeploymentUnit.Builder builderForValue)

The deployment units of the deployment group in a DAG like structure. When a deployment group is being provisioned, the deployment units are deployed in a DAG order. The provided units must be in a DAG order, otherwise an error will be returned.

repeated .google.cloud.config.v1.DeploymentUnit deployment_units = 8;

Parameters
Name Description
index int
builderForValue DeploymentUnit.Builder
Returns
Type Description
DeploymentGroup.Builder

addDeploymentUnitsBuilder()

public DeploymentUnit.Builder addDeploymentUnitsBuilder()

The deployment units of the deployment group in a DAG like structure. When a deployment group is being provisioned, the deployment units are deployed in a DAG order. The provided units must be in a DAG order, otherwise an error will be returned.

repeated .google.cloud.config.v1.DeploymentUnit deployment_units = 8;

Returns
Type Description
DeploymentUnit.Builder

addDeploymentUnitsBuilder(int index)

public DeploymentUnit.Builder addDeploymentUnitsBuilder(int index)

The deployment units of the deployment group in a DAG like structure. When a deployment group is being provisioned, the deployment units are deployed in a DAG order. The provided units must be in a DAG order, otherwise an error will be returned.

repeated .google.cloud.config.v1.DeploymentUnit deployment_units = 8;

Parameter
Name Description
index int
Returns
Type Description
DeploymentUnit.Builder

build()

public DeploymentGroup build()
Returns
Type Description
DeploymentGroup

buildPartial()

public DeploymentGroup buildPartial()
Returns
Type Description
DeploymentGroup

clear()

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

clearAnnotations()

public DeploymentGroup.Builder clearAnnotations()
Returns
Type Description
DeploymentGroup.Builder

clearCreateTime()

public DeploymentGroup.Builder clearCreateTime()

Output only. Time when the deployment group was created.

.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
DeploymentGroup.Builder

clearDeploymentUnits()

public DeploymentGroup.Builder clearDeploymentUnits()

The deployment units of the deployment group in a DAG like structure. When a deployment group is being provisioned, the deployment units are deployed in a DAG order. The provided units must be in a DAG order, otherwise an error will be returned.

repeated .google.cloud.config.v1.DeploymentUnit deployment_units = 8;

Returns
Type Description
DeploymentGroup.Builder

clearLabels()

public DeploymentGroup.Builder clearLabels()
Returns
Type Description
DeploymentGroup.Builder

clearName()

public DeploymentGroup.Builder clearName()

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

string name = 1 [(.google.api.field_behavior) = IDENTIFIER];

Returns
Type Description
DeploymentGroup.Builder

This builder for chaining.

clearProvisioningError()

public DeploymentGroup.Builder clearProvisioningError()

Output only. The error status of the deployment group provisioning or deprovisioning.

.google.rpc.Status provisioning_error = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
DeploymentGroup.Builder

clearProvisioningState()

public DeploymentGroup.Builder clearProvisioningState()

Output only. The provisioning state of the deployment group.

.google.cloud.config.v1.DeploymentGroup.ProvisioningState provisioning_state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
DeploymentGroup.Builder

This builder for chaining.

clearProvisioningStateDescription()

public DeploymentGroup.Builder clearProvisioningStateDescription()

Output only. Additional information regarding the current provisioning state.

string provisioning_state_description = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
DeploymentGroup.Builder

This builder for chaining.

clearState()

public DeploymentGroup.Builder clearState()

Output only. Current state of the deployment group.

.google.cloud.config.v1.DeploymentGroup.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
DeploymentGroup.Builder

This builder for chaining.

clearStateDescription()

public DeploymentGroup.Builder clearStateDescription()

Output only. Additional information regarding the current state.

string state_description = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
DeploymentGroup.Builder

This builder for chaining.

clearUpdateTime()

public DeploymentGroup.Builder clearUpdateTime()

Output only. Time when the deployment group was last updated.

.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
DeploymentGroup.Builder

containsAnnotations(String key)

public boolean containsAnnotations(String key)

Optional. Arbitrary key-value metadata storage e.g. to help client tools identify deployment group during automation. See https://google.aip.dev/148#annotations for details on format and size limitations.

map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
key String
Returns
Type Description
boolean

containsLabels(String key)

public boolean containsLabels(String key)

Optional. User-defined metadata for the deployment group.

map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
key String
Returns
Type Description
boolean

getAnnotations() (deprecated)

public Map<String,String> getAnnotations()

Use #getAnnotationsMap() instead.

Returns
Type Description
Map<String,String>

getAnnotationsCount()

public int getAnnotationsCount()

Optional. Arbitrary key-value metadata storage e.g. to help client tools identify deployment group during automation. See https://google.aip.dev/148#annotations for details on format and size limitations.

map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

getAnnotationsMap()

public Map<String,String> getAnnotationsMap()

Optional. Arbitrary key-value metadata storage e.g. to help client tools identify deployment group during automation. See https://google.aip.dev/148#annotations for details on format and size limitations.

map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Map<String,String>

getAnnotationsOrDefault(String key, String defaultValue)

public String getAnnotationsOrDefault(String key, String defaultValue)

Optional. Arbitrary key-value metadata storage e.g. to help client tools identify deployment group during automation. See https://google.aip.dev/148#annotations for details on format and size limitations.

map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
key String
defaultValue String
Returns
Type Description
String

getAnnotationsOrThrow(String key)

public String getAnnotationsOrThrow(String key)

Optional. Arbitrary key-value metadata storage e.g. to help client tools identify deployment group during automation. See https://google.aip.dev/148#annotations for details on format and size limitations.

map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
key String
Returns
Type Description
String

getCreateTime()

public Timestamp getCreateTime()

Output only. Time when the deployment group was created.

.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Timestamp

The createTime.

getCreateTimeBuilder()

public Timestamp.Builder getCreateTimeBuilder()

Output only. Time when the deployment group was created.

.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Builder

getCreateTimeOrBuilder()

public TimestampOrBuilder getCreateTimeOrBuilder()

Output only. Time when the deployment group was created.

.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
TimestampOrBuilder

getDefaultInstanceForType()

public DeploymentGroup getDefaultInstanceForType()
Returns
Type Description
DeploymentGroup

getDeploymentUnits(int index)

public DeploymentUnit getDeploymentUnits(int index)

The deployment units of the deployment group in a DAG like structure. When a deployment group is being provisioned, the deployment units are deployed in a DAG order. The provided units must be in a DAG order, otherwise an error will be returned.

repeated .google.cloud.config.v1.DeploymentUnit deployment_units = 8;

Parameter
Name Description
index int
Returns
Type Description
DeploymentUnit

getDeploymentUnitsBuilder(int index)

public DeploymentUnit.Builder getDeploymentUnitsBuilder(int index)

The deployment units of the deployment group in a DAG like structure. When a deployment group is being provisioned, the deployment units are deployed in a DAG order. The provided units must be in a DAG order, otherwise an error will be returned.

repeated .google.cloud.config.v1.DeploymentUnit deployment_units = 8;

Parameter
Name Description
index int
Returns
Type Description
DeploymentUnit.Builder

getDeploymentUnitsBuilderList()

public List<DeploymentUnit.Builder> getDeploymentUnitsBuilderList()

The deployment units of the deployment group in a DAG like structure. When a deployment group is being provisioned, the deployment units are deployed in a DAG order. The provided units must be in a DAG order, otherwise an error will be returned.

repeated .google.cloud.config.v1.DeploymentUnit deployment_units = 8;

Returns
Type Description
List<Builder>

getDeploymentUnitsCount()

public int getDeploymentUnitsCount()

The deployment units of the deployment group in a DAG like structure. When a deployment group is being provisioned, the deployment units are deployed in a DAG order. The provided units must be in a DAG order, otherwise an error will be returned.

repeated .google.cloud.config.v1.DeploymentUnit deployment_units = 8;

Returns
Type Description
int

getDeploymentUnitsList()

public List<DeploymentUnit> getDeploymentUnitsList()

The deployment units of the deployment group in a DAG like structure. When a deployment group is being provisioned, the deployment units are deployed in a DAG order. The provided units must be in a DAG order, otherwise an error will be returned.

repeated .google.cloud.config.v1.DeploymentUnit deployment_units = 8;

Returns
Type Description
List<DeploymentUnit>

getDeploymentUnitsOrBuilder(int index)

public DeploymentUnitOrBuilder getDeploymentUnitsOrBuilder(int index)

The deployment units of the deployment group in a DAG like structure. When a deployment group is being provisioned, the deployment units are deployed in a DAG order. The provided units must be in a DAG order, otherwise an error will be returned.

repeated .google.cloud.config.v1.DeploymentUnit deployment_units = 8;

Parameter
Name Description
index int
Returns
Type Description
DeploymentUnitOrBuilder

getDeploymentUnitsOrBuilderList()

public List<? extends DeploymentUnitOrBuilder> getDeploymentUnitsOrBuilderList()

The deployment units of the deployment group in a DAG like structure. When a deployment group is being provisioned, the deployment units are deployed in a DAG order. The provided units must be in a DAG order, otherwise an error will be returned.

repeated .google.cloud.config.v1.DeploymentUnit deployment_units = 8;

Returns
Type Description
List<? extends com.google.cloud.config.v1.DeploymentUnitOrBuilder>

getDescriptorForType()

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

getLabels() (deprecated)

public Map<String,String> getLabels()

Use #getLabelsMap() instead.

Returns
Type Description
Map<String,String>

getLabelsCount()

public int getLabelsCount()

Optional. User-defined metadata for the deployment group.

map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

getLabelsMap()

public Map<String,String> getLabelsMap()

Optional. User-defined metadata for the deployment group.

map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Map<String,String>

getLabelsOrDefault(String key, String defaultValue)

public String getLabelsOrDefault(String key, String defaultValue)

Optional. User-defined metadata for the deployment group.

map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
key String
defaultValue String
Returns
Type Description
String

getLabelsOrThrow(String key)

public String getLabelsOrThrow(String key)

Optional. User-defined metadata for the deployment group.

map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
key String
Returns
Type Description
String

getMutableAnnotations() (deprecated)

public Map<String,String> getMutableAnnotations()

Use alternate mutation accessors instead.

Returns
Type Description
Map<String,String>

getMutableLabels() (deprecated)

public Map<String,String> getMutableLabels()

Use alternate mutation accessors instead.

Returns
Type Description
Map<String,String>

getName()

public String getName()

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

string name = 1 [(.google.api.field_behavior) = IDENTIFIER];

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

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

string name = 1 [(.google.api.field_behavior) = IDENTIFIER];

Returns
Type Description
ByteString

The bytes for name.

getProvisioningError()

public Status getProvisioningError()

Output only. The error status of the deployment group provisioning or deprovisioning.

.google.rpc.Status provisioning_error = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
com.google.rpc.Status

The provisioningError.

getProvisioningErrorBuilder()

public Status.Builder getProvisioningErrorBuilder()

Output only. The error status of the deployment group provisioning or deprovisioning.

.google.rpc.Status provisioning_error = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
com.google.rpc.Status.Builder

getProvisioningErrorOrBuilder()

public StatusOrBuilder getProvisioningErrorOrBuilder()

Output only. The error status of the deployment group provisioning or deprovisioning.

.google.rpc.Status provisioning_error = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
com.google.rpc.StatusOrBuilder

getProvisioningState()

public DeploymentGroup.ProvisioningState getProvisioningState()

Output only. The provisioning state of the deployment group.

.google.cloud.config.v1.DeploymentGroup.ProvisioningState provisioning_state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
DeploymentGroup.ProvisioningState

The provisioningState.

getProvisioningStateDescription()

public String getProvisioningStateDescription()

Output only. Additional information regarding the current provisioning state.

string provisioning_state_description = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
String

The provisioningStateDescription.

getProvisioningStateDescriptionBytes()

public ByteString getProvisioningStateDescriptionBytes()

Output only. Additional information regarding the current provisioning state.

string provisioning_state_description = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ByteString

The bytes for provisioningStateDescription.

getProvisioningStateValue()

public int getProvisioningStateValue()

Output only. The provisioning state of the deployment group.

.google.cloud.config.v1.DeploymentGroup.ProvisioningState provisioning_state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
int

The enum numeric value on the wire for provisioningState.

getState()

public DeploymentGroup.State getState()

Output only. Current state of the deployment group.

.google.cloud.config.v1.DeploymentGroup.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
DeploymentGroup.State

The state.

getStateDescription()

public String getStateDescription()

Output only. Additional information regarding the current state.

string state_description = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
String

The stateDescription.

getStateDescriptionBytes()

public ByteString getStateDescriptionBytes()

Output only. Additional information regarding the current state.

string state_description = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ByteString

The bytes for stateDescription.

getStateValue()

public int getStateValue()

Output only. Current state of the deployment group.

.google.cloud.config.v1.DeploymentGroup.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
int

The enum numeric value on the wire for state.

getUpdateTime()

public Timestamp getUpdateTime()

Output only. Time when the deployment group was last updated.

.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Timestamp

The updateTime.

getUpdateTimeBuilder()

public Timestamp.Builder getUpdateTimeBuilder()

Output only. Time when the deployment group was last updated.

.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Builder

getUpdateTimeOrBuilder()

public TimestampOrBuilder getUpdateTimeOrBuilder()

Output only. Time when the deployment group was last updated.

.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
TimestampOrBuilder

hasCreateTime()

public boolean hasCreateTime()

Output only. Time when the deployment group was created.

.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the createTime field is set.

hasProvisioningError()

public boolean hasProvisioningError()

Output only. The error status of the deployment group provisioning or deprovisioning.

.google.rpc.Status provisioning_error = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the provisioningError field is set.

hasUpdateTime()

public boolean hasUpdateTime()

Output only. Time when the deployment group was last updated.

.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the updateTime field is set.

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

mergeCreateTime(Timestamp value)

public DeploymentGroup.Builder mergeCreateTime(Timestamp value)

Output only. Time when the deployment group was created.

.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Timestamp
Returns
Type Description
DeploymentGroup.Builder

mergeFrom(DeploymentGroup other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeProvisioningError(Status value)

public DeploymentGroup.Builder mergeProvisioningError(Status value)

Output only. The error status of the deployment group provisioning or deprovisioning.

.google.rpc.Status provisioning_error = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value com.google.rpc.Status
Returns
Type Description
DeploymentGroup.Builder

mergeUpdateTime(Timestamp value)

public DeploymentGroup.Builder mergeUpdateTime(Timestamp value)

Output only. Time when the deployment group was last updated.

.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Timestamp
Returns
Type Description
DeploymentGroup.Builder

putAllAnnotations(Map<String,String> values)

public DeploymentGroup.Builder putAllAnnotations(Map<String,String> values)

Optional. Arbitrary key-value metadata storage e.g. to help client tools identify deployment group during automation. See https://google.aip.dev/148#annotations for details on format and size limitations.

map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL];

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

putAllLabels(Map<String,String> values)

public DeploymentGroup.Builder putAllLabels(Map<String,String> values)

Optional. User-defined metadata for the deployment group.

map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL];

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

putAnnotations(String key, String value)

public DeploymentGroup.Builder putAnnotations(String key, String value)

Optional. Arbitrary key-value metadata storage e.g. to help client tools identify deployment group during automation. See https://google.aip.dev/148#annotations for details on format and size limitations.

map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
key String
value String
Returns
Type Description
DeploymentGroup.Builder

putLabels(String key, String value)

public DeploymentGroup.Builder putLabels(String key, String value)

Optional. User-defined metadata for the deployment group.

map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
key String
value String
Returns
Type Description
DeploymentGroup.Builder

removeAnnotations(String key)

public DeploymentGroup.Builder removeAnnotations(String key)

Optional. Arbitrary key-value metadata storage e.g. to help client tools identify deployment group during automation. See https://google.aip.dev/148#annotations for details on format and size limitations.

map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
key String
Returns
Type Description
DeploymentGroup.Builder

removeDeploymentUnits(int index)

public DeploymentGroup.Builder removeDeploymentUnits(int index)

The deployment units of the deployment group in a DAG like structure. When a deployment group is being provisioned, the deployment units are deployed in a DAG order. The provided units must be in a DAG order, otherwise an error will be returned.

repeated .google.cloud.config.v1.DeploymentUnit deployment_units = 8;

Parameter
Name Description
index int
Returns
Type Description
DeploymentGroup.Builder

removeLabels(String key)

public DeploymentGroup.Builder removeLabels(String key)

Optional. User-defined metadata for the deployment group.

map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
key String
Returns
Type Description
DeploymentGroup.Builder

setCreateTime(Timestamp value)

public DeploymentGroup.Builder setCreateTime(Timestamp value)

Output only. Time when the deployment group was created.

.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Timestamp
Returns
Type Description
DeploymentGroup.Builder

setCreateTime(Timestamp.Builder builderForValue)

public DeploymentGroup.Builder setCreateTime(Timestamp.Builder builderForValue)

Output only. Time when the deployment group was created.

.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
builderForValue Builder
Returns
Type Description
DeploymentGroup.Builder

setDeploymentUnits(int index, DeploymentUnit value)

public DeploymentGroup.Builder setDeploymentUnits(int index, DeploymentUnit value)

The deployment units of the deployment group in a DAG like structure. When a deployment group is being provisioned, the deployment units are deployed in a DAG order. The provided units must be in a DAG order, otherwise an error will be returned.

repeated .google.cloud.config.v1.DeploymentUnit deployment_units = 8;

Parameters
Name Description
index int
value DeploymentUnit
Returns
Type Description
DeploymentGroup.Builder

setDeploymentUnits(int index, DeploymentUnit.Builder builderForValue)

public DeploymentGroup.Builder setDeploymentUnits(int index, DeploymentUnit.Builder builderForValue)

The deployment units of the deployment group in a DAG like structure. When a deployment group is being provisioned, the deployment units are deployed in a DAG order. The provided units must be in a DAG order, otherwise an error will be returned.

repeated .google.cloud.config.v1.DeploymentUnit deployment_units = 8;

Parameters
Name Description
index int
builderForValue DeploymentUnit.Builder
Returns
Type Description
DeploymentGroup.Builder

setName(String value)

public DeploymentGroup.Builder setName(String value)

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

string name = 1 [(.google.api.field_behavior) = IDENTIFIER];

Parameter
Name Description
value String

The name to set.

Returns
Type Description
DeploymentGroup.Builder

This builder for chaining.

setNameBytes(ByteString value)

public DeploymentGroup.Builder setNameBytes(ByteString value)

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

string name = 1 [(.google.api.field_behavior) = IDENTIFIER];

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
DeploymentGroup.Builder

This builder for chaining.

setProvisioningError(Status value)

public DeploymentGroup.Builder setProvisioningError(Status value)

Output only. The error status of the deployment group provisioning or deprovisioning.

.google.rpc.Status provisioning_error = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value com.google.rpc.Status
Returns
Type Description
DeploymentGroup.Builder

setProvisioningError(Status.Builder builderForValue)

public DeploymentGroup.Builder setProvisioningError(Status.Builder builderForValue)

Output only. The error status of the deployment group provisioning or deprovisioning.

.google.rpc.Status provisioning_error = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
builderForValue com.google.rpc.Status.Builder
Returns
Type Description
DeploymentGroup.Builder

setProvisioningState(DeploymentGroup.ProvisioningState value)

public DeploymentGroup.Builder setProvisioningState(DeploymentGroup.ProvisioningState value)

Output only. The provisioning state of the deployment group.

.google.cloud.config.v1.DeploymentGroup.ProvisioningState provisioning_state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value DeploymentGroup.ProvisioningState

The provisioningState to set.

Returns
Type Description
DeploymentGroup.Builder

This builder for chaining.

setProvisioningStateDescription(String value)

public DeploymentGroup.Builder setProvisioningStateDescription(String value)

Output only. Additional information regarding the current provisioning state.

string provisioning_state_description = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value String

The provisioningStateDescription to set.

Returns
Type Description
DeploymentGroup.Builder

This builder for chaining.

setProvisioningStateDescriptionBytes(ByteString value)

public DeploymentGroup.Builder setProvisioningStateDescriptionBytes(ByteString value)

Output only. Additional information regarding the current provisioning state.

string provisioning_state_description = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value ByteString

The bytes for provisioningStateDescription to set.

Returns
Type Description
DeploymentGroup.Builder

This builder for chaining.

setProvisioningStateValue(int value)

public DeploymentGroup.Builder setProvisioningStateValue(int value)

Output only. The provisioning state of the deployment group.

.google.cloud.config.v1.DeploymentGroup.ProvisioningState provisioning_state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value int

The enum numeric value on the wire for provisioningState to set.

Returns
Type Description
DeploymentGroup.Builder

This builder for chaining.

setState(DeploymentGroup.State value)

public DeploymentGroup.Builder setState(DeploymentGroup.State value)

Output only. Current state of the deployment group.

.google.cloud.config.v1.DeploymentGroup.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value DeploymentGroup.State

The state to set.

Returns
Type Description
DeploymentGroup.Builder

This builder for chaining.

setStateDescription(String value)

public DeploymentGroup.Builder setStateDescription(String value)

Output only. Additional information regarding the current state.

string state_description = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value String

The stateDescription to set.

Returns
Type Description
DeploymentGroup.Builder

This builder for chaining.

setStateDescriptionBytes(ByteString value)

public DeploymentGroup.Builder setStateDescriptionBytes(ByteString value)

Output only. Additional information regarding the current state.

string state_description = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value ByteString

The bytes for stateDescription to set.

Returns
Type Description
DeploymentGroup.Builder

This builder for chaining.

setStateValue(int value)

public DeploymentGroup.Builder setStateValue(int value)

Output only. Current state of the deployment group.

.google.cloud.config.v1.DeploymentGroup.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value int

The enum numeric value on the wire for state to set.

Returns
Type Description
DeploymentGroup.Builder

This builder for chaining.

setUpdateTime(Timestamp value)

public DeploymentGroup.Builder setUpdateTime(Timestamp value)

Output only. Time when the deployment group was last updated.

.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Timestamp
Returns
Type Description
DeploymentGroup.Builder

setUpdateTime(Timestamp.Builder builderForValue)

public DeploymentGroup.Builder setUpdateTime(Timestamp.Builder builderForValue)

Output only. Time when the deployment group was last updated.

.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
builderForValue Builder
Returns
Type Description
DeploymentGroup.Builder