Class ListWorkloadsResponse.Builder (0.47.0)

public static final class ListWorkloadsResponse.Builder extends GeneratedMessage.Builder<ListWorkloadsResponse.Builder> implements ListWorkloadsResponseOrBuilder

Response for ListWorkloads.

Protobuf type google.cloud.apphub.v1.ListWorkloadsResponse

Static Methods

getDescriptor()

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

Methods

addAllUnreachable(Iterable<String> values)

public ListWorkloadsResponse.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
ListWorkloadsResponse.Builder

This builder for chaining.

addAllWorkloads(Iterable<? extends Workload> values)

public ListWorkloadsResponse.Builder addAllWorkloads(Iterable<? extends Workload> values)

List of Workloads.

repeated .google.cloud.apphub.v1.Workload workloads = 1;

Parameter
Name Description
values Iterable<? extends com.google.cloud.apphub.v1.Workload>
Returns
Type Description
ListWorkloadsResponse.Builder

addUnreachable(String value)

public ListWorkloadsResponse.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
ListWorkloadsResponse.Builder

This builder for chaining.

addUnreachableBytes(ByteString value)

public ListWorkloadsResponse.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
ListWorkloadsResponse.Builder

This builder for chaining.

addWorkloads(Workload value)

public ListWorkloadsResponse.Builder addWorkloads(Workload value)

List of Workloads.

repeated .google.cloud.apphub.v1.Workload workloads = 1;

Parameter
Name Description
value Workload
Returns
Type Description
ListWorkloadsResponse.Builder

addWorkloads(Workload.Builder builderForValue)

public ListWorkloadsResponse.Builder addWorkloads(Workload.Builder builderForValue)

List of Workloads.

repeated .google.cloud.apphub.v1.Workload workloads = 1;

Parameter
Name Description
builderForValue Workload.Builder
Returns
Type Description
ListWorkloadsResponse.Builder

addWorkloads(int index, Workload value)

public ListWorkloadsResponse.Builder addWorkloads(int index, Workload value)

List of Workloads.

repeated .google.cloud.apphub.v1.Workload workloads = 1;

Parameters
Name Description
index int
value Workload
Returns
Type Description
ListWorkloadsResponse.Builder

addWorkloads(int index, Workload.Builder builderForValue)

public ListWorkloadsResponse.Builder addWorkloads(int index, Workload.Builder builderForValue)

List of Workloads.

repeated .google.cloud.apphub.v1.Workload workloads = 1;

Parameters
Name Description
index int
builderForValue Workload.Builder
Returns
Type Description
ListWorkloadsResponse.Builder

addWorkloadsBuilder()

public Workload.Builder addWorkloadsBuilder()

List of Workloads.

repeated .google.cloud.apphub.v1.Workload workloads = 1;

Returns
Type Description
Workload.Builder

addWorkloadsBuilder(int index)

public Workload.Builder addWorkloadsBuilder(int index)

List of Workloads.

repeated .google.cloud.apphub.v1.Workload workloads = 1;

Parameter
Name Description
index int
Returns
Type Description
Workload.Builder

build()

public ListWorkloadsResponse build()
Returns
Type Description
ListWorkloadsResponse

buildPartial()

public ListWorkloadsResponse buildPartial()
Returns
Type Description
ListWorkloadsResponse

clear()

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

clearNextPageToken()

public ListWorkloadsResponse.Builder clearNextPageToken()

A token identifying a page of results the server should return.

string next_page_token = 2;

Returns
Type Description
ListWorkloadsResponse.Builder

This builder for chaining.

clearUnreachable()

public ListWorkloadsResponse.Builder clearUnreachable()

Locations that could not be reached.

repeated string unreachable = 3;

Returns
Type Description
ListWorkloadsResponse.Builder

This builder for chaining.

clearWorkloads()

public ListWorkloadsResponse.Builder clearWorkloads()

List of Workloads.

repeated .google.cloud.apphub.v1.Workload workloads = 1;

Returns
Type Description
ListWorkloadsResponse.Builder

getDefaultInstanceForType()

public ListWorkloadsResponse getDefaultInstanceForType()
Returns
Type Description
ListWorkloadsResponse

getDescriptorForType()

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

getNextPageToken()

public String getNextPageToken()

A token identifying a page of results the server should return.

string next_page_token = 2;

Returns
Type Description
String

The nextPageToken.

getNextPageTokenBytes()

public ByteString getNextPageTokenBytes()

A token identifying a page of results the server should return.

string next_page_token = 2;

Returns
Type Description
ByteString

The bytes for nextPageToken.

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.

getWorkloads(int index)

public Workload getWorkloads(int index)

List of Workloads.

repeated .google.cloud.apphub.v1.Workload workloads = 1;

Parameter
Name Description
index int
Returns
Type Description
Workload

getWorkloadsBuilder(int index)

public Workload.Builder getWorkloadsBuilder(int index)

List of Workloads.

repeated .google.cloud.apphub.v1.Workload workloads = 1;

Parameter
Name Description
index int
Returns
Type Description
Workload.Builder

getWorkloadsBuilderList()

public List<Workload.Builder> getWorkloadsBuilderList()

List of Workloads.

repeated .google.cloud.apphub.v1.Workload workloads = 1;

Returns
Type Description
List<Builder>

getWorkloadsCount()

public int getWorkloadsCount()

List of Workloads.

repeated .google.cloud.apphub.v1.Workload workloads = 1;

Returns
Type Description
int

getWorkloadsList()

public List<Workload> getWorkloadsList()

List of Workloads.

repeated .google.cloud.apphub.v1.Workload workloads = 1;

Returns
Type Description
List<Workload>

getWorkloadsOrBuilder(int index)

public WorkloadOrBuilder getWorkloadsOrBuilder(int index)

List of Workloads.

repeated .google.cloud.apphub.v1.Workload workloads = 1;

Parameter
Name Description
index int
Returns
Type Description
WorkloadOrBuilder

getWorkloadsOrBuilderList()

public List<? extends WorkloadOrBuilder> getWorkloadsOrBuilderList()

List of Workloads.

repeated .google.cloud.apphub.v1.Workload workloads = 1;

Returns
Type Description
List<? extends com.google.cloud.apphub.v1.WorkloadOrBuilder>

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(ListWorkloadsResponse other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

removeWorkloads(int index)

public ListWorkloadsResponse.Builder removeWorkloads(int index)

List of Workloads.

repeated .google.cloud.apphub.v1.Workload workloads = 1;

Parameter
Name Description
index int
Returns
Type Description
ListWorkloadsResponse.Builder

setNextPageToken(String value)

public ListWorkloadsResponse.Builder setNextPageToken(String value)

A token identifying a page of results the server should return.

string next_page_token = 2;

Parameter
Name Description
value String

The nextPageToken to set.

Returns
Type Description
ListWorkloadsResponse.Builder

This builder for chaining.

setNextPageTokenBytes(ByteString value)

public ListWorkloadsResponse.Builder setNextPageTokenBytes(ByteString value)

A token identifying a page of results the server should return.

string next_page_token = 2;

Parameter
Name Description
value ByteString

The bytes for nextPageToken to set.

Returns
Type Description
ListWorkloadsResponse.Builder

This builder for chaining.

setUnreachable(int index, String value)

public ListWorkloadsResponse.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
ListWorkloadsResponse.Builder

This builder for chaining.

setWorkloads(int index, Workload value)

public ListWorkloadsResponse.Builder setWorkloads(int index, Workload value)

List of Workloads.

repeated .google.cloud.apphub.v1.Workload workloads = 1;

Parameters
Name Description
index int
value Workload
Returns
Type Description
ListWorkloadsResponse.Builder

setWorkloads(int index, Workload.Builder builderForValue)

public ListWorkloadsResponse.Builder setWorkloads(int index, Workload.Builder builderForValue)

List of Workloads.

repeated .google.cloud.apphub.v1.Workload workloads = 1;

Parameters
Name Description
index int
builderForValue Workload.Builder
Returns
Type Description
ListWorkloadsResponse.Builder