Class ListGroupsResponse.Builder (1.42.0)

public static final class ListGroupsResponse.Builder extends GeneratedMessageV3.Builder<ListGroupsResponse.Builder> implements ListGroupsResponseOrBuilder

Response for HubService.ListGroups method.

Protobuf type google.cloud.networkconnectivity.v1.ListGroupsResponse

Static Methods

getDescriptor()

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

Methods

addAllGroups(Iterable<? extends Group> values)

public ListGroupsResponse.Builder addAllGroups(Iterable<? extends Group> values)

The requested groups.

repeated .google.cloud.networkconnectivity.v1.Group groups = 1;

Parameter
Name Description
values Iterable<? extends com.google.cloud.networkconnectivity.v1.Group>
Returns
Type Description
ListGroupsResponse.Builder

addAllUnreachable(Iterable<String> values)

public ListGroupsResponse.Builder addAllUnreachable(Iterable<String> values)

Hubs that could not be reached.

repeated string unreachable = 3;

Parameter
Name Description
values Iterable<String>

The unreachable to add.

Returns
Type Description
ListGroupsResponse.Builder

This builder for chaining.

addGroups(Group value)

public ListGroupsResponse.Builder addGroups(Group value)

The requested groups.

repeated .google.cloud.networkconnectivity.v1.Group groups = 1;

Parameter
Name Description
value Group
Returns
Type Description
ListGroupsResponse.Builder

addGroups(Group.Builder builderForValue)

public ListGroupsResponse.Builder addGroups(Group.Builder builderForValue)

The requested groups.

repeated .google.cloud.networkconnectivity.v1.Group groups = 1;

Parameter
Name Description
builderForValue Group.Builder
Returns
Type Description
ListGroupsResponse.Builder

addGroups(int index, Group value)

public ListGroupsResponse.Builder addGroups(int index, Group value)

The requested groups.

repeated .google.cloud.networkconnectivity.v1.Group groups = 1;

Parameters
Name Description
index int
value Group
Returns
Type Description
ListGroupsResponse.Builder

addGroups(int index, Group.Builder builderForValue)

public ListGroupsResponse.Builder addGroups(int index, Group.Builder builderForValue)

The requested groups.

repeated .google.cloud.networkconnectivity.v1.Group groups = 1;

Parameters
Name Description
index int
builderForValue Group.Builder
Returns
Type Description
ListGroupsResponse.Builder

addGroupsBuilder()

public Group.Builder addGroupsBuilder()

The requested groups.

repeated .google.cloud.networkconnectivity.v1.Group groups = 1;

Returns
Type Description
Group.Builder

addGroupsBuilder(int index)

public Group.Builder addGroupsBuilder(int index)

The requested groups.

repeated .google.cloud.networkconnectivity.v1.Group groups = 1;

Parameter
Name Description
index int
Returns
Type Description
Group.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

addUnreachable(String value)

public ListGroupsResponse.Builder addUnreachable(String value)

Hubs that could not be reached.

repeated string unreachable = 3;

Parameter
Name Description
value String

The unreachable to add.

Returns
Type Description
ListGroupsResponse.Builder

This builder for chaining.

addUnreachableBytes(ByteString value)

public ListGroupsResponse.Builder addUnreachableBytes(ByteString value)

Hubs that could not be reached.

repeated string unreachable = 3;

Parameter
Name Description
value ByteString

The bytes of the unreachable to add.

Returns
Type Description
ListGroupsResponse.Builder

This builder for chaining.

build()

public ListGroupsResponse build()
Returns
Type Description
ListGroupsResponse

buildPartial()

public ListGroupsResponse buildPartial()
Returns
Type Description
ListGroupsResponse

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearGroups()

public ListGroupsResponse.Builder clearGroups()

The requested groups.

repeated .google.cloud.networkconnectivity.v1.Group groups = 1;

Returns
Type Description
ListGroupsResponse.Builder

clearNextPageToken()

public ListGroupsResponse.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
Type Description
ListGroupsResponse.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearUnreachable()

public ListGroupsResponse.Builder clearUnreachable()

Hubs that could not be reached.

repeated string unreachable = 3;

Returns
Type Description
ListGroupsResponse.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public ListGroupsResponse getDefaultInstanceForType()
Returns
Type Description
ListGroupsResponse

getDescriptorForType()

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

getGroups(int index)

public Group getGroups(int index)

The requested groups.

repeated .google.cloud.networkconnectivity.v1.Group groups = 1;

Parameter
Name Description
index int
Returns
Type Description
Group

getGroupsBuilder(int index)

public Group.Builder getGroupsBuilder(int index)

The requested groups.

repeated .google.cloud.networkconnectivity.v1.Group groups = 1;

Parameter
Name Description
index int
Returns
Type Description
Group.Builder

getGroupsBuilderList()

public List<Group.Builder> getGroupsBuilderList()

The requested groups.

repeated .google.cloud.networkconnectivity.v1.Group groups = 1;

Returns
Type Description
List<Builder>

getGroupsCount()

public int getGroupsCount()

The requested groups.

repeated .google.cloud.networkconnectivity.v1.Group groups = 1;

Returns
Type Description
int

getGroupsList()

public List<Group> getGroupsList()

The requested groups.

repeated .google.cloud.networkconnectivity.v1.Group groups = 1;

Returns
Type Description
List<Group>

getGroupsOrBuilder(int index)

public GroupOrBuilder getGroupsOrBuilder(int index)

The requested groups.

repeated .google.cloud.networkconnectivity.v1.Group groups = 1;

Parameter
Name Description
index int
Returns
Type Description
GroupOrBuilder

getGroupsOrBuilderList()

public List<? extends GroupOrBuilder> getGroupsOrBuilderList()

The requested groups.

repeated .google.cloud.networkconnectivity.v1.Group groups = 1;

Returns
Type Description
List<? extends com.google.cloud.networkconnectivity.v1.GroupOrBuilder>

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
Type Description
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
Type Description
ByteString

The bytes for nextPageToken.

getUnreachable(int index)

public String getUnreachable(int index)

Hubs 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)

Hubs 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()

Hubs that could not be reached.

repeated string unreachable = 3;

Returns
Type Description
int

The count of unreachable.

getUnreachableList()

public ProtocolStringList getUnreachableList()

Hubs 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(ListGroupsResponse other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removeGroups(int index)

public ListGroupsResponse.Builder removeGroups(int index)

The requested groups.

repeated .google.cloud.networkconnectivity.v1.Group groups = 1;

Parameter
Name Description
index int
Returns
Type Description
ListGroupsResponse.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setGroups(int index, Group value)

public ListGroupsResponse.Builder setGroups(int index, Group value)

The requested groups.

repeated .google.cloud.networkconnectivity.v1.Group groups = 1;

Parameters
Name Description
index int
value Group
Returns
Type Description
ListGroupsResponse.Builder

setGroups(int index, Group.Builder builderForValue)

public ListGroupsResponse.Builder setGroups(int index, Group.Builder builderForValue)

The requested groups.

repeated .google.cloud.networkconnectivity.v1.Group groups = 1;

Parameters
Name Description
index int
builderForValue Group.Builder
Returns
Type Description
ListGroupsResponse.Builder

setNextPageToken(String value)

public ListGroupsResponse.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
Name Description
value String

The nextPageToken to set.

Returns
Type Description
ListGroupsResponse.Builder

This builder for chaining.

setNextPageTokenBytes(ByteString value)

public ListGroupsResponse.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
Name Description
value ByteString

The bytes for nextPageToken to set.

Returns
Type Description
ListGroupsResponse.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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

setUnreachable(int index, String value)

public ListGroupsResponse.Builder setUnreachable(int index, String value)

Hubs 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
ListGroupsResponse.Builder

This builder for chaining.