Send feedback
Class Replication.UserManaged.Builder (2.1.7)
Stay organized with collections
Save and categorize content based on your preferences.
Version 2.1.7 keyboard_arrow_down
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
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
Name Description values Iterable <? extends com.google.cloud.secretmanager.v1beta1.Replication.UserManaged.Replica >
Returns
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public Replication . UserManaged . Builder addRepeatedField ( Descriptors . FieldDescriptor field , Object value )
Parameters
Returns
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
Returns
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
Returns
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
Returns
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
Returns
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
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
Returns
build()
public Replication . UserManaged build ()
Returns
buildPartial()
public Replication . UserManaged buildPartial ()
Returns
clear()
public Replication . UserManaged . Builder clear ()
Returns
Overrides
clearField(Descriptors.FieldDescriptor field)
public Replication . UserManaged . Builder clearField ( Descriptors . FieldDescriptor field )
Parameter
Returns
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public Replication . UserManaged . Builder clearOneof ( Descriptors . OneofDescriptor oneof )
Parameter
Returns
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
clone()
public Replication . UserManaged . Builder clone ()
Returns
Overrides
getDefaultInstanceForType()
public Replication . UserManaged getDefaultInstanceForType ()
Returns
getDescriptorForType()
public Descriptors . Descriptor getDescriptorForType ()
Returns
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
Returns
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
Returns
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
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
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
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
Returns
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
Type Description List <? extends com.google.cloud.secretmanager.v1beta1.Replication.UserManaged.ReplicaOrBuilder >
internalGetFieldAccessorTable()
protected GeneratedMessageV3 . FieldAccessorTable internalGetFieldAccessorTable ()
Returns
Overrides
isInitialized()
public final boolean isInitialized ()
Returns
Overrides
mergeFrom(Replication.UserManaged other)
public Replication . UserManaged . Builder mergeFrom ( Replication . UserManaged other )
Parameter
Returns
public Replication . UserManaged . Builder mergeFrom ( CodedInputStream input , ExtensionRegistryLite extensionRegistry )
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public Replication . UserManaged . Builder mergeFrom ( Message other )
Parameter
Returns
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final Replication . UserManaged . Builder mergeUnknownFields ( UnknownFieldSet unknownFields )
Parameter
Returns
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
Returns
setField(Descriptors.FieldDescriptor field, Object value)
public Replication . UserManaged . Builder setField ( Descriptors . FieldDescriptor field , Object value )
Parameters
Returns
Overrides
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public Replication . UserManaged . Builder setRepeatedField ( Descriptors . FieldDescriptor field , int index , Object value )
Parameters
Returns
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
Returns
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
Returns
setUnknownFields(UnknownFieldSet unknownFields)
public final Replication . UserManaged . Builder setUnknownFields ( UnknownFieldSet unknownFields )
Parameter
Returns
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-28 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-28 UTC."],[],[]]