Class CreateQueueRequest.Builder (2.70.0)

publicstaticfinalclass CreateQueueRequest.BuilderextendsGeneratedMessageV3.Builder<CreateQueueRequest.Builder>implementsCreateQueueRequestOrBuilder

Request message for CreateQueue.

Protobuf type google.cloud.tasks.v2beta2.CreateQueueRequest

Inherited Members

com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)

Static Methods

getDescriptor()

publicstaticfinalDescriptors.DescriptorgetDescriptor()
Returns
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

publicCreateQueueRequest.BuilderaddRepeatedField(Descriptors.FieldDescriptorfield,Objectvalue)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
CreateQueueRequest.Builder
Overrides

build()

publicCreateQueueRequestbuild()
Returns
Type Description
CreateQueueRequest

buildPartial()

publicCreateQueueRequestbuildPartial()
Returns
Type Description
CreateQueueRequest

clear()

publicCreateQueueRequest.Builderclear()
Returns
Type Description
CreateQueueRequest.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

publicCreateQueueRequest.BuilderclearField(Descriptors.FieldDescriptorfield)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
CreateQueueRequest.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

publicCreateQueueRequest.BuilderclearOneof(Descriptors.OneofDescriptoroneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
CreateQueueRequest.Builder
Overrides

clearParent()

publicCreateQueueRequest.BuilderclearParent()

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.

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
CreateQueueRequest.Builder

This builder for chaining.

clearQueue()

publicCreateQueueRequest.BuilderclearQueue()

Required. The queue to create.

Queue's name cannot be the same as an existing queue.

.google.cloud.tasks.v2beta2.Queue queue = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
CreateQueueRequest.Builder

clone()

publicCreateQueueRequest.Builderclone()
Returns
Type Description
CreateQueueRequest.Builder
Overrides

getDefaultInstanceForType()

publicCreateQueueRequestgetDefaultInstanceForType()
Returns
Type Description
CreateQueueRequest

getDescriptorForType()

publicDescriptors.DescriptorgetDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getParent()

publicStringgetParent()

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.

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
String

The parent.

getParentBytes()

publicByteStringgetParentBytes()

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.

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
ByteString

The bytes for parent.

getQueue()

publicQueuegetQueue()

Required. The queue to create.

Queue's name cannot be the same as an existing queue.

.google.cloud.tasks.v2beta2.Queue queue = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
Queue

The queue.

getQueueBuilder()

publicQueue.BuildergetQueueBuilder()

Required. The queue to create.

Queue's name cannot be the same as an existing queue.

.google.cloud.tasks.v2beta2.Queue queue = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
Queue.Builder

getQueueOrBuilder()

publicQueueOrBuildergetQueueOrBuilder()

Required. The queue to create.

Queue's name cannot be the same as an existing queue.

.google.cloud.tasks.v2beta2.Queue queue = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
QueueOrBuilder

hasQueue()

publicbooleanhasQueue()

Required. The queue to create.

Queue's name cannot be the same as an existing queue.

.google.cloud.tasks.v2beta2.Queue queue = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the queue field is set.

internalGetFieldAccessorTable()

protectedGeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

publicfinalbooleanisInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(CreateQueueRequest other)

publicCreateQueueRequest.BuildermergeFrom(CreateQueueRequestother)
Parameter
Name Description
other CreateQueueRequest
Returns
Type Description
CreateQueueRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

publicCreateQueueRequest.BuildermergeFrom(CodedInputStreaminput,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
CreateQueueRequest.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

publicCreateQueueRequest.BuildermergeFrom(Messageother)
Parameter
Name Description
other Message
Returns
Type Description
CreateQueueRequest.Builder
Overrides

mergeQueue(Queue value)

publicCreateQueueRequest.BuildermergeQueue(Queuevalue)

Required. The queue to create.

Queue's name cannot be the same as an existing queue.

.google.cloud.tasks.v2beta2.Queue queue = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value Queue
Returns
Type Description
CreateQueueRequest.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

publicfinalCreateQueueRequest.BuildermergeUnknownFields(UnknownFieldSetunknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
CreateQueueRequest.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

publicCreateQueueRequest.BuildersetField(Descriptors.FieldDescriptorfield,Objectvalue)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
CreateQueueRequest.Builder
Overrides

setParent(String value)

publicCreateQueueRequest.BuildersetParent(Stringvalue)

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.

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value String

The parent to set.

Returns
Type Description
CreateQueueRequest.Builder

This builder for chaining.

setParentBytes(ByteString value)

publicCreateQueueRequest.BuildersetParentBytes(ByteStringvalue)

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.

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value ByteString

The bytes for parent to set.

Returns
Type Description
CreateQueueRequest.Builder

This builder for chaining.

setQueue(Queue value)

publicCreateQueueRequest.BuildersetQueue(Queuevalue)

Required. The queue to create.

Queue's name cannot be the same as an existing queue.

.google.cloud.tasks.v2beta2.Queue queue = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value Queue
Returns
Type Description
CreateQueueRequest.Builder

setQueue(Queue.Builder builderForValue)

publicCreateQueueRequest.BuildersetQueue(Queue.BuilderbuilderForValue)

Required. The queue to create.

Queue's name cannot be the same as an existing queue.

.google.cloud.tasks.v2beta2.Queue queue = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
builderForValue Queue.Builder
Returns
Type Description
CreateQueueRequest.Builder

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

publicCreateQueueRequest.BuildersetRepeatedField(Descriptors.FieldDescriptorfield,intindex,Objectvalue)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
CreateQueueRequest.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

publicfinalCreateQueueRequest.BuildersetUnknownFields(UnknownFieldSetunknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
CreateQueueRequest.Builder
Overrides

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025年11月19日 UTC.