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
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public RestoreParameters.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
build()
public RestoreParameters build()
buildPartial()
public RestoreParameters buildPartial()
clear()
public RestoreParameters.Builder clear()
Overrides
clearField(Descriptors.FieldDescriptor field)
public RestoreParameters.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public RestoreParameters.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
clearSource()
public RestoreParameters.Builder clearSource()
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;
clearSourceSnapshot()
public RestoreParameters.Builder clearSourceSnapshot()
Full name of the snapshot resource.
Format:
projects/{project}/locations/{location}/volumes/{volume}/snapshots/{snapshot}
string source_snapshot = 1;
clone()
public RestoreParameters.Builder clone()
Overrides
getDefaultInstanceForType()
public RestoreParameters getDefaultInstanceForType()
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
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()
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()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
mergeFrom(RestoreParameters other)
public RestoreParameters.Builder mergeFrom(RestoreParameters other)
public RestoreParameters.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public RestoreParameters.Builder mergeFrom(Message other)
Parameter |
Name |
Description |
other |
Message
|
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final RestoreParameters.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Overrides
setField(Descriptors.FieldDescriptor field, Object value)
public RestoreParameters.Builder setField(Descriptors.FieldDescriptor field, Object value)
Overrides
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public RestoreParameters.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
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.
|
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.
|
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.
|
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.
|
setUnknownFields(UnknownFieldSet unknownFields)
public final RestoreParameters.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides