Class ListDiscoveredWorkloadsResponse.Builder (0.4.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
TypeDescription
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
NameDescription
valuesIterable<? extends com.google.cloud.apphub.v1.DiscoveredWorkload>
Returns
TypeDescription
ListDiscoveredWorkloadsResponse.Builder

addAllUnreachable(Iterable<String> values)

public ListDiscoveredWorkloadsResponse.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
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
NameDescription
valueDiscoveredWorkload
Returns
TypeDescription
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
NameDescription
builderForValueDiscoveredWorkload.Builder
Returns
TypeDescription
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
NameDescription
indexint
valueDiscoveredWorkload
Returns
TypeDescription
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
NameDescription
indexint
builderForValueDiscoveredWorkload.Builder
Returns
TypeDescription
ListDiscoveredWorkloadsResponse.Builder

addDiscoveredWorkloadsBuilder()

public DiscoveredWorkload.Builder addDiscoveredWorkloadsBuilder()

List of Discovered Workloads.

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

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

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

addUnreachable(String value)

public ListDiscoveredWorkloadsResponse.Builder addUnreachable(String value)

Locations that could not be reached.

repeated string unreachable = 3;

Parameter
NameDescription
valueString

The unreachable to add.

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

The bytes of the unreachable to add.

Returns
TypeDescription
ListDiscoveredWorkloadsResponse.Builder

This builder for chaining.

build()

public ListDiscoveredWorkloadsResponse build()
Returns
TypeDescription
ListDiscoveredWorkloadsResponse

buildPartial()

public ListDiscoveredWorkloadsResponse buildPartial()
Returns
TypeDescription
ListDiscoveredWorkloadsResponse

clear()

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

clearDiscoveredWorkloads()

public ListDiscoveredWorkloadsResponse.Builder clearDiscoveredWorkloads()

List of Discovered Workloads.

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

Returns
TypeDescription
ListDiscoveredWorkloadsResponse.Builder

clearField(Descriptors.FieldDescriptor field)

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

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearUnreachable()

public ListDiscoveredWorkloadsResponse.Builder clearUnreachable()

Locations that could not be reached.

repeated string unreachable = 3;

Returns
TypeDescription
ListDiscoveredWorkloadsResponse.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public ListDiscoveredWorkloadsResponse getDefaultInstanceForType()
Returns
TypeDescription
ListDiscoveredWorkloadsResponse

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getDiscoveredWorkloads(int index)

public DiscoveredWorkload getDiscoveredWorkloads(int index)

List of Discovered Workloads.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
DiscoveredWorkload

getDiscoveredWorkloadsBuilder(int index)

public DiscoveredWorkload.Builder getDiscoveredWorkloadsBuilder(int index)

List of Discovered Workloads.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
DiscoveredWorkload.Builder

getDiscoveredWorkloadsBuilderList()

public List<DiscoveredWorkload.Builder> getDiscoveredWorkloadsBuilderList()

List of Discovered Workloads.

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

Returns
TypeDescription
List<Builder>

getDiscoveredWorkloadsCount()

public int getDiscoveredWorkloadsCount()

List of Discovered Workloads.

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

Returns
TypeDescription
int

getDiscoveredWorkloadsList()

public List<DiscoveredWorkload> getDiscoveredWorkloadsList()

List of Discovered Workloads.

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

Returns
TypeDescription
List<DiscoveredWorkload>

getDiscoveredWorkloadsOrBuilder(int index)

public DiscoveredWorkloadOrBuilder getDiscoveredWorkloadsOrBuilder(int index)

List of Discovered Workloads.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
DiscoveredWorkloadOrBuilder

getDiscoveredWorkloadsOrBuilderList()

public List<? extends DiscoveredWorkloadOrBuilder> getDiscoveredWorkloadsOrBuilderList()

List of Discovered Workloads.

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

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

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(ListDiscoveredWorkloadsResponse other)

public ListDiscoveredWorkloadsResponse.Builder mergeFrom(ListDiscoveredWorkloadsResponse other)
Parameter
NameDescription
otherListDiscoveredWorkloadsResponse
Returns
TypeDescription
ListDiscoveredWorkloadsResponse.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ListDiscoveredWorkloadsResponse.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
NameDescription
indexint
valueDiscoveredWorkload
Returns
TypeDescription
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
NameDescription
indexint
builderForValueDiscoveredWorkload.Builder
Returns
TypeDescription
ListDiscoveredWorkloadsResponse.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public ListDiscoveredWorkloadsResponse.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueString

The nextPageToken to set.

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

The bytes for nextPageToken to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
ListDiscoveredWorkloadsResponse.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final ListDiscoveredWorkloadsResponse.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
indexint

The index to set the value at.

valueString

The unreachable to set.

Returns
TypeDescription
ListDiscoveredWorkloadsResponse.Builder

This builder for chaining.