public final class DdlStatementActionInfo extends GeneratedMessageV3 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
Inherited Members
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessageV3.<T>emptyList(java.lang.Class<T>)
com.google.protobuf.GeneratedMessageV3.internalGetMapFieldReflection(int)
Static Fields
ACTION_FIELD_NUMBER
public static final int ACTION_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
ENTITY_NAMES_FIELD_NUMBER
public static final int ENTITY_NAMES_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
ENTITY_TYPE_FIELD_NUMBER
public static final int ENTITY_TYPE_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
Static Methods
getDefaultInstance()
public static DdlStatementActionInfo getDefaultInstance()
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
newBuilder()
public static DdlStatementActionInfo.Builder newBuilder()
newBuilder(DdlStatementActionInfo prototype)
public static DdlStatementActionInfo.Builder newBuilder(DdlStatementActionInfo prototype)
public static DdlStatementActionInfo parseDelimitedFrom(InputStream input)
public static DdlStatementActionInfo parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(byte[] data)
public static DdlStatementActionInfo parseFrom(byte[] data)
Parameter |
Name |
Description |
data |
byte[]
|
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static DdlStatementActionInfo parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteString data)
public static DdlStatementActionInfo parseFrom(ByteString data)
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static DdlStatementActionInfo parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static DdlStatementActionInfo parseFrom(CodedInputStream input)
public static DdlStatementActionInfo parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static DdlStatementActionInfo parseFrom(InputStream input)
public static DdlStatementActionInfo parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteBuffer data)
public static DdlStatementActionInfo parseFrom(ByteBuffer data)
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static DdlStatementActionInfo parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
parser()
public static Parser<DdlStatementActionInfo> parser()
Methods
equals(Object obj)
public boolean equals(Object obj)
Parameter |
Name |
Description |
obj |
Object
|
Overrides
getAction()
public String getAction()
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 |
String |
The action.
|
getActionBytes()
public ByteString getActionBytes()
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 |
ByteString |
The bytes for action.
|
getDefaultInstanceForType()
public DdlStatementActionInfo getDefaultInstanceForType()
getEntityNames(int index)
public String getEntityNames(int index)
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 |
index |
int
The index of the element to return.
|
Returns |
Type |
Description |
String |
The entityNames at the given index.
|
getEntityNamesBytes(int index)
public ByteString getEntityNamesBytes(int index)
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 |
index |
int
The index of the value to return.
|
Returns |
Type |
Description |
ByteString |
The bytes of the entityNames at the given index.
|
getEntityNamesCount()
public int getEntityNamesCount()
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 |
int |
The count of entityNames.
|
getEntityNamesList()
public ProtocolStringList getEntityNamesList()
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;
getEntityType()
public String getEntityType()
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 |
String |
The entityType.
|
getEntityTypeBytes()
public ByteString getEntityTypeBytes()
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 |
ByteString |
The bytes for entityType.
|
getParserForType()
public Parser<DdlStatementActionInfo> getParserForType()
Overrides
getSerializedSize()
public int getSerializedSize()
Returns |
Type |
Description |
int |
|
Overrides
hashCode()
Returns |
Type |
Description |
int |
|
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
newBuilderForType()
public DdlStatementActionInfo.Builder newBuilderForType()
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected DdlStatementActionInfo.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Returns |
Type |
Description |
Object |
|
Overrides
toBuilder()
public DdlStatementActionInfo.Builder toBuilder()
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Overrides