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

addAllUnreachable(Iterable<String> values)

public ListDiscoveredServicesResponse.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
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
NameDescription
valueDiscoveredService
Returns
TypeDescription
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
NameDescription
builderForValueDiscoveredService.Builder
Returns
TypeDescription
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
NameDescription
indexint
valueDiscoveredService
Returns
TypeDescription
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
NameDescription
indexint
builderForValueDiscoveredService.Builder
Returns
TypeDescription
ListDiscoveredServicesResponse.Builder

addDiscoveredServicesBuilder()

public DiscoveredService.Builder addDiscoveredServicesBuilder()

List of Discovered Services.

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

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

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

addUnreachable(String value)

public ListDiscoveredServicesResponse.Builder addUnreachable(String value)

Locations that could not be reached.

repeated string unreachable = 3;

Parameter
NameDescription
valueString

The unreachable to add.

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

The bytes of the unreachable to add.

Returns
TypeDescription
ListDiscoveredServicesResponse.Builder

This builder for chaining.

build()

public ListDiscoveredServicesResponse build()
Returns
TypeDescription
ListDiscoveredServicesResponse

buildPartial()

public ListDiscoveredServicesResponse buildPartial()
Returns
TypeDescription
ListDiscoveredServicesResponse

clear()

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

clearDiscoveredServices()

public ListDiscoveredServicesResponse.Builder clearDiscoveredServices()

List of Discovered Services.

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

Returns
TypeDescription
ListDiscoveredServicesResponse.Builder

clearField(Descriptors.FieldDescriptor field)

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

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearUnreachable()

public ListDiscoveredServicesResponse.Builder clearUnreachable()

Locations that could not be reached.

repeated string unreachable = 3;

Returns
TypeDescription
ListDiscoveredServicesResponse.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public ListDiscoveredServicesResponse getDefaultInstanceForType()
Returns
TypeDescription
ListDiscoveredServicesResponse

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getDiscoveredServices(int index)

public DiscoveredService getDiscoveredServices(int index)

List of Discovered Services.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
DiscoveredService

getDiscoveredServicesBuilder(int index)

public DiscoveredService.Builder getDiscoveredServicesBuilder(int index)

List of Discovered Services.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
DiscoveredService.Builder

getDiscoveredServicesBuilderList()

public List<DiscoveredService.Builder> getDiscoveredServicesBuilderList()

List of Discovered Services.

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

Returns
TypeDescription
List<Builder>

getDiscoveredServicesCount()

public int getDiscoveredServicesCount()

List of Discovered Services.

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

Returns
TypeDescription
int

getDiscoveredServicesList()

public List<DiscoveredService> getDiscoveredServicesList()

List of Discovered Services.

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

Returns
TypeDescription
List<DiscoveredService>

getDiscoveredServicesOrBuilder(int index)

public DiscoveredServiceOrBuilder getDiscoveredServicesOrBuilder(int index)

List of Discovered Services.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
DiscoveredServiceOrBuilder

getDiscoveredServicesOrBuilderList()

public List<? extends DiscoveredServiceOrBuilder> getDiscoveredServicesOrBuilderList()

List of Discovered Services.

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

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

public ListDiscoveredServicesResponse.Builder mergeFrom(ListDiscoveredServicesResponse other)
Parameter
NameDescription
otherListDiscoveredServicesResponse
Returns
TypeDescription
ListDiscoveredServicesResponse.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ListDiscoveredServicesResponse.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
NameDescription
indexint
valueDiscoveredService
Returns
TypeDescription
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
NameDescription
indexint
builderForValueDiscoveredService.Builder
Returns
TypeDescription
ListDiscoveredServicesResponse.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

The nextPageToken to set.

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

The bytes for nextPageToken to set.

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

setUnknownFields(UnknownFieldSet unknownFields)

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

The index to set the value at.

valueString

The unreachable to set.

Returns
TypeDescription
ListDiscoveredServicesResponse.Builder

This builder for chaining.