Class CreateQueueRequest.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<CreateQueueRequest.Builder>
com.google.cloud.tasks.v2beta2.CreateQueueRequest.Builder
All Implemented Interfaces:
CreateQueueRequestOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
CreateQueueRequest

public static final class CreateQueueRequest.Builder extends com.google.protobuf.GeneratedMessage.Builder<CreateQueueRequest.Builder> implements CreateQueueRequestOrBuilder
 Request message for
 [CreateQueue][google.cloud.tasks.v2beta2.CloudTasks.CreateQueue].
 
Protobuf type google.cloud.tasks.v2beta2.CreateQueueRequest
  • 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<CreateQueueRequest.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<CreateQueueRequest.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<CreateQueueRequest.Builder>
    • getDefaultInstanceForType

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

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

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

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

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

      public String getParent()
       Required. The location name in which the queue will be created.
       For example: `projects/PROJECT_ID/locations/LOCATION_ID`
      
       The list of allowed locations can be obtained by calling Cloud
       Tasks' implementation of
       [ListLocations][google.cloud.location.Locations.ListLocations].
       
      string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Specified by:
      getParent in interface CreateQueueRequestOrBuilder
      Returns:
      The parent.
    • getParentBytes

      public com.google.protobuf.ByteString getParentBytes()
       Required. The location name in which the queue will be created.
       For example: `projects/PROJECT_ID/locations/LOCATION_ID`
      
       The list of allowed locations can be obtained by calling Cloud
       Tasks' implementation of
       [ListLocations][google.cloud.location.Locations.ListLocations].
       
      string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Specified by:
      getParentBytes in interface CreateQueueRequestOrBuilder
      Returns:
      The bytes for parent.
    • setParent

      public CreateQueueRequest.Builder setParent(String value)
       Required. The location name in which the queue will be created.
       For example: `projects/PROJECT_ID/locations/LOCATION_ID`
      
       The list of allowed locations can be obtained by calling Cloud
       Tasks' implementation of
       [ListLocations][google.cloud.location.Locations.ListLocations].
       
      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 CreateQueueRequest.Builder clearParent()
       Required. The location name in which the queue will be created.
       For example: `projects/PROJECT_ID/locations/LOCATION_ID`
      
       The list of allowed locations can be obtained by calling Cloud
       Tasks' implementation of
       [ListLocations][google.cloud.location.Locations.ListLocations].
       
      string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Returns:
      This builder for chaining.
    • setParentBytes

      public CreateQueueRequest.Builder setParentBytes(com.google.protobuf.ByteString value)
       Required. The location name in which the queue will be created.
       For example: `projects/PROJECT_ID/locations/LOCATION_ID`
      
       The list of allowed locations can be obtained by calling Cloud
       Tasks' implementation of
       [ListLocations][google.cloud.location.Locations.ListLocations].
       
      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.
    • hasQueue

      public boolean hasQueue()
       Required. The queue to create.
      
       [Queue's name][google.cloud.tasks.v2beta2.Queue.name] cannot be the same as
       an existing queue.
       
      .google.cloud.tasks.v2beta2.Queue queue = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      hasQueue in interface CreateQueueRequestOrBuilder
      Returns:
      Whether the queue field is set.
    • getQueue

      public Queue getQueue()
       Required. The queue to create.
      
       [Queue's name][google.cloud.tasks.v2beta2.Queue.name] cannot be the same as
       an existing queue.
       
      .google.cloud.tasks.v2beta2.Queue queue = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getQueue in interface CreateQueueRequestOrBuilder
      Returns:
      The queue.
    • setQueue

      public CreateQueueRequest.Builder setQueue(Queue value)
       Required. The queue to create.
      
       [Queue's name][google.cloud.tasks.v2beta2.Queue.name] cannot be the same as
       an existing queue.
       
      .google.cloud.tasks.v2beta2.Queue queue = 2 [(.google.api.field_behavior) = REQUIRED];
    • setQueue

      public CreateQueueRequest.Builder setQueue(Queue.Builder builderForValue)
       Required. The queue to create.
      
       [Queue's name][google.cloud.tasks.v2beta2.Queue.name] cannot be the same as
       an existing queue.
       
      .google.cloud.tasks.v2beta2.Queue queue = 2 [(.google.api.field_behavior) = REQUIRED];
    • mergeQueue

      public CreateQueueRequest.Builder mergeQueue(Queue value)
       Required. The queue to create.
      
       [Queue's name][google.cloud.tasks.v2beta2.Queue.name] cannot be the same as
       an existing queue.
       
      .google.cloud.tasks.v2beta2.Queue queue = 2 [(.google.api.field_behavior) = REQUIRED];
    • clearQueue

      public CreateQueueRequest.Builder clearQueue()
       Required. The queue to create.
      
       [Queue's name][google.cloud.tasks.v2beta2.Queue.name] cannot be the same as
       an existing queue.
       
      .google.cloud.tasks.v2beta2.Queue queue = 2 [(.google.api.field_behavior) = REQUIRED];
    • getQueueBuilder

      public Queue.Builder getQueueBuilder()
       Required. The queue to create.
      
       [Queue's name][google.cloud.tasks.v2beta2.Queue.name] cannot be the same as
       an existing queue.
       
      .google.cloud.tasks.v2beta2.Queue queue = 2 [(.google.api.field_behavior) = REQUIRED];
    • getQueueOrBuilder

      public QueueOrBuilder getQueueOrBuilder()
       Required. The queue to create.
      
       [Queue's name][google.cloud.tasks.v2beta2.Queue.name] cannot be the same as
       an existing queue.
       
      .google.cloud.tasks.v2beta2.Queue queue = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getQueueOrBuilder in interface CreateQueueRequestOrBuilder