Package com.google.cloud.config.v1
Class DeploymentUnit.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<DeploymentUnit.Builder>
com.google.cloud.config.v1.DeploymentUnit.Builder
- All Implemented Interfaces:
DeploymentUnitOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- DeploymentUnit
public static final class DeploymentUnit.Builder
extends com.google.protobuf.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-
Method Summary
Modifier and TypeMethodDescriptionaddAllDependencies(Iterable<String> values) Required.addDependencies(String value) Required.addDependenciesBytes(com.google.protobuf.ByteString value) Required.build()clear()Required.Optional.clearId()The id of the deployment unit.getDependencies(int index) Required.com.google.protobuf.ByteStringgetDependenciesBytes(int index) Required.intRequired.com.google.protobuf.ProtocolStringListRequired.Optional.com.google.protobuf.ByteStringOptional.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorgetId()The id of the deployment unit.com.google.protobuf.ByteStringThe id of the deployment unit.booleanOptional.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(DeploymentUnit other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) setDependencies(int index, String value) Required.setDeployment(String value) Optional.setDeploymentBytes(com.google.protobuf.ByteString value) Optional.The id of the deployment unit.setIdBytes(com.google.protobuf.ByteString value) The id of the deployment unit.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<DeploymentUnit.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<DeploymentUnit.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<DeploymentUnit.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<DeploymentUnit.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<DeploymentUnit.Builder>
-
mergeFrom
public DeploymentUnit.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<DeploymentUnit.Builder>- Throws:
IOException
-
getId
The id of the deployment unit. Must be unique within the deployment group.
string id = 1;- Specified by:
getIdin interfaceDeploymentUnitOrBuilder- Returns:
- The id.
-
getIdBytes
public com.google.protobuf.ByteString getIdBytes()The id of the deployment unit. Must be unique within the deployment group.
string id = 1;- Specified by:
getIdBytesin interfaceDeploymentUnitOrBuilder- Returns:
- The bytes for id.
-
setId
The id of the deployment unit. Must be unique within the deployment group.
string id = 1;- Parameters:
value- The id to set.- Returns:
- This builder for chaining.
-
clearId
The id of the deployment unit. Must be unique within the deployment group.
string id = 1;- Returns:
- This builder for chaining.
-
setIdBytes
The id of the deployment unit. Must be unique within the deployment group.
string id = 1;- Parameters:
value- The bytes for id to set.- Returns:
- This builder for chaining.
-
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) = { ... }- Specified by:
hasDeploymentin interfaceDeploymentUnitOrBuilder- Returns:
- Whether the deployment field is set.
-
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) = { ... }- Specified by:
getDeploymentin interfaceDeploymentUnitOrBuilder- Returns:
- The deployment.
-
getDeploymentBytes
public com.google.protobuf.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) = { ... }- Specified by:
getDeploymentBytesin interfaceDeploymentUnitOrBuilder- Returns:
- The bytes for deployment.
-
setDeployment
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) = { ... }- Parameters:
value- The deployment to set.- Returns:
- This builder for chaining.
-
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:
- This builder for chaining.
-
setDeploymentBytes
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) = { ... }- Parameters:
value- The bytes for deployment to set.- Returns:
- This builder for chaining.
-
getDependenciesList
public com.google.protobuf.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];- Specified by:
getDependenciesListin interfaceDeploymentUnitOrBuilder- Returns:
- A list containing the dependencies.
-
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];- Specified by:
getDependenciesCountin interfaceDeploymentUnitOrBuilder- Returns:
- The count of dependencies.
-
getDependencies
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];- Specified by:
getDependenciesin interfaceDeploymentUnitOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The dependencies at the given index.
-
getDependenciesBytes
public com.google.protobuf.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];- Specified by:
getDependenciesBytesin interfaceDeploymentUnitOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the dependencies at the given index.
-
setDependencies
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:
index- The index to set the value at.value- The dependencies to set.- Returns:
- This builder for chaining.
-
addDependencies
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:
value- The dependencies to add.- Returns:
- This builder for chaining.
-
addAllDependencies
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:
values- The dependencies to add.- Returns:
- This builder for chaining.
-
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:
- This builder for chaining.
-
addDependenciesBytes
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:
value- The bytes of the dependencies to add.- Returns:
- This builder for chaining.
-