Class ListTasksResponse.Builder (0.53.0)

public static final class ListTasksResponse.Builder extends GeneratedMessageV3.Builder<ListTasksResponse.Builder> implements ListTasksResponseOrBuilder

ListTasks Response.

Protobuf type google.cloud.batch.v1alpha.ListTasksResponse

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addAllTasks(Iterable<? extends Task> values)

public ListTasksResponse.Builder addAllTasks(Iterable<? extends Task> values)

Tasks.

repeated .google.cloud.batch.v1alpha.Task tasks = 1;

Parameter
Name Description
values Iterable<? extends com.google.cloud.batch.v1alpha.Task>
Returns
Type Description
ListTasksResponse.Builder

addAllUnreachable(Iterable<String> values)

public ListTasksResponse.Builder addAllUnreachable(Iterable<String> values)

Locations that could not be reached.

repeated string unreachable = 3;

Parameter
Name Description
values Iterable<String>

The unreachable to add.

Returns
Type Description
ListTasksResponse.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public ListTasksResponse.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
ListTasksResponse.Builder
Overrides

addTasks(Task value)

public ListTasksResponse.Builder addTasks(Task value)

Tasks.

repeated .google.cloud.batch.v1alpha.Task tasks = 1;

Parameter
Name Description
value Task
Returns
Type Description
ListTasksResponse.Builder

addTasks(Task.Builder builderForValue)

public ListTasksResponse.Builder addTasks(Task.Builder builderForValue)

Tasks.

repeated .google.cloud.batch.v1alpha.Task tasks = 1;

Parameter
Name Description
builderForValue Task.Builder
Returns
Type Description
ListTasksResponse.Builder

addTasks(int index, Task value)

public ListTasksResponse.Builder addTasks(int index, Task value)

Tasks.

repeated .google.cloud.batch.v1alpha.Task tasks = 1;

Parameters
Name Description
index int
value Task
Returns
Type Description
ListTasksResponse.Builder

addTasks(int index, Task.Builder builderForValue)

public ListTasksResponse.Builder addTasks(int index, Task.Builder builderForValue)

Tasks.

repeated .google.cloud.batch.v1alpha.Task tasks = 1;

Parameters
Name Description
index int
builderForValue Task.Builder
Returns
Type Description
ListTasksResponse.Builder

addTasksBuilder()

public Task.Builder addTasksBuilder()

Tasks.

repeated .google.cloud.batch.v1alpha.Task tasks = 1;

Returns
Type Description
Task.Builder

addTasksBuilder(int index)

public Task.Builder addTasksBuilder(int index)

Tasks.

repeated .google.cloud.batch.v1alpha.Task tasks = 1;

Parameter
Name Description
index int
Returns
Type Description
Task.Builder

addUnreachable(String value)

public ListTasksResponse.Builder addUnreachable(String value)

Locations that could not be reached.

repeated string unreachable = 3;

Parameter
Name Description
value String

The unreachable to add.

Returns
Type Description
ListTasksResponse.Builder

This builder for chaining.

addUnreachableBytes(ByteString value)

public ListTasksResponse.Builder addUnreachableBytes(ByteString value)

Locations that could not be reached.

repeated string unreachable = 3;

Parameter
Name Description
value ByteString

The bytes of the unreachable to add.

Returns
Type Description
ListTasksResponse.Builder

This builder for chaining.

build()

public ListTasksResponse build()
Returns
Type Description
ListTasksResponse

buildPartial()

public ListTasksResponse buildPartial()
Returns
Type Description
ListTasksResponse

clear()

public ListTasksResponse.Builder clear()
Returns
Type Description
ListTasksResponse.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public ListTasksResponse.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
ListTasksResponse.Builder
Overrides

clearNextPageToken()

public ListTasksResponse.Builder clearNextPageToken()

Next page token.

string next_page_token = 2;

Returns
Type Description
ListTasksResponse.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public ListTasksResponse.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
ListTasksResponse.Builder
Overrides

clearTasks()

public ListTasksResponse.Builder clearTasks()

Tasks.

repeated .google.cloud.batch.v1alpha.Task tasks = 1;

Returns
Type Description
ListTasksResponse.Builder

clearUnreachable()

public ListTasksResponse.Builder clearUnreachable()

Locations that could not be reached.

repeated string unreachable = 3;

Returns
Type Description
ListTasksResponse.Builder

This builder for chaining.

clone()

public ListTasksResponse.Builder clone()
Returns
Type Description
ListTasksResponse.Builder
Overrides

getDefaultInstanceForType()

public ListTasksResponse getDefaultInstanceForType()
Returns
Type Description
ListTasksResponse

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getNextPageToken()

public String getNextPageToken()

Next page token.

string next_page_token = 2;

Returns
Type Description
String

The nextPageToken.

getNextPageTokenBytes()

public ByteString getNextPageTokenBytes()

Next page token.

string next_page_token = 2;

Returns
Type Description
ByteString

The bytes for nextPageToken.

getTasks(int index)

public Task getTasks(int index)

Tasks.

repeated .google.cloud.batch.v1alpha.Task tasks = 1;

Parameter
Name Description
index int
Returns
Type Description
Task

getTasksBuilder(int index)

public Task.Builder getTasksBuilder(int index)

Tasks.

repeated .google.cloud.batch.v1alpha.Task tasks = 1;

Parameter
Name Description
index int
Returns
Type Description
Task.Builder

getTasksBuilderList()

public List<Task.Builder> getTasksBuilderList()

Tasks.

repeated .google.cloud.batch.v1alpha.Task tasks = 1;

Returns
Type Description
List<Builder>

getTasksCount()

public int getTasksCount()

Tasks.

repeated .google.cloud.batch.v1alpha.Task tasks = 1;

Returns
Type Description
int

getTasksList()

public List<Task> getTasksList()

Tasks.

repeated .google.cloud.batch.v1alpha.Task tasks = 1;

Returns
Type Description
List<Task>

getTasksOrBuilder(int index)

public TaskOrBuilder getTasksOrBuilder(int index)

Tasks.

repeated .google.cloud.batch.v1alpha.Task tasks = 1;

Parameter
Name Description
index int
Returns
Type Description
TaskOrBuilder

getTasksOrBuilderList()

public List<? extends TaskOrBuilder> getTasksOrBuilderList()

Tasks.

repeated .google.cloud.batch.v1alpha.Task tasks = 1;

Returns
Type Description
List<? extends com.google.cloud.batch.v1alpha.TaskOrBuilder>

getUnreachable(int index)

public String getUnreachable(int index)

Locations that could not be reached.

repeated string unreachable = 3;

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
String

The unreachable at the given index.

getUnreachableBytes(int index)

public ByteString getUnreachableBytes(int index)

Locations that could not be reached.

repeated string unreachable = 3;

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
ByteString

The bytes of the unreachable at the given index.

getUnreachableCount()

public int getUnreachableCount()

Locations that could not be reached.

repeated string unreachable = 3;

Returns
Type Description
int

The count of unreachable.

getUnreachableList()

public ProtocolStringList getUnreachableList()

Locations that could not be reached.

repeated string unreachable = 3;

Returns
Type Description
ProtocolStringList

A list containing the unreachable.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(ListTasksResponse other)

public ListTasksResponse.Builder mergeFrom(ListTasksResponse other)
Parameter
Name Description
other ListTasksResponse
Returns
Type Description
ListTasksResponse.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public ListTasksResponse.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ListTasksResponse.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public ListTasksResponse.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
ListTasksResponse.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ListTasksResponse.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
ListTasksResponse.Builder
Overrides

removeTasks(int index)

public ListTasksResponse.Builder removeTasks(int index)

Tasks.

repeated .google.cloud.batch.v1alpha.Task tasks = 1;

Parameter
Name Description
index int
Returns
Type Description
ListTasksResponse.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public ListTasksResponse.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
ListTasksResponse.Builder
Overrides

setNextPageToken(String value)

public ListTasksResponse.Builder setNextPageToken(String value)

Next page token.

string next_page_token = 2;

Parameter
Name Description
value String

The nextPageToken to set.

Returns
Type Description
ListTasksResponse.Builder

This builder for chaining.

setNextPageTokenBytes(ByteString value)

public ListTasksResponse.Builder setNextPageTokenBytes(ByteString value)

Next page token.

string next_page_token = 2;

Parameter
Name Description
value ByteString

The bytes for nextPageToken to set.

Returns
Type Description
ListTasksResponse.Builder

This builder for chaining.

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

public ListTasksResponse.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
ListTasksResponse.Builder
Overrides

setTasks(int index, Task value)

public ListTasksResponse.Builder setTasks(int index, Task value)

Tasks.

repeated .google.cloud.batch.v1alpha.Task tasks = 1;

Parameters
Name Description
index int
value Task
Returns
Type Description
ListTasksResponse.Builder

setTasks(int index, Task.Builder builderForValue)

public ListTasksResponse.Builder setTasks(int index, Task.Builder builderForValue)

Tasks.

repeated .google.cloud.batch.v1alpha.Task tasks = 1;

Parameters
Name Description
index int
builderForValue Task.Builder
Returns
Type Description
ListTasksResponse.Builder

setUnknownFields(UnknownFieldSet unknownFields)

public final ListTasksResponse.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
ListTasksResponse.Builder
Overrides

setUnreachable(int index, String value)

public ListTasksResponse.Builder setUnreachable(int index, String value)

Locations that could not be reached.

repeated string unreachable = 3;

Parameters
Name Description
index int

The index to set the value at.

value String

The unreachable to set.

Returns
Type Description
ListTasksResponse.Builder

This builder for chaining.