Class ListTasksRequest.Builder (0.72.0)

publicstaticfinalclass ListTasksRequest.BuilderextendsGeneratedMessageV3.Builder<ListTasksRequest.Builder>implementsListTasksRequestOrBuilder

Request message for retrieving a list of Tasks.

Protobuf type google.cloud.run.v2.ListTasksRequest

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)

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

build()

publicListTasksRequestbuild()
Returns
Type Description
ListTasksRequest

buildPartial()

publicListTasksRequestbuildPartial()
Returns
Type Description
ListTasksRequest

clear()

publicListTasksRequest.Builderclear()
Returns
Type Description
ListTasksRequest.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

publicListTasksRequest.BuilderclearField(Descriptors.FieldDescriptorfield)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
ListTasksRequest.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

publicListTasksRequest.BuilderclearOneof(Descriptors.OneofDescriptoroneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
ListTasksRequest.Builder
Overrides

clearPageSize()

publicListTasksRequest.BuilderclearPageSize()

Maximum number of Tasks to return in this call.

int32 page_size = 2;

Returns
Type Description
ListTasksRequest.Builder

This builder for chaining.

clearPageToken()

publicListTasksRequest.BuilderclearPageToken()

A page token received from a previous call to ListTasks. All other parameters must match.

string page_token = 3;

Returns
Type Description
ListTasksRequest.Builder

This builder for chaining.

clearParent()

publicListTasksRequest.BuilderclearParent()

Required. The Execution from which the Tasks should be listed. To list all Tasks across Executions of a Job, use "-" instead of Execution name. To list all Tasks across Jobs, use "-" instead of Job name. Format: projects/{project}/locations/{location}/jobs/{job}/executions/{execution}

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

Returns
Type Description
ListTasksRequest.Builder

This builder for chaining.

clearShowDeleted()

publicListTasksRequest.BuilderclearShowDeleted()

If true, returns deleted (but unexpired) resources along with active ones.

bool show_deleted = 4;

Returns
Type Description
ListTasksRequest.Builder

This builder for chaining.

clone()

publicListTasksRequest.Builderclone()
Returns
Type Description
ListTasksRequest.Builder
Overrides

getDefaultInstanceForType()

publicListTasksRequestgetDefaultInstanceForType()
Returns
Type Description
ListTasksRequest

getDescriptorForType()

publicDescriptors.DescriptorgetDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getPageSize()

publicintgetPageSize()

Maximum number of Tasks to return in this call.

int32 page_size = 2;

Returns
Type Description
int

The pageSize.

getPageToken()

publicStringgetPageToken()

A page token received from a previous call to ListTasks. All other parameters must match.

string page_token = 3;

Returns
Type Description
String

The pageToken.

getPageTokenBytes()

publicByteStringgetPageTokenBytes()

A page token received from a previous call to ListTasks. All other parameters must match.

string page_token = 3;

Returns
Type Description
ByteString

The bytes for pageToken.

getParent()

publicStringgetParent()

Required. The Execution from which the Tasks should be listed. To list all Tasks across Executions of a Job, use "-" instead of Execution name. To list all Tasks across Jobs, use "-" instead of Job name. Format: projects/{project}/locations/{location}/jobs/{job}/executions/{execution}

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

Returns
Type Description
String

The parent.

getParentBytes()

publicByteStringgetParentBytes()

Required. The Execution from which the Tasks should be listed. To list all Tasks across Executions of a Job, use "-" instead of Execution name. To list all Tasks across Jobs, use "-" instead of Job name. Format: projects/{project}/locations/{location}/jobs/{job}/executions/{execution}

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

Returns
Type Description
ByteString

The bytes for parent.

getShowDeleted()

publicbooleangetShowDeleted()

If true, returns deleted (but unexpired) resources along with active ones.

bool show_deleted = 4;

Returns
Type Description
boolean

The showDeleted.

internalGetFieldAccessorTable()

protectedGeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

publicfinalbooleanisInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(ListTasksRequest other)

publicListTasksRequest.BuildermergeFrom(ListTasksRequestother)
Parameter
Name Description
other ListTasksRequest
Returns
Type Description
ListTasksRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

publicListTasksRequest.BuildermergeFrom(Messageother)
Parameter
Name Description
other Message
Returns
Type Description
ListTasksRequest.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

publicfinalListTasksRequest.BuildermergeUnknownFields(UnknownFieldSetunknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
ListTasksRequest.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

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

setPageSize(int value)

publicListTasksRequest.BuildersetPageSize(intvalue)

Maximum number of Tasks to return in this call.

int32 page_size = 2;

Parameter
Name Description
value int

The pageSize to set.

Returns
Type Description
ListTasksRequest.Builder

This builder for chaining.

setPageToken(String value)

publicListTasksRequest.BuildersetPageToken(Stringvalue)

A page token received from a previous call to ListTasks. All other parameters must match.

string page_token = 3;

Parameter
Name Description
value String

The pageToken to set.

Returns
Type Description
ListTasksRequest.Builder

This builder for chaining.

setPageTokenBytes(ByteString value)

publicListTasksRequest.BuildersetPageTokenBytes(ByteStringvalue)

A page token received from a previous call to ListTasks. All other parameters must match.

string page_token = 3;

Parameter
Name Description
value ByteString

The bytes for pageToken to set.

Returns
Type Description
ListTasksRequest.Builder

This builder for chaining.

setParent(String value)

publicListTasksRequest.BuildersetParent(Stringvalue)

Required. The Execution from which the Tasks should be listed. To list all Tasks across Executions of a Job, use "-" instead of Execution name. To list all Tasks across Jobs, use "-" instead of Job name. Format: projects/{project}/locations/{location}/jobs/{job}/executions/{execution}

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

Parameter
Name Description
value String

The parent to set.

Returns
Type Description
ListTasksRequest.Builder

This builder for chaining.

setParentBytes(ByteString value)

publicListTasksRequest.BuildersetParentBytes(ByteStringvalue)

Required. The Execution from which the Tasks should be listed. To list all Tasks across Executions of a Job, use "-" instead of Execution name. To list all Tasks across Jobs, use "-" instead of Job name. Format: projects/{project}/locations/{location}/jobs/{job}/executions/{execution}

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
ListTasksRequest.Builder

This builder for chaining.

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

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

setShowDeleted(boolean value)

publicListTasksRequest.BuildersetShowDeleted(booleanvalue)

If true, returns deleted (but unexpired) resources along with active ones.

bool show_deleted = 4;

Parameter
Name Description
value boolean

The showDeleted to set.

Returns
Type Description
ListTasksRequest.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

publicfinalListTasksRequest.BuildersetUnknownFields(UnknownFieldSetunknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
ListTasksRequest.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年10月30日 UTC.