Class ProvisionDeploymentGroupRequest.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<ProvisionDeploymentGroupRequest.Builder>
com.google.cloud.config.v1.ProvisionDeploymentGroupRequest.Builder
All Implemented Interfaces:
ProvisionDeploymentGroupRequestOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
ProvisionDeploymentGroupRequest

public static final class ProvisionDeploymentGroupRequest.Builder extends com.google.protobuf.GeneratedMessage.Builder<ProvisionDeploymentGroupRequest.Builder> implements ProvisionDeploymentGroupRequestOrBuilder
 The request message for the ProvisionDeploymentGroup method.
 
Protobuf type google.cloud.config.v1.ProvisionDeploymentGroupRequest
  • Method Details

    • getDescriptor

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

      protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
      Overrides:
      internalGetMapFieldReflection in class com.google.protobuf.GeneratedMessage.Builder<ProvisionDeploymentGroupRequest.Builder>
    • internalGetMutableMapFieldReflection

      protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number)
      Overrides:
      internalGetMutableMapFieldReflection in class com.google.protobuf.GeneratedMessage.Builder<ProvisionDeploymentGroupRequest.Builder>
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<ProvisionDeploymentGroupRequest.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<ProvisionDeploymentGroupRequest.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<ProvisionDeploymentGroupRequest.Builder>
    • getDefaultInstanceForType

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

      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

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

      public ProvisionDeploymentGroupRequest.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<ProvisionDeploymentGroupRequest.Builder>
    • mergeFrom

    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.Builder<ProvisionDeploymentGroupRequest.Builder>
    • mergeFrom

      public ProvisionDeploymentGroupRequest.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<ProvisionDeploymentGroupRequest.Builder>
      Throws:
      IOException
    • 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) = { ... }
      Specified by:
      getName in interface ProvisionDeploymentGroupRequestOrBuilder
      Returns:
      The name.
    • getNameBytes

      public com.google.protobuf.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) = { ... }
      Specified by:
      getNameBytes in interface ProvisionDeploymentGroupRequestOrBuilder
      Returns:
      The bytes for name.
    • setName

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

      public ProvisionDeploymentGroupRequest.Builder setNameBytes(com.google.protobuf.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) = { ... }
      Parameters:
      value - The bytes for name to set.
      Returns:
      This builder for chaining.
    • getDeploymentSpecsCount

      public int getDeploymentSpecsCount()
      Description copied from interface: ProvisionDeploymentGroupRequestOrBuilder
       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];
      Specified by:
      getDeploymentSpecsCount in interface ProvisionDeploymentGroupRequestOrBuilder
    • containsDeploymentSpecs

      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];
      Specified by:
      containsDeploymentSpecs in interface ProvisionDeploymentGroupRequestOrBuilder
    • getDeploymentSpecs

      @Deprecated public Map<String,DeploymentSpec> getDeploymentSpecs()
      Deprecated.
      Specified by:
      getDeploymentSpecs in interface ProvisionDeploymentGroupRequestOrBuilder
    • 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];
      Specified by:
      getDeploymentSpecsMap in interface ProvisionDeploymentGroupRequestOrBuilder
    • getDeploymentSpecsOrDefault

      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];
      Specified by:
      getDeploymentSpecsOrDefault in interface ProvisionDeploymentGroupRequestOrBuilder
    • getDeploymentSpecsOrThrow

      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];
      Specified by:
      getDeploymentSpecsOrThrow in interface ProvisionDeploymentGroupRequestOrBuilder
    • clearDeploymentSpecs

      public ProvisionDeploymentGroupRequest.Builder clearDeploymentSpecs()
    • removeDeploymentSpecs

      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];
    • getMutableDeploymentSpecs

      @Deprecated public Map<String,DeploymentSpec> getMutableDeploymentSpecs()
      Deprecated.
      Use alternate mutation accessors instead.
    • putDeploymentSpecs

      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];
    • putAllDeploymentSpecs

      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];
    • putDeploymentSpecsBuilderIfAbsent

      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];