Class ListDiscoveredServicesResponse.Builder (0.19.0)

public static final class ListDiscoveredServicesResponse.Builder extends GeneratedMessageV3.Builder<ListDiscoveredServicesResponse.Builder> implements ListDiscoveredServicesResponseOrBuilder

Response for ListDiscoveredServices.

Protobuf type google.cloud.apphub.v1.ListDiscoveredServicesResponse

Static Methods

getDescriptor()

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

Methods

addAllDiscoveredServices(Iterable<? extends DiscoveredService> values)

public ListDiscoveredServicesResponse.Builder addAllDiscoveredServices(Iterable<? extends DiscoveredService> values)

List of Discovered Services.

repeated .google.cloud.apphub.v1.DiscoveredService discovered_services = 1;

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

addAllUnreachable(Iterable<String> values)

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

This builder for chaining.

addDiscoveredServices(DiscoveredService value)

public ListDiscoveredServicesResponse.Builder addDiscoveredServices(DiscoveredService value)

List of Discovered Services.

repeated .google.cloud.apphub.v1.DiscoveredService discovered_services = 1;

Parameter
Name Description
value DiscoveredService
Returns
Type Description
ListDiscoveredServicesResponse.Builder

addDiscoveredServices(DiscoveredService.Builder builderForValue)

public ListDiscoveredServicesResponse.Builder addDiscoveredServices(DiscoveredService.Builder builderForValue)

List of Discovered Services.

repeated .google.cloud.apphub.v1.DiscoveredService discovered_services = 1;

Parameter
Name Description
builderForValue DiscoveredService.Builder
Returns
Type Description
ListDiscoveredServicesResponse.Builder

addDiscoveredServices(int index, DiscoveredService value)

public ListDiscoveredServicesResponse.Builder addDiscoveredServices(int index, DiscoveredService value)

List of Discovered Services.

repeated .google.cloud.apphub.v1.DiscoveredService discovered_services = 1;

Parameters
Name Description
index int
value DiscoveredService
Returns
Type Description
ListDiscoveredServicesResponse.Builder

addDiscoveredServices(int index, DiscoveredService.Builder builderForValue)

public ListDiscoveredServicesResponse.Builder addDiscoveredServices(int index, DiscoveredService.Builder builderForValue)

List of Discovered Services.

repeated .google.cloud.apphub.v1.DiscoveredService discovered_services = 1;

Parameters
Name Description
index int
builderForValue DiscoveredService.Builder
Returns
Type Description
ListDiscoveredServicesResponse.Builder

addDiscoveredServicesBuilder()

public DiscoveredService.Builder addDiscoveredServicesBuilder()

List of Discovered Services.

repeated .google.cloud.apphub.v1.DiscoveredService discovered_services = 1;

Returns
Type Description
DiscoveredService.Builder

addDiscoveredServicesBuilder(int index)

public DiscoveredService.Builder addDiscoveredServicesBuilder(int index)

List of Discovered Services.

repeated .google.cloud.apphub.v1.DiscoveredService discovered_services = 1;

Parameter
Name Description
index int
Returns
Type Description
DiscoveredService.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

addUnreachable(String value)

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

This builder for chaining.

addUnreachableBytes(ByteString value)

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

This builder for chaining.

build()

public ListDiscoveredServicesResponse build()
Returns
Type Description
ListDiscoveredServicesResponse

buildPartial()

public ListDiscoveredServicesResponse buildPartial()
Returns
Type Description
ListDiscoveredServicesResponse

clear()

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

clearDiscoveredServices()

public ListDiscoveredServicesResponse.Builder clearDiscoveredServices()

List of Discovered Services.

repeated .google.cloud.apphub.v1.DiscoveredService discovered_services = 1;

Returns
Type Description
ListDiscoveredServicesResponse.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearNextPageToken()

public ListDiscoveredServicesResponse.Builder clearNextPageToken()

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

string next_page_token = 2;

Returns
Type Description
ListDiscoveredServicesResponse.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearUnreachable()

public ListDiscoveredServicesResponse.Builder clearUnreachable()

Locations that could not be reached.

repeated string unreachable = 3;

Returns
Type Description
ListDiscoveredServicesResponse.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public ListDiscoveredServicesResponse getDefaultInstanceForType()
Returns
Type Description
ListDiscoveredServicesResponse

getDescriptorForType()

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

getDiscoveredServices(int index)

public DiscoveredService getDiscoveredServices(int index)

List of Discovered Services.

repeated .google.cloud.apphub.v1.DiscoveredService discovered_services = 1;

Parameter
Name Description
index int
Returns
Type Description
DiscoveredService

getDiscoveredServicesBuilder(int index)

public DiscoveredService.Builder getDiscoveredServicesBuilder(int index)

List of Discovered Services.

repeated .google.cloud.apphub.v1.DiscoveredService discovered_services = 1;

Parameter
Name Description
index int
Returns
Type Description
DiscoveredService.Builder

getDiscoveredServicesBuilderList()

public List<DiscoveredService.Builder> getDiscoveredServicesBuilderList()

List of Discovered Services.

repeated .google.cloud.apphub.v1.DiscoveredService discovered_services = 1;

Returns
Type Description
List<Builder>

getDiscoveredServicesCount()

public int getDiscoveredServicesCount()

List of Discovered Services.

repeated .google.cloud.apphub.v1.DiscoveredService discovered_services = 1;

Returns
Type Description
int

getDiscoveredServicesList()

public List<DiscoveredService> getDiscoveredServicesList()

List of Discovered Services.

repeated .google.cloud.apphub.v1.DiscoveredService discovered_services = 1;

Returns
Type Description
List<DiscoveredService>

getDiscoveredServicesOrBuilder(int index)

public DiscoveredServiceOrBuilder getDiscoveredServicesOrBuilder(int index)

List of Discovered Services.

repeated .google.cloud.apphub.v1.DiscoveredService discovered_services = 1;

Parameter
Name Description
index int
Returns
Type Description
DiscoveredServiceOrBuilder

getDiscoveredServicesOrBuilderList()

public List<? extends DiscoveredServiceOrBuilder> getDiscoveredServicesOrBuilderList()

List of Discovered Services.

repeated .google.cloud.apphub.v1.DiscoveredService discovered_services = 1;

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

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(ListDiscoveredServicesResponse other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removeDiscoveredServices(int index)

public ListDiscoveredServicesResponse.Builder removeDiscoveredServices(int index)

List of Discovered Services.

repeated .google.cloud.apphub.v1.DiscoveredService discovered_services = 1;

Parameter
Name Description
index int
Returns
Type Description
ListDiscoveredServicesResponse.Builder

setDiscoveredServices(int index, DiscoveredService value)

public ListDiscoveredServicesResponse.Builder setDiscoveredServices(int index, DiscoveredService value)

List of Discovered Services.

repeated .google.cloud.apphub.v1.DiscoveredService discovered_services = 1;

Parameters
Name Description
index int
value DiscoveredService
Returns
Type Description
ListDiscoveredServicesResponse.Builder

setDiscoveredServices(int index, DiscoveredService.Builder builderForValue)

public ListDiscoveredServicesResponse.Builder setDiscoveredServices(int index, DiscoveredService.Builder builderForValue)

List of Discovered Services.

repeated .google.cloud.apphub.v1.DiscoveredService discovered_services = 1;

Parameters
Name Description
index int
builderForValue DiscoveredService.Builder
Returns
Type Description
ListDiscoveredServicesResponse.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setNextPageToken(String value)

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

This builder for chaining.

setNextPageTokenBytes(ByteString value)

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

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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

setUnreachable(int index, String value)

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

This builder for chaining.