public static final class ListWorkloadsResponse.Builder extends GeneratedMessageV3.Builder<ListWorkloadsResponse.Builder> implements ListWorkloadsResponseOrBuilder
Response of ListWorkloads endpoint.
Protobuf type google.cloud.assuredworkloads.v1.ListWorkloadsResponse
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
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.v1.Workload workloads = 1;
Parameter
Name | Description |
values | Iterable<? extends com.google.cloud.assuredworkloads.v1.Workload>
|
Returns
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public ListWorkloadsResponse.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
addWorkloads(Workload value)
public ListWorkloadsResponse.Builder addWorkloads(Workload value)
List of Workloads under a given parent.
repeated .google.cloud.assuredworkloads.v1.Workload workloads = 1;
Parameter
Returns
addWorkloads(Workload.Builder builderForValue)
public ListWorkloadsResponse.Builder addWorkloads(Workload.Builder builderForValue)
List of Workloads under a given parent.
repeated .google.cloud.assuredworkloads.v1.Workload workloads = 1;
Parameter
Returns
addWorkloads(int index, Workload value)
public ListWorkloadsResponse.Builder addWorkloads(int index, Workload value)
List of Workloads under a given parent.
repeated .google.cloud.assuredworkloads.v1.Workload workloads = 1;
Parameters
Returns
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.v1.Workload workloads = 1;
Parameters
Returns
addWorkloadsBuilder()
public Workload.Builder addWorkloadsBuilder()
List of Workloads under a given parent.
repeated .google.cloud.assuredworkloads.v1.Workload workloads = 1;
Returns
addWorkloadsBuilder(int index)
public Workload.Builder addWorkloadsBuilder(int index)
List of Workloads under a given parent.
repeated .google.cloud.assuredworkloads.v1.Workload workloads = 1;
Parameter
Returns
build()
public ListWorkloadsResponse build()
Returns
buildPartial()
public ListWorkloadsResponse buildPartial()
Returns
clear()
public ListWorkloadsResponse.Builder clear()
Returns
Overrides
clearField(Descriptors.FieldDescriptor field)
public ListWorkloadsResponse.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
Overrides
clearNextPageToken()
public ListWorkloadsResponse.Builder clearNextPageToken()
The next page token. Return empty if reached the last page.
string next_page_token = 2;
Returns
clearOneof(Descriptors.OneofDescriptor oneof)
public ListWorkloadsResponse.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
Overrides
clearWorkloads()
public ListWorkloadsResponse.Builder clearWorkloads()
List of Workloads under a given parent.
repeated .google.cloud.assuredworkloads.v1.Workload workloads = 1;
Returns
clone()
public ListWorkloadsResponse.Builder clone()
Returns
Overrides
getDefaultInstanceForType()
public ListWorkloadsResponse getDefaultInstanceForType()
Returns
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns
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.v1.Workload workloads = 1;
Parameter
Returns
getWorkloadsBuilder(int index)
public Workload.Builder getWorkloadsBuilder(int index)
List of Workloads under a given parent.
repeated .google.cloud.assuredworkloads.v1.Workload workloads = 1;
Parameter
Returns
getWorkloadsBuilderList()
public List<Workload.Builder> getWorkloadsBuilderList()
List of Workloads under a given parent.
repeated .google.cloud.assuredworkloads.v1.Workload workloads = 1;
Returns
getWorkloadsCount()
public int getWorkloadsCount()
List of Workloads under a given parent.
repeated .google.cloud.assuredworkloads.v1.Workload workloads = 1;
Returns
getWorkloadsList()
public List<Workload> getWorkloadsList()
List of Workloads under a given parent.
repeated .google.cloud.assuredworkloads.v1.Workload workloads = 1;
Returns
getWorkloadsOrBuilder(int index)
public WorkloadOrBuilder getWorkloadsOrBuilder(int index)
List of Workloads under a given parent.
repeated .google.cloud.assuredworkloads.v1.Workload workloads = 1;
Parameter
Returns
getWorkloadsOrBuilderList()
public List<? extends WorkloadOrBuilder> getWorkloadsOrBuilderList()
List of Workloads under a given parent.
repeated .google.cloud.assuredworkloads.v1.Workload workloads = 1;
Returns
Type | Description |
List<? extends com.google.cloud.assuredworkloads.v1.WorkloadOrBuilder> | |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
mergeFrom(ListWorkloadsResponse other)
public ListWorkloadsResponse.Builder mergeFrom(ListWorkloadsResponse other)
Parameter
Returns
public ListWorkloadsResponse.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public ListWorkloadsResponse.Builder mergeFrom(Message other)
Parameter
Returns
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final ListWorkloadsResponse.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides
removeWorkloads(int index)
public ListWorkloadsResponse.Builder removeWorkloads(int index)
List of Workloads under a given parent.
repeated .google.cloud.assuredworkloads.v1.Workload workloads = 1;
Parameter
Returns
setField(Descriptors.FieldDescriptor field, Object value)
public ListWorkloadsResponse.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
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
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
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public ListWorkloadsResponse.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final ListWorkloadsResponse.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
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.v1.Workload workloads = 1;
Parameters
Returns
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.v1.Workload workloads = 1;
Parameters
Returns