Class RestoreParameters.Builder (0.30.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
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public RestoreParameters build()
Returns
Type Description
RestoreParameters

buildPartial()

public RestoreParameters buildPartial()
Returns
Type Description
RestoreParameters

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearSource()

public RestoreParameters.Builder clearSource()
Returns
Type Description
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
Type Description
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
Type Description
RestoreParameters.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public RestoreParameters getDefaultInstanceForType()
Returns
Type Description
RestoreParameters

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
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
Type Description
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
Type Description
ByteString

The bytes for sourceBackup.

getSourceCase()

public RestoreParameters.SourceCase getSourceCase()
Returns
Type Description
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
Type Description
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
Type Description
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
Type Description
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
Type Description
boolean

Whether the sourceSnapshot field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(RestoreParameters other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

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

public RestoreParameters.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
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
Name Description
value String

The sourceBackup to set.

Returns
Type Description
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
Name Description
value ByteString

The bytes for sourceBackup to set.

Returns
Type Description
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
Name Description
value String

The sourceSnapshot to set.

Returns
Type Description
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
Name Description
value ByteString

The bytes for sourceSnapshot to set.

Returns
Type Description
RestoreParameters.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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