Class ListHostGroupsResponse.Builder (0.61.0)

public static final class ListHostGroupsResponse.Builder extends GeneratedMessageV3.Builder<ListHostGroupsResponse.Builder> implements ListHostGroupsResponseOrBuilder

ListHostGroupsResponse is the response to a ListHostGroupsRequest.

Protobuf type google.cloud.netapp.v1.ListHostGroupsResponse

Static Methods

getDescriptor()

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

Methods

addAllHostGroups(Iterable<? extends HostGroup> values)

public ListHostGroupsResponse.Builder addAllHostGroups(Iterable<? extends HostGroup> values)

The list of host groups.

repeated .google.cloud.netapp.v1.HostGroup host_groups = 1;

Parameter
Name Description
values Iterable<? extends com.google.cloud.netapp.v1.HostGroup>
Returns
Type Description
ListHostGroupsResponse.Builder

addAllUnreachable(Iterable<String> values)

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

This builder for chaining.

addHostGroups(HostGroup value)

public ListHostGroupsResponse.Builder addHostGroups(HostGroup value)

The list of host groups.

repeated .google.cloud.netapp.v1.HostGroup host_groups = 1;

Parameter
Name Description
value HostGroup
Returns
Type Description
ListHostGroupsResponse.Builder

addHostGroups(HostGroup.Builder builderForValue)

public ListHostGroupsResponse.Builder addHostGroups(HostGroup.Builder builderForValue)

The list of host groups.

repeated .google.cloud.netapp.v1.HostGroup host_groups = 1;

Parameter
Name Description
builderForValue HostGroup.Builder
Returns
Type Description
ListHostGroupsResponse.Builder

addHostGroups(int index, HostGroup value)

public ListHostGroupsResponse.Builder addHostGroups(int index, HostGroup value)

The list of host groups.

repeated .google.cloud.netapp.v1.HostGroup host_groups = 1;

Parameters
Name Description
index int
value HostGroup
Returns
Type Description
ListHostGroupsResponse.Builder

addHostGroups(int index, HostGroup.Builder builderForValue)

public ListHostGroupsResponse.Builder addHostGroups(int index, HostGroup.Builder builderForValue)

The list of host groups.

repeated .google.cloud.netapp.v1.HostGroup host_groups = 1;

Parameters
Name Description
index int
builderForValue HostGroup.Builder
Returns
Type Description
ListHostGroupsResponse.Builder

addHostGroupsBuilder()

public HostGroup.Builder addHostGroupsBuilder()

The list of host groups.

repeated .google.cloud.netapp.v1.HostGroup host_groups = 1;

Returns
Type Description
HostGroup.Builder

addHostGroupsBuilder(int index)

public HostGroup.Builder addHostGroupsBuilder(int index)

The list of host groups.

repeated .google.cloud.netapp.v1.HostGroup host_groups = 1;

Parameter
Name Description
index int
Returns
Type Description
HostGroup.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

addUnreachable(String value)

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

This builder for chaining.

addUnreachableBytes(ByteString value)

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

This builder for chaining.

build()

public ListHostGroupsResponse build()
Returns
Type Description
ListHostGroupsResponse

buildPartial()

public ListHostGroupsResponse buildPartial()
Returns
Type Description
ListHostGroupsResponse

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearHostGroups()

public ListHostGroupsResponse.Builder clearHostGroups()

The list of host groups.

repeated .google.cloud.netapp.v1.HostGroup host_groups = 1;

Returns
Type Description
ListHostGroupsResponse.Builder

clearNextPageToken()

public ListHostGroupsResponse.Builder clearNextPageToken()

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

string next_page_token = 2;

Returns
Type Description
ListHostGroupsResponse.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearUnreachable()

public ListHostGroupsResponse.Builder clearUnreachable()

Locations that could not be reached.

repeated string unreachable = 3;

Returns
Type Description
ListHostGroupsResponse.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public ListHostGroupsResponse getDefaultInstanceForType()
Returns
Type Description
ListHostGroupsResponse

getDescriptorForType()

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

getHostGroups(int index)

public HostGroup getHostGroups(int index)

The list of host groups.

repeated .google.cloud.netapp.v1.HostGroup host_groups = 1;

Parameter
Name Description
index int
Returns
Type Description
HostGroup

getHostGroupsBuilder(int index)

public HostGroup.Builder getHostGroupsBuilder(int index)

The list of host groups.

repeated .google.cloud.netapp.v1.HostGroup host_groups = 1;

Parameter
Name Description
index int
Returns
Type Description
HostGroup.Builder

getHostGroupsBuilderList()

public List<HostGroup.Builder> getHostGroupsBuilderList()

The list of host groups.

repeated .google.cloud.netapp.v1.HostGroup host_groups = 1;

Returns
Type Description
List<Builder>

getHostGroupsCount()

public int getHostGroupsCount()

The list of host groups.

repeated .google.cloud.netapp.v1.HostGroup host_groups = 1;

Returns
Type Description
int

getHostGroupsList()

public List<HostGroup> getHostGroupsList()

The list of host groups.

repeated .google.cloud.netapp.v1.HostGroup host_groups = 1;

Returns
Type Description
List<HostGroup>

getHostGroupsOrBuilder(int index)

public HostGroupOrBuilder getHostGroupsOrBuilder(int index)

The list of host groups.

repeated .google.cloud.netapp.v1.HostGroup host_groups = 1;

Parameter
Name Description
index int
Returns
Type Description
HostGroupOrBuilder

getHostGroupsOrBuilderList()

public List<? extends HostGroupOrBuilder> getHostGroupsOrBuilderList()

The list of host groups.

repeated .google.cloud.netapp.v1.HostGroup host_groups = 1;

Returns
Type Description
List<? extends com.google.cloud.netapp.v1.HostGroupOrBuilder>

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

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removeHostGroups(int index)

public ListHostGroupsResponse.Builder removeHostGroups(int index)

The list of host groups.

repeated .google.cloud.netapp.v1.HostGroup host_groups = 1;

Parameter
Name Description
index int
Returns
Type Description
ListHostGroupsResponse.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setHostGroups(int index, HostGroup value)

public ListHostGroupsResponse.Builder setHostGroups(int index, HostGroup value)

The list of host groups.

repeated .google.cloud.netapp.v1.HostGroup host_groups = 1;

Parameters
Name Description
index int
value HostGroup
Returns
Type Description
ListHostGroupsResponse.Builder

setHostGroups(int index, HostGroup.Builder builderForValue)

public ListHostGroupsResponse.Builder setHostGroups(int index, HostGroup.Builder builderForValue)

The list of host groups.

repeated .google.cloud.netapp.v1.HostGroup host_groups = 1;

Parameters
Name Description
index int
builderForValue HostGroup.Builder
Returns
Type Description
ListHostGroupsResponse.Builder

setNextPageToken(String value)

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

This builder for chaining.

setNextPageTokenBytes(ByteString value)

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

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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

setUnreachable(int index, String value)

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

This builder for chaining.