public static final class DdlStatementActionInfo.Builder extends GeneratedMessageV3.Builder<DdlStatementActionInfo.Builder> implements DdlStatementActionInfoOrBuilder
Action information extracted from a DDL statement. This proto is used to display the brief info of the DDL statement for the operation UpdateDatabaseDdl.
Protobuf type google.spanner.admin.database.v1.DdlStatementActionInfo
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > DdlStatementActionInfo.BuilderImplements
DdlStatementActionInfoOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns | |
---|---|
Type | Description |
Descriptor |
Methods
addAllEntityNames(Iterable<String> values)
public DdlStatementActionInfo.Builder addAllEntityNames(Iterable<String> values)
The entity name(s) being operated on the DDL statement. E.g.
- For statement "CREATE TABLE t1(...)",
entity_names
= ["t1"]. - For statement "GRANT ROLE r1, r2 ...",
entity_names
= ["r1", "r2"]. - For statement "ANALYZE",
entity_names
= [].
repeated string entity_names = 3;
Parameter | |
---|---|
Name | Description |
values |
Iterable<String> The entityNames to add. |
Returns | |
---|---|
Type | Description |
DdlStatementActionInfo.Builder |
This builder for chaining. |
addEntityNames(String value)
public DdlStatementActionInfo.Builder addEntityNames(String value)
The entity name(s) being operated on the DDL statement. E.g.
- For statement "CREATE TABLE t1(...)",
entity_names
= ["t1"]. - For statement "GRANT ROLE r1, r2 ...",
entity_names
= ["r1", "r2"]. - For statement "ANALYZE",
entity_names
= [].
repeated string entity_names = 3;
Parameter | |
---|---|
Name | Description |
value |
String The entityNames to add. |
Returns | |
---|---|
Type | Description |
DdlStatementActionInfo.Builder |
This builder for chaining. |
addEntityNamesBytes(ByteString value)
public DdlStatementActionInfo.Builder addEntityNamesBytes(ByteString value)
The entity name(s) being operated on the DDL statement. E.g.
- For statement "CREATE TABLE t1(...)",
entity_names
= ["t1"]. - For statement "GRANT ROLE r1, r2 ...",
entity_names
= ["r1", "r2"]. - For statement "ANALYZE",
entity_names
= [].
repeated string entity_names = 3;
Parameter | |
---|---|
Name | Description |
value |
ByteString The bytes of the entityNames to add. |
Returns | |
---|---|
Type | Description |
DdlStatementActionInfo.Builder |
This builder for chaining. |
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public DdlStatementActionInfo.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters | |
---|---|
Name | Description |
field |
FieldDescriptor |
value |
Object |
Returns | |
---|---|
Type | Description |
DdlStatementActionInfo.Builder |
build()
public DdlStatementActionInfo build()
Returns | |
---|---|
Type | Description |
DdlStatementActionInfo |
buildPartial()
public DdlStatementActionInfo buildPartial()
Returns | |
---|---|
Type | Description |
DdlStatementActionInfo |
clear()
public DdlStatementActionInfo.Builder clear()
Returns | |
---|---|
Type | Description |
DdlStatementActionInfo.Builder |
clearAction()
public DdlStatementActionInfo.Builder clearAction()
The action for the DDL statement, e.g. CREATE, ALTER, DROP, GRANT, etc. This field is a non-empty string.
string action = 1;
Returns | |
---|---|
Type | Description |
DdlStatementActionInfo.Builder |
This builder for chaining. |
clearEntityNames()
public DdlStatementActionInfo.Builder clearEntityNames()
The entity name(s) being operated on the DDL statement. E.g.
- For statement "CREATE TABLE t1(...)",
entity_names
= ["t1"]. - For statement "GRANT ROLE r1, r2 ...",
entity_names
= ["r1", "r2"]. - For statement "ANALYZE",
entity_names
= [].
repeated string entity_names = 3;
Returns | |
---|---|
Type | Description |
DdlStatementActionInfo.Builder |
This builder for chaining. |
clearEntityType()
public DdlStatementActionInfo.Builder clearEntityType()
The entity type for the DDL statement, e.g. TABLE, INDEX, VIEW, etc.
This field can be empty string for some DDL statement,
e.g. for statement "ANALYZE", entity_type
= "".
string entity_type = 2;
Returns | |
---|---|
Type | Description |
DdlStatementActionInfo.Builder |
This builder for chaining. |
clearField(Descriptors.FieldDescriptor field)
public DdlStatementActionInfo.Builder clearField(Descriptors.FieldDescriptor field)
Parameter | |
---|---|
Name | Description |
field |
FieldDescriptor |
Returns | |
---|---|
Type | Description |
DdlStatementActionInfo.Builder |