- 0.50.0 (latest)
- 0.49.0
- 0.48.0
- 0.47.0
- 0.45.0
- 0.44.0
- 0.43.0
- 0.42.0
- 0.41.0
- 0.40.0
- 0.39.0
- 0.38.0
- 0.37.0
- 0.36.0
- 0.35.0
- 0.33.0
- 0.32.0
- 0.31.0
- 0.30.0
- 0.29.0
- 0.28.0
- 0.27.0
- 0.26.0
- 0.25.0
- 0.24.0
- 0.23.0
- 0.20.0
- 0.19.0
- 0.18.0
- 0.17.0
- 0.16.0
- 0.15.0
- 0.14.0
- 0.13.0
- 0.12.0
- 0.11.0
- 0.10.0
- 0.9.0
- 0.8.0
- 0.7.0
- 0.5.0
- 0.4.0
- 0.3.0
- 0.2.0
- 0.1.0
public static final class SpannerSource.Builder extends GeneratedMessageV3.Builder<SpannerSource.Builder> implements SpannerSourceOrBuilder
The Spanner source for importing data
Protobuf type google.cloud.discoveryengine.v1.SpannerSource
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > SpannerSource.BuilderImplements
SpannerSourceOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns | |
---|---|
Type | Description |
Descriptor |
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public SpannerSource.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters | |
---|---|
Name | Description |
field |
FieldDescriptor |
value |
Object |
Returns | |
---|---|
Type | Description |
SpannerSource.Builder |
build()
public SpannerSource build()
Returns | |
---|---|
Type | Description |
SpannerSource |
buildPartial()
public SpannerSource buildPartial()
Returns | |
---|---|
Type | Description |
SpannerSource |
clear()
public SpannerSource.Builder clear()
Returns | |
---|---|
Type | Description |
SpannerSource.Builder |
clearDatabaseId()
public SpannerSource.Builder clearDatabaseId()
Required. The database ID of the source Spanner table.
string database_id = 3 [(.google.api.field_behavior) = REQUIRED];
Returns | |
---|---|
Type | Description |
SpannerSource.Builder |
This builder for chaining. |
clearEnableDataBoost()
public SpannerSource.Builder clearEnableDataBoost()
Whether to apply data boost on Spanner export. Enabling this option will incur additional cost. More info can be found here.
bool enable_data_boost = 5;
Returns | |
---|---|
Type | Description |
SpannerSource.Builder |
This builder for chaining. |
clearField(Descriptors.FieldDescriptor field)
public SpannerSource.Builder clearField(Descriptors.FieldDescriptor field)
Parameter | |
---|---|
Name | Description |
field |
FieldDescriptor |
Returns | |
---|---|
Type | Description |
SpannerSource.Builder |
clearInstanceId()
public SpannerSource.Builder clearInstanceId()
Required. The instance ID of the source Spanner table.
string instance_id = 2 [(.google.api.field_behavior) = REQUIRED];
Returns | |
---|---|
Type | Description |
SpannerSource.Builder |
This builder for chaining. |
clearOneof(Descriptors.OneofDescriptor oneof)
public SpannerSource.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter | |
---|---|
Name | Description |
oneof |
OneofDescriptor |
Returns | |
---|---|
Type | Description |
SpannerSource.Builder |
clearProjectId()
public SpannerSource.Builder 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 | |
---|---|
Type | Description |
SpannerSource.Builder |
This builder for chaining. |
clearTableId()
public SpannerSource.Builder clearTableId()
Required. The table name of the Spanner database that needs to be imported.
string table_id = 4 [(.google.api.field_behavior) = REQUIRED];
Returns | |
---|---|
Type | Description |
SpannerSource.Builder |
This builder for chaining. |
clone()
public SpannerSource.Builder clone()
Returns | |
---|---|
Type | Description |
SpannerSource.Builder |
getDatabaseId()
public String getDatabaseId()
Required. The database ID of the source Spanner table.
string database_id = 3 [(.google.api.field_behavior) = REQUIRED];
Returns | |
---|---|
Type | Description |
String |
The databaseId. |
getDatabaseIdBytes()
public ByteString getDatabaseIdBytes()
Required. The database ID of the source Spanner table.
string database_id = 3 [(.google.api.field_behavior) = REQUIRED];
Returns | |
---|---|
Type | Description |
ByteString |
The bytes for databaseId. |
getDefaultInstanceForType()
public SpannerSource getDefaultInstanceForType()
Returns | |
---|---|
Type | Description |
SpannerSource |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns | |
---|---|
Type | Description |
Descriptor |
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.
bool enable_data_boost = 5;
Returns | |
---|---|
Type | Description |
boolean |
The enableDataBoost. |
getInstanceId()
public String getInstanceId()
Required. The instance ID of the source Spanner table.
string instance_id = 2 [(.google.api.field_behavior) = REQUIRED];
Returns | |
---|---|
Type | Description |
String |
The instanceId. |
getInstanceIdBytes()
public ByteString getInstanceIdBytes()
Required. The instance ID of the source Spanner table.
string instance_id = 2 [(.google.api.field_behavior) = REQUIRED];
Returns | |
---|---|
Type | Description |
ByteString |
The bytes for instanceId. |
getProjectId()
public String 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;
Returns | |
---|---|
Type | Description |
String |
The projectId. |
getProjectIdBytes()
public 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;
Returns | |
---|---|
Type | Description |
ByteString |
The bytes for projectId. |
getTableId()
public String getTableId()
Required. The table name of the Spanner database that needs to be imported.
string table_id = 4 [(.google.api.field_behavior) = REQUIRED];
Returns | |
---|---|
Type | Description |
String |
The tableId. |
getTableIdBytes()
public ByteString getTableIdBytes()
Required. The table name of the Spanner database that needs to be imported.
string table_id = 4 [(.google.api.field_behavior) = REQUIRED];
Returns | |
---|---|
Type | Description |
ByteString |
The bytes for tableId. |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns | |
---|---|
Type | Description |
FieldAccessorTable |
isInitialized()
public final boolean isInitialized()
Returns | |
---|---|
Type | Description |
boolean |
mergeFrom(SpannerSource other)
public SpannerSource.Builder mergeFrom(SpannerSource other)
Parameter | |
---|---|
Name | Description |
other |
SpannerSource |
Returns | |
---|---|
Type | Description |
SpannerSource.Builder |
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public SpannerSource.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters | |
---|---|
Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
Returns | |
---|---|
Type | Description |
SpannerSource.Builder |
Exceptions | |
---|---|
Type | Description |
IOException |
mergeFrom(Message other)
public SpannerSource.Builder mergeFrom(Message other)
Parameter | |
---|---|
Name | Description |
other |
Message |
Returns | |
---|---|
Type | Description |
SpannerSource.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final SpannerSource.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields |
UnknownFieldSet |
Returns | |
---|---|
Type | Description |
SpannerSource.Builder |
setDatabaseId(String value)
public SpannerSource.Builder setDatabaseId(String value)
Required. The database ID of the source Spanner table.
string database_id = 3 [(.google.api.field_behavior) = REQUIRED];
Parameter | |
---|---|
Name | Description |
value |
String The databaseId to set. |
Returns | |
---|---|
Type | Description |
SpannerSource.Builder |
This builder for chaining. |
setDatabaseIdBytes(ByteString value)
public SpannerSource.Builder setDatabaseIdBytes(ByteString value)
Required. The database ID of the source Spanner table.
string database_id = 3 [(.google.api.field_behavior) = REQUIRED];
Parameter | |
---|---|
Name | Description |
value |
ByteString The bytes for databaseId to set. |
Returns | |
---|---|
Type | Description |
SpannerSource.Builder |
This builder for chaining. |
setEnableDataBoost(boolean value)
public SpannerSource.Builder setEnableDataBoost(boolean value)
Whether to apply data boost on Spanner export. Enabling this option will incur additional cost. More info can be found here.
bool enable_data_boost = 5;
Parameter | |
---|---|
Name | Description |
value |
boolean The enableDataBoost to set. |
Returns | |
---|---|
Type | Description |
SpannerSource.Builder |
This builder for chaining. |
setField(Descriptors.FieldDescriptor field, Object value)
public SpannerSource.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters | |
---|---|
Name | Description |
field |
FieldDescriptor |
value |
Object |
Returns | |
---|---|
Type | Description |
SpannerSource.Builder |
setInstanceId(String value)
public SpannerSource.Builder setInstanceId(String value)
Required. The instance ID of the source Spanner table.
string instance_id = 2 [(.google.api.field_behavior) = REQUIRED];
Parameter | |
---|---|
Name | Description |
value |
String The instanceId to set. |
Returns | |
---|---|
Type | Description |
SpannerSource.Builder |
This builder for chaining. |
setInstanceIdBytes(ByteString value)
public SpannerSource.Builder setInstanceIdBytes(ByteString value)
Required. The instance ID of the source Spanner table.
string instance_id = 2 [(.google.api.field_behavior) = REQUIRED];
Parameter | |
---|---|
Name | Description |
value |
ByteString The bytes for instanceId to set. |
Returns | |
---|---|
Type | Description |
SpannerSource.Builder |
This builder for chaining. |
setProjectId(String value)
public SpannerSource.Builder setProjectId(String value)
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;
Parameter | |
---|---|
Name | Description |
value |
String The projectId to set. |
Returns | |
---|---|
Type | Description |
SpannerSource.Builder |
This builder for chaining. |
setProjectIdBytes(ByteString value)
public SpannerSource.Builder setProjectIdBytes(ByteString value)
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;
Parameter | |
---|---|
Name | Description |
value |
ByteString The bytes for projectId to set. |
Returns | |
---|---|
Type | Description |
SpannerSource.Builder |
This builder for chaining. |
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public SpannerSource.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters | |
---|---|
Name | Description |
field |
FieldDescriptor |
index |
int |
value |
Object |
Returns | |
---|---|
Type | Description |
SpannerSource.Builder |
setTableId(String value)
public SpannerSource.Builder setTableId(String value)
Required. The table name of the Spanner database that needs to be imported.
string table_id = 4 [(.google.api.field_behavior) = REQUIRED];
Parameter | |
---|---|
Name | Description |
value |
String The tableId to set. |
Returns | |
---|---|
Type | Description |
SpannerSource.Builder |
This builder for chaining. |
setTableIdBytes(ByteString value)
public SpannerSource.Builder setTableIdBytes(ByteString value)
Required. The table name of the Spanner database that needs to be imported.
string table_id = 4 [(.google.api.field_behavior) = REQUIRED];
Parameter | |
---|---|
Name | Description |
value |
ByteString The bytes for tableId to set. |
Returns | |
---|---|
Type | Description |
SpannerSource.Builder |
This builder for chaining. |
setUnknownFields(UnknownFieldSet unknownFields)
public final SpannerSource.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields |
UnknownFieldSet |
Returns | |
---|---|
Type | Description |
SpannerSource.Builder |