Class RagFile.Builder (3.56.0)

public static final class RagFile.Builder extends GeneratedMessageV3.Builder<RagFile.Builder> implements RagFileOrBuilder

A RagFile contains user data for chunking, embedding and indexing.

Protobuf type google.cloud.aiplatform.v1.RagFile

Implements

RagFileOrBuilder

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public RagFile build()
Returns
Type Description
RagFile

buildPartial()

public RagFile buildPartial()
Returns
Type Description
RagFile

clear()

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

clearCreateTime()

public RagFile.Builder clearCreateTime()

Output only. Timestamp when this RagFile was created.

.google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
RagFile.Builder

clearDescription()

public RagFile.Builder clearDescription()

Optional. The description of the RagFile.

string description = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
RagFile.Builder

This builder for chaining.

clearDirectUploadSource()

public RagFile.Builder clearDirectUploadSource()

Output only. The RagFile is encapsulated and uploaded in the UploadRagFile request.

.google.cloud.aiplatform.v1.DirectUploadSource direct_upload_source = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
RagFile.Builder

clearDisplayName()

public RagFile.Builder clearDisplayName()

Required. The display name of the RagFile. The name can be up to 128 characters long and can consist of any UTF-8 characters.

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

Returns
Type Description
RagFile.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearFileStatus()

public RagFile.Builder clearFileStatus()

Output only. State of the RagFile.

.google.cloud.aiplatform.v1.FileStatus file_status = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
RagFile.Builder

clearGcsSource()

public RagFile.Builder clearGcsSource()

Output only. Google Cloud Storage location of the RagFile. It does not support wildcards in the Cloud Storage uri for now.

.google.cloud.aiplatform.v1.GcsSource gcs_source = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
RagFile.Builder

clearGoogleDriveSource()

public RagFile.Builder clearGoogleDriveSource()

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

.google.cloud.aiplatform.v1.GoogleDriveSource google_drive_source = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
RagFile.Builder

clearJiraSource()

public RagFile.Builder clearJiraSource()

The RagFile is imported from a Jira query.

.google.cloud.aiplatform.v1.JiraSource jira_source = 12;

Returns
Type Description
RagFile.Builder

clearName()

public RagFile.Builder clearName()

Output only. The resource name of the RagFile.

string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
RagFile.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearRagFileSource()

public RagFile.Builder clearRagFileSource()
Returns
Type Description
RagFile.Builder

clearSharePointSources()

public RagFile.Builder clearSharePointSources()

The RagFile is imported from a SharePoint source.

.google.cloud.aiplatform.v1.SharePointSources share_point_sources = 14;

Returns
Type Description
RagFile.Builder

clearSlackSource()

public RagFile.Builder clearSlackSource()

The RagFile is imported from a Slack channel.

.google.cloud.aiplatform.v1.SlackSource slack_source = 11;

Returns
Type Description
RagFile.Builder

clearUpdateTime()

public RagFile.Builder clearUpdateTime()

Output only. Timestamp when this RagFile was last updated.

.google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
RagFile.Builder

clone()

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

getCreateTime()

public Timestamp getCreateTime()

Output only. Timestamp when this RagFile was created.

.google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Timestamp

The createTime.

getCreateTimeBuilder()

public Timestamp.Builder getCreateTimeBuilder()

Output only. Timestamp when this RagFile was created.

.google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Builder

getCreateTimeOrBuilder()

public TimestampOrBuilder getCreateTimeOrBuilder()

Output only. Timestamp when this RagFile was created.

.google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
TimestampOrBuilder

getDefaultInstanceForType()

public RagFile getDefaultInstanceForType()
Returns
Type Description
RagFile

getDescription()

public String getDescription()

Optional. The description of the RagFile.

string description = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The description.

getDescriptionBytes()

public ByteString getDescriptionBytes()

Optional. The description of the RagFile.

string description = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for description.

getDescriptorForType()

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

getDirectUploadSource()

public DirectUploadSource getDirectUploadSource()

Output only. The RagFile is encapsulated and uploaded in the UploadRagFile request.

.google.cloud.aiplatform.v1.DirectUploadSource direct_upload_source = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
DirectUploadSource

The directUploadSource.

getDirectUploadSourceBuilder()

public DirectUploadSource.Builder getDirectUploadSourceBuilder()

Output only. The RagFile is encapsulated and uploaded in the UploadRagFile request.

.google.cloud.aiplatform.v1.DirectUploadSource direct_upload_source = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
DirectUploadSource.Builder

getDirectUploadSourceOrBuilder()

public DirectUploadSourceOrBuilder getDirectUploadSourceOrBuilder()

Output only. The RagFile is encapsulated and uploaded in the UploadRagFile request.

.google.cloud.aiplatform.v1.DirectUploadSource direct_upload_source = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
DirectUploadSourceOrBuilder

getDisplayName()

public String getDisplayName()

Required. The display name of the RagFile. The name can be up to 128 characters long and can consist of any UTF-8 characters.

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

Returns
Type Description
String

The displayName.

getDisplayNameBytes()

public ByteString getDisplayNameBytes()

Required. The display name of the RagFile. The name can be up to 128 characters long and can consist of any UTF-8 characters.

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

Returns
Type Description
ByteString

The bytes for displayName.

getFileStatus()

public FileStatus getFileStatus()

Output only. State of the RagFile.

.google.cloud.aiplatform.v1.FileStatus file_status = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
FileStatus

The fileStatus.

getFileStatusBuilder()

public FileStatus.Builder getFileStatusBuilder()

Output only. State of the RagFile.

.google.cloud.aiplatform.v1.FileStatus file_status = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
FileStatus.Builder

getFileStatusOrBuilder()

public FileStatusOrBuilder getFileStatusOrBuilder()

Output only. State of the RagFile.

.google.cloud.aiplatform.v1.FileStatus file_status = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
FileStatusOrBuilder

getGcsSource()

public GcsSource getGcsSource()

Output only. Google Cloud Storage location of the RagFile. It does not support wildcards in the Cloud Storage uri for now.

.google.cloud.aiplatform.v1.GcsSource gcs_source = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
GcsSource

The gcsSource.

getGcsSourceBuilder()

public GcsSource.Builder getGcsSourceBuilder()

Output only. Google Cloud Storage location of the RagFile. It does not support wildcards in the Cloud Storage uri for now.

.google.cloud.aiplatform.v1.GcsSource gcs_source = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
GcsSource.Builder

getGcsSourceOrBuilder()

public GcsSourceOrBuilder getGcsSourceOrBuilder()

Output only. Google Cloud Storage location of the RagFile. It does not support wildcards in the Cloud Storage uri for now.

.google.cloud.aiplatform.v1.GcsSource gcs_source = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
GcsSourceOrBuilder

getGoogleDriveSource()

public GoogleDriveSource getGoogleDriveSource()

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

.google.cloud.aiplatform.v1.GoogleDriveSource google_drive_source = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
GoogleDriveSource

The googleDriveSource.

getGoogleDriveSourceBuilder()

public GoogleDriveSource.Builder getGoogleDriveSourceBuilder()

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

.google.cloud.aiplatform.v1.GoogleDriveSource google_drive_source = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
GoogleDriveSource.Builder

getGoogleDriveSourceOrBuilder()

public GoogleDriveSourceOrBuilder getGoogleDriveSourceOrBuilder()

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

.google.cloud.aiplatform.v1.GoogleDriveSource google_drive_source = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
GoogleDriveSourceOrBuilder

getJiraSource()

public JiraSource getJiraSource()

The RagFile is imported from a Jira query.

.google.cloud.aiplatform.v1.JiraSource jira_source = 12;

Returns
Type Description
JiraSource

The jiraSource.

getJiraSourceBuilder()

public JiraSource.Builder getJiraSourceBuilder()

The RagFile is imported from a Jira query.

.google.cloud.aiplatform.v1.JiraSource jira_source = 12;

Returns
Type Description
JiraSource.Builder

getJiraSourceOrBuilder()

public JiraSourceOrBuilder getJiraSourceOrBuilder()

The RagFile is imported from a Jira query.

.google.cloud.aiplatform.v1.JiraSource jira_source = 12;

Returns
Type Description
JiraSourceOrBuilder

getName()

public String getName()

Output only. The resource name of the RagFile.

string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

Output only. The resource name of the RagFile.

string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ByteString

The bytes for name.

getRagFileSourceCase()

public RagFile.RagFileSourceCase getRagFileSourceCase()
Returns
Type Description
RagFile.RagFileSourceCase

getSharePointSources()

public SharePointSources getSharePointSources()

The RagFile is imported from a SharePoint source.

.google.cloud.aiplatform.v1.SharePointSources share_point_sources = 14;

Returns
Type Description
SharePointSources

The sharePointSources.

getSharePointSourcesBuilder()

public SharePointSources.Builder getSharePointSourcesBuilder()

The RagFile is imported from a SharePoint source.

.google.cloud.aiplatform.v1.SharePointSources share_point_sources = 14;

Returns
Type Description
SharePointSources.Builder

getSharePointSourcesOrBuilder()

public SharePointSourcesOrBuilder getSharePointSourcesOrBuilder()

The RagFile is imported from a SharePoint source.

.google.cloud.aiplatform.v1.SharePointSources share_point_sources = 14;

Returns
Type Description
SharePointSourcesOrBuilder

getSlackSource()

public SlackSource getSlackSource()

The RagFile is imported from a Slack channel.

.google.cloud.aiplatform.v1.SlackSource slack_source = 11;

Returns
Type Description
SlackSource

The slackSource.

getSlackSourceBuilder()

public SlackSource.Builder getSlackSourceBuilder()

The RagFile is imported from a Slack channel.

.google.cloud.aiplatform.v1.SlackSource slack_source = 11;

Returns
Type Description
SlackSource.Builder

getSlackSourceOrBuilder()

public SlackSourceOrBuilder getSlackSourceOrBuilder()

The RagFile is imported from a Slack channel.

.google.cloud.aiplatform.v1.SlackSource slack_source = 11;

Returns
Type Description
SlackSourceOrBuilder

getUpdateTime()

public Timestamp getUpdateTime()

Output only. Timestamp when this RagFile was last updated.

.google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Timestamp

The updateTime.

getUpdateTimeBuilder()

public Timestamp.Builder getUpdateTimeBuilder()

Output only. Timestamp when this RagFile was last updated.

.google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Builder

getUpdateTimeOrBuilder()

public TimestampOrBuilder getUpdateTimeOrBuilder()

Output only. Timestamp when this RagFile was last updated.

.google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
TimestampOrBuilder

hasCreateTime()

public boolean hasCreateTime()

Output only. Timestamp when this RagFile was created.

.google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the createTime field is set.

hasDirectUploadSource()

public boolean hasDirectUploadSource()

Output only. The RagFile is encapsulated and uploaded in the UploadRagFile request.

.google.cloud.aiplatform.v1.DirectUploadSource direct_upload_source = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the directUploadSource field is set.

hasFileStatus()

public boolean hasFileStatus()

Output only. State of the RagFile.

.google.cloud.aiplatform.v1.FileStatus file_status = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the fileStatus field is set.

hasGcsSource()

public boolean hasGcsSource()

Output only. Google Cloud Storage location of the RagFile. It does not support wildcards in the Cloud Storage uri for now.

.google.cloud.aiplatform.v1.GcsSource gcs_source = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the gcsSource field is set.

hasGoogleDriveSource()

public boolean hasGoogleDriveSource()

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

.google.cloud.aiplatform.v1.GoogleDriveSource google_drive_source = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the googleDriveSource field is set.

hasJiraSource()

public boolean hasJiraSource()

The RagFile is imported from a Jira query.

.google.cloud.aiplatform.v1.JiraSource jira_source = 12;

Returns
Type Description
boolean

Whether the jiraSource field is set.

hasSharePointSources()

public boolean hasSharePointSources()

The RagFile is imported from a SharePoint source.

.google.cloud.aiplatform.v1.SharePointSources share_point_sources = 14;

Returns
Type Description
boolean

Whether the sharePointSources field is set.

hasSlackSource()

public boolean hasSlackSource()

The RagFile is imported from a Slack channel.

.google.cloud.aiplatform.v1.SlackSource slack_source = 11;

Returns
Type Description
boolean

Whether the slackSource field is set.

hasUpdateTime()

public boolean hasUpdateTime()

Output only. Timestamp when this RagFile was last updated.

.google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the updateTime field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeCreateTime(Timestamp value)

public RagFile.Builder mergeCreateTime(Timestamp value)

Output only. Timestamp when this RagFile was created.

.google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Timestamp
Returns
Type Description
RagFile.Builder

mergeDirectUploadSource(DirectUploadSource value)

public RagFile.Builder mergeDirectUploadSource(DirectUploadSource value)

Output only. The RagFile is encapsulated and uploaded in the UploadRagFile request.

.google.cloud.aiplatform.v1.DirectUploadSource direct_upload_source = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value DirectUploadSource
Returns
Type Description
RagFile.Builder

mergeFileStatus(FileStatus value)

public RagFile.Builder mergeFileStatus(FileStatus value)

Output only. State of the RagFile.

.google.cloud.aiplatform.v1.FileStatus file_status = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value FileStatus
Returns
Type Description
RagFile.Builder

mergeFrom(RagFile other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeGcsSource(GcsSource value)

public RagFile.Builder mergeGcsSource(GcsSource value)

Output only. Google Cloud Storage location of the RagFile. It does not support wildcards in the Cloud Storage uri for now.

.google.cloud.aiplatform.v1.GcsSource gcs_source = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value GcsSource
Returns
Type Description
RagFile.Builder

mergeGoogleDriveSource(GoogleDriveSource value)

public RagFile.Builder mergeGoogleDriveSource(GoogleDriveSource value)

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

.google.cloud.aiplatform.v1.GoogleDriveSource google_drive_source = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value GoogleDriveSource
Returns
Type Description
RagFile.Builder

mergeJiraSource(JiraSource value)

public RagFile.Builder mergeJiraSource(JiraSource value)

The RagFile is imported from a Jira query.

.google.cloud.aiplatform.v1.JiraSource jira_source = 12;

Parameter
Name Description
value JiraSource
Returns
Type Description
RagFile.Builder

mergeSharePointSources(SharePointSources value)

public RagFile.Builder mergeSharePointSources(SharePointSources value)

The RagFile is imported from a SharePoint source.

.google.cloud.aiplatform.v1.SharePointSources share_point_sources = 14;

Parameter
Name Description
value SharePointSources
Returns
Type Description
RagFile.Builder

mergeSlackSource(SlackSource value)

public RagFile.Builder mergeSlackSource(SlackSource value)

The RagFile is imported from a Slack channel.

.google.cloud.aiplatform.v1.SlackSource slack_source = 11;

Parameter
Name Description
value SlackSource
Returns
Type Description
RagFile.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

mergeUpdateTime(Timestamp value)

public RagFile.Builder mergeUpdateTime(Timestamp value)

Output only. Timestamp when this RagFile was last updated.

.google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Timestamp
Returns
Type Description
RagFile.Builder

setCreateTime(Timestamp value)

public RagFile.Builder setCreateTime(Timestamp value)

Output only. Timestamp when this RagFile was created.

.google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Timestamp
Returns
Type Description
RagFile.Builder

setCreateTime(Timestamp.Builder builderForValue)

public RagFile.Builder setCreateTime(Timestamp.Builder builderForValue)

Output only. Timestamp when this RagFile was created.

.google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
builderForValue Builder
Returns
Type Description
RagFile.Builder

setDescription(String value)

public RagFile.Builder setDescription(String value)

Optional. The description of the RagFile.

string description = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value String

The description to set.

Returns
Type Description
RagFile.Builder

This builder for chaining.

setDescriptionBytes(ByteString value)

public RagFile.Builder setDescriptionBytes(ByteString value)

Optional. The description of the RagFile.

string description = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ByteString

The bytes for description to set.

Returns
Type Description
RagFile.Builder

This builder for chaining.

setDirectUploadSource(DirectUploadSource value)

public RagFile.Builder setDirectUploadSource(DirectUploadSource value)

Output only. The RagFile is encapsulated and uploaded in the UploadRagFile request.

.google.cloud.aiplatform.v1.DirectUploadSource direct_upload_source = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value DirectUploadSource
Returns
Type Description
RagFile.Builder

setDirectUploadSource(DirectUploadSource.Builder builderForValue)

public RagFile.Builder setDirectUploadSource(DirectUploadSource.Builder builderForValue)

Output only. The RagFile is encapsulated and uploaded in the UploadRagFile request.

.google.cloud.aiplatform.v1.DirectUploadSource direct_upload_source = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
builderForValue DirectUploadSource.Builder
Returns
Type Description
RagFile.Builder

setDisplayName(String value)

public RagFile.Builder setDisplayName(String value)

Required. The display name of the RagFile. The name can be up to 128 characters long and can consist of any UTF-8 characters.

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

Parameter
Name Description
value String

The displayName to set.

Returns
Type Description
RagFile.Builder

This builder for chaining.

setDisplayNameBytes(ByteString value)

public RagFile.Builder setDisplayNameBytes(ByteString value)

Required. The display name of the RagFile. The name can be up to 128 characters long and can consist of any UTF-8 characters.

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

Parameter
Name Description
value ByteString

The bytes for displayName to set.

Returns
Type Description
RagFile.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

setFileStatus(FileStatus value)

public RagFile.Builder setFileStatus(FileStatus value)

Output only. State of the RagFile.

.google.cloud.aiplatform.v1.FileStatus file_status = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value FileStatus
Returns
Type Description
RagFile.Builder

setFileStatus(FileStatus.Builder builderForValue)

public RagFile.Builder setFileStatus(FileStatus.Builder builderForValue)

Output only. State of the RagFile.

.google.cloud.aiplatform.v1.FileStatus file_status = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
builderForValue FileStatus.Builder
Returns
Type Description
RagFile.Builder

setGcsSource(GcsSource value)

public RagFile.Builder setGcsSource(GcsSource value)

Output only. Google Cloud Storage location of the RagFile. It does not support wildcards in the Cloud Storage uri for now.

.google.cloud.aiplatform.v1.GcsSource gcs_source = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value GcsSource
Returns
Type Description
RagFile.Builder

setGcsSource(GcsSource.Builder builderForValue)

public RagFile.Builder setGcsSource(GcsSource.Builder builderForValue)

Output only. Google Cloud Storage location of the RagFile. It does not support wildcards in the Cloud Storage uri for now.

.google.cloud.aiplatform.v1.GcsSource gcs_source = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

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

setGoogleDriveSource(GoogleDriveSource value)

public RagFile.Builder setGoogleDriveSource(GoogleDriveSource value)

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

.google.cloud.aiplatform.v1.GoogleDriveSource google_drive_source = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value GoogleDriveSource
Returns
Type Description
RagFile.Builder

setGoogleDriveSource(GoogleDriveSource.Builder builderForValue)

public RagFile.Builder setGoogleDriveSource(GoogleDriveSource.Builder builderForValue)

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

.google.cloud.aiplatform.v1.GoogleDriveSource google_drive_source = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];

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

setJiraSource(JiraSource value)

public RagFile.Builder setJiraSource(JiraSource value)

The RagFile is imported from a Jira query.

.google.cloud.aiplatform.v1.JiraSource jira_source = 12;

Parameter
Name Description
value JiraSource
Returns
Type Description
RagFile.Builder

setJiraSource(JiraSource.Builder builderForValue)

public RagFile.Builder setJiraSource(JiraSource.Builder builderForValue)

The RagFile is imported from a Jira query.

.google.cloud.aiplatform.v1.JiraSource jira_source = 12;

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

setName(String value)

public RagFile.Builder setName(String value)

Output only. The resource name of the RagFile.

string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value String

The name to set.

Returns
Type Description
RagFile.Builder

This builder for chaining.

setNameBytes(ByteString value)

public RagFile.Builder setNameBytes(ByteString value)

Output only. The resource name of the RagFile.

string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
RagFile.Builder

This builder for chaining.

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

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

setSharePointSources(SharePointSources value)

public RagFile.Builder setSharePointSources(SharePointSources value)

The RagFile is imported from a SharePoint source.

.google.cloud.aiplatform.v1.SharePointSources share_point_sources = 14;

Parameter
Name Description
value SharePointSources
Returns
Type Description
RagFile.Builder

setSharePointSources(SharePointSources.Builder builderForValue)

public RagFile.Builder setSharePointSources(SharePointSources.Builder builderForValue)

The RagFile is imported from a SharePoint source.

.google.cloud.aiplatform.v1.SharePointSources share_point_sources = 14;

Parameter
Name Description
builderForValue SharePointSources.Builder
Returns
Type Description
RagFile.Builder

setSlackSource(SlackSource value)

public RagFile.Builder setSlackSource(SlackSource value)

The RagFile is imported from a Slack channel.

.google.cloud.aiplatform.v1.SlackSource slack_source = 11;

Parameter
Name Description
value SlackSource
Returns
Type Description
RagFile.Builder

setSlackSource(SlackSource.Builder builderForValue)

public RagFile.Builder setSlackSource(SlackSource.Builder builderForValue)

The RagFile is imported from a Slack channel.

.google.cloud.aiplatform.v1.SlackSource slack_source = 11;

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

setUnknownFields(UnknownFieldSet unknownFields)

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

setUpdateTime(Timestamp value)

public RagFile.Builder setUpdateTime(Timestamp value)

Output only. Timestamp when this RagFile was last updated.

.google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Timestamp
Returns
Type Description
RagFile.Builder

setUpdateTime(Timestamp.Builder builderForValue)

public RagFile.Builder setUpdateTime(Timestamp.Builder builderForValue)

Output only. Timestamp when this RagFile was last updated.

.google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
builderForValue Builder
Returns
Type Description
RagFile.Builder