Class ListWorkloadsResponse.Builder (0.4.0)

public static final class ListWorkloadsResponse.Builder extends GeneratedMessageV3.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
TypeDescription
Descriptor

Methods

addAllUnreachable(Iterable<String> values)

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

Locations that could not be reached.

repeated string unreachable = 3;

Parameter
NameDescription
valuesIterable<String>

The unreachable to add.

Returns
TypeDescription
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
NameDescription
valuesIterable<? extends com.google.cloud.apphub.v1.Workload>
Returns
TypeDescription
ListWorkloadsResponse.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

addUnreachable(String value)

public ListWorkloadsResponse.Builder addUnreachable(String value)

Locations that could not be reached.

repeated string unreachable = 3;

Parameter
NameDescription
valueString

The unreachable to add.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes of the unreachable to add.

Returns
TypeDescription
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
NameDescription
valueWorkload
Returns
TypeDescription
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
NameDescription
builderForValueWorkload.Builder
Returns
TypeDescription
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
NameDescription
indexint
valueWorkload
Returns
TypeDescription
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
NameDescription
indexint
builderForValueWorkload.Builder
Returns
TypeDescription
ListWorkloadsResponse.Builder

addWorkloadsBuilder()

public Workload.Builder addWorkloadsBuilder()

List of Workloads.

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

Returns
TypeDescription
Workload.Builder

addWorkloadsBuilder(int index)

public Workload.Builder addWorkloadsBuilder(int index)

List of Workloads.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
Workload.Builder

build()

public ListWorkloadsResponse build()
Returns
TypeDescription
ListWorkloadsResponse

buildPartial()

public ListWorkloadsResponse buildPartial()
Returns
TypeDescription
ListWorkloadsResponse

clear()

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

clearField(Descriptors.FieldDescriptor field)

public ListWorkloadsResponse.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
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
TypeDescription
ListWorkloadsResponse.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearUnreachable()

public ListWorkloadsResponse.Builder clearUnreachable()

Locations that could not be reached.

repeated string unreachable = 3;

Returns
TypeDescription
ListWorkloadsResponse.Builder

This builder for chaining.

clearWorkloads()

public ListWorkloadsResponse.Builder clearWorkloads()

List of Workloads.

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

Returns
TypeDescription
ListWorkloadsResponse.Builder

clone()

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

getDefaultInstanceForType()

public ListWorkloadsResponse getDefaultInstanceForType()
Returns
TypeDescription
ListWorkloadsResponse

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getNextPageToken()

public String getNextPageToken()

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

string next_page_token = 2;

Returns
TypeDescription
String

The nextPageToken.

getNextPageTokenBytes()

public ByteString getNextPageTokenBytes()

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

string next_page_token = 2;

Returns
TypeDescription
ByteString

The bytes for nextPageToken.

getUnreachable(int index)

public String getUnreachable(int index)

Locations that could not be reached.

repeated string unreachable = 3;

Parameter
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
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
NameDescription
indexint

The index of the value to return.

Returns
TypeDescription
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
TypeDescription
int

The count of unreachable.

getUnreachableList()

public ProtocolStringList getUnreachableList()

Locations that could not be reached.

repeated string unreachable = 3;

Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
Workload

getWorkloadsBuilder(int index)

public Workload.Builder getWorkloadsBuilder(int index)

List of Workloads.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
Workload.Builder

getWorkloadsBuilderList()

public List<Workload.Builder> getWorkloadsBuilderList()

List of Workloads.

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

Returns
TypeDescription
List<Builder>

getWorkloadsCount()

public int getWorkloadsCount()

List of Workloads.

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

Returns
TypeDescription
int

getWorkloadsList()

public List<Workload> getWorkloadsList()

List of Workloads.

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

Returns
TypeDescription
List<Workload>

getWorkloadsOrBuilder(int index)

public WorkloadOrBuilder getWorkloadsOrBuilder(int index)

List of Workloads.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
WorkloadOrBuilder

getWorkloadsOrBuilderList()

public List<? extends WorkloadOrBuilder> getWorkloadsOrBuilderList()

List of Workloads.

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

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

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(ListWorkloadsResponse other)

public ListWorkloadsResponse.Builder mergeFrom(ListWorkloadsResponse other)
Parameter
NameDescription
otherListWorkloadsResponse
Returns
TypeDescription
ListWorkloadsResponse.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removeWorkloads(int index)

public ListWorkloadsResponse.Builder removeWorkloads(int index)

List of Workloads.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
ListWorkloadsResponse.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

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
NameDescription
valueString

The nextPageToken to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for nextPageToken to set.

Returns
TypeDescription
ListWorkloadsResponse.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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

setUnreachable(int index, String value)

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

Locations that could not be reached.

repeated string unreachable = 3;

Parameters
NameDescription
indexint

The index to set the value at.

valueString

The unreachable to set.

Returns
TypeDescription
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
NameDescription
indexint
valueWorkload
Returns
TypeDescription
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
NameDescription
indexint
builderForValueWorkload.Builder
Returns
TypeDescription
ListWorkloadsResponse.Builder