Class BufferTaskRequest.Builder (2.32.0)

public static final class BufferTaskRequest.Builder extends GeneratedMessageV3.Builder<BufferTaskRequest.Builder> implements BufferTaskRequestOrBuilder

LINT.IfChange Request message for BufferTask.

Protobuf type google.cloud.tasks.v2beta2.BufferTaskRequest

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public BufferTaskRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
BufferTaskRequest.Builder
Overrides

build()

public BufferTaskRequest build()
Returns
TypeDescription
BufferTaskRequest

buildPartial()

public BufferTaskRequest buildPartial()
Returns
TypeDescription
BufferTaskRequest

clear()

public BufferTaskRequest.Builder clear()
Returns
TypeDescription
BufferTaskRequest.Builder
Overrides

clearBody()

public BufferTaskRequest.Builder clearBody()

Optional. Body of the HTTP request.

The body can take any generic value. The value is written to the HttpRequest of the [Task].

.google.api.HttpBody body = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
BufferTaskRequest.Builder

clearField(Descriptors.FieldDescriptor field)

public BufferTaskRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
BufferTaskRequest.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public BufferTaskRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
BufferTaskRequest.Builder
Overrides

clearQueue()

public BufferTaskRequest.Builder clearQueue()

Required. The parent queue name. For example: projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID`

The queue must already exist.

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

Returns
TypeDescription
BufferTaskRequest.Builder

This builder for chaining.

clearTaskId()

public BufferTaskRequest.Builder clearTaskId()

Optional. Task ID for the task being created. If not provided, a random task ID is assigned to the task.

string task_id = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
BufferTaskRequest.Builder

This builder for chaining.

clone()

public BufferTaskRequest.Builder clone()
Returns
TypeDescription
BufferTaskRequest.Builder
Overrides

getBody()

public HttpBody getBody()

Optional. Body of the HTTP request.

The body can take any generic value. The value is written to the HttpRequest of the [Task].

.google.api.HttpBody body = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
com.google.api.HttpBody

The body.

getBodyBuilder()

public HttpBody.Builder getBodyBuilder()

Optional. Body of the HTTP request.

The body can take any generic value. The value is written to the HttpRequest of the [Task].

.google.api.HttpBody body = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
com.google.api.HttpBody.Builder

getBodyOrBuilder()

public HttpBodyOrBuilder getBodyOrBuilder()

Optional. Body of the HTTP request.

The body can take any generic value. The value is written to the HttpRequest of the [Task].

.google.api.HttpBody body = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
com.google.api.HttpBodyOrBuilder

getDefaultInstanceForType()

public BufferTaskRequest getDefaultInstanceForType()
Returns
TypeDescription
BufferTaskRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getQueue()

public String getQueue()

Required. The parent queue name. For example: projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID`

The queue must already exist.

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

Returns
TypeDescription
String

The queue.

getQueueBytes()

public ByteString getQueueBytes()

Required. The parent queue name. For example: projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID`

The queue must already exist.

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

Returns
TypeDescription
ByteString

The bytes for queue.

getTaskId()

public String getTaskId()

Optional. Task ID for the task being created. If not provided, a random task ID is assigned to the task.

string task_id = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
String

The taskId.

getTaskIdBytes()

public ByteString getTaskIdBytes()

Optional. Task ID for the task being created. If not provided, a random task ID is assigned to the task.

string task_id = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
ByteString

The bytes for taskId.

hasBody()

public boolean hasBody()

Optional. Body of the HTTP request.

The body can take any generic value. The value is written to the HttpRequest of the [Task].

.google.api.HttpBody body = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
boolean

Whether the body field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeBody(HttpBody value)

public BufferTaskRequest.Builder mergeBody(HttpBody value)

Optional. Body of the HTTP request.

The body can take any generic value. The value is written to the HttpRequest of the [Task].

.google.api.HttpBody body = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valuecom.google.api.HttpBody
Returns
TypeDescription
BufferTaskRequest.Builder

mergeFrom(BufferTaskRequest other)

public BufferTaskRequest.Builder mergeFrom(BufferTaskRequest other)
Parameter
NameDescription
otherBufferTaskRequest
Returns
TypeDescription
BufferTaskRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public BufferTaskRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
BufferTaskRequest.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public BufferTaskRequest.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
BufferTaskRequest.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final BufferTaskRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
BufferTaskRequest.Builder
Overrides

setBody(HttpBody value)

public BufferTaskRequest.Builder setBody(HttpBody value)

Optional. Body of the HTTP request.

The body can take any generic value. The value is written to the HttpRequest of the [Task].

.google.api.HttpBody body = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valuecom.google.api.HttpBody
Returns
TypeDescription
BufferTaskRequest.Builder

setBody(HttpBody.Builder builderForValue)

public BufferTaskRequest.Builder setBody(HttpBody.Builder builderForValue)

Optional. Body of the HTTP request.

The body can take any generic value. The value is written to the HttpRequest of the [Task].

.google.api.HttpBody body = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
builderForValuecom.google.api.HttpBody.Builder
Returns
TypeDescription
BufferTaskRequest.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public BufferTaskRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
BufferTaskRequest.Builder
Overrides

setQueue(String value)

public BufferTaskRequest.Builder setQueue(String value)

Required. The parent queue name. For example: projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID`

The queue must already exist.

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

Parameter
NameDescription
valueString

The queue to set.

Returns
TypeDescription
BufferTaskRequest.Builder

This builder for chaining.

setQueueBytes(ByteString value)

public BufferTaskRequest.Builder setQueueBytes(ByteString value)

Required. The parent queue name. For example: projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID`

The queue must already exist.

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

Parameter
NameDescription
valueByteString

The bytes for queue to set.

Returns
TypeDescription
BufferTaskRequest.Builder

This builder for chaining.

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

public BufferTaskRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
BufferTaskRequest.Builder
Overrides

setTaskId(String value)

public BufferTaskRequest.Builder setTaskId(String value)

Optional. Task ID for the task being created. If not provided, a random task ID is assigned to the task.

string task_id = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valueString

The taskId to set.

Returns
TypeDescription
BufferTaskRequest.Builder

This builder for chaining.

setTaskIdBytes(ByteString value)

public BufferTaskRequest.Builder setTaskIdBytes(ByteString value)

Optional. Task ID for the task being created. If not provided, a random task ID is assigned to the task.

string task_id = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valueByteString

The bytes for taskId to set.

Returns
TypeDescription
BufferTaskRequest.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final BufferTaskRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
BufferTaskRequest.Builder
Overrides