Class AlloyDbSource.Builder (0.49.0)

public static final class AlloyDbSource.Builder extends GeneratedMessageV3.Builder<AlloyDbSource.Builder> implements AlloyDbSourceOrBuilder

AlloyDB source import data from.

Protobuf type google.cloud.discoveryengine.v1alpha.AlloyDbSource

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public AlloyDbSource.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
AlloyDbSource.Builder
Overrides

build()

public AlloyDbSource build()
Returns
Type Description
AlloyDbSource

buildPartial()

public AlloyDbSource buildPartial()
Returns
Type Description
AlloyDbSource

clear()

public AlloyDbSource.Builder clear()
Returns
Type Description
AlloyDbSource.Builder
Overrides

clearClusterId()

public AlloyDbSource.Builder clearClusterId()

Required. The AlloyDB cluster to copy the data from with a length limit of 256 characters.

string cluster_id = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
AlloyDbSource.Builder

This builder for chaining.

clearDatabaseId()

public AlloyDbSource.Builder clearDatabaseId()

Required. The AlloyDB database to copy the data from with a length limit of 256 characters.

string database_id = 4 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
AlloyDbSource.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public AlloyDbSource.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
AlloyDbSource.Builder
Overrides

clearGcsStagingDir()

public AlloyDbSource.Builder clearGcsStagingDir()

Intermediate Cloud Storage directory used for the import with a length limit of 2,000 characters. Can be specified if one wants to have the AlloyDB export to a specific Cloud Storage directory.

Ensure that the AlloyDB service account has the necessary Cloud Storage Admin permissions to access the specified Cloud Storage directory.

string gcs_staging_dir = 6;

Returns
Type Description
AlloyDbSource.Builder

This builder for chaining.

clearLocationId()

public AlloyDbSource.Builder clearLocationId()

Required. The AlloyDB location to copy the data from with a length limit of 256 characters.

string location_id = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
AlloyDbSource.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public AlloyDbSource.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
AlloyDbSource.Builder
Overrides

clearProjectId()

public AlloyDbSource.Builder clearProjectId()

The project ID that contains the AlloyDB 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
AlloyDbSource.Builder

This builder for chaining.

clearTableId()

public AlloyDbSource.Builder clearTableId()

Required. The AlloyDB table to copy the data from with a length limit of 256 characters.

string table_id = 5 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
AlloyDbSource.Builder

This builder for chaining.

clone()

public AlloyDbSource.Builder clone()
Returns
Type Description
AlloyDbSource.Builder
Overrides

getClusterId()

public String getClusterId()

Required. The AlloyDB cluster to copy the data from with a length limit of 256 characters.

string cluster_id = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The clusterId.

getClusterIdBytes()

public ByteString getClusterIdBytes()

Required. The AlloyDB cluster to copy the data from with a length limit of 256 characters.

string cluster_id = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for clusterId.

getDatabaseId()

public String getDatabaseId()

Required. The AlloyDB database to copy the data from with a length limit of 256 characters.

string database_id = 4 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The databaseId.

getDatabaseIdBytes()

public ByteString getDatabaseIdBytes()

Required. The AlloyDB database to copy the data from with a length limit of 256 characters.

string database_id = 4 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for databaseId.

getDefaultInstanceForType()

public AlloyDbSource getDefaultInstanceForType()
Returns
Type Description
AlloyDbSource

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getGcsStagingDir()

public String getGcsStagingDir()

Intermediate Cloud Storage directory used for the import with a length limit of 2,000 characters. Can be specified if one wants to have the AlloyDB export to a specific Cloud Storage directory.

Ensure that the AlloyDB service account has the necessary Cloud Storage Admin permissions to access the specified Cloud Storage directory.

string gcs_staging_dir = 6;

Returns
Type Description
String

The gcsStagingDir.

getGcsStagingDirBytes()

public ByteString getGcsStagingDirBytes()

Intermediate Cloud Storage directory used for the import with a length limit of 2,000 characters. Can be specified if one wants to have the AlloyDB export to a specific Cloud Storage directory.

Ensure that the AlloyDB service account has the necessary Cloud Storage Admin permissions to access the specified Cloud Storage directory.

string gcs_staging_dir = 6;

Returns
Type Description
ByteString

The bytes for gcsStagingDir.

getLocationId()

public String getLocationId()

Required. The AlloyDB location to copy the data from with a length limit of 256 characters.

string location_id = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The locationId.

getLocationIdBytes()

public ByteString getLocationIdBytes()

Required. The AlloyDB location to copy the data from with a length limit of 256 characters.

string location_id = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for locationId.

getProjectId()

public String getProjectId()

The project ID that contains the AlloyDB 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 AlloyDB 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 AlloyDB table to copy the data from with a length limit of 256 characters.

string table_id = 5 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The tableId.

getTableIdBytes()

public ByteString getTableIdBytes()

Required. The AlloyDB table to copy the data from with a length limit of 256 characters.

string table_id = 5 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for tableId.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(AlloyDbSource other)

public AlloyDbSource.Builder mergeFrom(AlloyDbSource other)
Parameter
Name Description
other AlloyDbSource
Returns
Type Description
AlloyDbSource.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public AlloyDbSource.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AlloyDbSource.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public AlloyDbSource.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
AlloyDbSource.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final AlloyDbSource.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
AlloyDbSource.Builder
Overrides

setClusterId(String value)

public AlloyDbSource.Builder setClusterId(String value)

Required. The AlloyDB cluster to copy the data from with a length limit of 256 characters.

string cluster_id = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value String

The clusterId to set.

Returns
Type Description
AlloyDbSource.Builder

This builder for chaining.

setClusterIdBytes(ByteString value)

public AlloyDbSource.Builder setClusterIdBytes(ByteString value)

Required. The AlloyDB cluster to copy the data from with a length limit of 256 characters.

string cluster_id = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ByteString

The bytes for clusterId to set.

Returns
Type Description
AlloyDbSource.Builder

This builder for chaining.

setDatabaseId(String value)

public AlloyDbSource.Builder setDatabaseId(String value)

Required. The AlloyDB database to copy the data from with a length limit of 256 characters.

string database_id = 4 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value String

The databaseId to set.

Returns
Type Description
AlloyDbSource.Builder

This builder for chaining.

setDatabaseIdBytes(ByteString value)

public AlloyDbSource.Builder setDatabaseIdBytes(ByteString value)

Required. The AlloyDB database to copy the data from with a length limit of 256 characters.

string database_id = 4 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ByteString

The bytes for databaseId to set.

Returns
Type Description
AlloyDbSource.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public AlloyDbSource.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
AlloyDbSource.Builder
Overrides

setGcsStagingDir(String value)

public AlloyDbSource.Builder setGcsStagingDir(String value)

Intermediate Cloud Storage directory used for the import with a length limit of 2,000 characters. Can be specified if one wants to have the AlloyDB export to a specific Cloud Storage directory.

Ensure that the AlloyDB service account has the necessary Cloud Storage Admin permissions to access the specified Cloud Storage directory.

string gcs_staging_dir = 6;

Parameter
Name Description
value String

The gcsStagingDir to set.

Returns
Type Description
AlloyDbSource.Builder

This builder for chaining.

setGcsStagingDirBytes(ByteString value)

public AlloyDbSource.Builder setGcsStagingDirBytes(ByteString value)

Intermediate Cloud Storage directory used for the import with a length limit of 2,000 characters. Can be specified if one wants to have the AlloyDB export to a specific Cloud Storage directory.

Ensure that the AlloyDB service account has the necessary Cloud Storage Admin permissions to access the specified Cloud Storage directory.

string gcs_staging_dir = 6;

Parameter
Name Description
value ByteString

The bytes for gcsStagingDir to set.

Returns
Type Description
AlloyDbSource.Builder

This builder for chaining.

setLocationId(String value)

public AlloyDbSource.Builder setLocationId(String value)

Required. The AlloyDB location to copy the data from with a length limit of 256 characters.

string location_id = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value String

The locationId to set.

Returns
Type Description
AlloyDbSource.Builder

This builder for chaining.

setLocationIdBytes(ByteString value)

public AlloyDbSource.Builder setLocationIdBytes(ByteString value)

Required. The AlloyDB location to copy the data from with a length limit of 256 characters.

string location_id = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ByteString

The bytes for locationId to set.

Returns
Type Description
AlloyDbSource.Builder

This builder for chaining.

setProjectId(String value)

public AlloyDbSource.Builder setProjectId(String value)

The project ID that contains the AlloyDB 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
AlloyDbSource.Builder

This builder for chaining.

setProjectIdBytes(ByteString value)

public AlloyDbSource.Builder setProjectIdBytes(ByteString value)

The project ID that contains the AlloyDB 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
AlloyDbSource.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public AlloyDbSource.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
AlloyDbSource.Builder
Overrides

setTableId(String value)

public AlloyDbSource.Builder setTableId(String value)

Required. The AlloyDB table to copy the data from with a length limit of 256 characters.

string table_id = 5 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value String

The tableId to set.

Returns
Type Description
AlloyDbSource.Builder

This builder for chaining.

setTableIdBytes(ByteString value)

public AlloyDbSource.Builder setTableIdBytes(ByteString value)

Required. The AlloyDB table to copy the data from with a length limit of 256 characters.

string table_id = 5 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ByteString

The bytes for tableId to set.

Returns
Type Description
AlloyDbSource.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final AlloyDbSource.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
AlloyDbSource.Builder
Overrides