Class ListVolumeSnapshotsResponse.Builder (0.44.0)

public static final class ListVolumeSnapshotsResponse.Builder extends GeneratedMessageV3.Builder<ListVolumeSnapshotsResponse.Builder> implements ListVolumeSnapshotsResponseOrBuilder

Response message containing the list of volume snapshots.

Protobuf type google.cloud.baremetalsolution.v2.ListVolumeSnapshotsResponse

Static Methods

getDescriptor()

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

Methods

addAllUnreachable(Iterable<String> values)

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

This builder for chaining.

addAllVolumeSnapshots(Iterable<? extends VolumeSnapshot> values)

public ListVolumeSnapshotsResponse.Builder addAllVolumeSnapshots(Iterable<? extends VolumeSnapshot> values)

The list of snapshots.

repeated .google.cloud.baremetalsolution.v2.VolumeSnapshot volume_snapshots = 1;

Parameter
Name Description
values Iterable<? extends com.google.cloud.baremetalsolution.v2.VolumeSnapshot>
Returns
Type Description
ListVolumeSnapshotsResponse.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

addUnreachable(String value)

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

This builder for chaining.

addUnreachableBytes(ByteString value)

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

This builder for chaining.

addVolumeSnapshots(VolumeSnapshot value)

public ListVolumeSnapshotsResponse.Builder addVolumeSnapshots(VolumeSnapshot value)

The list of snapshots.

repeated .google.cloud.baremetalsolution.v2.VolumeSnapshot volume_snapshots = 1;

Parameter
Name Description
value VolumeSnapshot
Returns
Type Description
ListVolumeSnapshotsResponse.Builder

addVolumeSnapshots(VolumeSnapshot.Builder builderForValue)

public ListVolumeSnapshotsResponse.Builder addVolumeSnapshots(VolumeSnapshot.Builder builderForValue)

The list of snapshots.

repeated .google.cloud.baremetalsolution.v2.VolumeSnapshot volume_snapshots = 1;

Parameter
Name Description
builderForValue VolumeSnapshot.Builder
Returns
Type Description
ListVolumeSnapshotsResponse.Builder

addVolumeSnapshots(int index, VolumeSnapshot value)

public ListVolumeSnapshotsResponse.Builder addVolumeSnapshots(int index, VolumeSnapshot value)

The list of snapshots.

repeated .google.cloud.baremetalsolution.v2.VolumeSnapshot volume_snapshots = 1;

Parameters
Name Description
index int
value VolumeSnapshot
Returns
Type Description
ListVolumeSnapshotsResponse.Builder

addVolumeSnapshots(int index, VolumeSnapshot.Builder builderForValue)

public ListVolumeSnapshotsResponse.Builder addVolumeSnapshots(int index, VolumeSnapshot.Builder builderForValue)

The list of snapshots.

repeated .google.cloud.baremetalsolution.v2.VolumeSnapshot volume_snapshots = 1;

Parameters
Name Description
index int
builderForValue VolumeSnapshot.Builder
Returns
Type Description
ListVolumeSnapshotsResponse.Builder

addVolumeSnapshotsBuilder()

public VolumeSnapshot.Builder addVolumeSnapshotsBuilder()

The list of snapshots.

repeated .google.cloud.baremetalsolution.v2.VolumeSnapshot volume_snapshots = 1;

Returns
Type Description
VolumeSnapshot.Builder

addVolumeSnapshotsBuilder(int index)

public VolumeSnapshot.Builder addVolumeSnapshotsBuilder(int index)

The list of snapshots.

repeated .google.cloud.baremetalsolution.v2.VolumeSnapshot volume_snapshots = 1;

Parameter
Name Description
index int
Returns
Type Description
VolumeSnapshot.Builder

build()

public ListVolumeSnapshotsResponse build()
Returns
Type Description
ListVolumeSnapshotsResponse

buildPartial()

public ListVolumeSnapshotsResponse buildPartial()
Returns
Type Description
ListVolumeSnapshotsResponse

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearNextPageToken()

public ListVolumeSnapshotsResponse.Builder clearNextPageToken()

A token identifying a page of results from the server.

string next_page_token = 2;

Returns
Type Description
ListVolumeSnapshotsResponse.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearUnreachable()

public ListVolumeSnapshotsResponse.Builder clearUnreachable()

Locations that could not be reached.

repeated string unreachable = 3;

Returns
Type Description
ListVolumeSnapshotsResponse.Builder

This builder for chaining.

clearVolumeSnapshots()

public ListVolumeSnapshotsResponse.Builder clearVolumeSnapshots()

The list of snapshots.

repeated .google.cloud.baremetalsolution.v2.VolumeSnapshot volume_snapshots = 1;

Returns
Type Description
ListVolumeSnapshotsResponse.Builder

clone()

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

getDefaultInstanceForType()

public ListVolumeSnapshotsResponse getDefaultInstanceForType()
Returns
Type Description
ListVolumeSnapshotsResponse

getDescriptorForType()

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

getNextPageToken()

public String getNextPageToken()

A token identifying a page of results from the server.

string next_page_token = 2;

Returns
Type Description
String

The nextPageToken.

getNextPageTokenBytes()

public ByteString getNextPageTokenBytes()

A token identifying a page of results from the server.

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.

getVolumeSnapshots(int index)

public VolumeSnapshot getVolumeSnapshots(int index)

The list of snapshots.

repeated .google.cloud.baremetalsolution.v2.VolumeSnapshot volume_snapshots = 1;

Parameter
Name Description
index int
Returns
Type Description
VolumeSnapshot

getVolumeSnapshotsBuilder(int index)

public VolumeSnapshot.Builder getVolumeSnapshotsBuilder(int index)

The list of snapshots.

repeated .google.cloud.baremetalsolution.v2.VolumeSnapshot volume_snapshots = 1;

Parameter
Name Description
index int
Returns
Type Description
VolumeSnapshot.Builder

getVolumeSnapshotsBuilderList()

public List<VolumeSnapshot.Builder> getVolumeSnapshotsBuilderList()

The list of snapshots.

repeated .google.cloud.baremetalsolution.v2.VolumeSnapshot volume_snapshots = 1;

Returns
Type Description
List<Builder>

getVolumeSnapshotsCount()

public int getVolumeSnapshotsCount()

The list of snapshots.

repeated .google.cloud.baremetalsolution.v2.VolumeSnapshot volume_snapshots = 1;

Returns
Type Description
int

getVolumeSnapshotsList()

public List<VolumeSnapshot> getVolumeSnapshotsList()

The list of snapshots.

repeated .google.cloud.baremetalsolution.v2.VolumeSnapshot volume_snapshots = 1;

Returns
Type Description
List<VolumeSnapshot>

getVolumeSnapshotsOrBuilder(int index)

public VolumeSnapshotOrBuilder getVolumeSnapshotsOrBuilder(int index)

The list of snapshots.

repeated .google.cloud.baremetalsolution.v2.VolumeSnapshot volume_snapshots = 1;

Parameter
Name Description
index int
Returns
Type Description
VolumeSnapshotOrBuilder

getVolumeSnapshotsOrBuilderList()

public List<? extends VolumeSnapshotOrBuilder> getVolumeSnapshotsOrBuilderList()

The list of snapshots.

repeated .google.cloud.baremetalsolution.v2.VolumeSnapshot volume_snapshots = 1;

Returns
Type Description
List<? extends com.google.cloud.baremetalsolution.v2.VolumeSnapshotOrBuilder>

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(ListVolumeSnapshotsResponse other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removeVolumeSnapshots(int index)

public ListVolumeSnapshotsResponse.Builder removeVolumeSnapshots(int index)

The list of snapshots.

repeated .google.cloud.baremetalsolution.v2.VolumeSnapshot volume_snapshots = 1;

Parameter
Name Description
index int
Returns
Type Description
ListVolumeSnapshotsResponse.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setNextPageToken(String value)

public ListVolumeSnapshotsResponse.Builder setNextPageToken(String value)

A token identifying a page of results from the server.

string next_page_token = 2;

Parameter
Name Description
value String

The nextPageToken to set.

Returns
Type Description
ListVolumeSnapshotsResponse.Builder

This builder for chaining.

setNextPageTokenBytes(ByteString value)

public ListVolumeSnapshotsResponse.Builder setNextPageTokenBytes(ByteString value)

A token identifying a page of results from the server.

string next_page_token = 2;

Parameter
Name Description
value ByteString

The bytes for nextPageToken to set.

Returns
Type Description
ListVolumeSnapshotsResponse.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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

setUnreachable(int index, String value)

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

This builder for chaining.

setVolumeSnapshots(int index, VolumeSnapshot value)

public ListVolumeSnapshotsResponse.Builder setVolumeSnapshots(int index, VolumeSnapshot value)

The list of snapshots.

repeated .google.cloud.baremetalsolution.v2.VolumeSnapshot volume_snapshots = 1;

Parameters
Name Description
index int
value VolumeSnapshot
Returns
Type Description
ListVolumeSnapshotsResponse.Builder

setVolumeSnapshots(int index, VolumeSnapshot.Builder builderForValue)

public ListVolumeSnapshotsResponse.Builder setVolumeSnapshots(int index, VolumeSnapshot.Builder builderForValue)

The list of snapshots.

repeated .google.cloud.baremetalsolution.v2.VolumeSnapshot volume_snapshots = 1;

Parameters
Name Description
index int
builderForValue VolumeSnapshot.Builder
Returns
Type Description
ListVolumeSnapshotsResponse.Builder