Class ReplicaInfo.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<ReplicaInfo.Builder>
com.google.spanner.admin.instance.v1.ReplicaInfo.Builder
All Implemented Interfaces:
com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, ReplicaInfoOrBuilder, Cloneable
Enclosing class:
ReplicaInfo

public static final class ReplicaInfo.Builder extends com.google.protobuf.GeneratedMessage.Builder<ReplicaInfo.Builder> implements ReplicaInfoOrBuilder
Protobuf type google.spanner.admin.instance.v1.ReplicaInfo
  • Method Summary

    Modifier and Type
    Method
    Description
     
     
     
    If true, this location is designated as the default leader location where leader replicas are placed.
    The location of the serving resources, e.g., "us-central1".
    The type of replica.
     
    boolean
    If true, this location is designated as the default leader location where leader replicas are placed.
    static final com.google.protobuf.Descriptors.Descriptor
     
    com.google.protobuf.Descriptors.Descriptor
     
    The location of the serving resources, e.g., "us-central1".
    com.google.protobuf.ByteString
    The location of the serving resources, e.g., "us-central1".
    The type of replica.
    int
    The type of replica.
    protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
     
    final boolean
     
    mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    mergeFrom(com.google.protobuf.Message other)
     
     
    setDefaultLeaderLocation(boolean value)
    If true, this location is designated as the default leader location where leader replicas are placed.
    The location of the serving resources, e.g., "us-central1".
    setLocationBytes(com.google.protobuf.ByteString value)
    The location of the serving resources, e.g., "us-central1".
    The type of replica.
    setTypeValue(int value)
    The type of replica.

    Methods inherited from class com.google.protobuf.GeneratedMessage.Builder

    addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3

    Methods inherited from class com.google.protobuf.AbstractMessage.Builder

    findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString

    Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder

    addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException

    Methods inherited from class java.lang.Object

    equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

    Methods inherited from interface com.google.protobuf.Message.Builder

    mergeDelimitedFrom, mergeDelimitedFrom

    Methods inherited from interface com.google.protobuf.MessageLite.Builder

    mergeFrom

    Methods inherited from interface com.google.protobuf.MessageOrBuilder

    findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
  • 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<ReplicaInfo.Builder>
    • clear

      public ReplicaInfo.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<ReplicaInfo.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<ReplicaInfo.Builder>
    • getDefaultInstanceForType

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

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

      public ReplicaInfo buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public ReplicaInfo.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<ReplicaInfo.Builder>
    • mergeFrom

      public ReplicaInfo.Builder mergeFrom(ReplicaInfo other)
    • isInitialized

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

      public ReplicaInfo.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<ReplicaInfo.Builder>
      Throws:
      IOException
    • getLocation

      public String getLocation()
       The location of the serving resources, e.g., "us-central1".
       
      string location = 1;
      Specified by:
      getLocation in interface ReplicaInfoOrBuilder
      Returns:
      The location.
    • getLocationBytes

      public com.google.protobuf.ByteString getLocationBytes()
       The location of the serving resources, e.g., "us-central1".
       
      string location = 1;
      Specified by:
      getLocationBytes in interface ReplicaInfoOrBuilder
      Returns:
      The bytes for location.
    • setLocation

      public ReplicaInfo.Builder setLocation(String value)
       The location of the serving resources, e.g., "us-central1".
       
      string location = 1;
      Parameters:
      value - The location to set.
      Returns:
      This builder for chaining.
    • clearLocation

      public ReplicaInfo.Builder clearLocation()
       The location of the serving resources, e.g., "us-central1".
       
      string location = 1;
      Returns:
      This builder for chaining.
    • setLocationBytes

      public ReplicaInfo.Builder setLocationBytes(com.google.protobuf.ByteString value)
       The location of the serving resources, e.g., "us-central1".
       
      string location = 1;
      Parameters:
      value - The bytes for location to set.
      Returns:
      This builder for chaining.
    • getTypeValue

      public int getTypeValue()
       The type of replica.
       
      .google.spanner.admin.instance.v1.ReplicaInfo.ReplicaType type = 2;
      Specified by:
      getTypeValue in interface ReplicaInfoOrBuilder
      Returns:
      The enum numeric value on the wire for type.
    • setTypeValue

      public ReplicaInfo.Builder setTypeValue(int value)
       The type of replica.
       
      .google.spanner.admin.instance.v1.ReplicaInfo.ReplicaType type = 2;
      Parameters:
      value - The enum numeric value on the wire for type to set.
      Returns:
      This builder for chaining.
    • getType

      public ReplicaInfo.ReplicaType getType()
       The type of replica.
       
      .google.spanner.admin.instance.v1.ReplicaInfo.ReplicaType type = 2;
      Specified by:
      getType in interface ReplicaInfoOrBuilder
      Returns:
      The type.
    • setType

       The type of replica.
       
      .google.spanner.admin.instance.v1.ReplicaInfo.ReplicaType type = 2;
      Parameters:
      value - The type to set.
      Returns:
      This builder for chaining.
    • clearType

      public ReplicaInfo.Builder clearType()
       The type of replica.
       
      .google.spanner.admin.instance.v1.ReplicaInfo.ReplicaType type = 2;
      Returns:
      This builder for chaining.
    • getDefaultLeaderLocation

      public boolean getDefaultLeaderLocation()
       If true, this location is designated as the default leader location where
       leader replicas are placed. See the [region types
       documentation](https://cloud.google.com/spanner/docs/instances#region_types)
       for more details.
       
      bool default_leader_location = 3;
      Specified by:
      getDefaultLeaderLocation in interface ReplicaInfoOrBuilder
      Returns:
      The defaultLeaderLocation.
    • setDefaultLeaderLocation

      public ReplicaInfo.Builder setDefaultLeaderLocation(boolean value)
       If true, this location is designated as the default leader location where
       leader replicas are placed. See the [region types
       documentation](https://cloud.google.com/spanner/docs/instances#region_types)
       for more details.
       
      bool default_leader_location = 3;
      Parameters:
      value - The defaultLeaderLocation to set.
      Returns:
      This builder for chaining.
    • clearDefaultLeaderLocation

      public ReplicaInfo.Builder clearDefaultLeaderLocation()
       If true, this location is designated as the default leader location where
       leader replicas are placed. See the [region types
       documentation](https://cloud.google.com/spanner/docs/instances#region_types)
       for more details.
       
      bool default_leader_location = 3;
      Returns:
      This builder for chaining.