public final class RagFile extends GeneratedMessage implements RagFileOrBuilder
A RagFile contains user data for chunking, embedding and indexing.
Protobuf type google.cloud.vertexai.v1.RagFile
Inherited Members
com.google.protobuf.GeneratedMessage.<ContainingT,T>newFileScopedGeneratedExtension(java.lang.Class<?>,com.google.protobuf.Message)
com.google.protobuf.GeneratedMessage.<ContainingT,T>newMessageScopedGeneratedExtension(com.google.protobuf.Message,int,java.lang.Class<?>,com.google.protobuf.Message)
com.google.protobuf.GeneratedMessage.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessage.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessage.<T>emptyList(java.lang.Class<T>)
com.google.protobuf.GeneratedMessage.<V>serializeBooleanMapTo(com.google.protobuf.CodedOutputStream,com.google.protobuf.MapField<java.lang.Boolean,V>,com.google.protobuf.MapEntry<java.lang.Boolean,V>,int)
com.google.protobuf.GeneratedMessage.<V>serializeIntegerMapTo(com.google.protobuf.CodedOutputStream,com.google.protobuf.MapField<java.lang.Integer,V>,com.google.protobuf.MapEntry<java.lang.Integer,V>,int)
com.google.protobuf.GeneratedMessage.<V>serializeLongMapTo(com.google.protobuf.CodedOutputStream,com.google.protobuf.MapField<java.lang.Long,V>,com.google.protobuf.MapEntry<java.lang.Long,V>,int)
com.google.protobuf.GeneratedMessage.<V>serializeStringMapTo(com.google.protobuf.CodedOutputStream,com.google.protobuf.MapField<java.lang.String,V>,com.google.protobuf.MapEntry<java.lang.String,V>,int)
com.google.protobuf.GeneratedMessage.canUseUnsafe()
com.google.protobuf.GeneratedMessage.emptyBooleanList()
com.google.protobuf.GeneratedMessage.emptyDoubleList()
com.google.protobuf.GeneratedMessage.emptyFloatList()
com.google.protobuf.GeneratedMessage.emptyIntList()
com.google.protobuf.GeneratedMessage.emptyLongList()
com.google.protobuf.GeneratedMessage.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessage.isStringEmpty(java.lang.Object)
com.google.protobuf.GeneratedMessage.mergeFromAndMakeImmutableInternal(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite)
com.google.protobuf.GeneratedMessage.newInstance(com.google.protobuf.GeneratedMessage.UnusedPrivateParameter)
com.google.protobuf.GeneratedMessage.parseUnknownFieldProto3(com.google.protobuf.CodedInputStream,com.google.protobuf.UnknownFieldSet.Builder,com.google.protobuf.ExtensionRegistryLite,int)
Static Fields
CREATE_TIME_FIELD_NUMBER
public static final int CREATE_TIME_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
DESCRIPTION_FIELD_NUMBER
public static final int DESCRIPTION_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
DIRECT_UPLOAD_SOURCE_FIELD_NUMBER
public static final int DIRECT_UPLOAD_SOURCE_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
DISPLAY_NAME_FIELD_NUMBER
public static final int DISPLAY_NAME_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
FILE_STATUS_FIELD_NUMBER
public static final int FILE_STATUS_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
GCS_SOURCE_FIELD_NUMBER
public static final int GCS_SOURCE_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
GOOGLE_DRIVE_SOURCE_FIELD_NUMBER
public static final int GOOGLE_DRIVE_SOURCE_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
JIRA_SOURCE_FIELD_NUMBER
public static final int JIRA_SOURCE_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
NAME_FIELD_NUMBER
public static final int NAME_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
SHARE_POINT_SOURCES_FIELD_NUMBER
public static final int SHARE_POINT_SOURCES_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
SLACK_SOURCE_FIELD_NUMBER
public static final int SLACK_SOURCE_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
UPDATE_TIME_FIELD_NUMBER
public static final int UPDATE_TIME_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
Static Methods
getDefaultInstance()
public static RagFile getDefaultInstance()
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
newBuilder()
public static RagFile.Builder newBuilder()
newBuilder(RagFile prototype)
public static RagFile.Builder newBuilder(RagFile prototype)
| Parameter |
| Name |
Description |
prototype |
RagFile
|
public static RagFile parseDelimitedFrom(InputStream input)
public static RagFile parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(byte[] data)
public static RagFile parseFrom(byte[] data)
| Parameter |
| Name |
Description |
data |
byte[]
|
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static RagFile parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteString data)
public static RagFile parseFrom(ByteString data)
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static RagFile parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static RagFile parseFrom(CodedInputStream input)
public static RagFile parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static RagFile parseFrom(InputStream input)
public static RagFile parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteBuffer data)
public static RagFile parseFrom(ByteBuffer data)
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static RagFile parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
parser()
public static Parser<RagFile> parser()
Methods
equals(Object obj)
public boolean equals(Object obj)
| Parameter |
| Name |
Description |
obj |
Object
|
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.
|
getCreateTimeOrBuilder()
public TimestampOrBuilder getCreateTimeOrBuilder()
Output only. Timestamp when this RagFile was created.
.google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
getDefaultInstanceForType()
public RagFile getDefaultInstanceForType()
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.
|
getDirectUploadSource()
public DirectUploadSource getDirectUploadSource()
Output only. The RagFile is encapsulated and uploaded in the
UploadRagFile request.
.google.cloud.vertexai.v1.DirectUploadSource direct_upload_source = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
getDirectUploadSourceOrBuilder()
public DirectUploadSourceOrBuilder getDirectUploadSourceOrBuilder()
Output only. The RagFile is encapsulated and uploaded in the
UploadRagFile request.
.google.cloud.vertexai.v1.DirectUploadSource direct_upload_source = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
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.vertexai.v1.FileStatus file_status = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns |
| Type |
Description |
FileStatus |
The fileStatus.
|
getFileStatusOrBuilder()
public FileStatusOrBuilder getFileStatusOrBuilder()
Output only. State of the RagFile.
.google.cloud.vertexai.v1.FileStatus file_status = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
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.vertexai.v1.GcsSource gcs_source = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns |
| Type |
Description |
GcsSource |
The gcsSource.
|
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.vertexai.v1.GcsSource gcs_source = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
getGoogleDriveSource()
public GoogleDriveSource getGoogleDriveSource()
Output only. Google Drive location. Supports importing individual files
as well as Google Drive folders.
.google.cloud.vertexai.v1.GoogleDriveSource google_drive_source = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
getGoogleDriveSourceOrBuilder()
public GoogleDriveSourceOrBuilder getGoogleDriveSourceOrBuilder()
Output only. Google Drive location. Supports importing individual files
as well as Google Drive folders.
.google.cloud.vertexai.v1.GoogleDriveSource google_drive_source = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
getJiraSource()
public JiraSource getJiraSource()
The RagFile is imported from a Jira query.
.google.cloud.vertexai.v1.JiraSource jira_source = 12;
| Returns |
| Type |
Description |
JiraSource |
The jiraSource.
|
getJiraSourceOrBuilder()
public JiraSourceOrBuilder getJiraSourceOrBuilder()
The RagFile is imported from a Jira query.
.google.cloud.vertexai.v1.JiraSource jira_source = 12;
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.
|
getParserForType()
public Parser<RagFile> getParserForType()
Overrides
getRagFileSourceCase()
public RagFile.RagFileSourceCase getRagFileSourceCase()
getSerializedSize()
public int getSerializedSize()
| Returns |
| Type |
Description |
int |
|
Overrides
getSharePointSources()
public SharePointSources getSharePointSources()
The RagFile is imported from a SharePoint source.
.google.cloud.vertexai.v1.SharePointSources share_point_sources = 14;
getSharePointSourcesOrBuilder()
public SharePointSourcesOrBuilder getSharePointSourcesOrBuilder()
The RagFile is imported from a SharePoint source.
.google.cloud.vertexai.v1.SharePointSources share_point_sources = 14;
getSlackSource()
public SlackSource getSlackSource()
The RagFile is imported from a Slack channel.
.google.cloud.vertexai.v1.SlackSource slack_source = 11;
getSlackSourceOrBuilder()
public SlackSourceOrBuilder getSlackSourceOrBuilder()
The RagFile is imported from a Slack channel.
.google.cloud.vertexai.v1.SlackSource slack_source = 11;
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.
|
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];
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.vertexai.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.vertexai.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.vertexai.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.vertexai.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.vertexai.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.vertexai.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.vertexai.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.
|
hashCode()
| Returns |
| Type |
Description |
int |
|
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
newBuilderForType()
public RagFile.Builder newBuilderForType()
newBuilderForType(AbstractMessage.BuilderParent parent)
protected RagFile.Builder newBuilderForType(AbstractMessage.BuilderParent parent)
Overrides
toBuilder()
public RagFile.Builder toBuilder()
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Overrides