Class Replication.Builder (2.43.0)

public static final class Replication.Builder extends GeneratedMessageV3.Builder<Replication.Builder> implements ReplicationOrBuilder

A policy that defines the replication and encryption configuration of data.

Protobuf type google.cloud.secretmanager.v1beta2.Replication

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public Replication build()
Returns
Type Description
Replication

buildPartial()

public Replication buildPartial()
Returns
Type Description
Replication

clear()

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

clearAutomatic()

public Replication.Builder clearAutomatic()

The Secret will automatically be replicated without any restrictions.

.google.cloud.secretmanager.v1beta2.Replication.Automatic automatic = 1;

Returns
Type Description
Replication.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearReplication()

public Replication.Builder clearReplication()
Returns
Type Description
Replication.Builder

clearUserManaged()

public Replication.Builder clearUserManaged()

The Secret will only be replicated into the locations specified.

.google.cloud.secretmanager.v1beta2.Replication.UserManaged user_managed = 2;

Returns
Type Description
Replication.Builder

clone()

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

getAutomatic()

public Replication.Automatic getAutomatic()

The Secret will automatically be replicated without any restrictions.

.google.cloud.secretmanager.v1beta2.Replication.Automatic automatic = 1;

Returns
Type Description
Replication.Automatic

The automatic.

getAutomaticBuilder()

public Replication.Automatic.Builder getAutomaticBuilder()

The Secret will automatically be replicated without any restrictions.

.google.cloud.secretmanager.v1beta2.Replication.Automatic automatic = 1;

Returns
Type Description
Replication.Automatic.Builder

getAutomaticOrBuilder()

public Replication.AutomaticOrBuilder getAutomaticOrBuilder()

The Secret will automatically be replicated without any restrictions.

.google.cloud.secretmanager.v1beta2.Replication.Automatic automatic = 1;

Returns
Type Description
Replication.AutomaticOrBuilder

getDefaultInstanceForType()

public Replication getDefaultInstanceForType()
Returns
Type Description
Replication

getDescriptorForType()

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

getReplicationCase()

public Replication.ReplicationCase getReplicationCase()
Returns
Type Description
Replication.ReplicationCase

getUserManaged()

public Replication.UserManaged getUserManaged()

The Secret will only be replicated into the locations specified.

.google.cloud.secretmanager.v1beta2.Replication.UserManaged user_managed = 2;

Returns
Type Description
Replication.UserManaged

The userManaged.

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;

Returns
Type Description
Replication.UserManaged.Builder

getUserManagedOrBuilder()

public Replication.UserManagedOrBuilder getUserManagedOrBuilder()

The Secret will only be replicated into the locations specified.

.google.cloud.secretmanager.v1beta2.Replication.UserManaged user_managed = 2;

Returns
Type Description
Replication.UserManagedOrBuilder

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 GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
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;

Parameter
Name Description
value Replication.Automatic
Returns
Type Description
Replication.Builder

mergeFrom(Replication other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final Replication.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
Replication.Builder
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;

Parameter
Name Description
value Replication.UserManaged
Returns
Type Description
Replication.Builder

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;

Parameter
Name Description
value Replication.Automatic
Returns
Type Description
Replication.Builder

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;

Parameter
Name Description
builderForValue Replication.Automatic.Builder
Returns
Type Description
Replication.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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

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;

Parameter
Name Description
value Replication.UserManaged
Returns
Type Description
Replication.Builder

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;

Parameter
Name Description
builderForValue Replication.UserManaged.Builder
Returns
Type Description
Replication.Builder