Class ListVolumesResponse.Builder (0.4.0)

public static final class ListVolumesResponse.Builder extends GeneratedMessageV3.Builder<ListVolumesResponse.Builder> implements ListVolumesResponseOrBuilder

Response message containing the list of storage volumes.

Protobuf type google.cloud.baremetalsolution.v2.ListVolumesResponse

Static Methods

getDescriptor()

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

Methods

addAllUnreachable(Iterable<String> values)

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

This builder for chaining.

addAllVolumes(Iterable<? extends Volume> values)

public ListVolumesResponse.Builder addAllVolumes(Iterable<? extends Volume> values)

The list of storage volumes.

repeated .google.cloud.baremetalsolution.v2.Volume volumes = 1;

Parameter
NameDescription
valuesIterable<? extends com.google.cloud.baremetalsolution.v2.Volume>
Returns
TypeDescription
ListVolumesResponse.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

addUnreachable(String value)

public ListVolumesResponse.Builder addUnreachable(String value)

Locations that could not be reached.

repeated string unreachable = 3;

Parameter
NameDescription
valueString

The unreachable to add.

Returns
TypeDescription
ListVolumesResponse.Builder

This builder for chaining.

addUnreachableBytes(ByteString value)

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

This builder for chaining.

addVolumes(Volume value)

public ListVolumesResponse.Builder addVolumes(Volume value)

The list of storage volumes.

repeated .google.cloud.baremetalsolution.v2.Volume volumes = 1;

Parameter
NameDescription
valueVolume
Returns
TypeDescription
ListVolumesResponse.Builder

addVolumes(Volume.Builder builderForValue)

public ListVolumesResponse.Builder addVolumes(Volume.Builder builderForValue)

The list of storage volumes.

repeated .google.cloud.baremetalsolution.v2.Volume volumes = 1;

Parameter
NameDescription
builderForValueVolume.Builder
Returns
TypeDescription
ListVolumesResponse.Builder

addVolumes(int index, Volume value)

public ListVolumesResponse.Builder addVolumes(int index, Volume value)

The list of storage volumes.

repeated .google.cloud.baremetalsolution.v2.Volume volumes = 1;

Parameters
NameDescription
indexint
valueVolume
Returns
TypeDescription
ListVolumesResponse.Builder

addVolumes(int index, Volume.Builder builderForValue)

public ListVolumesResponse.Builder addVolumes(int index, Volume.Builder builderForValue)

The list of storage volumes.

repeated .google.cloud.baremetalsolution.v2.Volume volumes = 1;

Parameters
NameDescription
indexint
builderForValueVolume.Builder
Returns
TypeDescription
ListVolumesResponse.Builder

addVolumesBuilder()

public Volume.Builder addVolumesBuilder()

The list of storage volumes.

repeated .google.cloud.baremetalsolution.v2.Volume volumes = 1;

Returns
TypeDescription
Volume.Builder

addVolumesBuilder(int index)

public Volume.Builder addVolumesBuilder(int index)

The list of storage volumes.

repeated .google.cloud.baremetalsolution.v2.Volume volumes = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
Volume.Builder

build()

public ListVolumesResponse build()
Returns
TypeDescription
ListVolumesResponse

buildPartial()

public ListVolumesResponse buildPartial()
Returns
TypeDescription
ListVolumesResponse

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearNextPageToken()

public ListVolumesResponse.Builder clearNextPageToken()

A token identifying a page of results from the server.

string next_page_token = 2;

Returns
TypeDescription
ListVolumesResponse.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearUnreachable()

public ListVolumesResponse.Builder clearUnreachable()

Locations that could not be reached.

repeated string unreachable = 3;

Returns
TypeDescription
ListVolumesResponse.Builder

This builder for chaining.

clearVolumes()

public ListVolumesResponse.Builder clearVolumes()

The list of storage volumes.

repeated .google.cloud.baremetalsolution.v2.Volume volumes = 1;

Returns
TypeDescription
ListVolumesResponse.Builder

clone()

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

getDefaultInstanceForType()

public ListVolumesResponse getDefaultInstanceForType()
Returns
TypeDescription
ListVolumesResponse

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getNextPageToken()

public String getNextPageToken()

A token identifying a page of results from the server.

string next_page_token = 2;

Returns
TypeDescription
String

The nextPageToken.

getNextPageTokenBytes()

public ByteString getNextPageTokenBytes()

A token identifying a page of results from the server.

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.

getVolumes(int index)

public Volume getVolumes(int index)

The list of storage volumes.

repeated .google.cloud.baremetalsolution.v2.Volume volumes = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
Volume

getVolumesBuilder(int index)

public Volume.Builder getVolumesBuilder(int index)

The list of storage volumes.

repeated .google.cloud.baremetalsolution.v2.Volume volumes = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
Volume.Builder

getVolumesBuilderList()

public List<Volume.Builder> getVolumesBuilderList()

The list of storage volumes.

repeated .google.cloud.baremetalsolution.v2.Volume volumes = 1;

Returns
TypeDescription
List<Builder>

getVolumesCount()

public int getVolumesCount()

The list of storage volumes.

repeated .google.cloud.baremetalsolution.v2.Volume volumes = 1;

Returns
TypeDescription
int

getVolumesList()

public List<Volume> getVolumesList()

The list of storage volumes.

repeated .google.cloud.baremetalsolution.v2.Volume volumes = 1;

Returns
TypeDescription
List<Volume>

getVolumesOrBuilder(int index)

public VolumeOrBuilder getVolumesOrBuilder(int index)

The list of storage volumes.

repeated .google.cloud.baremetalsolution.v2.Volume volumes = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
VolumeOrBuilder

getVolumesOrBuilderList()

public List<? extends VolumeOrBuilder> getVolumesOrBuilderList()

The list of storage volumes.

repeated .google.cloud.baremetalsolution.v2.Volume volumes = 1;

Returns
TypeDescription
List<? extends com.google.cloud.baremetalsolution.v2.VolumeOrBuilder>

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(ListVolumesResponse other)

public ListVolumesResponse.Builder mergeFrom(ListVolumesResponse other)
Parameter
NameDescription
otherListVolumesResponse
Returns
TypeDescription
ListVolumesResponse.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removeVolumes(int index)

public ListVolumesResponse.Builder removeVolumes(int index)

The list of storage volumes.

repeated .google.cloud.baremetalsolution.v2.Volume volumes = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
ListVolumesResponse.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setNextPageToken(String value)

public ListVolumesResponse.Builder setNextPageToken(String value)

A token identifying a page of results from the server.

string next_page_token = 2;

Parameter
NameDescription
valueString

The nextPageToken to set.

Returns
TypeDescription
ListVolumesResponse.Builder

This builder for chaining.

setNextPageTokenBytes(ByteString value)

public ListVolumesResponse.Builder setNextPageTokenBytes(ByteString value)

A token identifying a page of results from the server.

string next_page_token = 2;

Parameter
NameDescription
valueByteString

The bytes for nextPageToken to set.

Returns
TypeDescription
ListVolumesResponse.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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

setUnreachable(int index, String value)

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

This builder for chaining.

setVolumes(int index, Volume value)

public ListVolumesResponse.Builder setVolumes(int index, Volume value)

The list of storage volumes.

repeated .google.cloud.baremetalsolution.v2.Volume volumes = 1;

Parameters
NameDescription
indexint
valueVolume
Returns
TypeDescription
ListVolumesResponse.Builder

setVolumes(int index, Volume.Builder builderForValue)

public ListVolumesResponse.Builder setVolumes(int index, Volume.Builder builderForValue)

The list of storage volumes.

repeated .google.cloud.baremetalsolution.v2.Volume volumes = 1;

Parameters
NameDescription
indexint
builderForValueVolume.Builder
Returns
TypeDescription
ListVolumesResponse.Builder