public static final class DeploymentUnit.Builder extends GeneratedMessage.Builder<DeploymentUnit.Builder> implements DeploymentUnitOrBuilder A DeploymentUnit is a container for a deployment and its dependencies.
An existing deployment can be provided directly in the unit, or the unit
can act as a placeholder to define the DAG, with the deployment specs
supplied in a provisionDeploymentRequest.
Protobuf type google.cloud.config.v1.DeploymentUnit
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > DeploymentUnit.BuilderImplements
DeploymentUnitOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
addAllDependencies(Iterable<String> values)
public DeploymentUnit.Builder addAllDependencies(Iterable<String> values)Required. The IDs of the deployment units within the deployment group that this unit depends on.
repeated string dependencies = 3 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
values |
Iterable<String>The dependencies to add. |
| Returns | |
|---|---|
| Type | Description |
DeploymentUnit.Builder |
This builder for chaining. |
addDependencies(String value)
public DeploymentUnit.Builder addDependencies(String value)Required. The IDs of the deployment units within the deployment group that this unit depends on.
repeated string dependencies = 3 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe dependencies to add. |
| Returns | |
|---|---|
| Type | Description |
DeploymentUnit.Builder |
This builder for chaining. |
addDependenciesBytes(ByteString value)
public DeploymentUnit.Builder addDependenciesBytes(ByteString value)Required. The IDs of the deployment units within the deployment group that this unit depends on.
repeated string dependencies = 3 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes of the dependencies to add. |
| Returns | |
|---|---|
| Type | Description |
DeploymentUnit.Builder |
This builder for chaining. |
build()
public DeploymentUnit build()| Returns | |
|---|---|
| Type | Description |
DeploymentUnit |
|
buildPartial()
public DeploymentUnit buildPartial()| Returns | |
|---|---|
| Type | Description |
DeploymentUnit |
|
clear()
public DeploymentUnit.Builder clear()| Returns | |
|---|---|
| Type | Description |
DeploymentUnit.Builder |
|
clearDependencies()
public DeploymentUnit.Builder clearDependencies()Required. The IDs of the deployment units within the deployment group that this unit depends on.
repeated string dependencies = 3 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
DeploymentUnit.Builder |
This builder for chaining. |
clearDeployment()
public DeploymentUnit.Builder clearDeployment()Optional. The name of the deployment to be provisioned. Format: 'projects/{project_id}/locations/{location}/deployments/{deployment}'.
optional string deployment = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
| Returns | |
|---|---|
| Type | Description |
DeploymentUnit.Builder |
This builder for chaining. |
clearId()
public DeploymentUnit.Builder clearId()The id of the deployment unit. Must be unique within the deployment group.
string id = 1;
| Returns | |
|---|---|
| Type | Description |
DeploymentUnit.Builder |
This builder for chaining. |
getDefaultInstanceForType()
public DeploymentUnit getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
DeploymentUnit |
|
getDependencies(int index)
public String getDependencies(int index)Required. The IDs of the deployment units within the deployment group that this unit depends on.
repeated string dependencies = 3 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
index |
intThe index of the element to return. |
| Returns | |
|---|---|
| Type | Description |
String |
The dependencies at the given index. |
getDependenciesBytes(int index)
public ByteString getDependenciesBytes(int index)Required. The IDs of the deployment units within the deployment group that this unit depends on.
repeated string dependencies = 3 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
index |
intThe index of the value to return. |
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes of the dependencies at the given index. |
getDependenciesCount()
public int getDependenciesCount()Required. The IDs of the deployment units within the deployment group that this unit depends on.
repeated string dependencies = 3 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
int |
The count of dependencies. |
getDependenciesList()
public ProtocolStringList getDependenciesList()Required. The IDs of the deployment units within the deployment group that this unit depends on.
repeated string dependencies = 3 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
ProtocolStringList |
A list containing the dependencies. |
getDeployment()
public String getDeployment()Optional. The name of the deployment to be provisioned. Format: 'projects/{project_id}/locations/{location}/deployments/{deployment}'.
optional string deployment = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
| Returns | |
|---|---|
| Type | Description |
String |
The deployment. |
getDeploymentBytes()
public ByteString getDeploymentBytes()Optional. The name of the deployment to be provisioned. Format: 'projects/{project_id}/locations/{location}/deployments/{deployment}'.
optional string deployment = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for deployment. |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
getId()
public String getId()The id of the deployment unit. Must be unique within the deployment group.
string id = 1;
| Returns | |
|---|---|
| Type | Description |
String |
The id. |
getIdBytes()
public ByteString getIdBytes()The id of the deployment unit. Must be unique within the deployment group.
string id = 1;
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for id. |
hasDeployment()
public boolean hasDeployment()Optional. The name of the deployment to be provisioned. Format: 'projects/{project_id}/locations/{location}/deployments/{deployment}'.
optional string deployment = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the deployment field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeFrom(DeploymentUnit other)
public DeploymentUnit.Builder mergeFrom(DeploymentUnit other)| Parameter | |
|---|---|
| Name | Description |
other |
DeploymentUnit |
| Returns | |
|---|---|
| Type | Description |
DeploymentUnit.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public DeploymentUnit.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
DeploymentUnit.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public DeploymentUnit.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
DeploymentUnit.Builder |
|
setDependencies(int index, String value)
public DeploymentUnit.Builder setDependencies(int index, String value)Required. The IDs of the deployment units within the deployment group that this unit depends on.
repeated string dependencies = 3 [(.google.api.field_behavior) = REQUIRED];
| Parameters | |
|---|---|
| Name | Description |
index |
intThe index to set the value at. |
value |
StringThe dependencies to set. |
| Returns | |
|---|---|
| Type | Description |
DeploymentUnit.Builder |
This builder for chaining. |
setDeployment(String value)
public DeploymentUnit.Builder setDeployment(String value)Optional. The name of the deployment to be provisioned. Format: 'projects/{project_id}/locations/{location}/deployments/{deployment}'.
optional string deployment = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe deployment to set. |
| Returns | |
|---|---|
| Type | Description |
DeploymentUnit.Builder |
This builder for chaining. |
setDeploymentBytes(ByteString value)
public DeploymentUnit.Builder setDeploymentBytes(ByteString value)Optional. The name of the deployment to be provisioned. Format: 'projects/{project_id}/locations/{location}/deployments/{deployment}'.
optional string deployment = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for deployment to set. |
| Returns | |
|---|---|
| Type | Description |
DeploymentUnit.Builder |
This builder for chaining. |
setId(String value)
public DeploymentUnit.Builder setId(String value)The id of the deployment unit. Must be unique within the deployment group.
string id = 1;
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe id to set. |
| Returns | |
|---|---|
| Type | Description |
DeploymentUnit.Builder |
This builder for chaining. |
setIdBytes(ByteString value)
public DeploymentUnit.Builder setIdBytes(ByteString value)The id of the deployment unit. Must be unique within the deployment group.
string id = 1;
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for id to set. |
| Returns | |
|---|---|
| Type | Description |
DeploymentUnit.Builder |
This builder for chaining. |