Class BufferTaskRequest (2.27.0)

publicfinalclass BufferTaskRequestextendsGeneratedMessageV3implementsBufferTaskRequestOrBuilder

LINT.IfChange Request message for BufferTask.

Protobuf type google.cloud.tasks.v2beta2.BufferTaskRequest

Inherited Members

com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessageV3.<T>emptyList(java.lang.Class<T>)

Static Fields

BODY_FIELD_NUMBER

publicstaticfinalintBODY_FIELD_NUMBER
Field Value
Type Description
int

QUEUE_FIELD_NUMBER

publicstaticfinalintQUEUE_FIELD_NUMBER
Field Value
Type Description
int

TASK_ID_FIELD_NUMBER

publicstaticfinalintTASK_ID_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

publicstaticBufferTaskRequestgetDefaultInstance()
Returns
Type Description
BufferTaskRequest

getDescriptor()

publicstaticfinalDescriptors.DescriptorgetDescriptor()
Returns
Type Description
Descriptor

newBuilder()

publicstaticBufferTaskRequest.BuildernewBuilder()
Returns
Type Description
BufferTaskRequest.Builder

newBuilder(BufferTaskRequest prototype)

publicstaticBufferTaskRequest.BuildernewBuilder(BufferTaskRequestprototype)
Parameter
Name Description
prototype BufferTaskRequest
Returns
Type Description
BufferTaskRequest.Builder

parseDelimitedFrom(InputStream input)

publicstaticBufferTaskRequestparseDelimitedFrom(InputStreaminput)
Parameter
Name Description
input InputStream
Returns
Type Description
BufferTaskRequest
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

publicstaticBufferTaskRequestparseDelimitedFrom(InputStreaminput,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
BufferTaskRequest
Exceptions
Type Description
IOException

parseFrom(byte[] data)

publicstaticBufferTaskRequestparseFrom(byte[]data)
Parameter
Name Description
data byte[]
Returns
Type Description
BufferTaskRequest
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

publicstaticBufferTaskRequestparseFrom(byte[]data,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
BufferTaskRequest
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

publicstaticBufferTaskRequestparseFrom(ByteStringdata)
Parameter
Name Description
data ByteString
Returns
Type Description
BufferTaskRequest
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

publicstaticBufferTaskRequestparseFrom(ByteStringdata,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
BufferTaskRequest
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

publicstaticBufferTaskRequestparseFrom(CodedInputStreaminput)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
BufferTaskRequest
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

publicstaticBufferTaskRequestparseFrom(CodedInputStreaminput,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
BufferTaskRequest
Exceptions
Type Description
IOException

parseFrom(InputStream input)

publicstaticBufferTaskRequestparseFrom(InputStreaminput)
Parameter
Name Description
input InputStream
Returns
Type Description
BufferTaskRequest
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

publicstaticBufferTaskRequestparseFrom(InputStreaminput,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
BufferTaskRequest
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

publicstaticBufferTaskRequestparseFrom(ByteBufferdata)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
BufferTaskRequest
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

publicstaticBufferTaskRequestparseFrom(ByteBufferdata,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
BufferTaskRequest
Exceptions
Type Description
InvalidProtocolBufferException

parser()

publicstaticParser<BufferTaskRequest>parser()
Returns
Type Description
Parser<BufferTaskRequest>

Methods

equals(Object obj)

publicbooleanequals(Objectobj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getBody()

publicHttpBodygetBody()

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
Type Description
com.google.api.HttpBody

The body.

getBodyOrBuilder()

publicHttpBodyOrBuildergetBodyOrBuilder()

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
Type Description
com.google.api.HttpBodyOrBuilder

getDefaultInstanceForType()

publicBufferTaskRequestgetDefaultInstanceForType()
Returns
Type Description
BufferTaskRequest

getParserForType()

publicParser<BufferTaskRequest>getParserForType()
Returns
Type Description
Parser<BufferTaskRequest>
Overrides

getQueue()

publicStringgetQueue()

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
Type Description
String

The queue.

getQueueBytes()

publicByteStringgetQueueBytes()

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
Type Description
ByteString

The bytes for queue.

getSerializedSize()

publicintgetSerializedSize()
Returns
Type Description
int
Overrides

getTaskId()

publicStringgetTaskId()

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
Type Description
String

The taskId.

getTaskIdBytes()

publicByteStringgetTaskIdBytes()

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
Type Description
ByteString

The bytes for taskId.

hasBody()

publicbooleanhasBody()

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
Type Description
boolean

Whether the body field is set.

hashCode()

publicinthashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

protectedGeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

publicfinalbooleanisInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

publicBufferTaskRequest.BuildernewBuilderForType()
Returns
Type Description
BufferTaskRequest.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protectedBufferTaskRequest.BuildernewBuilderForType(GeneratedMessageV3.BuilderParentparent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
BufferTaskRequest.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protectedObjectnewInstance(GeneratedMessageV3.UnusedPrivateParameterunused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

publicBufferTaskRequest.BuildertoBuilder()
Returns
Type Description
BufferTaskRequest.Builder

writeTo(CodedOutputStream output)

publicvoidwriteTo(CodedOutputStreamoutput)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException

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.