Class RagFile

java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.cloud.aiplatform.v1.RagFile
All Implemented Interfaces:
RagFileOrBuilder, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable

@Generated public final class RagFile extends com.google.protobuf.GeneratedMessage implements RagFileOrBuilder
 A RagFile contains user data for chunking, embedding and indexing.
 
Protobuf type google.cloud.aiplatform.v1.RagFile
See Also:
  • Field Details

    • GCS_SOURCE_FIELD_NUMBER

      public static final int GCS_SOURCE_FIELD_NUMBER
      See Also:
    • GOOGLE_DRIVE_SOURCE_FIELD_NUMBER

      public static final int GOOGLE_DRIVE_SOURCE_FIELD_NUMBER
      See Also:
    • DIRECT_UPLOAD_SOURCE_FIELD_NUMBER

      public static final int DIRECT_UPLOAD_SOURCE_FIELD_NUMBER
      See Also:
    • SLACK_SOURCE_FIELD_NUMBER

      public static final int SLACK_SOURCE_FIELD_NUMBER
      See Also:
    • JIRA_SOURCE_FIELD_NUMBER

      public static final int JIRA_SOURCE_FIELD_NUMBER
      See Also:
    • SHARE_POINT_SOURCES_FIELD_NUMBER

      public static final int SHARE_POINT_SOURCES_FIELD_NUMBER
      See Also:
    • NAME_FIELD_NUMBER

      public static final int NAME_FIELD_NUMBER
      See Also:
    • DISPLAY_NAME_FIELD_NUMBER

      public static final int DISPLAY_NAME_FIELD_NUMBER
      See Also:
    • DESCRIPTION_FIELD_NUMBER

      public static final int DESCRIPTION_FIELD_NUMBER
      See Also:
    • CREATE_TIME_FIELD_NUMBER

      public static final int CREATE_TIME_FIELD_NUMBER
      See Also:
    • UPDATE_TIME_FIELD_NUMBER

      public static final int UPDATE_TIME_FIELD_NUMBER
      See Also:
    • FILE_STATUS_FIELD_NUMBER

      public static final int FILE_STATUS_FIELD_NUMBER
      See Also:
  • Method Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage
    • getRagFileSourceCase

      public RagFile.RagFileSourceCase getRagFileSourceCase()
      Specified by:
      getRagFileSourceCase in interface RagFileOrBuilder
    • 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];
      Specified by:
      hasGcsSource in interface RagFileOrBuilder
      Returns:
      Whether the gcsSource field is set.
    • 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];
      Specified by:
      getGcsSource in interface RagFileOrBuilder
      Returns:
      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.aiplatform.v1.GcsSource gcs_source = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getGcsSourceOrBuilder in interface RagFileOrBuilder
    • 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];
      Specified by:
      hasGoogleDriveSource in interface RagFileOrBuilder
      Returns:
      Whether the googleDriveSource field is set.
    • 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];
      Specified by:
      getGoogleDriveSource in interface RagFileOrBuilder
      Returns:
      The googleDriveSource.
    • 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];
      Specified by:
      getGoogleDriveSourceOrBuilder in interface RagFileOrBuilder
    • 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];
      Specified by:
      hasDirectUploadSource in interface RagFileOrBuilder
      Returns:
      Whether the directUploadSource field is set.
    • 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];
      Specified by:
      getDirectUploadSource in interface RagFileOrBuilder
      Returns:
      The directUploadSource.
    • 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];
      Specified by:
      getDirectUploadSourceOrBuilder in interface RagFileOrBuilder
    • hasSlackSource

      public boolean hasSlackSource()
       The RagFile is imported from a Slack channel.
       
      .google.cloud.aiplatform.v1.SlackSource slack_source = 11;
      Specified by:
      hasSlackSource in interface RagFileOrBuilder
      Returns:
      Whether the slackSource field is set.
    • getSlackSource

      public SlackSource getSlackSource()
       The RagFile is imported from a Slack channel.
       
      .google.cloud.aiplatform.v1.SlackSource slack_source = 11;
      Specified by:
      getSlackSource in interface RagFileOrBuilder
      Returns:
      The slackSource.
    • getSlackSourceOrBuilder

      public SlackSourceOrBuilder getSlackSourceOrBuilder()
       The RagFile is imported from a Slack channel.
       
      .google.cloud.aiplatform.v1.SlackSource slack_source = 11;
      Specified by:
      getSlackSourceOrBuilder in interface RagFileOrBuilder
    • hasJiraSource

      public boolean hasJiraSource()
       The RagFile is imported from a Jira query.
       
      .google.cloud.aiplatform.v1.JiraSource jira_source = 12;
      Specified by:
      hasJiraSource in interface RagFileOrBuilder
      Returns:
      Whether the jiraSource field is set.
    • getJiraSource

      public JiraSource getJiraSource()
       The RagFile is imported from a Jira query.
       
      .google.cloud.aiplatform.v1.JiraSource jira_source = 12;
      Specified by:
      getJiraSource in interface RagFileOrBuilder
      Returns:
      The jiraSource.
    • getJiraSourceOrBuilder

      public JiraSourceOrBuilder getJiraSourceOrBuilder()
       The RagFile is imported from a Jira query.
       
      .google.cloud.aiplatform.v1.JiraSource jira_source = 12;
      Specified by:
      getJiraSourceOrBuilder in interface RagFileOrBuilder
    • hasSharePointSources

      public boolean hasSharePointSources()
       The RagFile is imported from a SharePoint source.
       
      .google.cloud.aiplatform.v1.SharePointSources share_point_sources = 14;
      Specified by:
      hasSharePointSources in interface RagFileOrBuilder
      Returns:
      Whether the sharePointSources field is set.
    • getSharePointSources

      public SharePointSources getSharePointSources()
       The RagFile is imported from a SharePoint source.
       
      .google.cloud.aiplatform.v1.SharePointSources share_point_sources = 14;
      Specified by:
      getSharePointSources in interface RagFileOrBuilder
      Returns:
      The sharePointSources.
    • getSharePointSourcesOrBuilder

      public SharePointSourcesOrBuilder getSharePointSourcesOrBuilder()
       The RagFile is imported from a SharePoint source.
       
      .google.cloud.aiplatform.v1.SharePointSources share_point_sources = 14;
      Specified by:
      getSharePointSourcesOrBuilder in interface RagFileOrBuilder
    • getName

      public String getName()
       Output only. The resource name of the RagFile.
       
      string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getName in interface RagFileOrBuilder
      Returns:
      The name.
    • getNameBytes

      public com.google.protobuf.ByteString getNameBytes()
       Output only. The resource name of the RagFile.
       
      string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getNameBytes in interface RagFileOrBuilder
      Returns:
      The bytes for name.
    • 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];
      Specified by:
      getDisplayName in interface RagFileOrBuilder
      Returns:
      The displayName.
    • getDisplayNameBytes

      public com.google.protobuf.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];
      Specified by:
      getDisplayNameBytes in interface RagFileOrBuilder
      Returns:
      The bytes for displayName.
    • getDescription

      public String getDescription()
       Optional. The description of the RagFile.
       
      string description = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getDescription in interface RagFileOrBuilder
      Returns:
      The description.
    • getDescriptionBytes

      public com.google.protobuf.ByteString getDescriptionBytes()
       Optional. The description of the RagFile.
       
      string description = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getDescriptionBytes in interface RagFileOrBuilder
      Returns:
      The bytes for description.
    • hasCreateTime

      public boolean hasCreateTime()
       Output only. Timestamp when this RagFile was created.
       
      .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      hasCreateTime in interface RagFileOrBuilder
      Returns:
      Whether the createTime field is set.
    • getCreateTime

      public com.google.protobuf.Timestamp getCreateTime()
       Output only. Timestamp when this RagFile was created.
       
      .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getCreateTime in interface RagFileOrBuilder
      Returns:
      The createTime.
    • getCreateTimeOrBuilder

      public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder()
       Output only. Timestamp when this RagFile was created.
       
      .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getCreateTimeOrBuilder in interface RagFileOrBuilder
    • 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];
      Specified by:
      hasUpdateTime in interface RagFileOrBuilder
      Returns:
      Whether the updateTime field is set.
    • getUpdateTime

      public com.google.protobuf.Timestamp getUpdateTime()
       Output only. Timestamp when this RagFile was last updated.
       
      .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getUpdateTime in interface RagFileOrBuilder
      Returns:
      The updateTime.
    • getUpdateTimeOrBuilder

      public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder()
       Output only. Timestamp when this RagFile was last updated.
       
      .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getUpdateTimeOrBuilder in interface RagFileOrBuilder
    • hasFileStatus

      public boolean hasFileStatus()
       Output only. State of the RagFile.
       
      .google.cloud.aiplatform.v1.FileStatus file_status = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      hasFileStatus in interface RagFileOrBuilder
      Returns:
      Whether the fileStatus field is set.
    • getFileStatus

      public FileStatus getFileStatus()
       Output only. State of the RagFile.
       
      .google.cloud.aiplatform.v1.FileStatus file_status = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getFileStatus in interface RagFileOrBuilder
      Returns:
      The fileStatus.
    • getFileStatusOrBuilder

      public FileStatusOrBuilder getFileStatusOrBuilder()
       Output only. State of the RagFile.
       
      .google.cloud.aiplatform.v1.FileStatus file_status = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getFileStatusOrBuilder in interface RagFileOrBuilder
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage
    • writeTo

      public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
      Specified by:
      writeTo in interface com.google.protobuf.MessageLite
      Overrides:
      writeTo in class com.google.protobuf.GeneratedMessage
      Throws:
      IOException
    • getSerializedSize

      public int getSerializedSize()
      Specified by:
      getSerializedSize in interface com.google.protobuf.MessageLite
      Overrides:
      getSerializedSize in class com.google.protobuf.GeneratedMessage
    • equals

      public boolean equals(Object obj)
      Specified by:
      equals in interface com.google.protobuf.Message
      Overrides:
      equals in class com.google.protobuf.AbstractMessage
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in interface com.google.protobuf.Message
      Overrides:
      hashCode in class com.google.protobuf.AbstractMessage
    • parseFrom

      public static RagFile parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static RagFile parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static RagFile parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static RagFile parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static RagFile parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static RagFile parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static RagFile parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static RagFile parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static RagFile parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static RagFile parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseFrom

      public static RagFile parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static RagFile parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • newBuilderForType

      public RagFile.Builder newBuilderForType()
      Specified by:
      newBuilderForType in interface com.google.protobuf.Message
      Specified by:
      newBuilderForType in interface com.google.protobuf.MessageLite
    • newBuilder

      public static RagFile.Builder newBuilder()
    • newBuilder

      public static RagFile.Builder newBuilder(RagFile prototype)
    • toBuilder

      public RagFile.Builder toBuilder()
      Specified by:
      toBuilder in interface com.google.protobuf.Message
      Specified by:
      toBuilder in interface com.google.protobuf.MessageLite
    • newBuilderForType

      protected RagFile.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent)
      Overrides:
      newBuilderForType in class com.google.protobuf.AbstractMessage
    • getDefaultInstance

      public static RagFile getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<RagFile> parser()
    • getParserForType

      public com.google.protobuf.Parser<RagFile> getParserForType()
      Specified by:
      getParserForType in interface com.google.protobuf.Message
      Specified by:
      getParserForType in interface com.google.protobuf.MessageLite
      Overrides:
      getParserForType in class com.google.protobuf.GeneratedMessage
    • getDefaultInstanceForType

      public RagFile getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder