Class VolumeDataRestorePolicyOverride.Builder (0.53.0)

public static final class VolumeDataRestorePolicyOverride.Builder extends GeneratedMessageV3.Builder<VolumeDataRestorePolicyOverride.Builder> implements VolumeDataRestorePolicyOverrideOrBuilder

Defines an override to apply a VolumeDataRestorePolicy for scoped resources.

Protobuf type google.cloud.gkebackup.v1.VolumeDataRestorePolicyOverride

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public VolumeDataRestorePolicyOverride build()
Returns
Type Description
VolumeDataRestorePolicyOverride

buildPartial()

public VolumeDataRestorePolicyOverride buildPartial()
Returns
Type Description
VolumeDataRestorePolicyOverride

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearPolicy()

public VolumeDataRestorePolicyOverride.Builder clearPolicy()

Required. The VolumeDataRestorePolicy to apply when restoring volumes in scope.

.google.cloud.gkebackup.v1.RestoreConfig.VolumeDataRestorePolicy policy = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
VolumeDataRestorePolicyOverride.Builder

This builder for chaining.

clearScope()

public VolumeDataRestorePolicyOverride.Builder clearScope()
Returns
Type Description
VolumeDataRestorePolicyOverride.Builder

clearSelectedPvcs()

public VolumeDataRestorePolicyOverride.Builder clearSelectedPvcs()

A list of PVCs to apply the policy override to.

.google.cloud.gkebackup.v1.NamespacedNames selected_pvcs = 2;

Returns
Type Description
VolumeDataRestorePolicyOverride.Builder

clone()

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

getDefaultInstanceForType()

public VolumeDataRestorePolicyOverride getDefaultInstanceForType()
Returns
Type Description
VolumeDataRestorePolicyOverride

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getPolicy()

public RestoreConfig.VolumeDataRestorePolicy getPolicy()

Required. The VolumeDataRestorePolicy to apply when restoring volumes in scope.

.google.cloud.gkebackup.v1.RestoreConfig.VolumeDataRestorePolicy policy = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
RestoreConfig.VolumeDataRestorePolicy

The policy.

getPolicyValue()

public int getPolicyValue()

Required. The VolumeDataRestorePolicy to apply when restoring volumes in scope.

.google.cloud.gkebackup.v1.RestoreConfig.VolumeDataRestorePolicy policy = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
int

The enum numeric value on the wire for policy.

getScopeCase()

public VolumeDataRestorePolicyOverride.ScopeCase getScopeCase()
Returns
Type Description
VolumeDataRestorePolicyOverride.ScopeCase

getSelectedPvcs()

public NamespacedNames getSelectedPvcs()

A list of PVCs to apply the policy override to.

.google.cloud.gkebackup.v1.NamespacedNames selected_pvcs = 2;

Returns
Type Description
NamespacedNames

The selectedPvcs.

getSelectedPvcsBuilder()

public NamespacedNames.Builder getSelectedPvcsBuilder()

A list of PVCs to apply the policy override to.

.google.cloud.gkebackup.v1.NamespacedNames selected_pvcs = 2;

Returns
Type Description
NamespacedNames.Builder

getSelectedPvcsOrBuilder()

public NamespacedNamesOrBuilder getSelectedPvcsOrBuilder()

A list of PVCs to apply the policy override to.

.google.cloud.gkebackup.v1.NamespacedNames selected_pvcs = 2;

Returns
Type Description
NamespacedNamesOrBuilder

hasSelectedPvcs()

public boolean hasSelectedPvcs()

A list of PVCs to apply the policy override to.

.google.cloud.gkebackup.v1.NamespacedNames selected_pvcs = 2;

Returns
Type Description
boolean

Whether the selectedPvcs field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(VolumeDataRestorePolicyOverride other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeSelectedPvcs(NamespacedNames value)

public VolumeDataRestorePolicyOverride.Builder mergeSelectedPvcs(NamespacedNames value)

A list of PVCs to apply the policy override to.

.google.cloud.gkebackup.v1.NamespacedNames selected_pvcs = 2;

Parameter
Name Description
value NamespacedNames
Returns
Type Description
VolumeDataRestorePolicyOverride.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

setPolicy(RestoreConfig.VolumeDataRestorePolicy value)

public VolumeDataRestorePolicyOverride.Builder setPolicy(RestoreConfig.VolumeDataRestorePolicy value)

Required. The VolumeDataRestorePolicy to apply when restoring volumes in scope.

.google.cloud.gkebackup.v1.RestoreConfig.VolumeDataRestorePolicy policy = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value RestoreConfig.VolumeDataRestorePolicy

The policy to set.

Returns
Type Description
VolumeDataRestorePolicyOverride.Builder

This builder for chaining.

setPolicyValue(int value)

public VolumeDataRestorePolicyOverride.Builder setPolicyValue(int value)

Required. The VolumeDataRestorePolicy to apply when restoring volumes in scope.

.google.cloud.gkebackup.v1.RestoreConfig.VolumeDataRestorePolicy policy = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value int

The enum numeric value on the wire for policy to set.

Returns
Type Description
VolumeDataRestorePolicyOverride.Builder

This builder for chaining.

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

public VolumeDataRestorePolicyOverride.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
VolumeDataRestorePolicyOverride.Builder
Overrides

setSelectedPvcs(NamespacedNames value)

public VolumeDataRestorePolicyOverride.Builder setSelectedPvcs(NamespacedNames value)

A list of PVCs to apply the policy override to.

.google.cloud.gkebackup.v1.NamespacedNames selected_pvcs = 2;

Parameter
Name Description
value NamespacedNames
Returns
Type Description
VolumeDataRestorePolicyOverride.Builder

setSelectedPvcs(NamespacedNames.Builder builderForValue)

public VolumeDataRestorePolicyOverride.Builder setSelectedPvcs(NamespacedNames.Builder builderForValue)

A list of PVCs to apply the policy override to.

.google.cloud.gkebackup.v1.NamespacedNames selected_pvcs = 2;

Parameter
Name Description
builderForValue NamespacedNames.Builder
Returns
Type Description
VolumeDataRestorePolicyOverride.Builder

setUnknownFields(UnknownFieldSet unknownFields)

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