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 Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<DeploymentUnit.Builder>
    • clear

      public DeploymentUnit.Builder clear()
      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<DeploymentUnit.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<DeploymentUnit.Builder>
    • getDefaultInstanceForType

      public DeploymentUnit getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      public DeploymentUnit build()
      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public DeploymentUnit buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public DeploymentUnit.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<DeploymentUnit.Builder>
    • mergeFrom

      public DeploymentUnit.Builder mergeFrom(DeploymentUnit other)
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.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:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<DeploymentUnit.Builder>
      Throws:
      IOException
    • getId

      public String getId()
       The id of the deployment unit. Must be unique within the deployment group.
       
      string id = 1;
      Specified by:
      getId in interface DeploymentUnitOrBuilder
      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:
      getIdBytes in interface DeploymentUnitOrBuilder
      Returns:
      The bytes for id.
    • setId

      public DeploymentUnit.Builder setId(String value)
       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

      public DeploymentUnit.Builder clearId()
       The id of the deployment unit. Must be unique within the deployment group.
       
      string id = 1;
      Returns:
      This builder for chaining.
    • setIdBytes

      public DeploymentUnit.Builder setIdBytes(com.google.protobuf.ByteString value)
       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:
      hasDeployment in interface DeploymentUnitOrBuilder
      Returns:
      Whether the deployment field is set.
    • 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) = { ... }
      Specified by:
      getDeployment in interface DeploymentUnitOrBuilder
      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:
      getDeploymentBytes in interface DeploymentUnitOrBuilder
      Returns:
      The bytes for deployment.
    • setDeployment

      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) = { ... }
      Parameters:
      value - The deployment to set.
      Returns:
      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:
      This builder for chaining.
    • setDeploymentBytes

      public DeploymentUnit.Builder setDeploymentBytes(com.google.protobuf.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) = { ... }
      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:
      getDependenciesList in interface DeploymentUnitOrBuilder
      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:
      getDependenciesCount in interface DeploymentUnitOrBuilder
      Returns:
      The count of dependencies.
    • getDependencies

      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];
      Specified by:
      getDependencies in interface DeploymentUnitOrBuilder
      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:
      getDependenciesBytes in interface DeploymentUnitOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the dependencies at the given index.
    • setDependencies

      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:
      index - The index to set the value at.
      value - The dependencies to set.
      Returns:
      This builder for chaining.
    • addDependencies

      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];
      Parameters:
      value - The dependencies to add.
      Returns:
      This builder for chaining.
    • addAllDependencies

      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];
      Parameters:
      values - The dependencies to add.
      Returns:
      This builder for chaining.
    • 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:
      This builder for chaining.
    • addDependenciesBytes

      public DeploymentUnit.Builder addDependenciesBytes(com.google.protobuf.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];
      Parameters:
      value - The bytes of the dependencies to add.
      Returns:
      This builder for chaining.