Class ListDiscoveredWorkloadsResponse.Builder (0.19.0)

public static final class ListDiscoveredWorkloadsResponse.Builder extends GeneratedMessageV3.Builder<ListDiscoveredWorkloadsResponse.Builder> implements ListDiscoveredWorkloadsResponseOrBuilder

Response for ListDiscoveredWorkloads.

Protobuf type google.cloud.apphub.v1.ListDiscoveredWorkloadsResponse

Static Methods

getDescriptor()

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

Methods

addAllDiscoveredWorkloads(Iterable<? extends DiscoveredWorkload> values)

public ListDiscoveredWorkloadsResponse.Builder addAllDiscoveredWorkloads(Iterable<? extends DiscoveredWorkload> values)

List of Discovered Workloads.

repeated .google.cloud.apphub.v1.DiscoveredWorkload discovered_workloads = 1;

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

addAllUnreachable(Iterable<String> values)

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

This builder for chaining.

addDiscoveredWorkloads(DiscoveredWorkload value)

public ListDiscoveredWorkloadsResponse.Builder addDiscoveredWorkloads(DiscoveredWorkload value)

List of Discovered Workloads.

repeated .google.cloud.apphub.v1.DiscoveredWorkload discovered_workloads = 1;

Parameter
Name Description
value DiscoveredWorkload
Returns
Type Description
ListDiscoveredWorkloadsResponse.Builder

addDiscoveredWorkloads(DiscoveredWorkload.Builder builderForValue)

public ListDiscoveredWorkloadsResponse.Builder addDiscoveredWorkloads(DiscoveredWorkload.Builder builderForValue)

List of Discovered Workloads.

repeated .google.cloud.apphub.v1.DiscoveredWorkload discovered_workloads = 1;

Parameter
Name Description
builderForValue DiscoveredWorkload.Builder
Returns
Type Description
ListDiscoveredWorkloadsResponse.Builder

addDiscoveredWorkloads(int index, DiscoveredWorkload value)

public ListDiscoveredWorkloadsResponse.Builder addDiscoveredWorkloads(int index, DiscoveredWorkload value)

List of Discovered Workloads.

repeated .google.cloud.apphub.v1.DiscoveredWorkload discovered_workloads = 1;

Parameters
Name Description
index int
value DiscoveredWorkload
Returns
Type Description
ListDiscoveredWorkloadsResponse.Builder

addDiscoveredWorkloads(int index, DiscoveredWorkload.Builder builderForValue)

public ListDiscoveredWorkloadsResponse.Builder addDiscoveredWorkloads(int index, DiscoveredWorkload.Builder builderForValue)

List of Discovered Workloads.

repeated .google.cloud.apphub.v1.DiscoveredWorkload discovered_workloads = 1;

Parameters
Name Description
index int
builderForValue DiscoveredWorkload.Builder
Returns
Type Description
ListDiscoveredWorkloadsResponse.Builder

addDiscoveredWorkloadsBuilder()

public DiscoveredWorkload.Builder addDiscoveredWorkloadsBuilder()

List of Discovered Workloads.

repeated .google.cloud.apphub.v1.DiscoveredWorkload discovered_workloads = 1;

Returns
Type Description
DiscoveredWorkload.Builder

addDiscoveredWorkloadsBuilder(int index)

public DiscoveredWorkload.Builder addDiscoveredWorkloadsBuilder(int index)

List of Discovered Workloads.

repeated .google.cloud.apphub.v1.DiscoveredWorkload discovered_workloads = 1;

Parameter
Name Description
index int
Returns
Type Description
DiscoveredWorkload.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public ListDiscoveredWorkloadsResponse.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
ListDiscoveredWorkloadsResponse.Builder
Overrides

addUnreachable(String value)

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

This builder for chaining.

addUnreachableBytes(ByteString value)

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

This builder for chaining.

build()

public ListDiscoveredWorkloadsResponse build()
Returns
Type Description
ListDiscoveredWorkloadsResponse

buildPartial()

public ListDiscoveredWorkloadsResponse buildPartial()
Returns
Type Description
ListDiscoveredWorkloadsResponse

clear()

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

clearDiscoveredWorkloads()

public ListDiscoveredWorkloadsResponse.Builder clearDiscoveredWorkloads()

List of Discovered Workloads.

repeated .google.cloud.apphub.v1.DiscoveredWorkload discovered_workloads = 1;

Returns
Type Description
ListDiscoveredWorkloadsResponse.Builder

clearField(Descriptors.FieldDescriptor field)

public ListDiscoveredWorkloadsResponse.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
ListDiscoveredWorkloadsResponse.Builder
Overrides

clearNextPageToken()

public ListDiscoveredWorkloadsResponse.Builder clearNextPageToken()

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

string next_page_token = 2;

Returns
Type Description
ListDiscoveredWorkloadsResponse.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearUnreachable()

public ListDiscoveredWorkloadsResponse.Builder clearUnreachable()

Locations that could not be reached.

repeated string unreachable = 3;

Returns
Type Description
ListDiscoveredWorkloadsResponse.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public ListDiscoveredWorkloadsResponse getDefaultInstanceForType()
Returns
Type Description
ListDiscoveredWorkloadsResponse

getDescriptorForType()

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

getDiscoveredWorkloads(int index)

public DiscoveredWorkload getDiscoveredWorkloads(int index)

List of Discovered Workloads.

repeated .google.cloud.apphub.v1.DiscoveredWorkload discovered_workloads = 1;

Parameter
Name Description
index int
Returns
Type Description
DiscoveredWorkload

getDiscoveredWorkloadsBuilder(int index)

public DiscoveredWorkload.Builder getDiscoveredWorkloadsBuilder(int index)

List of Discovered Workloads.

repeated .google.cloud.apphub.v1.DiscoveredWorkload discovered_workloads = 1;

Parameter
Name Description
index int
Returns
Type Description
DiscoveredWorkload.Builder

getDiscoveredWorkloadsBuilderList()

public List<DiscoveredWorkload.Builder> getDiscoveredWorkloadsBuilderList()

List of Discovered Workloads.

repeated .google.cloud.apphub.v1.DiscoveredWorkload discovered_workloads = 1;

Returns
Type Description
List<Builder>

getDiscoveredWorkloadsCount()

public int getDiscoveredWorkloadsCount()

List of Discovered Workloads.

repeated .google.cloud.apphub.v1.DiscoveredWorkload discovered_workloads = 1;

Returns
Type Description
int

getDiscoveredWorkloadsList()

public List<DiscoveredWorkload> getDiscoveredWorkloadsList()

List of Discovered Workloads.

repeated .google.cloud.apphub.v1.DiscoveredWorkload discovered_workloads = 1;

Returns
Type Description
List<DiscoveredWorkload>

getDiscoveredWorkloadsOrBuilder(int index)

public DiscoveredWorkloadOrBuilder getDiscoveredWorkloadsOrBuilder(int index)

List of Discovered Workloads.

repeated .google.cloud.apphub.v1.DiscoveredWorkload discovered_workloads = 1;

Parameter
Name Description
index int
Returns
Type Description
DiscoveredWorkloadOrBuilder

getDiscoveredWorkloadsOrBuilderList()

public List<? extends DiscoveredWorkloadOrBuilder> getDiscoveredWorkloadsOrBuilderList()

List of Discovered Workloads.

repeated .google.cloud.apphub.v1.DiscoveredWorkload discovered_workloads = 1;

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

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.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(ListDiscoveredWorkloadsResponse other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ListDiscoveredWorkloadsResponse.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
ListDiscoveredWorkloadsResponse.Builder
Overrides

removeDiscoveredWorkloads(int index)

public ListDiscoveredWorkloadsResponse.Builder removeDiscoveredWorkloads(int index)

List of Discovered Workloads.

repeated .google.cloud.apphub.v1.DiscoveredWorkload discovered_workloads = 1;

Parameter
Name Description
index int
Returns
Type Description
ListDiscoveredWorkloadsResponse.Builder

setDiscoveredWorkloads(int index, DiscoveredWorkload value)

public ListDiscoveredWorkloadsResponse.Builder setDiscoveredWorkloads(int index, DiscoveredWorkload value)

List of Discovered Workloads.

repeated .google.cloud.apphub.v1.DiscoveredWorkload discovered_workloads = 1;

Parameters
Name Description
index int
value DiscoveredWorkload
Returns
Type Description
ListDiscoveredWorkloadsResponse.Builder

setDiscoveredWorkloads(int index, DiscoveredWorkload.Builder builderForValue)

public ListDiscoveredWorkloadsResponse.Builder setDiscoveredWorkloads(int index, DiscoveredWorkload.Builder builderForValue)

List of Discovered Workloads.

repeated .google.cloud.apphub.v1.DiscoveredWorkload discovered_workloads = 1;

Parameters
Name Description
index int
builderForValue DiscoveredWorkload.Builder
Returns
Type Description
ListDiscoveredWorkloadsResponse.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public ListDiscoveredWorkloadsResponse.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
ListDiscoveredWorkloadsResponse.Builder
Overrides

setNextPageToken(String value)

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

This builder for chaining.

setNextPageTokenBytes(ByteString value)

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

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

public final ListDiscoveredWorkloadsResponse.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
ListDiscoveredWorkloadsResponse.Builder
Overrides

setUnreachable(int index, String value)

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

This builder for chaining.