Class ListWorkloadsResponse.Builder (2.21.0)

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

Response of ListWorkloads endpoint.

Protobuf type google.cloud.assuredworkloads.v1beta1.ListWorkloadsResponse

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addAllWorkloads(Iterable<? extends Workload> values)

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

List of Workloads under a given parent.

repeated .google.cloud.assuredworkloads.v1beta1.Workload workloads = 1;

Parameter
NameDescription
valuesIterable<? extends com.google.cloud.assuredworkloads.v1beta1.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

addWorkloads(Workload value)

public ListWorkloadsResponse.Builder addWorkloads(Workload value)

List of Workloads under a given parent.

repeated .google.cloud.assuredworkloads.v1beta1.Workload workloads = 1;

Parameter
NameDescription
valueWorkload
Returns
TypeDescription
ListWorkloadsResponse.Builder

addWorkloads(Workload.Builder builderForValue)

public ListWorkloadsResponse.Builder addWorkloads(Workload.Builder builderForValue)

List of Workloads under a given parent.

repeated .google.cloud.assuredworkloads.v1beta1.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 under a given parent.

repeated .google.cloud.assuredworkloads.v1beta1.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 under a given parent.

repeated .google.cloud.assuredworkloads.v1beta1.Workload workloads = 1;

Parameters
NameDescription
indexint
builderForValueWorkload.Builder
Returns
TypeDescription
ListWorkloadsResponse.Builder

addWorkloadsBuilder()

public Workload.Builder addWorkloadsBuilder()

List of Workloads under a given parent.

repeated .google.cloud.assuredworkloads.v1beta1.Workload workloads = 1;

Returns
TypeDescription
Workload.Builder

addWorkloadsBuilder(int index)

public Workload.Builder addWorkloadsBuilder(int index)

List of Workloads under a given parent.

repeated .google.cloud.assuredworkloads.v1beta1.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()

The next page token. Return empty if reached the last page.

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

clearWorkloads()

public ListWorkloadsResponse.Builder clearWorkloads()

List of Workloads under a given parent.

repeated .google.cloud.assuredworkloads.v1beta1.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()

The next page token. Return empty if reached the last page.

string next_page_token = 2;

Returns
TypeDescription
String

The nextPageToken.

getNextPageTokenBytes()

public ByteString getNextPageTokenBytes()

The next page token. Return empty if reached the last page.

string next_page_token = 2;

Returns
TypeDescription
ByteString

The bytes for nextPageToken.

getWorkloads(int index)

public Workload getWorkloads(int index)

List of Workloads under a given parent.

repeated .google.cloud.assuredworkloads.v1beta1.Workload workloads = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
Workload

getWorkloadsBuilder(int index)

public Workload.Builder getWorkloadsBuilder(int index)

List of Workloads under a given parent.

repeated .google.cloud.assuredworkloads.v1beta1.Workload workloads = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
Workload.Builder

getWorkloadsBuilderList()

public List<Workload.Builder> getWorkloadsBuilderList()

List of Workloads under a given parent.

repeated .google.cloud.assuredworkloads.v1beta1.Workload workloads = 1;

Returns
TypeDescription
List<Builder>

getWorkloadsCount()

public int getWorkloadsCount()

List of Workloads under a given parent.

repeated .google.cloud.assuredworkloads.v1beta1.Workload workloads = 1;

Returns
TypeDescription
int

getWorkloadsList()

public List<Workload> getWorkloadsList()

List of Workloads under a given parent.

repeated .google.cloud.assuredworkloads.v1beta1.Workload workloads = 1;

Returns
TypeDescription
List<Workload>

getWorkloadsOrBuilder(int index)

public WorkloadOrBuilder getWorkloadsOrBuilder(int index)

List of Workloads under a given parent.

repeated .google.cloud.assuredworkloads.v1beta1.Workload workloads = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
WorkloadOrBuilder

getWorkloadsOrBuilderList()

public List<? extends WorkloadOrBuilder> getWorkloadsOrBuilderList()

List of Workloads under a given parent.

repeated .google.cloud.assuredworkloads.v1beta1.Workload workloads = 1;

Returns
TypeDescription
List<? extends com.google.cloud.assuredworkloads.v1beta1.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 under a given parent.

repeated .google.cloud.assuredworkloads.v1beta1.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)

The next page token. Return empty if reached the last page.

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)

The next page token. Return empty if reached the last page.

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

setWorkloads(int index, Workload value)

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

List of Workloads under a given parent.

repeated .google.cloud.assuredworkloads.v1beta1.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 under a given parent.

repeated .google.cloud.assuredworkloads.v1beta1.Workload workloads = 1;

Parameters
NameDescription
indexint
builderForValueWorkload.Builder
Returns
TypeDescription
ListWorkloadsResponse.Builder