Class ListHubsResponse.Builder (1.31.0)

public static final class ListHubsResponse.Builder extends GeneratedMessageV3.Builder<ListHubsResponse.Builder> implements ListHubsResponseOrBuilder

Response for HubService.ListHubs method.

Protobuf type google.cloud.networkconnectivity.v1.ListHubsResponse

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addAllHubs(Iterable<? extends Hub> values)

public ListHubsResponse.Builder addAllHubs(Iterable<? extends Hub> values)

The requested hubs.

repeated .google.cloud.networkconnectivity.v1.Hub hubs = 1;

Parameter
NameDescription
valuesIterable<? extends com.google.cloud.networkconnectivity.v1.Hub>
Returns
TypeDescription
ListHubsResponse.Builder

addAllUnreachable(Iterable<String> values)

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

This builder for chaining.

addHubs(Hub value)

public ListHubsResponse.Builder addHubs(Hub value)

The requested hubs.

repeated .google.cloud.networkconnectivity.v1.Hub hubs = 1;

Parameter
NameDescription
valueHub
Returns
TypeDescription
ListHubsResponse.Builder

addHubs(Hub.Builder builderForValue)

public ListHubsResponse.Builder addHubs(Hub.Builder builderForValue)

The requested hubs.

repeated .google.cloud.networkconnectivity.v1.Hub hubs = 1;

Parameter
NameDescription
builderForValueHub.Builder
Returns
TypeDescription
ListHubsResponse.Builder

addHubs(int index, Hub value)

public ListHubsResponse.Builder addHubs(int index, Hub value)

The requested hubs.

repeated .google.cloud.networkconnectivity.v1.Hub hubs = 1;

Parameters
NameDescription
indexint
valueHub
Returns
TypeDescription
ListHubsResponse.Builder

addHubs(int index, Hub.Builder builderForValue)

public ListHubsResponse.Builder addHubs(int index, Hub.Builder builderForValue)

The requested hubs.

repeated .google.cloud.networkconnectivity.v1.Hub hubs = 1;

Parameters
NameDescription
indexint
builderForValueHub.Builder
Returns
TypeDescription
ListHubsResponse.Builder

addHubsBuilder()

public Hub.Builder addHubsBuilder()

The requested hubs.

repeated .google.cloud.networkconnectivity.v1.Hub hubs = 1;

Returns
TypeDescription
Hub.Builder

addHubsBuilder(int index)

public Hub.Builder addHubsBuilder(int index)

The requested hubs.

repeated .google.cloud.networkconnectivity.v1.Hub hubs = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
Hub.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

addUnreachable(String value)

public ListHubsResponse.Builder addUnreachable(String value)

Locations that could not be reached.

repeated string unreachable = 3;

Parameter
NameDescription
valueString

The unreachable to add.

Returns
TypeDescription
ListHubsResponse.Builder

This builder for chaining.

addUnreachableBytes(ByteString value)

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

This builder for chaining.

build()

public ListHubsResponse build()
Returns
TypeDescription
ListHubsResponse

buildPartial()

public ListHubsResponse buildPartial()
Returns
TypeDescription
ListHubsResponse

clear()

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

clearField(Descriptors.FieldDescriptor field)

public ListHubsResponse.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
ListHubsResponse.Builder
Overrides

clearHubs()

public ListHubsResponse.Builder clearHubs()

The requested hubs.

repeated .google.cloud.networkconnectivity.v1.Hub hubs = 1;

Returns
TypeDescription
ListHubsResponse.Builder

clearNextPageToken()

public ListHubsResponse.Builder clearNextPageToken()

The token for the next page of the response. To see more results, use this value as the page_token for your next request. If this value is empty, there are no more results.

string next_page_token = 2;

Returns
TypeDescription
ListHubsResponse.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearUnreachable()

public ListHubsResponse.Builder clearUnreachable()

Locations that could not be reached.

repeated string unreachable = 3;

Returns
TypeDescription
ListHubsResponse.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public ListHubsResponse getDefaultInstanceForType()
Returns
TypeDescription
ListHubsResponse

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getHubs(int index)

public Hub getHubs(int index)

The requested hubs.

repeated .google.cloud.networkconnectivity.v1.Hub hubs = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
Hub

getHubsBuilder(int index)

public Hub.Builder getHubsBuilder(int index)

The requested hubs.

repeated .google.cloud.networkconnectivity.v1.Hub hubs = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
Hub.Builder

getHubsBuilderList()

public List<Hub.Builder> getHubsBuilderList()

The requested hubs.

repeated .google.cloud.networkconnectivity.v1.Hub hubs = 1;

Returns
TypeDescription
List<Builder>

getHubsCount()

public int getHubsCount()

The requested hubs.

repeated .google.cloud.networkconnectivity.v1.Hub hubs = 1;

Returns
TypeDescription
int

getHubsList()

public List<Hub> getHubsList()

The requested hubs.

repeated .google.cloud.networkconnectivity.v1.Hub hubs = 1;

Returns
TypeDescription
List<Hub>

getHubsOrBuilder(int index)

public HubOrBuilder getHubsOrBuilder(int index)

The requested hubs.

repeated .google.cloud.networkconnectivity.v1.Hub hubs = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
HubOrBuilder

getHubsOrBuilderList()

public List<? extends HubOrBuilder> getHubsOrBuilderList()

The requested hubs.

repeated .google.cloud.networkconnectivity.v1.Hub hubs = 1;

Returns
TypeDescription
List<? extends com.google.cloud.networkconnectivity.v1.HubOrBuilder>

getNextPageToken()

public String getNextPageToken()

The token for the next page of the response. To see more results, use this value as the page_token for your next request. If this value is empty, there are no more results.

string next_page_token = 2;

Returns
TypeDescription
String

The nextPageToken.

getNextPageTokenBytes()

public ByteString getNextPageTokenBytes()

The token for the next page of the response. To see more results, use this value as the page_token for your next request. If this value is empty, there are no more results.

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

public ListHubsResponse.Builder mergeFrom(ListHubsResponse other)
Parameter
NameDescription
otherListHubsResponse
Returns
TypeDescription
ListHubsResponse.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ListHubsResponse.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
ListHubsResponse.Builder
Overrides

removeHubs(int index)

public ListHubsResponse.Builder removeHubs(int index)

The requested hubs.

repeated .google.cloud.networkconnectivity.v1.Hub hubs = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
ListHubsResponse.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setHubs(int index, Hub value)

public ListHubsResponse.Builder setHubs(int index, Hub value)

The requested hubs.

repeated .google.cloud.networkconnectivity.v1.Hub hubs = 1;

Parameters
NameDescription
indexint
valueHub
Returns
TypeDescription
ListHubsResponse.Builder

setHubs(int index, Hub.Builder builderForValue)

public ListHubsResponse.Builder setHubs(int index, Hub.Builder builderForValue)

The requested hubs.

repeated .google.cloud.networkconnectivity.v1.Hub hubs = 1;

Parameters
NameDescription
indexint
builderForValueHub.Builder
Returns
TypeDescription
ListHubsResponse.Builder

setNextPageToken(String value)

public ListHubsResponse.Builder setNextPageToken(String value)

The token for the next page of the response. To see more results, use this value as the page_token for your next request. If this value is empty, there are no more results.

string next_page_token = 2;

Parameter
NameDescription
valueString

The nextPageToken to set.

Returns
TypeDescription
ListHubsResponse.Builder

This builder for chaining.

setNextPageTokenBytes(ByteString value)

public ListHubsResponse.Builder setNextPageTokenBytes(ByteString value)

The token for the next page of the response. To see more results, use this value as the page_token for your next request. If this value is empty, there are no more results.

string next_page_token = 2;

Parameter
NameDescription
valueByteString

The bytes for nextPageToken to set.

Returns
TypeDescription
ListHubsResponse.Builder

This builder for chaining.

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

public ListHubsResponse.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
ListHubsResponse.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final ListHubsResponse.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
ListHubsResponse.Builder
Overrides

setUnreachable(int index, String value)

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

This builder for chaining.