Class CreateQueueRequest.Builder (2.11.0)

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

Request message for CreateQueue.

Protobuf type google.cloud.tasks.v2.CreateQueueRequest

Inherited Members

com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

publicCreateQueueRequestbuild()
Returns
Type Description

buildPartial()

publicCreateQueueRequestbuildPartial()
Returns
Type Description

clear()

publicCreateQueueRequest.Builderclear()
Returns
Type Description
Overrides

clearField(Descriptors.FieldDescriptor field)

publicCreateQueueRequest.BuilderclearField(Descriptors.FieldDescriptorfield)
Parameter
Name Description
Returns
Type Description
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

publicCreateQueueRequest.BuilderclearOneof(Descriptors.OneofDescriptoroneof)
Parameter
Name Description
Returns
Type Description
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.v2.Queue queue = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description

clone()

publicCreateQueueRequest.Builderclone()
Returns
Type Description
Overrides

getDefaultInstanceForType()

publicCreateQueueRequestgetDefaultInstanceForType()
Returns
Type Description

getDescriptorForType()

publicDescriptors.DescriptorgetDescriptorForType()
Returns
Type Description
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.v2.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.v2.Queue queue = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description

getQueueOrBuilder()

publicQueueOrBuildergetQueueOrBuilder()

Required. The queue to create. Queue's name cannot be the same as an existing queue.

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

Returns
Type Description

hasQueue()

publicbooleanhasQueue()

Required. The queue to create. Queue's name cannot be the same as an existing queue.

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

Returns
Type Description
boolean

Whether the queue field is set.

internalGetFieldAccessorTable()

protectedGeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()
Returns
Type Description
Overrides

isInitialized()

publicfinalbooleanisInitialized()
Returns
Type Description
Overrides

mergeFrom(CreateQueueRequest other)

publicCreateQueueRequest.BuildermergeFrom(CreateQueueRequestother)
Parameter
Name Description
Returns
Type Description

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

publicCreateQueueRequest.BuildermergeFrom(CodedInputStreaminput,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Overrides Exceptions
Type Description

mergeFrom(Message other)

publicCreateQueueRequest.BuildermergeFrom(Messageother)
Parameter
Name Description
other Message
Returns
Type Description
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.v2.Queue queue = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value Queue
Returns
Type Description

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

publicCreateQueueRequest.BuildersetField(Descriptors.FieldDescriptorfield,Objectvalue)
Parameters
Name Description
value Object
Returns
Type Description
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.v2.Queue queue = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value Queue
Returns
Type Description

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.v2.Queue queue = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
builderForValue Queue.Builder
Returns
Type Description

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

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

setUnknownFields(UnknownFieldSet unknownFields)

publicfinalCreateQueueRequest.BuildersetUnknownFields(UnknownFieldSetunknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
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.