Class Replication.Builder (2.34.0)

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

A policy that defines the replication configuration of data.

Protobuf type google.cloud.secrets.v1beta1.Replication

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public Replication.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
Replication.Builder
Overrides

build()

public Replication build()
Returns
TypeDescription
Replication

buildPartial()

public Replication buildPartial()
Returns
TypeDescription
Replication

clear()

public Replication.Builder clear()
Returns
TypeDescription
Replication.Builder
Overrides

clearAutomatic()

public Replication.Builder clearAutomatic()

The Secret will automatically be replicated without any restrictions.

.google.cloud.secrets.v1beta1.Replication.Automatic automatic = 1;

Returns
TypeDescription
Replication.Builder

clearField(Descriptors.FieldDescriptor field)

public Replication.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
Replication.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public Replication.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
Replication.Builder
Overrides

clearReplication()

public Replication.Builder clearReplication()
Returns
TypeDescription
Replication.Builder

clearUserManaged()

public Replication.Builder clearUserManaged()

The Secret will only be replicated into the locations specified.

.google.cloud.secrets.v1beta1.Replication.UserManaged user_managed = 2;

Returns
TypeDescription
Replication.Builder

clone()

public Replication.Builder clone()
Returns
TypeDescription
Replication.Builder
Overrides

getAutomatic()

public Replication.Automatic getAutomatic()

The Secret will automatically be replicated without any restrictions.

.google.cloud.secrets.v1beta1.Replication.Automatic automatic = 1;

Returns
TypeDescription
Replication.Automatic

The automatic.

getAutomaticBuilder()

public Replication.Automatic.Builder getAutomaticBuilder()

The Secret will automatically be replicated without any restrictions.

.google.cloud.secrets.v1beta1.Replication.Automatic automatic = 1;

Returns
TypeDescription
Replication.Automatic.Builder

getAutomaticOrBuilder()

public Replication.AutomaticOrBuilder getAutomaticOrBuilder()

The Secret will automatically be replicated without any restrictions.

.google.cloud.secrets.v1beta1.Replication.Automatic automatic = 1;

Returns
TypeDescription
Replication.AutomaticOrBuilder

getDefaultInstanceForType()

public Replication getDefaultInstanceForType()
Returns
TypeDescription
Replication

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getReplicationCase()

public Replication.ReplicationCase getReplicationCase()
Returns
TypeDescription
Replication.ReplicationCase

getUserManaged()

public Replication.UserManaged getUserManaged()

The Secret will only be replicated into the locations specified.

.google.cloud.secrets.v1beta1.Replication.UserManaged user_managed = 2;

Returns
TypeDescription
Replication.UserManaged

The userManaged.

getUserManagedBuilder()

public Replication.UserManaged.Builder getUserManagedBuilder()

The Secret will only be replicated into the locations specified.

.google.cloud.secrets.v1beta1.Replication.UserManaged user_managed = 2;

Returns
TypeDescription
Replication.UserManaged.Builder

getUserManagedOrBuilder()

public Replication.UserManagedOrBuilder getUserManagedOrBuilder()

The Secret will only be replicated into the locations specified.

.google.cloud.secrets.v1beta1.Replication.UserManaged user_managed = 2;

Returns
TypeDescription
Replication.UserManagedOrBuilder

hasAutomatic()

public boolean hasAutomatic()

The Secret will automatically be replicated without any restrictions.

.google.cloud.secrets.v1beta1.Replication.Automatic automatic = 1;

Returns
TypeDescription
boolean

Whether the automatic field is set.

hasUserManaged()

public boolean hasUserManaged()

The Secret will only be replicated into the locations specified.

.google.cloud.secrets.v1beta1.Replication.UserManaged user_managed = 2;

Returns
TypeDescription
boolean

Whether the userManaged field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeAutomatic(Replication.Automatic value)

public Replication.Builder mergeAutomatic(Replication.Automatic value)

The Secret will automatically be replicated without any restrictions.

.google.cloud.secrets.v1beta1.Replication.Automatic automatic = 1;

Parameter
NameDescription
valueReplication.Automatic
Returns
TypeDescription
Replication.Builder

mergeFrom(Replication other)

public Replication.Builder mergeFrom(Replication other)
Parameter
NameDescription
otherReplication
Returns
TypeDescription
Replication.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public Replication.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Replication.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public Replication.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
Replication.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final Replication.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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.secrets.v1beta1.Replication.UserManaged user_managed = 2;

Parameter
NameDescription
valueReplication.UserManaged
Returns
TypeDescription
Replication.Builder

setAutomatic(Replication.Automatic value)

public Replication.Builder setAutomatic(Replication.Automatic value)

The Secret will automatically be replicated without any restrictions.

.google.cloud.secrets.v1beta1.Replication.Automatic automatic = 1;

Parameter
NameDescription
valueReplication.Automatic
Returns
TypeDescription
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.secrets.v1beta1.Replication.Automatic automatic = 1;

Parameter
NameDescription
builderForValueReplication.Automatic.Builder
Returns
TypeDescription
Replication.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public Replication.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
Replication.Builder
Overrides

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

public Replication.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
Replication.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final Replication.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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.secrets.v1beta1.Replication.UserManaged user_managed = 2;

Parameter
NameDescription
valueReplication.UserManaged
Returns
TypeDescription
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.secrets.v1beta1.Replication.UserManaged user_managed = 2;

Parameter
NameDescription
builderForValueReplication.UserManaged.Builder
Returns
TypeDescription
Replication.Builder