Class Replication.UserManaged.Builder (2.3.10)

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

A replication policy that replicates the Secret payload into the locations specified in [Secret.replication.user_managed.replicas][]

Protobuf type google.cloud.secrets.v1beta1.Replication.UserManaged

Static Methods

getDescriptor()

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

Methods

addAllReplicas(Iterable<? extends Replication.UserManaged.Replica> values)

public Replication.UserManaged.Builder addAllReplicas(Iterable<? extends Replication.UserManaged.Replica> values)

Required. The list of Replicas for this Secret. Cannot be empty.

repeated .google.cloud.secrets.v1beta1.Replication.UserManaged.Replica replicas = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valuesIterable<? extends com.google.cloud.secretmanager.v1beta1.Replication.UserManaged.Replica>
Returns
TypeDescription
Replication.UserManaged.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

addReplicas(Replication.UserManaged.Replica value)

public Replication.UserManaged.Builder addReplicas(Replication.UserManaged.Replica value)

Required. The list of Replicas for this Secret. Cannot be empty.

repeated .google.cloud.secrets.v1beta1.Replication.UserManaged.Replica replicas = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueReplication.UserManaged.Replica
Returns
TypeDescription
Replication.UserManaged.Builder

addReplicas(Replication.UserManaged.Replica.Builder builderForValue)

public Replication.UserManaged.Builder addReplicas(Replication.UserManaged.Replica.Builder builderForValue)

Required. The list of Replicas for this Secret. Cannot be empty.

repeated .google.cloud.secrets.v1beta1.Replication.UserManaged.Replica replicas = 1 [(.google.api.field_behavior) = REQUIRED];

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

addReplicas(int index, Replication.UserManaged.Replica value)

public Replication.UserManaged.Builder addReplicas(int index, Replication.UserManaged.Replica value)

Required. The list of Replicas for this Secret. Cannot be empty.

repeated .google.cloud.secrets.v1beta1.Replication.UserManaged.Replica replicas = 1 [(.google.api.field_behavior) = REQUIRED];

Parameters
NameDescription
indexint
valueReplication.UserManaged.Replica
Returns
TypeDescription
Replication.UserManaged.Builder

addReplicas(int index, Replication.UserManaged.Replica.Builder builderForValue)

public Replication.UserManaged.Builder addReplicas(int index, Replication.UserManaged.Replica.Builder builderForValue)

Required. The list of Replicas for this Secret. Cannot be empty.

repeated .google.cloud.secrets.v1beta1.Replication.UserManaged.Replica replicas = 1 [(.google.api.field_behavior) = REQUIRED];

Parameters
NameDescription
indexint
builderForValueReplication.UserManaged.Replica.Builder
Returns
TypeDescription
Replication.UserManaged.Builder

addReplicasBuilder()

public Replication.UserManaged.Replica.Builder addReplicasBuilder()

Required. The list of Replicas for this Secret. Cannot be empty.

repeated .google.cloud.secrets.v1beta1.Replication.UserManaged.Replica replicas = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
Replication.UserManaged.Replica.Builder

addReplicasBuilder(int index)

public Replication.UserManaged.Replica.Builder addReplicasBuilder(int index)

Required. The list of Replicas for this Secret. Cannot be empty.

repeated .google.cloud.secrets.v1beta1.Replication.UserManaged.Replica replicas = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
indexint
Returns
TypeDescription
Replication.UserManaged.Replica.Builder

build()

public Replication.UserManaged build()
Returns
TypeDescription
Replication.UserManaged

buildPartial()

public Replication.UserManaged buildPartial()
Returns
TypeDescription
Replication.UserManaged

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearReplicas()

public Replication.UserManaged.Builder clearReplicas()

Required. The list of Replicas for this Secret. Cannot be empty.

repeated .google.cloud.secrets.v1beta1.Replication.UserManaged.Replica replicas = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
Replication.UserManaged.Builder

clone()

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

getDefaultInstanceForType()

public Replication.UserManaged getDefaultInstanceForType()
Returns
TypeDescription
Replication.UserManaged

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getReplicas(int index)

public Replication.UserManaged.Replica getReplicas(int index)

Required. The list of Replicas for this Secret. Cannot be empty.

repeated .google.cloud.secrets.v1beta1.Replication.UserManaged.Replica replicas = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
indexint
Returns
TypeDescription
Replication.UserManaged.Replica

getReplicasBuilder(int index)

public Replication.UserManaged.Replica.Builder getReplicasBuilder(int index)

Required. The list of Replicas for this Secret. Cannot be empty.

repeated .google.cloud.secrets.v1beta1.Replication.UserManaged.Replica replicas = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
indexint
Returns
TypeDescription
Replication.UserManaged.Replica.Builder

getReplicasBuilderList()

public List<Replication.UserManaged.Replica.Builder> getReplicasBuilderList()

Required. The list of Replicas for this Secret. Cannot be empty.

repeated .google.cloud.secrets.v1beta1.Replication.UserManaged.Replica replicas = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
List<Builder>

getReplicasCount()

public int getReplicasCount()

Required. The list of Replicas for this Secret. Cannot be empty.

repeated .google.cloud.secrets.v1beta1.Replication.UserManaged.Replica replicas = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
int

getReplicasList()

public List<Replication.UserManaged.Replica> getReplicasList()

Required. The list of Replicas for this Secret. Cannot be empty.

repeated .google.cloud.secrets.v1beta1.Replication.UserManaged.Replica replicas = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
List<Replica>

getReplicasOrBuilder(int index)

public Replication.UserManaged.ReplicaOrBuilder getReplicasOrBuilder(int index)

Required. The list of Replicas for this Secret. Cannot be empty.

repeated .google.cloud.secrets.v1beta1.Replication.UserManaged.Replica replicas = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
indexint
Returns
TypeDescription
Replication.UserManaged.ReplicaOrBuilder

getReplicasOrBuilderList()

public List<? extends Replication.UserManaged.ReplicaOrBuilder> getReplicasOrBuilderList()

Required. The list of Replicas for this Secret. Cannot be empty.

repeated .google.cloud.secrets.v1beta1.Replication.UserManaged.Replica replicas = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
List<? extends com.google.cloud.secretmanager.v1beta1.Replication.UserManaged.ReplicaOrBuilder>

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(Replication.UserManaged other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final Replication.UserManaged.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
Replication.UserManaged.Builder
Overrides

removeReplicas(int index)

public Replication.UserManaged.Builder removeReplicas(int index)

Required. The list of Replicas for this Secret. Cannot be empty.

repeated .google.cloud.secrets.v1beta1.Replication.UserManaged.Replica replicas = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
indexint
Returns
TypeDescription
Replication.UserManaged.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setReplicas(int index, Replication.UserManaged.Replica value)

public Replication.UserManaged.Builder setReplicas(int index, Replication.UserManaged.Replica value)

Required. The list of Replicas for this Secret. Cannot be empty.

repeated .google.cloud.secrets.v1beta1.Replication.UserManaged.Replica replicas = 1 [(.google.api.field_behavior) = REQUIRED];

Parameters
NameDescription
indexint
valueReplication.UserManaged.Replica
Returns
TypeDescription
Replication.UserManaged.Builder

setReplicas(int index, Replication.UserManaged.Replica.Builder builderForValue)

public Replication.UserManaged.Builder setReplicas(int index, Replication.UserManaged.Replica.Builder builderForValue)

Required. The list of Replicas for this Secret. Cannot be empty.

repeated .google.cloud.secrets.v1beta1.Replication.UserManaged.Replica replicas = 1 [(.google.api.field_behavior) = REQUIRED];

Parameters
NameDescription
indexint
builderForValueReplication.UserManaged.Replica.Builder
Returns
TypeDescription
Replication.UserManaged.Builder

setUnknownFields(UnknownFieldSet unknownFields)

public final Replication.UserManaged.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
Replication.UserManaged.Builder
Overrides