Class RestoreConfig.VolumeDataRestorePolicyBinding.Builder (0.46.0)

public static final class RestoreConfig.VolumeDataRestorePolicyBinding.Builder extends GeneratedMessageV3.Builder<RestoreConfig.VolumeDataRestorePolicyBinding.Builder> implements RestoreConfig.VolumeDataRestorePolicyBindingOrBuilder

Binds resources in the scope to the given VolumeDataRestorePolicy.

Protobuf type google.cloud.gkebackup.v1.RestoreConfig.VolumeDataRestorePolicyBinding

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public RestoreConfig.VolumeDataRestorePolicyBinding build()
Returns
Type Description
RestoreConfig.VolumeDataRestorePolicyBinding

buildPartial()

public RestoreConfig.VolumeDataRestorePolicyBinding buildPartial()
Returns
Type Description
RestoreConfig.VolumeDataRestorePolicyBinding

clear()

public RestoreConfig.VolumeDataRestorePolicyBinding.Builder clear()
Returns
Type Description
RestoreConfig.VolumeDataRestorePolicyBinding.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearPolicy()

public RestoreConfig.VolumeDataRestorePolicyBinding.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
RestoreConfig.VolumeDataRestorePolicyBinding.Builder

This builder for chaining.

clearScope()

public RestoreConfig.VolumeDataRestorePolicyBinding.Builder clearScope()
Returns
Type Description
RestoreConfig.VolumeDataRestorePolicyBinding.Builder

clearVolumeType()

public RestoreConfig.VolumeDataRestorePolicyBinding.Builder clearVolumeType()

The volume type, as determined by the PVC's bound PV, to apply the policy to.

.google.cloud.gkebackup.v1.VolumeTypeEnum.VolumeType volume_type = 2;

Returns
Type Description
RestoreConfig.VolumeDataRestorePolicyBinding.Builder

This builder for chaining.

clone()

public RestoreConfig.VolumeDataRestorePolicyBinding.Builder clone()
Returns
Type Description
RestoreConfig.VolumeDataRestorePolicyBinding.Builder
Overrides

getDefaultInstanceForType()

public RestoreConfig.VolumeDataRestorePolicyBinding getDefaultInstanceForType()
Returns
Type Description
RestoreConfig.VolumeDataRestorePolicyBinding

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 RestoreConfig.VolumeDataRestorePolicyBinding.ScopeCase getScopeCase()
Returns
Type Description
RestoreConfig.VolumeDataRestorePolicyBinding.ScopeCase

getVolumeType()

public VolumeTypeEnum.VolumeType getVolumeType()

The volume type, as determined by the PVC's bound PV, to apply the policy to.

.google.cloud.gkebackup.v1.VolumeTypeEnum.VolumeType volume_type = 2;

Returns
Type Description
VolumeTypeEnum.VolumeType

The volumeType.

getVolumeTypeValue()

public int getVolumeTypeValue()

The volume type, as determined by the PVC's bound PV, to apply the policy to.

.google.cloud.gkebackup.v1.VolumeTypeEnum.VolumeType volume_type = 2;

Returns
Type Description
int

The enum numeric value on the wire for volumeType.

hasVolumeType()

public boolean hasVolumeType()

The volume type, as determined by the PVC's bound PV, to apply the policy to.

.google.cloud.gkebackup.v1.VolumeTypeEnum.VolumeType volume_type = 2;

Returns
Type Description
boolean

Whether the volumeType field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(RestoreConfig.VolumeDataRestorePolicyBinding other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

setPolicy(RestoreConfig.VolumeDataRestorePolicy value)

public RestoreConfig.VolumeDataRestorePolicyBinding.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
RestoreConfig.VolumeDataRestorePolicyBinding.Builder

This builder for chaining.

setPolicyValue(int value)

public RestoreConfig.VolumeDataRestorePolicyBinding.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
RestoreConfig.VolumeDataRestorePolicyBinding.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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

setVolumeType(VolumeTypeEnum.VolumeType value)

public RestoreConfig.VolumeDataRestorePolicyBinding.Builder setVolumeType(VolumeTypeEnum.VolumeType value)

The volume type, as determined by the PVC's bound PV, to apply the policy to.

.google.cloud.gkebackup.v1.VolumeTypeEnum.VolumeType volume_type = 2;

Parameter
Name Description
value VolumeTypeEnum.VolumeType

The volumeType to set.

Returns
Type Description
RestoreConfig.VolumeDataRestorePolicyBinding.Builder

This builder for chaining.

setVolumeTypeValue(int value)

public RestoreConfig.VolumeDataRestorePolicyBinding.Builder setVolumeTypeValue(int value)

The volume type, as determined by the PVC's bound PV, to apply the policy to.

.google.cloud.gkebackup.v1.VolumeTypeEnum.VolumeType volume_type = 2;

Parameter
Name Description
value int

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

Returns
Type Description
RestoreConfig.VolumeDataRestorePolicyBinding.Builder

This builder for chaining.