Send feedback
Class VolumeDataRestorePolicyOverride.Builder (0.45.0)
Stay organized with collections
Save and categorize content based on your preferences.
Version 0.45.0 keyboard_arrow_down
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
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 VolumeDataRestorePolicyOverride . Builder addRepeatedField ( Descriptors . FieldDescriptor field , Object value )
Overrides
build()
public VolumeDataRestorePolicyOverride build ()
buildPartial()
public VolumeDataRestorePolicyOverride buildPartial ()
clear()
public VolumeDataRestorePolicyOverride . Builder clear ()
Overrides
clearField(Descriptors.FieldDescriptor field)
public VolumeDataRestorePolicyOverride . Builder clearField ( Descriptors . FieldDescriptor field )
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public VolumeDataRestorePolicyOverride . Builder clearOneof ( Descriptors . OneofDescriptor oneof )
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];
clearScope()
public VolumeDataRestorePolicyOverride . Builder clearScope ()
clearSelectedPvcs()
public VolumeDataRestorePolicyOverride . Builder clearSelectedPvcs ()
A list of PVCs to apply the policy override to.
.google.cloud.gkebackup.v1.NamespacedNames selected_pvcs = 2;
clone()
public VolumeDataRestorePolicyOverride . Builder clone ()
Overrides
getDefaultInstanceForType()
public VolumeDataRestorePolicyOverride getDefaultInstanceForType ()
getDescriptorForType()
public Descriptors . Descriptor getDescriptorForType ()
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];
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 ()
getSelectedPvcs()
public NamespacedNames getSelectedPvcs ()
A list of PVCs to apply the policy override to.
.google.cloud.gkebackup.v1.NamespacedNames selected_pvcs = 2;
getSelectedPvcsBuilder()
public NamespacedNames . Builder getSelectedPvcsBuilder ()
A list of PVCs to apply the policy override to.
.google.cloud.gkebackup.v1.NamespacedNames selected_pvcs = 2;
getSelectedPvcsOrBuilder()
public NamespacedNamesOrBuilder getSelectedPvcsOrBuilder ()
A list of PVCs to apply the policy override to.
.google.cloud.gkebackup.v1.NamespacedNames selected_pvcs = 2;
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 ()
Overrides
isInitialized()
public final boolean isInitialized ()
Overrides
mergeFrom(VolumeDataRestorePolicyOverride other)
public VolumeDataRestorePolicyOverride . Builder mergeFrom ( VolumeDataRestorePolicyOverride other )
public VolumeDataRestorePolicyOverride . Builder mergeFrom ( CodedInputStream input , ExtensionRegistryLite extensionRegistry )
Overrides
mergeFrom(Message other)
public VolumeDataRestorePolicyOverride . Builder mergeFrom ( Message other )
Parameter
Name
Description
other
Message
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;
mergeUnknownFields(UnknownFieldSet unknownFields)
public final VolumeDataRestorePolicyOverride . Builder mergeUnknownFields ( UnknownFieldSet unknownFields )
Overrides
setField(Descriptors.FieldDescriptor field, Object value)
public VolumeDataRestorePolicyOverride . Builder setField ( Descriptors . FieldDescriptor field , Object value )
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];
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.
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public VolumeDataRestorePolicyOverride . Builder setRepeatedField ( Descriptors . FieldDescriptor field , int index , Object value )
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;
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;
setUnknownFields(UnknownFieldSet unknownFields)
public final VolumeDataRestorePolicyOverride . Builder setUnknownFields ( UnknownFieldSet unknownFields )
Overrides
Send feedback
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-01-27 UTC.
Need to tell us more?
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-01-27 UTC."],[],[]]