Class UpdateCloudDatabaseDdlAction.Builder

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

public static final class UpdateCloudDatabaseDdlAction.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<UpdateCloudDatabaseDdlAction.Builder> implements UpdateCloudDatabaseDdlActionOrBuilder
 Action that updates the schema of a Cloud Spanner database.
 
Protobuf type google.spanner.executor.v1.UpdateCloudDatabaseDdlAction
  • 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<UpdateCloudDatabaseDdlAction.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<UpdateCloudDatabaseDdlAction.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<UpdateCloudDatabaseDdlAction.Builder>
    • getDefaultInstanceForType

      public UpdateCloudDatabaseDdlAction 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 UpdateCloudDatabaseDdlAction 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<UpdateCloudDatabaseDdlAction.Builder>
    • setField

      public UpdateCloudDatabaseDdlAction.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<UpdateCloudDatabaseDdlAction.Builder>
    • clearField

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

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

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

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

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

      public UpdateCloudDatabaseDdlAction.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<UpdateCloudDatabaseDdlAction.Builder>
      Throws:
      IOException
    • getInstanceId

      public String getInstanceId()
       Cloud instance ID (not path), e.g. "test-instance".
       
      string instance_id = 1;
      Specified by:
      getInstanceId in interface UpdateCloudDatabaseDdlActionOrBuilder
      Returns:
      The instanceId.
    • getInstanceIdBytes

      public com.google.protobuf.ByteString getInstanceIdBytes()
       Cloud instance ID (not path), e.g. "test-instance".
       
      string instance_id = 1;
      Specified by:
      getInstanceIdBytes in interface UpdateCloudDatabaseDdlActionOrBuilder
      Returns:
      The bytes for instanceId.
    • setInstanceId

      public UpdateCloudDatabaseDdlAction.Builder setInstanceId(String value)
       Cloud instance ID (not path), e.g. "test-instance".
       
      string instance_id = 1;
      Parameters:
      value - The instanceId to set.
      Returns:
      This builder for chaining.
    • clearInstanceId

      public UpdateCloudDatabaseDdlAction.Builder clearInstanceId()
       Cloud instance ID (not path), e.g. "test-instance".
       
      string instance_id = 1;
      Returns:
      This builder for chaining.
    • setInstanceIdBytes

      public UpdateCloudDatabaseDdlAction.Builder setInstanceIdBytes(com.google.protobuf.ByteString value)
       Cloud instance ID (not path), e.g. "test-instance".
       
      string instance_id = 1;
      Parameters:
      value - The bytes for instanceId to set.
      Returns:
      This builder for chaining.
    • getProjectId

      public String getProjectId()
       Cloud project ID, e.g. "spanner-cloud-systest".
       
      string project_id = 2;
      Specified by:
      getProjectId in interface UpdateCloudDatabaseDdlActionOrBuilder
      Returns:
      The projectId.
    • getProjectIdBytes

      public com.google.protobuf.ByteString getProjectIdBytes()
       Cloud project ID, e.g. "spanner-cloud-systest".
       
      string project_id = 2;
      Specified by:
      getProjectIdBytes in interface UpdateCloudDatabaseDdlActionOrBuilder
      Returns:
      The bytes for projectId.
    • setProjectId

      public UpdateCloudDatabaseDdlAction.Builder setProjectId(String value)
       Cloud project ID, e.g. "spanner-cloud-systest".
       
      string project_id = 2;
      Parameters:
      value - The projectId to set.
      Returns:
      This builder for chaining.
    • clearProjectId

      public UpdateCloudDatabaseDdlAction.Builder clearProjectId()
       Cloud project ID, e.g. "spanner-cloud-systest".
       
      string project_id = 2;
      Returns:
      This builder for chaining.
    • setProjectIdBytes

      public UpdateCloudDatabaseDdlAction.Builder setProjectIdBytes(com.google.protobuf.ByteString value)
       Cloud project ID, e.g. "spanner-cloud-systest".
       
      string project_id = 2;
      Parameters:
      value - The bytes for projectId to set.
      Returns:
      This builder for chaining.
    • getDatabaseId

      public String getDatabaseId()
       Cloud database ID (not full path), e.g. "db0".
       
      string database_id = 3;
      Specified by:
      getDatabaseId in interface UpdateCloudDatabaseDdlActionOrBuilder
      Returns:
      The databaseId.
    • getDatabaseIdBytes

      public com.google.protobuf.ByteString getDatabaseIdBytes()
       Cloud database ID (not full path), e.g. "db0".
       
      string database_id = 3;
      Specified by:
      getDatabaseIdBytes in interface UpdateCloudDatabaseDdlActionOrBuilder
      Returns:
      The bytes for databaseId.
    • setDatabaseId

      public UpdateCloudDatabaseDdlAction.Builder setDatabaseId(String value)
       Cloud database ID (not full path), e.g. "db0".
       
      string database_id = 3;
      Parameters:
      value - The databaseId to set.
      Returns:
      This builder for chaining.
    • clearDatabaseId

      public UpdateCloudDatabaseDdlAction.Builder clearDatabaseId()
       Cloud database ID (not full path), e.g. "db0".
       
      string database_id = 3;
      Returns:
      This builder for chaining.
    • setDatabaseIdBytes

      public UpdateCloudDatabaseDdlAction.Builder setDatabaseIdBytes(com.google.protobuf.ByteString value)
       Cloud database ID (not full path), e.g. "db0".
       
      string database_id = 3;
      Parameters:
      value - The bytes for databaseId to set.
      Returns:
      This builder for chaining.
    • getSdlStatementList

      public com.google.protobuf.ProtocolStringList getSdlStatementList()
       SDL statements to apply to the database.
       
      repeated string sdl_statement = 4;
      Specified by:
      getSdlStatementList in interface UpdateCloudDatabaseDdlActionOrBuilder
      Returns:
      A list containing the sdlStatement.
    • getSdlStatementCount

      public int getSdlStatementCount()
       SDL statements to apply to the database.
       
      repeated string sdl_statement = 4;
      Specified by:
      getSdlStatementCount in interface UpdateCloudDatabaseDdlActionOrBuilder
      Returns:
      The count of sdlStatement.
    • getSdlStatement

      public String getSdlStatement(int index)
       SDL statements to apply to the database.
       
      repeated string sdl_statement = 4;
      Specified by:
      getSdlStatement in interface UpdateCloudDatabaseDdlActionOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The sdlStatement at the given index.
    • getSdlStatementBytes

      public com.google.protobuf.ByteString getSdlStatementBytes(int index)
       SDL statements to apply to the database.
       
      repeated string sdl_statement = 4;
      Specified by:
      getSdlStatementBytes in interface UpdateCloudDatabaseDdlActionOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the sdlStatement at the given index.
    • setSdlStatement

      public UpdateCloudDatabaseDdlAction.Builder setSdlStatement(int index, String value)
       SDL statements to apply to the database.
       
      repeated string sdl_statement = 4;
      Parameters:
      index - The index to set the value at.
      value - The sdlStatement to set.
      Returns:
      This builder for chaining.
    • addSdlStatement

      public UpdateCloudDatabaseDdlAction.Builder addSdlStatement(String value)
       SDL statements to apply to the database.
       
      repeated string sdl_statement = 4;
      Parameters:
      value - The sdlStatement to add.
      Returns:
      This builder for chaining.
    • addAllSdlStatement

      public UpdateCloudDatabaseDdlAction.Builder addAllSdlStatement(Iterable<String> values)
       SDL statements to apply to the database.
       
      repeated string sdl_statement = 4;
      Parameters:
      values - The sdlStatement to add.
      Returns:
      This builder for chaining.
    • clearSdlStatement

      public UpdateCloudDatabaseDdlAction.Builder clearSdlStatement()
       SDL statements to apply to the database.
       
      repeated string sdl_statement = 4;
      Returns:
      This builder for chaining.
    • addSdlStatementBytes

      public UpdateCloudDatabaseDdlAction.Builder addSdlStatementBytes(com.google.protobuf.ByteString value)
       SDL statements to apply to the database.
       
      repeated string sdl_statement = 4;
      Parameters:
      value - The bytes of the sdlStatement to add.
      Returns:
      This builder for chaining.
    • getOperationId

      public String getOperationId()
       Op ID can be used to track progress of the update. If set, it must be
       unique per database. If not set, Cloud Spanner will generate operation ID
       automatically.
       
      string operation_id = 5;
      Specified by:
      getOperationId in interface UpdateCloudDatabaseDdlActionOrBuilder
      Returns:
      The operationId.
    • getOperationIdBytes

      public com.google.protobuf.ByteString getOperationIdBytes()
       Op ID can be used to track progress of the update. If set, it must be
       unique per database. If not set, Cloud Spanner will generate operation ID
       automatically.
       
      string operation_id = 5;
      Specified by:
      getOperationIdBytes in interface UpdateCloudDatabaseDdlActionOrBuilder
      Returns:
      The bytes for operationId.
    • setOperationId

      public UpdateCloudDatabaseDdlAction.Builder setOperationId(String value)
       Op ID can be used to track progress of the update. If set, it must be
       unique per database. If not set, Cloud Spanner will generate operation ID
       automatically.
       
      string operation_id = 5;
      Parameters:
      value - The operationId to set.
      Returns:
      This builder for chaining.
    • clearOperationId

      public UpdateCloudDatabaseDdlAction.Builder clearOperationId()
       Op ID can be used to track progress of the update. If set, it must be
       unique per database. If not set, Cloud Spanner will generate operation ID
       automatically.
       
      string operation_id = 5;
      Returns:
      This builder for chaining.
    • setOperationIdBytes

      public UpdateCloudDatabaseDdlAction.Builder setOperationIdBytes(com.google.protobuf.ByteString value)
       Op ID can be used to track progress of the update. If set, it must be
       unique per database. If not set, Cloud Spanner will generate operation ID
       automatically.
       
      string operation_id = 5;
      Parameters:
      value - The bytes for operationId to set.
      Returns:
      This builder for chaining.
    • hasProtoDescriptors

      public boolean hasProtoDescriptors()
      optional bytes proto_descriptors = 6;
      Specified by:
      hasProtoDescriptors in interface UpdateCloudDatabaseDdlActionOrBuilder
      Returns:
      Whether the protoDescriptors field is set.
    • getProtoDescriptors

      public com.google.protobuf.ByteString getProtoDescriptors()
      optional bytes proto_descriptors = 6;
      Specified by:
      getProtoDescriptors in interface UpdateCloudDatabaseDdlActionOrBuilder
      Returns:
      The protoDescriptors.
    • setProtoDescriptors

      public UpdateCloudDatabaseDdlAction.Builder setProtoDescriptors(com.google.protobuf.ByteString value)
      optional bytes proto_descriptors = 6;
      Parameters:
      value - The protoDescriptors to set.
      Returns:
      This builder for chaining.
    • clearProtoDescriptors

      public UpdateCloudDatabaseDdlAction.Builder clearProtoDescriptors()
      optional bytes proto_descriptors = 6;
      Returns:
      This builder for chaining.
    • setUnknownFields

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

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