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 typegoogle.spanner.admin.database.v1.DdlStatementActionInfo
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description DdlStatementActionInfo.Builder
addAllEntityNames(Iterable<String> values)
The entity name(s) being operated on the DDL statement.DdlStatementActionInfo.Builder
addEntityNames(String value)
The entity name(s) being operated on the DDL statement.DdlStatementActionInfo.Builder
addEntityNamesBytes(com.google.protobuf.ByteString value)
The entity name(s) being operated on the DDL statement.DdlStatementActionInfo.Builder
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
DdlStatementActionInfo
build()
DdlStatementActionInfo
buildPartial()
DdlStatementActionInfo.Builder
clear()
DdlStatementActionInfo.Builder
clearAction()
The action for the DDL statement, e.g.DdlStatementActionInfo.Builder
clearEntityNames()
The entity name(s) being operated on the DDL statement.DdlStatementActionInfo.Builder
clearEntityType()
The entity type for the DDL statement, e.g.DdlStatementActionInfo.Builder
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
DdlStatementActionInfo.Builder
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
DdlStatementActionInfo.Builder
clone()
String
getAction()
The action for the DDL statement, e.g.com.google.protobuf.ByteString
getActionBytes()
The action for the DDL statement, e.g.DdlStatementActionInfo
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
com.google.protobuf.Descriptors.Descriptor
getDescriptorForType()
String
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
getEntityNamesCount()
The entity name(s) being operated on the DDL statement.com.google.protobuf.ProtocolStringList
getEntityNamesList()
The entity name(s) being operated on the DDL statement.String
getEntityType()
The entity type for the DDL statement, e.g.com.google.protobuf.ByteString
getEntityTypeBytes()
The entity type for the DDL statement, e.g.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
DdlStatementActionInfo.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
DdlStatementActionInfo.Builder
mergeFrom(com.google.protobuf.Message other)
DdlStatementActionInfo.Builder
mergeFrom(DdlStatementActionInfo other)
DdlStatementActionInfo.Builder
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
DdlStatementActionInfo.Builder
setAction(String value)
The action for the DDL statement, e.g.DdlStatementActionInfo.Builder
setActionBytes(com.google.protobuf.ByteString value)
The action for the DDL statement, e.g.DdlStatementActionInfo.Builder
setEntityNames(int index, String value)
The entity name(s) being operated on the DDL statement.DdlStatementActionInfo.Builder
setEntityType(String value)
The entity type for the DDL statement, e.g.DdlStatementActionInfo.Builder
setEntityTypeBytes(com.google.protobuf.ByteString value)
The entity type for the DDL statement, e.g.DdlStatementActionInfo.Builder
setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
DdlStatementActionInfo.Builder
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
DdlStatementActionInfo.Builder
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
-
-
-
-
Method Detail
-
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
public 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
public DdlStatementActionInfo getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public DdlStatementActionInfo build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public DdlStatementActionInfo buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public DdlStatementActionInfo.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
public DdlStatementActionInfo.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<DdlStatementActionInfo.Builder>
-
mergeFrom
public DdlStatementActionInfo.Builder mergeFrom(DdlStatementActionInfo other)
-
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
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;
- 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
public DdlStatementActionInfo.Builder setAction(String value)
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
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:
- This builder for chaining.
-
setActionBytes
public DdlStatementActionInfo.Builder setActionBytes(com.google.protobuf.ByteString value)
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
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;
- 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
public DdlStatementActionInfo.Builder setEntityType(String value)
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
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:
- This builder for chaining.
-
setEntityTypeBytes
public DdlStatementActionInfo.Builder setEntityTypeBytes(com.google.protobuf.ByteString value)
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
public String getEntityNames(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:
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
public DdlStatementActionInfo.Builder setEntityNames(int index, String value)
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
public DdlStatementActionInfo.Builder addEntityNames(String value)
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
public DdlStatementActionInfo.Builder addAllEntityNames(Iterable<String> values)
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
public DdlStatementActionInfo.Builder 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
public DdlStatementActionInfo.Builder addEntityNamesBytes(com.google.protobuf.ByteString value)
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>
-
-