Class RestoreParameters.Builder (0.20.0)

public static final class RestoreParameters.Builder extends GeneratedMessageV3.Builder<RestoreParameters.Builder> implements RestoreParametersOrBuilder

The RestoreParameters if volume is created from a snapshot or backup.

Protobuf type google.cloud.netapp.v1.RestoreParameters

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public RestoreParameters build()
Returns
TypeDescription
RestoreParameters

buildPartial()

public RestoreParameters buildPartial()
Returns
TypeDescription
RestoreParameters

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearSource()

public RestoreParameters.Builder clearSource()
Returns
TypeDescription
RestoreParameters.Builder

clearSourceBackup()

public RestoreParameters.Builder clearSourceBackup()

Full name of the backup resource. Format: projects/{project}/locations/{location}/backupVaults/{backup_vault_id}/backups/{backup_id}

string source_backup = 2;

Returns
TypeDescription
RestoreParameters.Builder

This builder for chaining.

clearSourceSnapshot()

public RestoreParameters.Builder clearSourceSnapshot()

Full name of the snapshot resource. Format: projects/{project}/locations/{location}/volumes/{volume}/snapshots/{snapshot}

string source_snapshot = 1;

Returns
TypeDescription
RestoreParameters.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public RestoreParameters getDefaultInstanceForType()
Returns
TypeDescription
RestoreParameters

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getSourceBackup()

public String getSourceBackup()

Full name of the backup resource. Format: projects/{project}/locations/{location}/backupVaults/{backup_vault_id}/backups/{backup_id}

string source_backup = 2;

Returns
TypeDescription
String

The sourceBackup.

getSourceBackupBytes()

public ByteString getSourceBackupBytes()

Full name of the backup resource. Format: projects/{project}/locations/{location}/backupVaults/{backup_vault_id}/backups/{backup_id}

string source_backup = 2;

Returns
TypeDescription
ByteString

The bytes for sourceBackup.

getSourceCase()

public RestoreParameters.SourceCase getSourceCase()
Returns
TypeDescription
RestoreParameters.SourceCase

getSourceSnapshot()

public String getSourceSnapshot()

Full name of the snapshot resource. Format: projects/{project}/locations/{location}/volumes/{volume}/snapshots/{snapshot}

string source_snapshot = 1;

Returns
TypeDescription
String

The sourceSnapshot.

getSourceSnapshotBytes()

public ByteString getSourceSnapshotBytes()

Full name of the snapshot resource. Format: projects/{project}/locations/{location}/volumes/{volume}/snapshots/{snapshot}

string source_snapshot = 1;

Returns
TypeDescription
ByteString

The bytes for sourceSnapshot.

hasSourceBackup()

public boolean hasSourceBackup()

Full name of the backup resource. Format: projects/{project}/locations/{location}/backupVaults/{backup_vault_id}/backups/{backup_id}

string source_backup = 2;

Returns
TypeDescription
boolean

Whether the sourceBackup field is set.

hasSourceSnapshot()

public boolean hasSourceSnapshot()

Full name of the snapshot resource. Format: projects/{project}/locations/{location}/volumes/{volume}/snapshots/{snapshot}

string source_snapshot = 1;

Returns
TypeDescription
boolean

Whether the sourceSnapshot field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(RestoreParameters other)

public RestoreParameters.Builder mergeFrom(RestoreParameters other)
Parameter
NameDescription
otherRestoreParameters
Returns
TypeDescription
RestoreParameters.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setSourceBackup(String value)

public RestoreParameters.Builder setSourceBackup(String value)

Full name of the backup resource. Format: projects/{project}/locations/{location}/backupVaults/{backup_vault_id}/backups/{backup_id}

string source_backup = 2;

Parameter
NameDescription
valueString

The sourceBackup to set.

Returns
TypeDescription
RestoreParameters.Builder

This builder for chaining.

setSourceBackupBytes(ByteString value)

public RestoreParameters.Builder setSourceBackupBytes(ByteString value)

Full name of the backup resource. Format: projects/{project}/locations/{location}/backupVaults/{backup_vault_id}/backups/{backup_id}

string source_backup = 2;

Parameter
NameDescription
valueByteString

The bytes for sourceBackup to set.

Returns
TypeDescription
RestoreParameters.Builder

This builder for chaining.

setSourceSnapshot(String value)

public RestoreParameters.Builder setSourceSnapshot(String value)

Full name of the snapshot resource. Format: projects/{project}/locations/{location}/volumes/{volume}/snapshots/{snapshot}

string source_snapshot = 1;

Parameter
NameDescription
valueString

The sourceSnapshot to set.

Returns
TypeDescription
RestoreParameters.Builder

This builder for chaining.

setSourceSnapshotBytes(ByteString value)

public RestoreParameters.Builder setSourceSnapshotBytes(ByteString value)

Full name of the snapshot resource. Format: projects/{project}/locations/{location}/volumes/{volume}/snapshots/{snapshot}

string source_snapshot = 1;

Parameter
NameDescription
valueByteString

The bytes for sourceSnapshot to set.

Returns
TypeDescription
RestoreParameters.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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