Class CreateWorkstationClusterRequest.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<CreateWorkstationClusterRequest.Builder>
com.google.cloud.workstations.v1beta.CreateWorkstationClusterRequest.Builder
All Implemented Interfaces:
CreateWorkstationClusterRequestOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
CreateWorkstationClusterRequest

public static final class CreateWorkstationClusterRequest.Builder extends com.google.protobuf.GeneratedMessage.Builder<CreateWorkstationClusterRequest.Builder> implements CreateWorkstationClusterRequestOrBuilder
 Message for creating a CreateWorkstationCluster.
 
Protobuf type google.cloud.workstations.v1beta.CreateWorkstationClusterRequest
  • 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<CreateWorkstationClusterRequest.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<CreateWorkstationClusterRequest.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<CreateWorkstationClusterRequest.Builder>
    • getDefaultInstanceForType

      public CreateWorkstationClusterRequest 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 CreateWorkstationClusterRequest buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

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

      public CreateWorkstationClusterRequest.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<CreateWorkstationClusterRequest.Builder>
      Throws:
      IOException
    • getParent

      public String getParent()
       Required. Parent resource name.
       
      string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Specified by:
      getParent in interface CreateWorkstationClusterRequestOrBuilder
      Returns:
      The parent.
    • getParentBytes

      public com.google.protobuf.ByteString getParentBytes()
       Required. Parent resource name.
       
      string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Specified by:
      getParentBytes in interface CreateWorkstationClusterRequestOrBuilder
      Returns:
      The bytes for parent.
    • setParent

       Required. Parent resource name.
       
      string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The parent to set.
      Returns:
      This builder for chaining.
    • clearParent

       Required. Parent resource name.
       
      string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Returns:
      This builder for chaining.
    • setParentBytes

      public CreateWorkstationClusterRequest.Builder setParentBytes(com.google.protobuf.ByteString value)
       Required. Parent resource name.
       
      string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The bytes for parent to set.
      Returns:
      This builder for chaining.
    • getWorkstationClusterId

      public String getWorkstationClusterId()
       Required. ID to use for the workstation cluster.
       
      string workstation_cluster_id = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getWorkstationClusterId in interface CreateWorkstationClusterRequestOrBuilder
      Returns:
      The workstationClusterId.
    • getWorkstationClusterIdBytes

      public com.google.protobuf.ByteString getWorkstationClusterIdBytes()
       Required. ID to use for the workstation cluster.
       
      string workstation_cluster_id = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getWorkstationClusterIdBytes in interface CreateWorkstationClusterRequestOrBuilder
      Returns:
      The bytes for workstationClusterId.
    • setWorkstationClusterId

      public CreateWorkstationClusterRequest.Builder setWorkstationClusterId(String value)
       Required. ID to use for the workstation cluster.
       
      string workstation_cluster_id = 2 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The workstationClusterId to set.
      Returns:
      This builder for chaining.
    • clearWorkstationClusterId

      public CreateWorkstationClusterRequest.Builder clearWorkstationClusterId()
       Required. ID to use for the workstation cluster.
       
      string workstation_cluster_id = 2 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      This builder for chaining.
    • setWorkstationClusterIdBytes

      public CreateWorkstationClusterRequest.Builder setWorkstationClusterIdBytes(com.google.protobuf.ByteString value)
       Required. ID to use for the workstation cluster.
       
      string workstation_cluster_id = 2 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The bytes for workstationClusterId to set.
      Returns:
      This builder for chaining.
    • hasWorkstationCluster

      public boolean hasWorkstationCluster()
       Required. Workstation cluster to create.
       
      .google.cloud.workstations.v1beta.WorkstationCluster workstation_cluster = 3 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      hasWorkstationCluster in interface CreateWorkstationClusterRequestOrBuilder
      Returns:
      Whether the workstationCluster field is set.
    • getWorkstationCluster

      public WorkstationCluster getWorkstationCluster()
       Required. Workstation cluster to create.
       
      .google.cloud.workstations.v1beta.WorkstationCluster workstation_cluster = 3 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getWorkstationCluster in interface CreateWorkstationClusterRequestOrBuilder
      Returns:
      The workstationCluster.
    • setWorkstationCluster

      public CreateWorkstationClusterRequest.Builder setWorkstationCluster(WorkstationCluster value)
       Required. Workstation cluster to create.
       
      .google.cloud.workstations.v1beta.WorkstationCluster workstation_cluster = 3 [(.google.api.field_behavior) = REQUIRED];
    • setWorkstationCluster

      public CreateWorkstationClusterRequest.Builder setWorkstationCluster(WorkstationCluster.Builder builderForValue)
       Required. Workstation cluster to create.
       
      .google.cloud.workstations.v1beta.WorkstationCluster workstation_cluster = 3 [(.google.api.field_behavior) = REQUIRED];
    • mergeWorkstationCluster

      public CreateWorkstationClusterRequest.Builder mergeWorkstationCluster(WorkstationCluster value)
       Required. Workstation cluster to create.
       
      .google.cloud.workstations.v1beta.WorkstationCluster workstation_cluster = 3 [(.google.api.field_behavior) = REQUIRED];
    • clearWorkstationCluster

      public CreateWorkstationClusterRequest.Builder clearWorkstationCluster()
       Required. Workstation cluster to create.
       
      .google.cloud.workstations.v1beta.WorkstationCluster workstation_cluster = 3 [(.google.api.field_behavior) = REQUIRED];
    • getWorkstationClusterBuilder

      public WorkstationCluster.Builder getWorkstationClusterBuilder()
       Required. Workstation cluster to create.
       
      .google.cloud.workstations.v1beta.WorkstationCluster workstation_cluster = 3 [(.google.api.field_behavior) = REQUIRED];
    • getWorkstationClusterOrBuilder

      public WorkstationClusterOrBuilder getWorkstationClusterOrBuilder()
       Required. Workstation cluster to create.
       
      .google.cloud.workstations.v1beta.WorkstationCluster workstation_cluster = 3 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getWorkstationClusterOrBuilder in interface CreateWorkstationClusterRequestOrBuilder
    • getValidateOnly

      public boolean getValidateOnly()
       Optional. If set, validate the request and preview the review, but do not
       actually apply it.
       
      bool validate_only = 4 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getValidateOnly in interface CreateWorkstationClusterRequestOrBuilder
      Returns:
      The validateOnly.
    • setValidateOnly

      public CreateWorkstationClusterRequest.Builder setValidateOnly(boolean value)
       Optional. If set, validate the request and preview the review, but do not
       actually apply it.
       
      bool validate_only = 4 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The validateOnly to set.
      Returns:
      This builder for chaining.
    • clearValidateOnly

      public CreateWorkstationClusterRequest.Builder clearValidateOnly()
       Optional. If set, validate the request and preview the review, but do not
       actually apply it.
       
      bool validate_only = 4 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.