Class ImportRagFilesConfig.Builder (3.48.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

clearJiraSource()

public ImportRagFilesConfig.Builder clearJiraSource()

Jira queries with their corresponding authentication.

.google.cloud.aiplatform.v1beta1.JiraSource jira_source = 7;

Returns
Type Description
ImportRagFilesConfig.Builder

clearMaxEmbeddingRequestsPerMin()

public ImportRagFilesConfig.Builder clearMaxEmbeddingRequestsPerMin()

Optional. The max number of queries per minute that this job is allowed to make to the embedding model specified on the corpus. This value is specific to this job and not shared across other import jobs. Consult the Quotas page on the project to set an appropriate value here. If unspecified, a default value of 1,000 QPM would be used.

int32 max_embedding_requests_per_min = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ImportRagFilesConfig.Builder

This builder for chaining.

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

clearSlackSource()

public ImportRagFilesConfig.Builder clearSlackSource()

Slack channels with their corresponding access tokens.

.google.cloud.aiplatform.v1beta1.SlackSource slack_source = 6;

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

getJiraSource()

public JiraSource getJiraSource()

Jira queries with their corresponding authentication.

.google.cloud.aiplatform.v1beta1.JiraSource jira_source = 7;

Returns
Type Description
JiraSource

The jiraSource.

getJiraSourceBuilder()

public JiraSource.Builder getJiraSourceBuilder()

Jira queries with their corresponding authentication.

.google.cloud.aiplatform.v1beta1.JiraSource jira_source = 7;

Returns
Type Description
JiraSource.Builder

getJiraSourceOrBuilder()

public JiraSourceOrBuilder getJiraSourceOrBuilder()

Jira queries with their corresponding authentication.

.google.cloud.aiplatform.v1beta1.JiraSource jira_source = 7;

Returns
Type Description
JiraSourceOrBuilder

getMaxEmbeddingRequestsPerMin()

public int getMaxEmbeddingRequestsPerMin()

Optional. The max number of queries per minute that this job is allowed to make to the embedding model specified on the corpus. This value is specific to this job and not shared across other import jobs. Consult the Quotas page on the project to set an appropriate value here. If unspecified, a default value of 1,000 QPM would be used.

int32 max_embedding_requests_per_min = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

The maxEmbeddingRequestsPerMin.

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

getSlackSource()

public SlackSource getSlackSource()

Slack channels with their corresponding access tokens.

.google.cloud.aiplatform.v1beta1.SlackSource slack_source = 6;

Returns
Type Description
SlackSource

The slackSource.

getSlackSourceBuilder()

public SlackSource.Builder getSlackSourceBuilder()

Slack channels with their corresponding access tokens.

.google.cloud.aiplatform.v1beta1.SlackSource slack_source = 6;

Returns
Type Description
SlackSource.Builder

getSlackSourceOrBuilder()

public SlackSourceOrBuilder getSlackSourceOrBuilder()

Slack channels with their corresponding access tokens.

.google.cloud.aiplatform.v1beta1.SlackSource slack_source = 6;

Returns
Type Description
SlackSourceOrBuilder

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.

hasJiraSource()

public boolean hasJiraSource()

Jira queries with their corresponding authentication.

.google.cloud.aiplatform.v1beta1.JiraSource jira_source = 7;

Returns
Type Description
boolean

Whether the jiraSource 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.

hasSlackSource()

public boolean hasSlackSource()

Slack channels with their corresponding access tokens.

.google.cloud.aiplatform.v1beta1.SlackSource slack_source = 6;

Returns
Type Description
boolean

Whether the slackSource 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

mergeJiraSource(JiraSource value)

public ImportRagFilesConfig.Builder mergeJiraSource(JiraSource value)

Jira queries with their corresponding authentication.

.google.cloud.aiplatform.v1beta1.JiraSource jira_source = 7;

Parameter
Name Description
value JiraSource
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

mergeSlackSource(SlackSource value)

public ImportRagFilesConfig.Builder mergeSlackSource(SlackSource value)

Slack channels with their corresponding access tokens.

.google.cloud.aiplatform.v1beta1.SlackSource slack_source = 6;

Parameter
Name Description
value SlackSource
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

setJiraSource(JiraSource value)

public ImportRagFilesConfig.Builder setJiraSource(JiraSource value)

Jira queries with their corresponding authentication.

.google.cloud.aiplatform.v1beta1.JiraSource jira_source = 7;

Parameter
Name Description
value JiraSource
Returns
Type Description
ImportRagFilesConfig.Builder

setJiraSource(JiraSource.Builder builderForValue)

public ImportRagFilesConfig.Builder setJiraSource(JiraSource.Builder builderForValue)

Jira queries with their corresponding authentication.

.google.cloud.aiplatform.v1beta1.JiraSource jira_source = 7;

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

setMaxEmbeddingRequestsPerMin(int value)

public ImportRagFilesConfig.Builder setMaxEmbeddingRequestsPerMin(int value)

Optional. The max number of queries per minute that this job is allowed to make to the embedding model specified on the corpus. This value is specific to this job and not shared across other import jobs. Consult the Quotas page on the project to set an appropriate value here. If unspecified, a default value of 1,000 QPM would be used.

int32 max_embedding_requests_per_min = 5 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value int

The maxEmbeddingRequestsPerMin to set.

Returns
Type Description
ImportRagFilesConfig.Builder

This builder for chaining.

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

setSlackSource(SlackSource value)

public ImportRagFilesConfig.Builder setSlackSource(SlackSource value)

Slack channels with their corresponding access tokens.

.google.cloud.aiplatform.v1beta1.SlackSource slack_source = 6;

Parameter
Name Description
value SlackSource
Returns
Type Description
ImportRagFilesConfig.Builder

setSlackSource(SlackSource.Builder builderForValue)

public ImportRagFilesConfig.Builder setSlackSource(SlackSource.Builder builderForValue)

Slack channels with their corresponding access tokens.

.google.cloud.aiplatform.v1beta1.SlackSource slack_source = 6;

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

setUnknownFields(UnknownFieldSet unknownFields)

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