com.google.spanner.admin.database.v1
UpdateDatabaseDdlRequest
Companion object UpdateDatabaseDdlRequest
final case class UpdateDatabaseDdlRequest(database: String = "", statements: Seq[String] = _root_.scala.Seq.empty, operationId: String = "", unknownFields: UnknownFieldSet = ...) extends GeneratedMessage with Updatable[UpdateDatabaseDdlRequest] with Product with Serializable
Enqueues the given DDL statements to be applied, in order but not
necessarily all at once, to the database schema at some point (or
points) in the future. The server checks that the statements
are executable (syntactically valid, name tables that exist, etc.)
before enqueueing them, but they may still fail upon
later execution (e.g., if a statement from another batch of
statements is applied first and it conflicts in some way, or if
there is some data-related problem like a NULL value in a column to
which NOT NULL would be added). If a statement fails, all
subsequent statements in the batch are automatically cancelled.
Each batch of statements is assigned a name which can be used with the [Operations][google.longrunning.Operations] API to monitor progress. See the [operation_id][google.spanner.admin.database.v1.UpdateDatabaseDdlRequest.operation_id] field for more details.
- database
Required. The database to update.
- statements
Required. DDL statements to be applied to the database.
- operationId
If empty, the new update request is assigned an automatically-generated operation ID. Otherwise,
operation_idis used to construct the name of the resulting [Operation][google.longrunning.Operation]. Specifying an explicit operation ID simplifies determining whether the statements were executed in the event that the [UpdateDatabaseDdl][google.spanner.admin.database.v1.DatabaseAdmin.UpdateDatabaseDdl] call is replayed, or the return value is otherwise lost: the [database][google.spanner.admin.database.v1.UpdateDatabaseDdlRequest.database] andoperation_idfields can be combined to form the [name][google.longrunning.Operation.name] of the resulting [longrunning.Operation][google.longrunning.Operation]:<database>/operations/<operation_id>.operation_idshould be unique within the database, and must be a valid identifier:[a-z][a-z0-9_]*. Note that automatically-generated operation IDs always begin with an underscore. If the named operation already exists, [UpdateDatabaseDdl][google.spanner.admin.database.v1.DatabaseAdmin.UpdateDatabaseDdl] returnsALREADY_EXISTS.
- Annotations
- @SerialVersionUID()
- Alphabetic
- By Inheritance
- UpdateDatabaseDdlRequest
- Product
- Equals
- Updatable
- GeneratedMessage
- Serializable
- Serializable
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
-
new
UpdateDatabaseDdlRequest(database: String = "", statements: Seq[String] = _root_.scala.Seq.empty, operationId: String = "", unknownFields: UnknownFieldSet = ...)
- database
Required. The database to update.
- statements
Required. DDL statements to be applied to the database.
- operationId
If empty, the new update request is assigned an automatically-generated operation ID. Otherwise,
operation_idis used to construct the name of the resulting [Operation][google.longrunning.Operation]. Specifying an explicit operation ID simplifies determining whether the statements were executed in the event that the [UpdateDatabaseDdl][google.spanner.admin.database.v1.DatabaseAdmin.UpdateDatabaseDdl] call is replayed, or the return value is otherwise lost: the [database][google.spanner.admin.database.v1.UpdateDatabaseDdlRequest.database] andoperation_idfields can be combined to form the [name][google.longrunning.Operation.name] of the resulting [longrunning.Operation][google.longrunning.Operation]:<database>/operations/<operation_id>.operation_idshould be unique within the database, and must be a valid identifier:[a-z][a-z0-9_]*. Note that automatically-generated operation IDs always begin with an underscore. If the named operation already exists, [UpdateDatabaseDdl][google.spanner.admin.database.v1.DatabaseAdmin.UpdateDatabaseDdl] returnsALREADY_EXISTS.
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- def addAllStatements(__vs: Iterable[String]): UpdateDatabaseDdlRequest
- def addStatements(__vs: String*): UpdateDatabaseDdlRequest
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clearStatements: UpdateDatabaseDdlRequest
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
def
companion: UpdateDatabaseDdlRequest.type
- Definition Classes
- UpdateDatabaseDdlRequest → GeneratedMessage
- val database: String
- def discardUnknownFields: UpdateDatabaseDdlRequest
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
getField(__field: FieldDescriptor): PValue
- Definition Classes
- UpdateDatabaseDdlRequest → GeneratedMessage
-
def
getFieldByNumber(__fieldNumber: Int): Any
- Definition Classes
- UpdateDatabaseDdlRequest → GeneratedMessage
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- val operationId: String
-
def
serializedSize: Int
- Definition Classes
- UpdateDatabaseDdlRequest → GeneratedMessage
- val statements: Seq[String]
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
final
def
toByteArray: Array[Byte]
- Definition Classes
- GeneratedMessage
-
final
def
toByteString: ByteString
- Definition Classes
- GeneratedMessage
-
final
def
toPMessage: PMessage
- Definition Classes
- GeneratedMessage
-
def
toProtoString: String
- Definition Classes
- UpdateDatabaseDdlRequest → GeneratedMessage
- val unknownFields: UnknownFieldSet
-
def
update(ms: (Lens[UpdateDatabaseDdlRequest, UpdateDatabaseDdlRequest]) ⇒ Mutation[UpdateDatabaseDdlRequest]*): UpdateDatabaseDdlRequest
- Definition Classes
- Updatable
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
- def withDatabase(__v: String): UpdateDatabaseDdlRequest
- def withOperationId(__v: String): UpdateDatabaseDdlRequest
- def withStatements(__v: Seq[String]): UpdateDatabaseDdlRequest
- def withUnknownFields(__v: UnknownFieldSet): UpdateDatabaseDdlRequest
-
final
def
writeDelimitedTo(output: OutputStream): Unit
- Definition Classes
- GeneratedMessage
-
def
writeTo(_output__: CodedOutputStream): Unit
- Definition Classes
- UpdateDatabaseDdlRequest → GeneratedMessage
-
final
def
writeTo(output: OutputStream): Unit
- Definition Classes
- GeneratedMessage