Class ReconfigureCloudDatabaseAction.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<ReconfigureCloudDatabaseAction.Builder>
com.google.spanner.executor.v1.ReconfigureCloudDatabaseAction.Builder
All Implemented Interfaces:
com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, ReconfigureCloudDatabaseActionOrBuilder, Cloneable
Enclosing class:
ReconfigureCloudDatabaseAction

public static final class ReconfigureCloudDatabaseAction.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<ReconfigureCloudDatabaseAction.Builder> implements ReconfigureCloudDatabaseActionOrBuilder
 Action that reconfigures a Cloud Spanner database.
 
Protobuf type google.spanner.executor.v1.ReconfigureCloudDatabaseAction
  • Method Details

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

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

      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public ReconfigureCloudDatabaseAction buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.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<ReconfigureCloudDatabaseAction.Builder>
    • setField

      public ReconfigureCloudDatabaseAction.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
      Specified by:
      setField in interface com.google.protobuf.Message.Builder
      Overrides:
      setField in class com.google.protobuf.GeneratedMessageV3.Builder<ReconfigureCloudDatabaseAction.Builder>
    • clearField

      public ReconfigureCloudDatabaseAction.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<ReconfigureCloudDatabaseAction.Builder>
    • clearOneof

      public ReconfigureCloudDatabaseAction.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<ReconfigureCloudDatabaseAction.Builder>
    • setRepeatedField

      public ReconfigureCloudDatabaseAction.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<ReconfigureCloudDatabaseAction.Builder>
    • addRepeatedField

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

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

    • isInitialized

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

      public ReconfigureCloudDatabaseAction.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<ReconfigureCloudDatabaseAction.Builder>
      Throws:
      IOException
    • hasDatabaseUri

      public boolean hasDatabaseUri()
       The fully qualified uri of the database to be reconfigured.
       
      optional string database_uri = 1;
      Specified by:
      hasDatabaseUri in interface ReconfigureCloudDatabaseActionOrBuilder
      Returns:
      Whether the databaseUri field is set.
    • getDatabaseUri

      public String getDatabaseUri()
       The fully qualified uri of the database to be reconfigured.
       
      optional string database_uri = 1;
      Specified by:
      getDatabaseUri in interface ReconfigureCloudDatabaseActionOrBuilder
      Returns:
      The databaseUri.
    • getDatabaseUriBytes

      public com.google.protobuf.ByteString getDatabaseUriBytes()
       The fully qualified uri of the database to be reconfigured.
       
      optional string database_uri = 1;
      Specified by:
      getDatabaseUriBytes in interface ReconfigureCloudDatabaseActionOrBuilder
      Returns:
      The bytes for databaseUri.
    • setDatabaseUri

      public ReconfigureCloudDatabaseAction.Builder setDatabaseUri(String value)
       The fully qualified uri of the database to be reconfigured.
       
      optional string database_uri = 1;
      Parameters:
      value - The databaseUri to set.
      Returns:
      This builder for chaining.
    • clearDatabaseUri

      public ReconfigureCloudDatabaseAction.Builder clearDatabaseUri()
       The fully qualified uri of the database to be reconfigured.
       
      optional string database_uri = 1;
      Returns:
      This builder for chaining.
    • setDatabaseUriBytes

      public ReconfigureCloudDatabaseAction.Builder setDatabaseUriBytes(com.google.protobuf.ByteString value)
       The fully qualified uri of the database to be reconfigured.
       
      optional string database_uri = 1;
      Parameters:
      value - The bytes for databaseUri to set.
      Returns:
      This builder for chaining.
    • getServingLocationsList

      public com.google.protobuf.ProtocolStringList getServingLocationsList()
       The locations of the serving regions, e.g. "asia-south1".
       
      repeated string serving_locations = 2;
      Specified by:
      getServingLocationsList in interface ReconfigureCloudDatabaseActionOrBuilder
      Returns:
      A list containing the servingLocations.
    • getServingLocationsCount

      public int getServingLocationsCount()
       The locations of the serving regions, e.g. "asia-south1".
       
      repeated string serving_locations = 2;
      Specified by:
      getServingLocationsCount in interface ReconfigureCloudDatabaseActionOrBuilder
      Returns:
      The count of servingLocations.
    • getServingLocations

      public String getServingLocations(int index)
       The locations of the serving regions, e.g. "asia-south1".
       
      repeated string serving_locations = 2;
      Specified by:
      getServingLocations in interface ReconfigureCloudDatabaseActionOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The servingLocations at the given index.
    • getServingLocationsBytes

      public com.google.protobuf.ByteString getServingLocationsBytes(int index)
       The locations of the serving regions, e.g. "asia-south1".
       
      repeated string serving_locations = 2;
      Specified by:
      getServingLocationsBytes in interface ReconfigureCloudDatabaseActionOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the servingLocations at the given index.
    • setServingLocations

      public ReconfigureCloudDatabaseAction.Builder setServingLocations(int index, String value)
       The locations of the serving regions, e.g. "asia-south1".
       
      repeated string serving_locations = 2;
      Parameters:
      index - The index to set the value at.
      value - The servingLocations to set.
      Returns:
      This builder for chaining.
    • addServingLocations

      public ReconfigureCloudDatabaseAction.Builder addServingLocations(String value)
       The locations of the serving regions, e.g. "asia-south1".
       
      repeated string serving_locations = 2;
      Parameters:
      value - The servingLocations to add.
      Returns:
      This builder for chaining.
    • addAllServingLocations

      public ReconfigureCloudDatabaseAction.Builder addAllServingLocations(Iterable<String> values)
       The locations of the serving regions, e.g. "asia-south1".
       
      repeated string serving_locations = 2;
      Parameters:
      values - The servingLocations to add.
      Returns:
      This builder for chaining.
    • clearServingLocations

      public ReconfigureCloudDatabaseAction.Builder clearServingLocations()
       The locations of the serving regions, e.g. "asia-south1".
       
      repeated string serving_locations = 2;
      Returns:
      This builder for chaining.
    • addServingLocationsBytes

      public ReconfigureCloudDatabaseAction.Builder addServingLocationsBytes(com.google.protobuf.ByteString value)
       The locations of the serving regions, e.g. "asia-south1".
       
      repeated string serving_locations = 2;
      Parameters:
      value - The bytes of the servingLocations to add.
      Returns:
      This builder for chaining.
    • setUnknownFields

      public final ReconfigureCloudDatabaseAction.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<ReconfigureCloudDatabaseAction.Builder>
    • mergeUnknownFields

      public final ReconfigureCloudDatabaseAction.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<ReconfigureCloudDatabaseAction.Builder>