Class CreateWorkstationRequest.Builder

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

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

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

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

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

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

      public CreateWorkstationRequest.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<CreateWorkstationRequest.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 CreateWorkstationRequestOrBuilder
      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 CreateWorkstationRequestOrBuilder
      Returns:
      The bytes for parent.
    • setParent

      public CreateWorkstationRequest.Builder setParent(String value)
       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

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

      public CreateWorkstationRequest.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.
    • getWorkstationId

      public String getWorkstationId()
       Required. ID to use for the workstation.
       
      string workstation_id = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getWorkstationId in interface CreateWorkstationRequestOrBuilder
      Returns:
      The workstationId.
    • getWorkstationIdBytes

      public com.google.protobuf.ByteString getWorkstationIdBytes()
       Required. ID to use for the workstation.
       
      string workstation_id = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getWorkstationIdBytes in interface CreateWorkstationRequestOrBuilder
      Returns:
      The bytes for workstationId.
    • setWorkstationId

      public CreateWorkstationRequest.Builder setWorkstationId(String value)
       Required. ID to use for the workstation.
       
      string workstation_id = 2 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The workstationId to set.
      Returns:
      This builder for chaining.
    • clearWorkstationId

      public CreateWorkstationRequest.Builder clearWorkstationId()
       Required. ID to use for the workstation.
       
      string workstation_id = 2 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      This builder for chaining.
    • setWorkstationIdBytes

      public CreateWorkstationRequest.Builder setWorkstationIdBytes(com.google.protobuf.ByteString value)
       Required. ID to use for the workstation.
       
      string workstation_id = 2 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The bytes for workstationId to set.
      Returns:
      This builder for chaining.
    • hasWorkstation

      public boolean hasWorkstation()
       Required. Workstation to create.
       
      .google.cloud.workstations.v1beta.Workstation workstation = 3 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      hasWorkstation in interface CreateWorkstationRequestOrBuilder
      Returns:
      Whether the workstation field is set.
    • getWorkstation

      public Workstation getWorkstation()
       Required. Workstation to create.
       
      .google.cloud.workstations.v1beta.Workstation workstation = 3 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getWorkstation in interface CreateWorkstationRequestOrBuilder
      Returns:
      The workstation.
    • setWorkstation

      public CreateWorkstationRequest.Builder setWorkstation(Workstation value)
       Required. Workstation to create.
       
      .google.cloud.workstations.v1beta.Workstation workstation = 3 [(.google.api.field_behavior) = REQUIRED];
    • setWorkstation

      public CreateWorkstationRequest.Builder setWorkstation(Workstation.Builder builderForValue)
       Required. Workstation to create.
       
      .google.cloud.workstations.v1beta.Workstation workstation = 3 [(.google.api.field_behavior) = REQUIRED];
    • mergeWorkstation

      public CreateWorkstationRequest.Builder mergeWorkstation(Workstation value)
       Required. Workstation to create.
       
      .google.cloud.workstations.v1beta.Workstation workstation = 3 [(.google.api.field_behavior) = REQUIRED];
    • clearWorkstation

      public CreateWorkstationRequest.Builder clearWorkstation()
       Required. Workstation to create.
       
      .google.cloud.workstations.v1beta.Workstation workstation = 3 [(.google.api.field_behavior) = REQUIRED];
    • getWorkstationBuilder

      public Workstation.Builder getWorkstationBuilder()
       Required. Workstation to create.
       
      .google.cloud.workstations.v1beta.Workstation workstation = 3 [(.google.api.field_behavior) = REQUIRED];
    • getWorkstationOrBuilder

      public WorkstationOrBuilder getWorkstationOrBuilder()
       Required. Workstation to create.
       
      .google.cloud.workstations.v1beta.Workstation workstation = 3 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getWorkstationOrBuilder in interface CreateWorkstationRequestOrBuilder
    • 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 CreateWorkstationRequestOrBuilder
      Returns:
      The validateOnly.
    • setValidateOnly

      public CreateWorkstationRequest.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 CreateWorkstationRequest.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.