Class ListWorkloadsResponse.Builder (2.43.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
Type Description
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
Name Description
values Iterable<? extends com.google.cloud.assuredworkloads.v1beta1.Workload>
Returns
Type Description
ListWorkloadsResponse.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public ListWorkloadsResponse.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
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
Name Description
value Workload
Returns
Type Description
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
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 under a given parent.

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

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

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

addWorkloadsBuilder()

public Workload.Builder addWorkloadsBuilder()

List of Workloads under a given parent.

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

Returns
Type Description
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
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

clearField(Descriptors.FieldDescriptor field)

public ListWorkloadsResponse.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
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
Type Description
ListWorkloadsResponse.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearWorkloads()

public ListWorkloadsResponse.Builder clearWorkloads()

List of Workloads under a given parent.

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

Returns
Type Description
ListWorkloadsResponse.Builder

clone()

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

getDefaultInstanceForType()

public ListWorkloadsResponse getDefaultInstanceForType()
Returns
Type Description
ListWorkloadsResponse

getDescriptorForType()

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

getNextPageToken()

public String getNextPageToken()

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

string next_page_token = 2;

Returns
Type Description
String

The nextPageToken.

getNextPageTokenBytes()

public ByteString getNextPageTokenBytes()

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

string next_page_token = 2;

Returns
Type Description
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
Name Description
index int
Returns
Type Description
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
Name Description
index int
Returns
Type Description
Workload.Builder

getWorkloadsBuilderList()

public List<Workload.Builder> getWorkloadsBuilderList()

List of Workloads under a given parent.

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

Returns
Type Description
List<Builder>

getWorkloadsCount()

public int getWorkloadsCount()

List of Workloads under a given parent.

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

Returns
Type Description
int

getWorkloadsList()

public List<Workload> getWorkloadsList()

List of Workloads under a given parent.

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

Returns
Type Description
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
Name Description
index int
Returns
Type Description
WorkloadOrBuilder

getWorkloadsOrBuilderList()

public List<? extends WorkloadOrBuilder> getWorkloadsOrBuilderList()

List of Workloads under a given parent.

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

Returns
Type Description
List<? extends com.google.cloud.assuredworkloads.v1beta1.WorkloadOrBuilder>

internalGetFieldAccessorTable()

protected GeneratedMessageV3.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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ListWorkloadsResponse.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
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
Name Description
index int
Returns
Type Description
ListWorkloadsResponse.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public ListWorkloadsResponse.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
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
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)

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

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.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

public final ListWorkloadsResponse.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
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
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 under a given parent.

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

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