Class SpannerSource.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<SpannerSource.Builder>
com.google.cloud.discoveryengine.v1beta.SpannerSource.Builder
- All Implemented Interfaces:
SpannerSourceOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- SpannerSource
public static final class SpannerSource.Builder
extends com.google.protobuf.GeneratedMessage.Builder<SpannerSource.Builder>
implements SpannerSourceOrBuilder
The Spanner source for importing dataProtobuf type
google.cloud.discoveryengine.v1beta.SpannerSource-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()Required.Whether to apply data boost on Spanner export.Required.The project ID that contains the Spanner source.Required.Required.com.google.protobuf.ByteStringRequired.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorbooleanWhether to apply data boost on Spanner export.Required.com.google.protobuf.ByteStringRequired.The project ID that contains the Spanner source.com.google.protobuf.ByteStringThe project ID that contains the Spanner source.Required.com.google.protobuf.ByteStringRequired.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(SpannerSource other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) setDatabaseId(String value) Required.setDatabaseIdBytes(com.google.protobuf.ByteString value) Required.setEnableDataBoost(boolean value) Whether to apply data boost on Spanner export.setInstanceId(String value) Required.setInstanceIdBytes(com.google.protobuf.ByteString value) Required.setProjectId(String value) The project ID that contains the Spanner source.setProjectIdBytes(com.google.protobuf.ByteString value) The project ID that contains the Spanner source.setTableId(String value) Required.setTableIdBytes(com.google.protobuf.ByteString value) Required.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, 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.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<SpannerSource.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<SpannerSource.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.GeneratedMessage.Builder<SpannerSource.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
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<SpannerSource.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<SpannerSource.Builder>
-
mergeFrom
public SpannerSource.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<SpannerSource.Builder>- Throws:
IOException
-
getProjectId
The project ID that contains the Spanner source. Has a length limit of 128 characters. If not specified, inherits the project ID from the parent request.
string project_id = 1;- Specified by:
getProjectIdin interfaceSpannerSourceOrBuilder- Returns:
- The projectId.
-
getProjectIdBytes
public com.google.protobuf.ByteString getProjectIdBytes()The project ID that contains the Spanner source. Has a length limit of 128 characters. If not specified, inherits the project ID from the parent request.
string project_id = 1;- Specified by:
getProjectIdBytesin interfaceSpannerSourceOrBuilder- Returns:
- The bytes for projectId.
-
setProjectId
The project ID that contains the Spanner source. Has a length limit of 128 characters. If not specified, inherits the project ID from the parent request.
string project_id = 1;- Parameters:
value- The projectId to set.- Returns:
- This builder for chaining.
-
clearProjectId
The project ID that contains the Spanner source. Has a length limit of 128 characters. If not specified, inherits the project ID from the parent request.
string project_id = 1;- Returns:
- This builder for chaining.
-
setProjectIdBytes
The project ID that contains the Spanner source. Has a length limit of 128 characters. If not specified, inherits the project ID from the parent request.
string project_id = 1;- Parameters:
value- The bytes for projectId to set.- Returns:
- This builder for chaining.
-
getInstanceId
Required. The instance ID of the source Spanner table.
string instance_id = 2 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getInstanceIdin interfaceSpannerSourceOrBuilder- Returns:
- The instanceId.
-
getInstanceIdBytes
public com.google.protobuf.ByteString getInstanceIdBytes()Required. The instance ID of the source Spanner table.
string instance_id = 2 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getInstanceIdBytesin interfaceSpannerSourceOrBuilder- Returns:
- The bytes for instanceId.
-
setInstanceId
Required. The instance ID of the source Spanner table.
string instance_id = 2 [(.google.api.field_behavior) = REQUIRED];- Parameters:
value- The instanceId to set.- Returns:
- This builder for chaining.
-
clearInstanceId
Required. The instance ID of the source Spanner table.
string instance_id = 2 [(.google.api.field_behavior) = REQUIRED];- Returns:
- This builder for chaining.
-
setInstanceIdBytes
Required. The instance ID of the source Spanner table.
string instance_id = 2 [(.google.api.field_behavior) = REQUIRED];- Parameters:
value- The bytes for instanceId to set.- Returns:
- This builder for chaining.
-
getDatabaseId
Required. The database ID of the source Spanner table.
string database_id = 3 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getDatabaseIdin interfaceSpannerSourceOrBuilder- Returns:
- The databaseId.
-
getDatabaseIdBytes
public com.google.protobuf.ByteString getDatabaseIdBytes()Required. The database ID of the source Spanner table.
string database_id = 3 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getDatabaseIdBytesin interfaceSpannerSourceOrBuilder- Returns:
- The bytes for databaseId.
-
setDatabaseId
Required. The database ID of the source Spanner table.
string database_id = 3 [(.google.api.field_behavior) = REQUIRED];- Parameters:
value- The databaseId to set.- Returns:
- This builder for chaining.
-
clearDatabaseId
Required. The database ID of the source Spanner table.
string database_id = 3 [(.google.api.field_behavior) = REQUIRED];- Returns:
- This builder for chaining.
-
setDatabaseIdBytes
Required. The database ID of the source Spanner table.
string database_id = 3 [(.google.api.field_behavior) = REQUIRED];- Parameters:
value- The bytes for databaseId to set.- Returns:
- This builder for chaining.
-
getTableId
Required. The table name of the Spanner database that needs to be imported.
string table_id = 4 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getTableIdin interfaceSpannerSourceOrBuilder- Returns:
- The tableId.
-
getTableIdBytes
public com.google.protobuf.ByteString getTableIdBytes()Required. The table name of the Spanner database that needs to be imported.
string table_id = 4 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getTableIdBytesin interfaceSpannerSourceOrBuilder- Returns:
- The bytes for tableId.
-
setTableId
Required. The table name of the Spanner database that needs to be imported.
string table_id = 4 [(.google.api.field_behavior) = REQUIRED];- Parameters:
value- The tableId to set.- Returns:
- This builder for chaining.
-
clearTableId
Required. The table name of the Spanner database that needs to be imported.
string table_id = 4 [(.google.api.field_behavior) = REQUIRED];- Returns:
- This builder for chaining.
-
setTableIdBytes
Required. The table name of the Spanner database that needs to be imported.
string table_id = 4 [(.google.api.field_behavior) = REQUIRED];- Parameters:
value- The bytes for tableId to set.- Returns:
- This builder for chaining.
-
getEnableDataBoost
public boolean getEnableDataBoost()Whether to apply data boost on Spanner export. Enabling this option will incur additional cost. More info can be found [here](https://cloud.google.com/spanner/docs/databoost/databoost-overview#billing_and_quotas).
bool enable_data_boost = 5;- Specified by:
getEnableDataBoostin interfaceSpannerSourceOrBuilder- Returns:
- The enableDataBoost.
-
setEnableDataBoost
Whether to apply data boost on Spanner export. Enabling this option will incur additional cost. More info can be found [here](https://cloud.google.com/spanner/docs/databoost/databoost-overview#billing_and_quotas).
bool enable_data_boost = 5;- Parameters:
value- The enableDataBoost to set.- Returns:
- This builder for chaining.
-
clearEnableDataBoost
Whether to apply data boost on Spanner export. Enabling this option will incur additional cost. More info can be found [here](https://cloud.google.com/spanner/docs/databoost/databoost-overview#billing_and_quotas).
bool enable_data_boost = 5;- Returns:
- This builder for chaining.
-