Class BackupConfig (0.19.0)

public final class BackupConfig extends GeneratedMessageV3 implements BackupConfigOrBuilder

BackupConfig contains backup related config on a volume.

Protobuf type google.cloud.netapp.v1.BackupConfig

Static Fields

BACKUP_POLICIES_FIELD_NUMBER

public static final int BACKUP_POLICIES_FIELD_NUMBER
Field Value
TypeDescription
int

BACKUP_VAULT_FIELD_NUMBER

public static final int BACKUP_VAULT_FIELD_NUMBER
Field Value
TypeDescription
int

SCHEDULED_BACKUP_ENABLED_FIELD_NUMBER

public static final int SCHEDULED_BACKUP_ENABLED_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static BackupConfig getDefaultInstance()
Returns
TypeDescription
BackupConfig

getDescriptor()

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

newBuilder()

public static BackupConfig.Builder newBuilder()
Returns
TypeDescription
BackupConfig.Builder

newBuilder(BackupConfig prototype)

public static BackupConfig.Builder newBuilder(BackupConfig prototype)
Parameter
NameDescription
prototypeBackupConfig
Returns
TypeDescription
BackupConfig.Builder

parseDelimitedFrom(InputStream input)

public static BackupConfig parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
BackupConfig
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static BackupConfig parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
BackupConfig
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static BackupConfig parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
BackupConfig
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static BackupConfig parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
BackupConfig
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static BackupConfig parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
BackupConfig
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static BackupConfig parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
BackupConfig
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static BackupConfig parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
BackupConfig
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static BackupConfig parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
BackupConfig
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static BackupConfig parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
BackupConfig
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static BackupConfig parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
BackupConfig
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static BackupConfig parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
BackupConfig
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static BackupConfig parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
BackupConfig
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<BackupConfig> parser()
Returns
TypeDescription
Parser<BackupConfig>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getBackupPolicies(int index)

public String getBackupPolicies(int index)

Optional. When specified, schedule backups will be created based on the policy configuration.

repeated string backup_policies = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }

Parameter
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
String

The backupPolicies at the given index.

getBackupPoliciesBytes(int index)

public ByteString getBackupPoliciesBytes(int index)

Optional. When specified, schedule backups will be created based on the policy configuration.

repeated string backup_policies = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }

Parameter
NameDescription
indexint

The index of the value to return.

Returns
TypeDescription
ByteString

The bytes of the backupPolicies at the given index.

getBackupPoliciesCount()

public int getBackupPoliciesCount()

Optional. When specified, schedule backups will be created based on the policy configuration.

repeated string backup_policies = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }

Returns
TypeDescription
int

The count of backupPolicies.

getBackupPoliciesList()

public ProtocolStringList getBackupPoliciesList()

Optional. When specified, schedule backups will be created based on the policy configuration.

repeated string backup_policies = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }

Returns
TypeDescription
ProtocolStringList

A list containing the backupPolicies.

getBackupVault()

public String getBackupVault()

Optional. Name of backup vault. Format: projects/{project_id}/locations/{location}/backupVaults/{backup_vault_id}

string backup_vault = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }

Returns
TypeDescription
String

The backupVault.

getBackupVaultBytes()

public ByteString getBackupVaultBytes()

Optional. Name of backup vault. Format: projects/{project_id}/locations/{location}/backupVaults/{backup_vault_id}

string backup_vault = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }

Returns
TypeDescription
ByteString

The bytes for backupVault.

getDefaultInstanceForType()

public BackupConfig getDefaultInstanceForType()
Returns
TypeDescription
BackupConfig

getParserForType()

public Parser<BackupConfig> getParserForType()
Returns
TypeDescription
Parser<BackupConfig>
Overrides

getScheduledBackupEnabled()

public boolean getScheduledBackupEnabled()

Optional. When set to true, scheduled backup is enabled on the volume. This field should be nil when there's no backup policy attached.

optional bool scheduled_backup_enabled = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
boolean

The scheduledBackupEnabled.

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

hasScheduledBackupEnabled()

public boolean hasScheduledBackupEnabled()

Optional. When set to true, scheduled backup is enabled on the volume. This field should be nil when there's no backup policy attached.

optional bool scheduled_backup_enabled = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
boolean

Whether the scheduledBackupEnabled field is set.

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public BackupConfig.Builder newBuilderForType()
Returns
TypeDescription
BackupConfig.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected BackupConfig.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
BackupConfig.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public BackupConfig.Builder toBuilder()
Returns
TypeDescription
BackupConfig.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides
Exceptions
TypeDescription
IOException