Class Cluster.PrimaryConfig.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<Cluster.PrimaryConfig.Builder>
com.google.cloud.alloydb.v1beta.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.GeneratedMessage.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 Details

    • getDescriptor

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

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<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.GeneratedMessage.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.GeneratedMessage.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
    • mergeFrom

      public Cluster.PrimaryConfig.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<Cluster.PrimaryConfig.Builder>
    • mergeFrom

    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.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, (.google.api.resource_reference) = { ... }
      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, (.google.api.resource_reference) = { ... }
      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, (.google.api.resource_reference) = { ... }
      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, (.google.api.resource_reference) = { ... }
      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, (.google.api.resource_reference) = { ... }
      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, (.google.api.resource_reference) = { ... }
      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, (.google.api.resource_reference) = { ... }
      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, (.google.api.resource_reference) = { ... }
      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, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The bytes of the secondaryClusterNames to add.
      Returns:
      This builder for chaining.