Package com.google.spanner.executor.v1
Class UpdateCloudDatabaseDdlAction.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<UpdateCloudDatabaseDdlAction.Builder>
com.google.spanner.executor.v1.UpdateCloudDatabaseDdlAction.Builder
- All Implemented Interfaces:
com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,UpdateCloudDatabaseDdlActionOrBuilder,Cloneable
- Enclosing class:
- UpdateCloudDatabaseDdlAction
public static final class UpdateCloudDatabaseDdlAction.Builder
extends com.google.protobuf.GeneratedMessageV3.Builder<UpdateCloudDatabaseDdlAction.Builder>
implements UpdateCloudDatabaseDdlActionOrBuilder
Action that updates the schema of a Cloud Spanner database.Protobuf type
google.spanner.executor.v1.UpdateCloudDatabaseDdlAction-
Method Summary
Modifier and TypeMethodDescriptionaddAllSdlStatement(Iterable<String> values) SDL statements to apply to the database.addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) addSdlStatement(String value) SDL statements to apply to the database.addSdlStatementBytes(com.google.protobuf.ByteString value) SDL statements to apply to the database.build()clear()Cloud database ID (not full path), e.g.clearField(com.google.protobuf.Descriptors.FieldDescriptor field) Cloud instance ID (not path), e.g.clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) Op ID can be used to track progress of the update.Cloud project ID, e.g.optional bytes proto_descriptors = 6;SDL statements to apply to the database.clone()Cloud database ID (not full path), e.g.com.google.protobuf.ByteStringCloud database ID (not full path), e.g.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorCloud instance ID (not path), e.g.com.google.protobuf.ByteStringCloud instance ID (not path), e.g.Op ID can be used to track progress of the update.com.google.protobuf.ByteStringOp ID can be used to track progress of the update.Cloud project ID, e.g.com.google.protobuf.ByteStringCloud project ID, e.g.com.google.protobuf.ByteStringoptional bytes proto_descriptors = 6;getSdlStatement(int index) SDL statements to apply to the database.com.google.protobuf.ByteStringgetSdlStatementBytes(int index) SDL statements to apply to the database.intSDL statements to apply to the database.com.google.protobuf.ProtocolStringListSDL statements to apply to the database.booleanoptional bytes proto_descriptors = 6;protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) setDatabaseId(String value) Cloud database ID (not full path), e.g.setDatabaseIdBytes(com.google.protobuf.ByteString value) Cloud database ID (not full path), e.g.setInstanceId(String value) Cloud instance ID (not path), e.g.setInstanceIdBytes(com.google.protobuf.ByteString value) Cloud instance ID (not path), e.g.setOperationId(String value) Op ID can be used to track progress of the update.setOperationIdBytes(com.google.protobuf.ByteString value) Op ID can be used to track progress of the update.setProjectId(String value) Cloud project ID, e.g.setProjectIdBytes(com.google.protobuf.ByteString value) Cloud project ID, e.g.setProtoDescriptors(com.google.protobuf.ByteString value) optional bytes proto_descriptors = 6;setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) setSdlStatement(int index, String value) SDL statements to apply to the database.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<UpdateCloudDatabaseDdlAction.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<UpdateCloudDatabaseDdlAction.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<UpdateCloudDatabaseDdlAction.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<UpdateCloudDatabaseDdlAction.Builder>
-
setField
public UpdateCloudDatabaseDdlAction.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<UpdateCloudDatabaseDdlAction.Builder>
-
clearField
public UpdateCloudDatabaseDdlAction.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) - Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<UpdateCloudDatabaseDdlAction.Builder>
-
clearOneof
public UpdateCloudDatabaseDdlAction.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) - Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<UpdateCloudDatabaseDdlAction.Builder>
-
setRepeatedField
public UpdateCloudDatabaseDdlAction.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<UpdateCloudDatabaseDdlAction.Builder>
-
addRepeatedField
public UpdateCloudDatabaseDdlAction.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<UpdateCloudDatabaseDdlAction.Builder>
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<UpdateCloudDatabaseDdlAction.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<UpdateCloudDatabaseDdlAction.Builder>
-
mergeFrom
public UpdateCloudDatabaseDdlAction.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<UpdateCloudDatabaseDdlAction.Builder>- Throws:
IOException
-
getInstanceId
Cloud instance ID (not path), e.g. "test-instance".
string instance_id = 1;- Specified by:
getInstanceIdin interfaceUpdateCloudDatabaseDdlActionOrBuilder- Returns:
- The instanceId.
-
getInstanceIdBytes
public com.google.protobuf.ByteString getInstanceIdBytes()Cloud instance ID (not path), e.g. "test-instance".
string instance_id = 1;- Specified by:
getInstanceIdBytesin interfaceUpdateCloudDatabaseDdlActionOrBuilder- Returns:
- The bytes for instanceId.
-
setInstanceId
Cloud instance ID (not path), e.g. "test-instance".
string instance_id = 1;- Parameters:
value- The instanceId to set.- Returns:
- This builder for chaining.
-
clearInstanceId
Cloud instance ID (not path), e.g. "test-instance".
string instance_id = 1;- Returns:
- This builder for chaining.
-
setInstanceIdBytes
public UpdateCloudDatabaseDdlAction.Builder setInstanceIdBytes(com.google.protobuf.ByteString value) Cloud instance ID (not path), e.g. "test-instance".
string instance_id = 1;- Parameters:
value- The bytes for instanceId to set.- Returns:
- This builder for chaining.
-
getProjectId
Cloud project ID, e.g. "spanner-cloud-systest".
string project_id = 2;- Specified by:
getProjectIdin interfaceUpdateCloudDatabaseDdlActionOrBuilder- Returns:
- The projectId.
-
getProjectIdBytes
public com.google.protobuf.ByteString getProjectIdBytes()Cloud project ID, e.g. "spanner-cloud-systest".
string project_id = 2;- Specified by:
getProjectIdBytesin interfaceUpdateCloudDatabaseDdlActionOrBuilder- Returns:
- The bytes for projectId.
-
setProjectId
Cloud project ID, e.g. "spanner-cloud-systest".
string project_id = 2;- Parameters:
value- The projectId to set.- Returns:
- This builder for chaining.
-
clearProjectId
Cloud project ID, e.g. "spanner-cloud-systest".
string project_id = 2;- Returns:
- This builder for chaining.
-
setProjectIdBytes
Cloud project ID, e.g. "spanner-cloud-systest".
string project_id = 2;- Parameters:
value- The bytes for projectId to set.- Returns:
- This builder for chaining.
-
getDatabaseId
Cloud database ID (not full path), e.g. "db0".
string database_id = 3;- Specified by:
getDatabaseIdin interfaceUpdateCloudDatabaseDdlActionOrBuilder- Returns:
- The databaseId.
-
getDatabaseIdBytes
public com.google.protobuf.ByteString getDatabaseIdBytes()Cloud database ID (not full path), e.g. "db0".
string database_id = 3;- Specified by:
getDatabaseIdBytesin interfaceUpdateCloudDatabaseDdlActionOrBuilder- Returns:
- The bytes for databaseId.
-
setDatabaseId
Cloud database ID (not full path), e.g. "db0".
string database_id = 3;- Parameters:
value- The databaseId to set.- Returns:
- This builder for chaining.
-
clearDatabaseId
Cloud database ID (not full path), e.g. "db0".
string database_id = 3;- Returns:
- This builder for chaining.
-
setDatabaseIdBytes
public UpdateCloudDatabaseDdlAction.Builder setDatabaseIdBytes(com.google.protobuf.ByteString value) Cloud database ID (not full path), e.g. "db0".
string database_id = 3;- Parameters:
value- The bytes for databaseId to set.- Returns:
- This builder for chaining.
-
getSdlStatementList
public com.google.protobuf.ProtocolStringList getSdlStatementList()SDL statements to apply to the database.
repeated string sdl_statement = 4;- Specified by:
getSdlStatementListin interfaceUpdateCloudDatabaseDdlActionOrBuilder- Returns:
- A list containing the sdlStatement.
-
getSdlStatementCount
public int getSdlStatementCount()SDL statements to apply to the database.
repeated string sdl_statement = 4;- Specified by:
getSdlStatementCountin interfaceUpdateCloudDatabaseDdlActionOrBuilder- Returns:
- The count of sdlStatement.
-
getSdlStatement
SDL statements to apply to the database.
repeated string sdl_statement = 4;- Specified by:
getSdlStatementin interfaceUpdateCloudDatabaseDdlActionOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The sdlStatement at the given index.
-
getSdlStatementBytes
public com.google.protobuf.ByteString getSdlStatementBytes(int index) SDL statements to apply to the database.
repeated string sdl_statement = 4;- Specified by:
getSdlStatementBytesin interfaceUpdateCloudDatabaseDdlActionOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the sdlStatement at the given index.
-
setSdlStatement
SDL statements to apply to the database.
repeated string sdl_statement = 4;- Parameters:
index- The index to set the value at.value- The sdlStatement to set.- Returns:
- This builder for chaining.
-
addSdlStatement
SDL statements to apply to the database.
repeated string sdl_statement = 4;- Parameters:
value- The sdlStatement to add.- Returns:
- This builder for chaining.
-
addAllSdlStatement
SDL statements to apply to the database.
repeated string sdl_statement = 4;- Parameters:
values- The sdlStatement to add.- Returns:
- This builder for chaining.
-
clearSdlStatement
SDL statements to apply to the database.
repeated string sdl_statement = 4;- Returns:
- This builder for chaining.
-
addSdlStatementBytes
public UpdateCloudDatabaseDdlAction.Builder addSdlStatementBytes(com.google.protobuf.ByteString value) SDL statements to apply to the database.
repeated string sdl_statement = 4;- Parameters:
value- The bytes of the sdlStatement to add.- Returns:
- This builder for chaining.
-
getOperationId
Op ID can be used to track progress of the update. If set, it must be unique per database. If not set, Cloud Spanner will generate operation ID automatically.
string operation_id = 5;- Specified by:
getOperationIdin interfaceUpdateCloudDatabaseDdlActionOrBuilder- Returns:
- The operationId.
-
getOperationIdBytes
public com.google.protobuf.ByteString getOperationIdBytes()Op ID can be used to track progress of the update. If set, it must be unique per database. If not set, Cloud Spanner will generate operation ID automatically.
string operation_id = 5;- Specified by:
getOperationIdBytesin interfaceUpdateCloudDatabaseDdlActionOrBuilder- Returns:
- The bytes for operationId.
-
setOperationId
Op ID can be used to track progress of the update. If set, it must be unique per database. If not set, Cloud Spanner will generate operation ID automatically.
string operation_id = 5;- Parameters:
value- The operationId to set.- Returns:
- This builder for chaining.
-
clearOperationId
Op ID can be used to track progress of the update. If set, it must be unique per database. If not set, Cloud Spanner will generate operation ID automatically.
string operation_id = 5;- Returns:
- This builder for chaining.
-
setOperationIdBytes
public UpdateCloudDatabaseDdlAction.Builder setOperationIdBytes(com.google.protobuf.ByteString value) Op ID can be used to track progress of the update. If set, it must be unique per database. If not set, Cloud Spanner will generate operation ID automatically.
string operation_id = 5;- Parameters:
value- The bytes for operationId to set.- Returns:
- This builder for chaining.
-
hasProtoDescriptors
public boolean hasProtoDescriptors()optional bytes proto_descriptors = 6;- Specified by:
hasProtoDescriptorsin interfaceUpdateCloudDatabaseDdlActionOrBuilder- Returns:
- Whether the protoDescriptors field is set.
-
getProtoDescriptors
public com.google.protobuf.ByteString getProtoDescriptors()optional bytes proto_descriptors = 6;- Specified by:
getProtoDescriptorsin interfaceUpdateCloudDatabaseDdlActionOrBuilder- Returns:
- The protoDescriptors.
-
setProtoDescriptors
public UpdateCloudDatabaseDdlAction.Builder setProtoDescriptors(com.google.protobuf.ByteString value) optional bytes proto_descriptors = 6;- Parameters:
value- The protoDescriptors to set.- Returns:
- This builder for chaining.
-
clearProtoDescriptors
optional bytes proto_descriptors = 6;- Returns:
- This builder for chaining.
-
setUnknownFields
public final UpdateCloudDatabaseDdlAction.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<UpdateCloudDatabaseDdlAction.Builder>
-
mergeUnknownFields
public final UpdateCloudDatabaseDdlAction.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<UpdateCloudDatabaseDdlAction.Builder>
-