Class Cluster.PrimaryConfig.Builder

  • All Implemented Interfaces:
    Cluster.PrimaryConfigOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
    Enclosing class:
    Cluster.PrimaryConfig

    public static final class Cluster.PrimaryConfig.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<Cluster.PrimaryConfig.Builder>
    implements Cluster.PrimaryConfigOrBuilder
     Configuration for the primary cluster. It has the list of clusters that are
     replicating from this cluster. This should be set if and only if the
     cluster is of type PRIMARY.
     
    Protobuf type google.cloud.alloydb.v1beta.Cluster.PrimaryConfig
    • Method Detail

      • getDescriptor

        public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
      • internalGetFieldAccessorTable

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<Cluster.PrimaryConfig.Builder>
      • clear

        public Cluster.PrimaryConfig.Builder clear()
        Specified by:
        clear in interface com.google.protobuf.Message.Builder
        Specified by:
        clear in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clear in class com.google.protobuf.GeneratedMessageV3.Builder<Cluster.PrimaryConfig.Builder>
      • getDescriptorForType

        public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
        Specified by:
        getDescriptorForType in interface com.google.protobuf.Message.Builder
        Specified by:
        getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
        Overrides:
        getDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<Cluster.PrimaryConfig.Builder>
      • getDefaultInstanceForType

        public Cluster.PrimaryConfig getDefaultInstanceForType()
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
      • build

        public Cluster.PrimaryConfig build()
        Specified by:
        build in interface com.google.protobuf.Message.Builder
        Specified by:
        build in interface com.google.protobuf.MessageLite.Builder
      • buildPartial

        public Cluster.PrimaryConfig buildPartial()
        Specified by:
        buildPartial in interface com.google.protobuf.Message.Builder
        Specified by:
        buildPartial in interface com.google.protobuf.MessageLite.Builder
      • clone

        public Cluster.PrimaryConfig.Builder clone()
        Specified by:
        clone in interface com.google.protobuf.Message.Builder
        Specified by:
        clone in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clone in class com.google.protobuf.GeneratedMessageV3.Builder<Cluster.PrimaryConfig.Builder>
      • clearField

        public Cluster.PrimaryConfig.Builder clearField​(com.google.protobuf.Descriptors.FieldDescriptor field)
        Specified by:
        clearField in interface com.google.protobuf.Message.Builder
        Overrides:
        clearField in class com.google.protobuf.GeneratedMessageV3.Builder<Cluster.PrimaryConfig.Builder>
      • clearOneof

        public Cluster.PrimaryConfig.Builder clearOneof​(com.google.protobuf.Descriptors.OneofDescriptor oneof)
        Specified by:
        clearOneof in interface com.google.protobuf.Message.Builder
        Overrides:
        clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<Cluster.PrimaryConfig.Builder>
      • setRepeatedField

        public Cluster.PrimaryConfig.Builder setRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                              int index,
                                                              Object value)
        Specified by:
        setRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Cluster.PrimaryConfig.Builder>
      • addRepeatedField

        public Cluster.PrimaryConfig.Builder addRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                              Object value)
        Specified by:
        addRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Cluster.PrimaryConfig.Builder>
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<Cluster.PrimaryConfig.Builder>
      • mergeFrom

        public Cluster.PrimaryConfig.Builder mergeFrom​(com.google.protobuf.CodedInputStream input,
                                                       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                                throws IOException
        Specified by:
        mergeFrom in interface com.google.protobuf.Message.Builder
        Specified by:
        mergeFrom in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        mergeFrom in class com.google.protobuf.AbstractMessage.Builder<Cluster.PrimaryConfig.Builder>
        Throws:
        IOException
      • getSecondaryClusterNamesList

        public com.google.protobuf.ProtocolStringList getSecondaryClusterNamesList()
         Output only. Names of the clusters that are replicating from this
         cluster.
         
        repeated string secondary_cluster_names = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getSecondaryClusterNamesList in interface Cluster.PrimaryConfigOrBuilder
        Returns:
        A list containing the secondaryClusterNames.
      • getSecondaryClusterNamesCount

        public int getSecondaryClusterNamesCount()
         Output only. Names of the clusters that are replicating from this
         cluster.
         
        repeated string secondary_cluster_names = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getSecondaryClusterNamesCount in interface Cluster.PrimaryConfigOrBuilder
        Returns:
        The count of secondaryClusterNames.
      • getSecondaryClusterNames

        public String getSecondaryClusterNames​(int index)
         Output only. Names of the clusters that are replicating from this
         cluster.
         
        repeated string secondary_cluster_names = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getSecondaryClusterNames in interface Cluster.PrimaryConfigOrBuilder
        Parameters:
        index - The index of the element to return.
        Returns:
        The secondaryClusterNames at the given index.
      • getSecondaryClusterNamesBytes

        public com.google.protobuf.ByteString getSecondaryClusterNamesBytes​(int index)
         Output only. Names of the clusters that are replicating from this
         cluster.
         
        repeated string secondary_cluster_names = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getSecondaryClusterNamesBytes in interface Cluster.PrimaryConfigOrBuilder
        Parameters:
        index - The index of the value to return.
        Returns:
        The bytes of the secondaryClusterNames at the given index.
      • setSecondaryClusterNames

        public Cluster.PrimaryConfig.Builder setSecondaryClusterNames​(int index,
                                                                      String value)
         Output only. Names of the clusters that are replicating from this
         cluster.
         
        repeated string secondary_cluster_names = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Parameters:
        index - The index to set the value at.
        value - The secondaryClusterNames to set.
        Returns:
        This builder for chaining.
      • addSecondaryClusterNames

        public Cluster.PrimaryConfig.Builder addSecondaryClusterNames​(String value)
         Output only. Names of the clusters that are replicating from this
         cluster.
         
        repeated string secondary_cluster_names = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Parameters:
        value - The secondaryClusterNames to add.
        Returns:
        This builder for chaining.
      • addAllSecondaryClusterNames

        public Cluster.PrimaryConfig.Builder addAllSecondaryClusterNames​(Iterable<String> values)
         Output only. Names of the clusters that are replicating from this
         cluster.
         
        repeated string secondary_cluster_names = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Parameters:
        values - The secondaryClusterNames to add.
        Returns:
        This builder for chaining.
      • clearSecondaryClusterNames

        public Cluster.PrimaryConfig.Builder clearSecondaryClusterNames()
         Output only. Names of the clusters that are replicating from this
         cluster.
         
        repeated string secondary_cluster_names = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Returns:
        This builder for chaining.
      • addSecondaryClusterNamesBytes

        public Cluster.PrimaryConfig.Builder addSecondaryClusterNamesBytes​(com.google.protobuf.ByteString value)
         Output only. Names of the clusters that are replicating from this
         cluster.
         
        repeated string secondary_cluster_names = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Parameters:
        value - The bytes of the secondaryClusterNames to add.
        Returns:
        This builder for chaining.
      • setUnknownFields

        public final Cluster.PrimaryConfig.Builder setUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        setUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Cluster.PrimaryConfig.Builder>
      • mergeUnknownFields

        public final Cluster.PrimaryConfig.Builder mergeUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        mergeUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Cluster.PrimaryConfig.Builder>