Class ImportRagFilesConfig.Builder (3.43.0)

public static final class ImportRagFilesConfig.Builder extends GeneratedMessageV3.Builder<ImportRagFilesConfig.Builder> implements ImportRagFilesConfigOrBuilder

Config for importing RagFiles.

Protobuf type google.cloud.aiplatform.v1beta1.ImportRagFilesConfig

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public ImportRagFilesConfig build()
Returns
Type Description
ImportRagFilesConfig

buildPartial()

public ImportRagFilesConfig buildPartial()
Returns
Type Description
ImportRagFilesConfig

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearGcsSource()

public ImportRagFilesConfig.Builder clearGcsSource()

Google Cloud Storage location. Supports importing individual files as well as entire Google Cloud Storage directories. Sample formats:

  • gs://bucket_name/my_directory/object_name/my_file.txt
  • gs://bucket_name/my_directory

.google.cloud.aiplatform.v1beta1.GcsSource gcs_source = 2;

Returns
Type Description
ImportRagFilesConfig.Builder

clearGoogleDriveSource()

public ImportRagFilesConfig.Builder clearGoogleDriveSource()

Google Drive location. Supports importing individual files as well as Google Drive folders.

.google.cloud.aiplatform.v1beta1.GoogleDriveSource google_drive_source = 3;

Returns
Type Description
ImportRagFilesConfig.Builder

clearImportSource()

public ImportRagFilesConfig.Builder clearImportSource()
Returns
Type Description
ImportRagFilesConfig.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearRagFileChunkingConfig()

public ImportRagFilesConfig.Builder clearRagFileChunkingConfig()

Specifies the size and overlap of chunks after importing RagFiles.

.google.cloud.aiplatform.v1beta1.RagFileChunkingConfig rag_file_chunking_config = 4;

Returns
Type Description
ImportRagFilesConfig.Builder

clone()

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

getDefaultInstanceForType()

public ImportRagFilesConfig getDefaultInstanceForType()
Returns
Type Description
ImportRagFilesConfig

getDescriptorForType()

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

getGcsSource()

public GcsSource getGcsSource()

Google Cloud Storage location. Supports importing individual files as well as entire Google Cloud Storage directories. Sample formats:

  • gs://bucket_name/my_directory/object_name/my_file.txt
  • gs://bucket_name/my_directory

.google.cloud.aiplatform.v1beta1.GcsSource gcs_source = 2;

Returns
Type Description
GcsSource

The gcsSource.

getGcsSourceBuilder()

public GcsSource.Builder getGcsSourceBuilder()

Google Cloud Storage location. Supports importing individual files as well as entire Google Cloud Storage directories. Sample formats:

  • gs://bucket_name/my_directory/object_name/my_file.txt
  • gs://bucket_name/my_directory

.google.cloud.aiplatform.v1beta1.GcsSource gcs_source = 2;

Returns
Type Description
GcsSource.Builder

getGcsSourceOrBuilder()

public GcsSourceOrBuilder getGcsSourceOrBuilder()

Google Cloud Storage location. Supports importing individual files as well as entire Google Cloud Storage directories. Sample formats:

  • gs://bucket_name/my_directory/object_name/my_file.txt
  • gs://bucket_name/my_directory

.google.cloud.aiplatform.v1beta1.GcsSource gcs_source = 2;

Returns
Type Description
GcsSourceOrBuilder

getGoogleDriveSource()

public GoogleDriveSource getGoogleDriveSource()

Google Drive location. Supports importing individual files as well as Google Drive folders.

.google.cloud.aiplatform.v1beta1.GoogleDriveSource google_drive_source = 3;

Returns
Type Description
GoogleDriveSource

The googleDriveSource.

getGoogleDriveSourceBuilder()

public GoogleDriveSource.Builder getGoogleDriveSourceBuilder()

Google Drive location. Supports importing individual files as well as Google Drive folders.

.google.cloud.aiplatform.v1beta1.GoogleDriveSource google_drive_source = 3;

Returns
Type Description
GoogleDriveSource.Builder

getGoogleDriveSourceOrBuilder()

public GoogleDriveSourceOrBuilder getGoogleDriveSourceOrBuilder()

Google Drive location. Supports importing individual files as well as Google Drive folders.

.google.cloud.aiplatform.v1beta1.GoogleDriveSource google_drive_source = 3;

Returns
Type Description
GoogleDriveSourceOrBuilder

getImportSourceCase()

public ImportRagFilesConfig.ImportSourceCase getImportSourceCase()
Returns
Type Description
ImportRagFilesConfig.ImportSourceCase

getRagFileChunkingConfig()

public RagFileChunkingConfig getRagFileChunkingConfig()

Specifies the size and overlap of chunks after importing RagFiles.

.google.cloud.aiplatform.v1beta1.RagFileChunkingConfig rag_file_chunking_config = 4;

Returns
Type Description
RagFileChunkingConfig

The ragFileChunkingConfig.

getRagFileChunkingConfigBuilder()

public RagFileChunkingConfig.Builder getRagFileChunkingConfigBuilder()

Specifies the size and overlap of chunks after importing RagFiles.

.google.cloud.aiplatform.v1beta1.RagFileChunkingConfig rag_file_chunking_config = 4;

Returns
Type Description
RagFileChunkingConfig.Builder

getRagFileChunkingConfigOrBuilder()

public RagFileChunkingConfigOrBuilder getRagFileChunkingConfigOrBuilder()

Specifies the size and overlap of chunks after importing RagFiles.

.google.cloud.aiplatform.v1beta1.RagFileChunkingConfig rag_file_chunking_config = 4;

Returns
Type Description
RagFileChunkingConfigOrBuilder

hasGcsSource()

public boolean hasGcsSource()

Google Cloud Storage location. Supports importing individual files as well as entire Google Cloud Storage directories. Sample formats:

  • gs://bucket_name/my_directory/object_name/my_file.txt
  • gs://bucket_name/my_directory

.google.cloud.aiplatform.v1beta1.GcsSource gcs_source = 2;

Returns
Type Description
boolean

Whether the gcsSource field is set.

hasGoogleDriveSource()

public boolean hasGoogleDriveSource()

Google Drive location. Supports importing individual files as well as Google Drive folders.

.google.cloud.aiplatform.v1beta1.GoogleDriveSource google_drive_source = 3;

Returns
Type Description
boolean

Whether the googleDriveSource field is set.

hasRagFileChunkingConfig()

public boolean hasRagFileChunkingConfig()

Specifies the size and overlap of chunks after importing RagFiles.

.google.cloud.aiplatform.v1beta1.RagFileChunkingConfig rag_file_chunking_config = 4;

Returns
Type Description
boolean

Whether the ragFileChunkingConfig field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(ImportRagFilesConfig other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeGcsSource(GcsSource value)

public ImportRagFilesConfig.Builder mergeGcsSource(GcsSource value)

Google Cloud Storage location. Supports importing individual files as well as entire Google Cloud Storage directories. Sample formats:

  • gs://bucket_name/my_directory/object_name/my_file.txt
  • gs://bucket_name/my_directory

.google.cloud.aiplatform.v1beta1.GcsSource gcs_source = 2;

Parameter
Name Description
value GcsSource
Returns
Type Description
ImportRagFilesConfig.Builder

mergeGoogleDriveSource(GoogleDriveSource value)

public ImportRagFilesConfig.Builder mergeGoogleDriveSource(GoogleDriveSource value)

Google Drive location. Supports importing individual files as well as Google Drive folders.

.google.cloud.aiplatform.v1beta1.GoogleDriveSource google_drive_source = 3;

Parameter
Name Description
value GoogleDriveSource
Returns
Type Description
ImportRagFilesConfig.Builder

mergeRagFileChunkingConfig(RagFileChunkingConfig value)

public ImportRagFilesConfig.Builder mergeRagFileChunkingConfig(RagFileChunkingConfig value)

Specifies the size and overlap of chunks after importing RagFiles.

.google.cloud.aiplatform.v1beta1.RagFileChunkingConfig rag_file_chunking_config = 4;

Parameter
Name Description
value RagFileChunkingConfig
Returns
Type Description
ImportRagFilesConfig.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

setGcsSource(GcsSource value)

public ImportRagFilesConfig.Builder setGcsSource(GcsSource value)

Google Cloud Storage location. Supports importing individual files as well as entire Google Cloud Storage directories. Sample formats:

  • gs://bucket_name/my_directory/object_name/my_file.txt
  • gs://bucket_name/my_directory

.google.cloud.aiplatform.v1beta1.GcsSource gcs_source = 2;

Parameter
Name Description
value GcsSource
Returns
Type Description
ImportRagFilesConfig.Builder

setGcsSource(GcsSource.Builder builderForValue)

public ImportRagFilesConfig.Builder setGcsSource(GcsSource.Builder builderForValue)

Google Cloud Storage location. Supports importing individual files as well as entire Google Cloud Storage directories. Sample formats:

  • gs://bucket_name/my_directory/object_name/my_file.txt
  • gs://bucket_name/my_directory

.google.cloud.aiplatform.v1beta1.GcsSource gcs_source = 2;

Parameter
Name Description
builderForValue GcsSource.Builder
Returns
Type Description
ImportRagFilesConfig.Builder

setGoogleDriveSource(GoogleDriveSource value)

public ImportRagFilesConfig.Builder setGoogleDriveSource(GoogleDriveSource value)

Google Drive location. Supports importing individual files as well as Google Drive folders.

.google.cloud.aiplatform.v1beta1.GoogleDriveSource google_drive_source = 3;

Parameter
Name Description
value GoogleDriveSource
Returns
Type Description
ImportRagFilesConfig.Builder

setGoogleDriveSource(GoogleDriveSource.Builder builderForValue)

public ImportRagFilesConfig.Builder setGoogleDriveSource(GoogleDriveSource.Builder builderForValue)

Google Drive location. Supports importing individual files as well as Google Drive folders.

.google.cloud.aiplatform.v1beta1.GoogleDriveSource google_drive_source = 3;

Parameter
Name Description
builderForValue GoogleDriveSource.Builder
Returns
Type Description
ImportRagFilesConfig.Builder

setRagFileChunkingConfig(RagFileChunkingConfig value)

public ImportRagFilesConfig.Builder setRagFileChunkingConfig(RagFileChunkingConfig value)

Specifies the size and overlap of chunks after importing RagFiles.

.google.cloud.aiplatform.v1beta1.RagFileChunkingConfig rag_file_chunking_config = 4;

Parameter
Name Description
value RagFileChunkingConfig
Returns
Type Description
ImportRagFilesConfig.Builder

setRagFileChunkingConfig(RagFileChunkingConfig.Builder builderForValue)

public ImportRagFilesConfig.Builder setRagFileChunkingConfig(RagFileChunkingConfig.Builder builderForValue)

Specifies the size and overlap of chunks after importing RagFiles.

.google.cloud.aiplatform.v1beta1.RagFileChunkingConfig rag_file_chunking_config = 4;

Parameter
Name Description
builderForValue RagFileChunkingConfig.Builder
Returns
Type Description
ImportRagFilesConfig.Builder

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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