Class ListVolumeSnapshotsResponse.Builder (0.35.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
TypeDescription
Descriptor

Methods

addAllUnreachable(Iterable<String> values)

public ListVolumeSnapshotsResponse.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
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
NameDescription
valuesIterable<? extends com.google.cloud.baremetalsolution.v2.VolumeSnapshot>
Returns
TypeDescription
ListVolumeSnapshotsResponse.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

addUnreachable(String value)

public ListVolumeSnapshotsResponse.Builder addUnreachable(String value)

Locations that could not be reached.

repeated string unreachable = 3;

Parameter
NameDescription
valueString

The unreachable to add.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes of the unreachable to add.

Returns
TypeDescription
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
NameDescription
valueVolumeSnapshot
Returns
TypeDescription
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
NameDescription
builderForValueVolumeSnapshot.Builder
Returns
TypeDescription
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
NameDescription
indexint
valueVolumeSnapshot
Returns
TypeDescription
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
NameDescription
indexint
builderForValueVolumeSnapshot.Builder
Returns
TypeDescription
ListVolumeSnapshotsResponse.Builder

addVolumeSnapshotsBuilder()

public VolumeSnapshot.Builder addVolumeSnapshotsBuilder()

The list of snapshots.

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

Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
VolumeSnapshot.Builder

build()

public ListVolumeSnapshotsResponse build()
Returns
TypeDescription
ListVolumeSnapshotsResponse

buildPartial()

public ListVolumeSnapshotsResponse buildPartial()
Returns
TypeDescription
ListVolumeSnapshotsResponse

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearNextPageToken()

public ListVolumeSnapshotsResponse.Builder clearNextPageToken()

A token identifying a page of results from the server.

string next_page_token = 2;

Returns
TypeDescription
ListVolumeSnapshotsResponse.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearUnreachable()

public ListVolumeSnapshotsResponse.Builder clearUnreachable()

Locations that could not be reached.

repeated string unreachable = 3;

Returns
TypeDescription
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
TypeDescription
ListVolumeSnapshotsResponse.Builder

clone()

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

getDefaultInstanceForType()

public ListVolumeSnapshotsResponse getDefaultInstanceForType()
Returns
TypeDescription
ListVolumeSnapshotsResponse

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.

getVolumeSnapshots(int index)

public VolumeSnapshot getVolumeSnapshots(int index)

The list of snapshots.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
VolumeSnapshot

getVolumeSnapshotsBuilder(int index)

public VolumeSnapshot.Builder getVolumeSnapshotsBuilder(int index)

The list of snapshots.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
VolumeSnapshot.Builder

getVolumeSnapshotsBuilderList()

public List<VolumeSnapshot.Builder> getVolumeSnapshotsBuilderList()

The list of snapshots.

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

Returns
TypeDescription
List<Builder>

getVolumeSnapshotsCount()

public int getVolumeSnapshotsCount()

The list of snapshots.

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

Returns
TypeDescription
int

getVolumeSnapshotsList()

public List<VolumeSnapshot> getVolumeSnapshotsList()

The list of snapshots.

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

Returns
TypeDescription
List<VolumeSnapshot>

getVolumeSnapshotsOrBuilder(int index)

public VolumeSnapshotOrBuilder getVolumeSnapshotsOrBuilder(int index)

The list of snapshots.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
VolumeSnapshotOrBuilder

getVolumeSnapshotsOrBuilderList()

public List<? extends VolumeSnapshotOrBuilder> getVolumeSnapshotsOrBuilderList()

The list of snapshots.

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

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

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(ListVolumeSnapshotsResponse other)

public ListVolumeSnapshotsResponse.Builder mergeFrom(ListVolumeSnapshotsResponse other)
Parameter
NameDescription
otherListVolumeSnapshotsResponse
Returns
TypeDescription
ListVolumeSnapshotsResponse.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ListVolumeSnapshotsResponse.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
ListVolumeSnapshotsResponse.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public ListVolumeSnapshotsResponse.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueString

The nextPageToken to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for nextPageToken to set.

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

setUnknownFields(UnknownFieldSet unknownFields)

public final ListVolumeSnapshotsResponse.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
indexint

The index to set the value at.

valueString

The unreachable to set.

Returns
TypeDescription
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
NameDescription
indexint
valueVolumeSnapshot
Returns
TypeDescription
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
NameDescription
indexint
builderForValueVolumeSnapshot.Builder
Returns
TypeDescription
ListVolumeSnapshotsResponse.Builder