Class Replication.Builder (2.83.0)
Version 2.83.0keyboard_arrow_down
public static final class Replication . Builder extends GeneratedMessage . Builder<Replication . Builder > implements ReplicationOrBuilder
A policy that defines the replication and encryption configuration of data.
Protobuf type google.cloud.secretmanager.v1beta2.Replication
Inherited Members
com.google.protobuf.GeneratedMessage.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessage.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessage.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessage.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessage.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessage.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessage.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
com.google.protobuf.GeneratedMessage.Builder.setUnknownFieldsProto3(com.google.protobuf.UnknownFieldSet)
Static Methods
getDescriptor()
public static final Descriptors . Descriptor getDescriptor ()
Methods
build()
public Replication build ()
buildPartial()
public Replication buildPartial ()
clear()
public Replication . Builder clear ()
Overrides
clearAutomatic()
public Replication . Builder clearAutomatic ()
The Secret will
automatically be replicated without any restrictions.
.google.cloud.secretmanager.v1beta2.Replication.Automatic automatic = 1;
clearReplication()
public Replication . Builder clearReplication ()
clearUserManaged()
public Replication . Builder clearUserManaged ()
The Secret will only be
replicated into the locations specified.
.google.cloud.secretmanager.v1beta2.Replication.UserManaged user_managed = 2;
getAutomatic()
public Replication . Automatic getAutomatic ()
The Secret will
automatically be replicated without any restrictions.
.google.cloud.secretmanager.v1beta2.Replication.Automatic automatic = 1;
getAutomaticBuilder()
public Replication . Automatic . Builder getAutomaticBuilder ()
The Secret will
automatically be replicated without any restrictions.
.google.cloud.secretmanager.v1beta2.Replication.Automatic automatic = 1;
getAutomaticOrBuilder()
public Replication . AutomaticOrBuilder getAutomaticOrBuilder ()
The Secret will
automatically be replicated without any restrictions.
.google.cloud.secretmanager.v1beta2.Replication.Automatic automatic = 1;
getDefaultInstanceForType()
public Replication getDefaultInstanceForType ()
getDescriptorForType()
public Descriptors . Descriptor getDescriptorForType ()
Overrides
getReplicationCase()
public Replication . ReplicationCase getReplicationCase ()
getUserManaged()
public Replication . UserManaged getUserManaged ()
The Secret will only be
replicated into the locations specified.
.google.cloud.secretmanager.v1beta2.Replication.UserManaged user_managed = 2;
getUserManagedBuilder()
public Replication . UserManaged . Builder getUserManagedBuilder ()
The Secret will only be
replicated into the locations specified.
.google.cloud.secretmanager.v1beta2.Replication.UserManaged user_managed = 2;
getUserManagedOrBuilder()
public Replication . UserManagedOrBuilder getUserManagedOrBuilder ()
The Secret will only be
replicated into the locations specified.
.google.cloud.secretmanager.v1beta2.Replication.UserManaged user_managed = 2;
hasAutomatic()
public boolean hasAutomatic ()
The Secret will
automatically be replicated without any restrictions.
.google.cloud.secretmanager.v1beta2.Replication.Automatic automatic = 1;
Returns
Type
Description
boolean
Whether the automatic field is set.
hasUserManaged()
public boolean hasUserManaged ()
The Secret will only be
replicated into the locations specified.
.google.cloud.secretmanager.v1beta2.Replication.UserManaged user_managed = 2;
Returns
Type
Description
boolean
Whether the userManaged field is set.
internalGetFieldAccessorTable()
protected GeneratedMessage . FieldAccessorTable internalGetFieldAccessorTable ()
Overrides
isInitialized()
public final boolean isInitialized ()
Overrides
mergeAutomatic(Replication.Automatic value)
public Replication . Builder mergeAutomatic ( Replication . Automatic value )
The Secret will
automatically be replicated without any restrictions.
.google.cloud.secretmanager.v1beta2.Replication.Automatic automatic = 1;
mergeFrom(Replication other)
public Replication . Builder mergeFrom ( Replication other )
public Replication . Builder mergeFrom ( CodedInputStream input , ExtensionRegistryLite extensionRegistry )
Overrides
mergeFrom(Message other)
public Replication . Builder mergeFrom ( Message other )
Parameter
Name
Description
other
Message
Overrides
mergeUserManaged(Replication.UserManaged value)
public Replication . Builder mergeUserManaged ( Replication . UserManaged value )
The Secret will only be
replicated into the locations specified.
.google.cloud.secretmanager.v1beta2.Replication.UserManaged user_managed = 2;
setAutomatic(Replication.Automatic value)
public Replication . Builder setAutomatic ( Replication . Automatic value )
The Secret will
automatically be replicated without any restrictions.
.google.cloud.secretmanager.v1beta2.Replication.Automatic automatic = 1;
setAutomatic(Replication.Automatic.Builder builderForValue)
public Replication . Builder setAutomatic ( Replication . Automatic . Builder builderForValue )
The Secret will
automatically be replicated without any restrictions.
.google.cloud.secretmanager.v1beta2.Replication.Automatic automatic = 1;
setUserManaged(Replication.UserManaged value)
public Replication . Builder setUserManaged ( Replication . UserManaged value )
The Secret will only be
replicated into the locations specified.
.google.cloud.secretmanager.v1beta2.Replication.UserManaged user_managed = 2;
setUserManaged(Replication.UserManaged.Builder builderForValue)
public Replication . Builder setUserManaged ( Replication . UserManaged . Builder builderForValue )
The Secret will only be
replicated into the locations specified.
.google.cloud.secretmanager.v1beta2.Replication.UserManaged user_managed = 2;
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 2026-02-23 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2026-02-23 UTC."],[],[]]