Class ListGroupsResponse.Builder (1.16.0)

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

Response message for 'ListGroups' request.

Protobuf type google.cloud.vmmigration.v1.ListGroupsResponse

Static Methods

getDescriptor()

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

Methods

addAllGroups(Iterable<? extends Group> values)

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

Output only. The list of groups response.

repeated .google.cloud.vmmigration.v1.Group groups = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valuesIterable<? extends com.google.cloud.vmmigration.v1.Group>
Returns
TypeDescription
ListGroupsResponse.Builder

addAllUnreachable(Iterable<String> values)

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

Output only. Locations that could not be reached.

repeated string unreachable = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valuesIterable<String>

The unreachable to add.

Returns
TypeDescription
ListGroupsResponse.Builder

This builder for chaining.

addGroups(Group value)

public ListGroupsResponse.Builder addGroups(Group value)

Output only. The list of groups response.

repeated .google.cloud.vmmigration.v1.Group groups = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueGroup
Returns
TypeDescription
ListGroupsResponse.Builder

addGroups(Group.Builder builderForValue)

public ListGroupsResponse.Builder addGroups(Group.Builder builderForValue)

Output only. The list of groups response.

repeated .google.cloud.vmmigration.v1.Group groups = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
builderForValueGroup.Builder
Returns
TypeDescription
ListGroupsResponse.Builder

addGroups(int index, Group value)

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

Output only. The list of groups response.

repeated .google.cloud.vmmigration.v1.Group groups = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameters
NameDescription
indexint
valueGroup
Returns
TypeDescription
ListGroupsResponse.Builder

addGroups(int index, Group.Builder builderForValue)

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

Output only. The list of groups response.

repeated .google.cloud.vmmigration.v1.Group groups = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameters
NameDescription
indexint
builderForValueGroup.Builder
Returns
TypeDescription
ListGroupsResponse.Builder

addGroupsBuilder()

public Group.Builder addGroupsBuilder()

Output only. The list of groups response.

repeated .google.cloud.vmmigration.v1.Group groups = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
Group.Builder

addGroupsBuilder(int index)

public Group.Builder addGroupsBuilder(int index)

Output only. The list of groups response.

repeated .google.cloud.vmmigration.v1.Group groups = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
indexint
Returns
TypeDescription
Group.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

addUnreachable(String value)

public ListGroupsResponse.Builder addUnreachable(String value)

Output only. Locations that could not be reached.

repeated string unreachable = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueString

The unreachable to add.

Returns
TypeDescription
ListGroupsResponse.Builder

This builder for chaining.

addUnreachableBytes(ByteString value)

public ListGroupsResponse.Builder addUnreachableBytes(ByteString value)

Output only. Locations that could not be reached.

repeated string unreachable = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueByteString

The bytes of the unreachable to add.

Returns
TypeDescription
ListGroupsResponse.Builder

This builder for chaining.

build()

public ListGroupsResponse build()
Returns
TypeDescription
ListGroupsResponse

buildPartial()

public ListGroupsResponse buildPartial()
Returns
TypeDescription
ListGroupsResponse

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearGroups()

public ListGroupsResponse.Builder clearGroups()

Output only. The list of groups response.

repeated .google.cloud.vmmigration.v1.Group groups = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
ListGroupsResponse.Builder

clearNextPageToken()

public ListGroupsResponse.Builder clearNextPageToken()

Output only. A token, which can be sent as page_token to retrieve the next page. If this field is omitted, there are no subsequent pages.

string next_page_token = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
ListGroupsResponse.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearUnreachable()

public ListGroupsResponse.Builder clearUnreachable()

Output only. Locations that could not be reached.

repeated string unreachable = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
ListGroupsResponse.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public ListGroupsResponse getDefaultInstanceForType()
Returns
TypeDescription
ListGroupsResponse

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getGroups(int index)

public Group getGroups(int index)

Output only. The list of groups response.

repeated .google.cloud.vmmigration.v1.Group groups = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
indexint
Returns
TypeDescription
Group

getGroupsBuilder(int index)

public Group.Builder getGroupsBuilder(int index)

Output only. The list of groups response.

repeated .google.cloud.vmmigration.v1.Group groups = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
indexint
Returns
TypeDescription
Group.Builder

getGroupsBuilderList()

public List<Group.Builder> getGroupsBuilderList()

Output only. The list of groups response.

repeated .google.cloud.vmmigration.v1.Group groups = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
List<Builder>

getGroupsCount()

public int getGroupsCount()

Output only. The list of groups response.

repeated .google.cloud.vmmigration.v1.Group groups = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
int

getGroupsList()

public List<Group> getGroupsList()

Output only. The list of groups response.

repeated .google.cloud.vmmigration.v1.Group groups = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
List<Group>

getGroupsOrBuilder(int index)

public GroupOrBuilder getGroupsOrBuilder(int index)

Output only. The list of groups response.

repeated .google.cloud.vmmigration.v1.Group groups = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
indexint
Returns
TypeDescription
GroupOrBuilder

getGroupsOrBuilderList()

public List<? extends GroupOrBuilder> getGroupsOrBuilderList()

Output only. The list of groups response.

repeated .google.cloud.vmmigration.v1.Group groups = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
List<? extends com.google.cloud.vmmigration.v1.GroupOrBuilder>

getNextPageToken()

public String getNextPageToken()

Output only. A token, which can be sent as page_token to retrieve the next page. If this field is omitted, there are no subsequent pages.

string next_page_token = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
String

The nextPageToken.

getNextPageTokenBytes()

public ByteString getNextPageTokenBytes()

Output only. A token, which can be sent as page_token to retrieve the next page. If this field is omitted, there are no subsequent pages.

string next_page_token = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
ByteString

The bytes for nextPageToken.

getUnreachable(int index)

public String getUnreachable(int index)

Output only. Locations that could not be reached.

repeated string unreachable = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

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)

Output only. Locations that could not be reached.

repeated string unreachable = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

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

Output only. Locations that could not be reached.

repeated string unreachable = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
int

The count of unreachable.

getUnreachableList()

public ProtocolStringList getUnreachableList()

Output only. Locations that could not be reached.

repeated string unreachable = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

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

public ListGroupsResponse.Builder mergeFrom(ListGroupsResponse other)
Parameter
NameDescription
otherListGroupsResponse
Returns
TypeDescription
ListGroupsResponse.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removeGroups(int index)

public ListGroupsResponse.Builder removeGroups(int index)

Output only. The list of groups response.

repeated .google.cloud.vmmigration.v1.Group groups = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
indexint
Returns
TypeDescription
ListGroupsResponse.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setGroups(int index, Group value)

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

Output only. The list of groups response.

repeated .google.cloud.vmmigration.v1.Group groups = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameters
NameDescription
indexint
valueGroup
Returns
TypeDescription
ListGroupsResponse.Builder

setGroups(int index, Group.Builder builderForValue)

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

Output only. The list of groups response.

repeated .google.cloud.vmmigration.v1.Group groups = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameters
NameDescription
indexint
builderForValueGroup.Builder
Returns
TypeDescription
ListGroupsResponse.Builder

setNextPageToken(String value)

public ListGroupsResponse.Builder setNextPageToken(String value)

Output only. A token, which can be sent as page_token to retrieve the next page. If this field is omitted, there are no subsequent pages.

string next_page_token = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueString

The nextPageToken to set.

Returns
TypeDescription
ListGroupsResponse.Builder

This builder for chaining.

setNextPageTokenBytes(ByteString value)

public ListGroupsResponse.Builder setNextPageTokenBytes(ByteString value)

Output only. A token, which can be sent as page_token to retrieve the next page. If this field is omitted, there are no subsequent pages.

string next_page_token = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueByteString

The bytes for nextPageToken to set.

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

setUnknownFields(UnknownFieldSet unknownFields)

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

setUnreachable(int index, String value)

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

Output only. Locations that could not be reached.

repeated string unreachable = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameters
NameDescription
indexint

The index to set the value at.

valueString

The unreachable to set.

Returns
TypeDescription
ListGroupsResponse.Builder

This builder for chaining.