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.ByteString
The action for the DDL statement, e.g.static final com.google.protobuf.Descriptors.Descriptor
com.google.protobuf.Descriptors.Descriptor
getEntityNames
(int index) The entity name(s) being operated on the DDL statement.com.google.protobuf.ByteString
getEntityNamesBytes
(int index) The entity name(s) being operated on the DDL statement.int
The entity name(s) being operated on the DDL statement.com.google.protobuf.ProtocolStringList
The entity name(s) being operated on the DDL statement.The entity type for the DDL statement, e.g.com.google.protobuf.ByteString
The entity type for the DDL statement, e.g.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
final boolean
mergeFrom
(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, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFrom
Methods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFrom
Methods 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:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<DdlStatementActionInfo.Builder>
-
clear
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<DdlStatementActionInfo.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<DdlStatementActionInfo.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<DdlStatementActionInfo.Builder>
-
setField
public DdlStatementActionInfo.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<DdlStatementActionInfo.Builder>
-
clearField
public DdlStatementActionInfo.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) - Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<DdlStatementActionInfo.Builder>
-
clearOneof
public DdlStatementActionInfo.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) - Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.google.protobuf.GeneratedMessageV3.Builder<DdlStatementActionInfo.Builder>
-
setRepeatedField
public DdlStatementActionInfo.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) - Specified by:
setRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<DdlStatementActionInfo.Builder>
-
addRepeatedField
public DdlStatementActionInfo.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<DdlStatementActionInfo.Builder>
-
mergeFrom
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<DdlStatementActionInfo.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in 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:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in 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:
getAction
in 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:
getActionBytes
in 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:
getEntityType
in 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:
getEntityTypeBytes
in 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:
getEntityNamesList
in 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:
getEntityNamesCount
in 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:
getEntityNames
in 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:
getEntityNamesBytes
in 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:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<DdlStatementActionInfo.Builder>
-
mergeUnknownFields
public final DdlStatementActionInfo.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<DdlStatementActionInfo.Builder>
-