Class DdlStatementActionInfo.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<DdlStatementActionInfo.Builder>
com.google.spanner.admin.database.v1.DdlStatementActionInfo.Builder
- All Implemented Interfaces:
com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,DdlStatementActionInfoOrBuilder,Cloneable
- Enclosing class:
- DdlStatementActionInfo
public static final class DdlStatementActionInfo.Builder
extends com.google.protobuf.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][google.spanner.admin.database.v1.DatabaseAdmin.UpdateDatabaseDdl].Protobuf type
google.spanner.admin.database.v1.DdlStatementActionInfo-
Method Summary
Modifier and TypeMethodDescriptionaddAllEntityNames(Iterable<String> values) The entity name(s) being operated on the DDL statement.addEntityNames(String value) The entity name(s) being operated on the DDL statement.addEntityNamesBytes(com.google.protobuf.ByteString value) The entity name(s) being operated on the DDL statement.addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) build()clear()The action for the DDL statement, e.g.The entity name(s) being operated on the DDL statement.The entity type for the DDL statement, e.g.clearField(com.google.protobuf.Descriptors.FieldDescriptor field) clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) clone()The action for the DDL statement, e.g.com.google.protobuf.ByteStringThe action for the DDL statement, e.g.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorgetEntityNames(int index) The entity name(s) being operated on the DDL statement.com.google.protobuf.ByteStringgetEntityNamesBytes(int index) The entity name(s) being operated on the DDL statement.intThe entity name(s) being operated on the DDL statement.com.google.protobuf.ProtocolStringListThe entity name(s) being operated on the DDL statement.The entity type for the DDL statement, e.g.com.google.protobuf.ByteStringThe entity type for the DDL statement, e.g.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeFrom(DdlStatementActionInfo other) mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) The action for the DDL statement, e.g.setActionBytes(com.google.protobuf.ByteString value) The action for the DDL statement, e.g.setEntityNames(int index, String value) The entity name(s) being operated on the DDL statement.setEntityType(String value) The entity type for the DDL statement, e.g.setEntityTypeBytes(com.google.protobuf.ByteString value) The entity type for the DDL statement, e.g.setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<DdlStatementActionInfo.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<DdlStatementActionInfo.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessageV3.Builder<DdlStatementActionInfo.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<DdlStatementActionInfo.Builder>
-
setField
public DdlStatementActionInfo.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<DdlStatementActionInfo.Builder>
-
clearField
public DdlStatementActionInfo.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) - Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<DdlStatementActionInfo.Builder>
-
clearOneof
public DdlStatementActionInfo.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) - Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<DdlStatementActionInfo.Builder>
-
setRepeatedField
public DdlStatementActionInfo.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) - Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<DdlStatementActionInfo.Builder>
-
addRepeatedField
public DdlStatementActionInfo.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<DdlStatementActionInfo.Builder>
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<DdlStatementActionInfo.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<DdlStatementActionInfo.Builder>
-
mergeFrom
public DdlStatementActionInfo.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<DdlStatementActionInfo.Builder>- Throws:
IOException
-
getAction
The action for the DDL statement, e.g. CREATE, ALTER, DROP, GRANT, etc. This field is a non-empty string.
string action = 1;- Specified by:
getActionin interfaceDdlStatementActionInfoOrBuilder- Returns:
- The action.
-
getActionBytes
public com.google.protobuf.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;- Specified by:
getActionBytesin interfaceDdlStatementActionInfoOrBuilder- Returns:
- The bytes for action.
-
setAction
The action for the DDL statement, e.g. CREATE, ALTER, DROP, GRANT, etc. This field is a non-empty string.
string action = 1;- Parameters:
value- The action to set.- Returns:
- This builder for chaining.
-
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:
- This builder for chaining.
-
setActionBytes
The action for the DDL statement, e.g. CREATE, ALTER, DROP, GRANT, etc. This field is a non-empty string.
string action = 1;- Parameters:
value- The bytes for action to set.- Returns:
- This builder for chaining.
-
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;- Specified by:
getEntityTypein interfaceDdlStatementActionInfoOrBuilder- Returns:
- The entityType.
-
getEntityTypeBytes
public com.google.protobuf.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;- Specified by:
getEntityTypeBytesin interfaceDdlStatementActionInfoOrBuilder- Returns:
- The bytes for entityType.
-
setEntityType
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;- Parameters:
value- The entityType to set.- Returns:
- This builder for chaining.
-
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:
- This builder for chaining.
-
setEntityTypeBytes
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;- Parameters:
value- The bytes for entityType to set.- Returns:
- This builder for chaining.
-
getEntityNamesList
public com.google.protobuf.ProtocolStringList getEntityNamesList()The entity name(s) being operated on the DDL statement. E.g. 1. For statement "CREATE TABLE t1(...)", `entity_names` = ["t1"]. 2. For statement "GRANT ROLE r1, r2 ...", `entity_names` = ["r1", "r2"]. 3. For statement "ANALYZE", `entity_names` = [].
repeated string entity_names = 3;- Specified by:
getEntityNamesListin interfaceDdlStatementActionInfoOrBuilder- Returns:
- A list containing the entityNames.
-
getEntityNamesCount
public int getEntityNamesCount()The entity name(s) being operated on the DDL statement. E.g. 1. For statement "CREATE TABLE t1(...)", `entity_names` = ["t1"]. 2. For statement "GRANT ROLE r1, r2 ...", `entity_names` = ["r1", "r2"]. 3. For statement "ANALYZE", `entity_names` = [].
repeated string entity_names = 3;- Specified by:
getEntityNamesCountin interfaceDdlStatementActionInfoOrBuilder- Returns:
- The count of entityNames.
-
getEntityNames
The entity name(s) being operated on the DDL statement. E.g. 1. For statement "CREATE TABLE t1(...)", `entity_names` = ["t1"]. 2. For statement "GRANT ROLE r1, r2 ...", `entity_names` = ["r1", "r2"]. 3. For statement "ANALYZE", `entity_names` = [].
repeated string entity_names = 3;- Specified by:
getEntityNamesin interfaceDdlStatementActionInfoOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The entityNames at the given index.
-
getEntityNamesBytes
public com.google.protobuf.ByteString getEntityNamesBytes(int index) The entity name(s) being operated on the DDL statement. E.g. 1. For statement "CREATE TABLE t1(...)", `entity_names` = ["t1"]. 2. For statement "GRANT ROLE r1, r2 ...", `entity_names` = ["r1", "r2"]. 3. For statement "ANALYZE", `entity_names` = [].
repeated string entity_names = 3;- Specified by:
getEntityNamesBytesin interfaceDdlStatementActionInfoOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the entityNames at the given index.
-
setEntityNames
The entity name(s) being operated on the DDL statement. E.g. 1. For statement "CREATE TABLE t1(...)", `entity_names` = ["t1"]. 2. For statement "GRANT ROLE r1, r2 ...", `entity_names` = ["r1", "r2"]. 3. For statement "ANALYZE", `entity_names` = [].
repeated string entity_names = 3;- Parameters:
index- The index to set the value at.value- The entityNames to set.- Returns:
- This builder for chaining.
-
addEntityNames
The entity name(s) being operated on the DDL statement. E.g. 1. For statement "CREATE TABLE t1(...)", `entity_names` = ["t1"]. 2. For statement "GRANT ROLE r1, r2 ...", `entity_names` = ["r1", "r2"]. 3. For statement "ANALYZE", `entity_names` = [].
repeated string entity_names = 3;- Parameters:
value- The entityNames to add.- Returns:
- This builder for chaining.
-
addAllEntityNames
The entity name(s) being operated on the DDL statement. E.g. 1. For statement "CREATE TABLE t1(...)", `entity_names` = ["t1"]. 2. For statement "GRANT ROLE r1, r2 ...", `entity_names` = ["r1", "r2"]. 3. For statement "ANALYZE", `entity_names` = [].
repeated string entity_names = 3;- Parameters:
values- The entityNames to add.- Returns:
- This builder for chaining.
-
clearEntityNames
The entity name(s) being operated on the DDL statement. E.g. 1. For statement "CREATE TABLE t1(...)", `entity_names` = ["t1"]. 2. For statement "GRANT ROLE r1, r2 ...", `entity_names` = ["r1", "r2"]. 3. For statement "ANALYZE", `entity_names` = [].
repeated string entity_names = 3;- Returns:
- This builder for chaining.
-
addEntityNamesBytes
The entity name(s) being operated on the DDL statement. E.g. 1. For statement "CREATE TABLE t1(...)", `entity_names` = ["t1"]. 2. For statement "GRANT ROLE r1, r2 ...", `entity_names` = ["r1", "r2"]. 3. For statement "ANALYZE", `entity_names` = [].
repeated string entity_names = 3;- Parameters:
value- The bytes of the entityNames to add.- Returns:
- This builder for chaining.
-
setUnknownFields
public final DdlStatementActionInfo.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<DdlStatementActionInfo.Builder>
-
mergeUnknownFields
public final DdlStatementActionInfo.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<DdlStatementActionInfo.Builder>
-