Class RagFileMetadataConfig

java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.cloud.aiplatform.v1beta1.RagFileMetadataConfig
All Implemented Interfaces:
RagFileMetadataConfigOrBuilder, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable

@Generated public final class RagFileMetadataConfig extends com.google.protobuf.GeneratedMessage implements RagFileMetadataConfigOrBuilder
 Metadata config for RagFile.
 
Protobuf type google.cloud.aiplatform.v1beta1.RagFileMetadataConfig
See Also:
  • Field Details

    • GCS_METADATA_SCHEMA_SOURCE_FIELD_NUMBER

      public static final int GCS_METADATA_SCHEMA_SOURCE_FIELD_NUMBER
      See Also:
    • GOOGLE_DRIVE_METADATA_SCHEMA_SOURCE_FIELD_NUMBER

      public static final int GOOGLE_DRIVE_METADATA_SCHEMA_SOURCE_FIELD_NUMBER
      See Also:
    • INLINE_METADATA_SCHEMA_SOURCE_FIELD_NUMBER

      public static final int INLINE_METADATA_SCHEMA_SOURCE_FIELD_NUMBER
      See Also:
    • GCS_METADATA_SOURCE_FIELD_NUMBER

      public static final int GCS_METADATA_SOURCE_FIELD_NUMBER
      See Also:
    • GOOGLE_DRIVE_METADATA_SOURCE_FIELD_NUMBER

      public static final int GOOGLE_DRIVE_METADATA_SOURCE_FIELD_NUMBER
      See Also:
    • INLINE_METADATA_SOURCE_FIELD_NUMBER

      public static final int INLINE_METADATA_SOURCE_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
    • getMetadataSchemaSourceCase

      public RagFileMetadataConfig.MetadataSchemaSourceCase getMetadataSchemaSourceCase()
      Specified by:
      getMetadataSchemaSourceCase in interface RagFileMetadataConfigOrBuilder
    • getMetadataSourceCase

      public RagFileMetadataConfig.MetadataSourceCase getMetadataSourceCase()
      Specified by:
      getMetadataSourceCase in interface RagFileMetadataConfigOrBuilder
    • hasGcsMetadataSchemaSource

      public boolean hasGcsMetadataSchemaSource()
       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/metadata_schema.json`
       - `gs://bucket_name/my_directory`
       If the user provides a directory, the metadata schema will be read from
       the files that ends with "metadata_schema.json" in the directory.
       
      .google.cloud.aiplatform.v1beta1.GcsSource gcs_metadata_schema_source = 1;
      Specified by:
      hasGcsMetadataSchemaSource in interface RagFileMetadataConfigOrBuilder
      Returns:
      Whether the gcsMetadataSchemaSource field is set.
    • getGcsMetadataSchemaSource

      public GcsSource getGcsMetadataSchemaSource()
       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/metadata_schema.json`
       - `gs://bucket_name/my_directory`
       If the user provides a directory, the metadata schema will be read from
       the files that ends with "metadata_schema.json" in the directory.
       
      .google.cloud.aiplatform.v1beta1.GcsSource gcs_metadata_schema_source = 1;
      Specified by:
      getGcsMetadataSchemaSource in interface RagFileMetadataConfigOrBuilder
      Returns:
      The gcsMetadataSchemaSource.
    • getGcsMetadataSchemaSourceOrBuilder

      public GcsSourceOrBuilder getGcsMetadataSchemaSourceOrBuilder()
       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/metadata_schema.json`
       - `gs://bucket_name/my_directory`
       If the user provides a directory, the metadata schema will be read from
       the files that ends with "metadata_schema.json" in the directory.
       
      .google.cloud.aiplatform.v1beta1.GcsSource gcs_metadata_schema_source = 1;
      Specified by:
      getGcsMetadataSchemaSourceOrBuilder in interface RagFileMetadataConfigOrBuilder
    • hasGoogleDriveMetadataSchemaSource

      public boolean hasGoogleDriveMetadataSchemaSource()
       Google Drive location. Supports importing individual files as
       well as Google Drive folders.
       If the user provides a folder, the metadata schema will be read from
       the files that ends with "metadata_schema.json" in the directory.
       
      .google.cloud.aiplatform.v1beta1.GoogleDriveSource google_drive_metadata_schema_source = 2;
      Specified by:
      hasGoogleDriveMetadataSchemaSource in interface RagFileMetadataConfigOrBuilder
      Returns:
      Whether the googleDriveMetadataSchemaSource field is set.
    • getGoogleDriveMetadataSchemaSource

      public GoogleDriveSource getGoogleDriveMetadataSchemaSource()
       Google Drive location. Supports importing individual files as
       well as Google Drive folders.
       If the user provides a folder, the metadata schema will be read from
       the files that ends with "metadata_schema.json" in the directory.
       
      .google.cloud.aiplatform.v1beta1.GoogleDriveSource google_drive_metadata_schema_source = 2;
      Specified by:
      getGoogleDriveMetadataSchemaSource in interface RagFileMetadataConfigOrBuilder
      Returns:
      The googleDriveMetadataSchemaSource.
    • getGoogleDriveMetadataSchemaSourceOrBuilder

      public GoogleDriveSourceOrBuilder getGoogleDriveMetadataSchemaSourceOrBuilder()
       Google Drive location. Supports importing individual files as
       well as Google Drive folders.
       If the user provides a folder, the metadata schema will be read from
       the files that ends with "metadata_schema.json" in the directory.
       
      .google.cloud.aiplatform.v1beta1.GoogleDriveSource google_drive_metadata_schema_source = 2;
      Specified by:
      getGoogleDriveMetadataSchemaSourceOrBuilder in interface RagFileMetadataConfigOrBuilder
    • hasInlineMetadataSchemaSource

      public boolean hasInlineMetadataSchemaSource()
       Inline metadata schema source. Must be a JSON string.
       
      string inline_metadata_schema_source = 3;
      Specified by:
      hasInlineMetadataSchemaSource in interface RagFileMetadataConfigOrBuilder
      Returns:
      Whether the inlineMetadataSchemaSource field is set.
    • getInlineMetadataSchemaSource

      public String getInlineMetadataSchemaSource()
       Inline metadata schema source. Must be a JSON string.
       
      string inline_metadata_schema_source = 3;
      Specified by:
      getInlineMetadataSchemaSource in interface RagFileMetadataConfigOrBuilder
      Returns:
      The inlineMetadataSchemaSource.
    • getInlineMetadataSchemaSourceBytes

      public com.google.protobuf.ByteString getInlineMetadataSchemaSourceBytes()
       Inline metadata schema source. Must be a JSON string.
       
      string inline_metadata_schema_source = 3;
      Specified by:
      getInlineMetadataSchemaSourceBytes in interface RagFileMetadataConfigOrBuilder
      Returns:
      The bytes for inlineMetadataSchemaSource.
    • hasGcsMetadataSource

      public boolean hasGcsMetadataSource()
       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/metadata.json`
       - `gs://bucket_name/my_directory`
       If the user provides a directory, the metadata will be read from
       the files that ends with "metadata.json" in the directory.
       
      .google.cloud.aiplatform.v1beta1.GcsSource gcs_metadata_source = 4;
      Specified by:
      hasGcsMetadataSource in interface RagFileMetadataConfigOrBuilder
      Returns:
      Whether the gcsMetadataSource field is set.
    • getGcsMetadataSource

      public GcsSource getGcsMetadataSource()
       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/metadata.json`
       - `gs://bucket_name/my_directory`
       If the user provides a directory, the metadata will be read from
       the files that ends with "metadata.json" in the directory.
       
      .google.cloud.aiplatform.v1beta1.GcsSource gcs_metadata_source = 4;
      Specified by:
      getGcsMetadataSource in interface RagFileMetadataConfigOrBuilder
      Returns:
      The gcsMetadataSource.
    • getGcsMetadataSourceOrBuilder

      public GcsSourceOrBuilder getGcsMetadataSourceOrBuilder()
       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/metadata.json`
       - `gs://bucket_name/my_directory`
       If the user provides a directory, the metadata will be read from
       the files that ends with "metadata.json" in the directory.
       
      .google.cloud.aiplatform.v1beta1.GcsSource gcs_metadata_source = 4;
      Specified by:
      getGcsMetadataSourceOrBuilder in interface RagFileMetadataConfigOrBuilder
    • hasGoogleDriveMetadataSource

      public boolean hasGoogleDriveMetadataSource()
       Google Drive location. Supports importing individual files as
       well as Google Drive folders.
       If the user provides a directory, the metadata will be read from
       the files that ends with "metadata.json" in the directory.
       
      .google.cloud.aiplatform.v1beta1.GoogleDriveSource google_drive_metadata_source = 5;
      Specified by:
      hasGoogleDriveMetadataSource in interface RagFileMetadataConfigOrBuilder
      Returns:
      Whether the googleDriveMetadataSource field is set.
    • getGoogleDriveMetadataSource

      public GoogleDriveSource getGoogleDriveMetadataSource()
       Google Drive location. Supports importing individual files as
       well as Google Drive folders.
       If the user provides a directory, the metadata will be read from
       the files that ends with "metadata.json" in the directory.
       
      .google.cloud.aiplatform.v1beta1.GoogleDriveSource google_drive_metadata_source = 5;
      Specified by:
      getGoogleDriveMetadataSource in interface RagFileMetadataConfigOrBuilder
      Returns:
      The googleDriveMetadataSource.
    • getGoogleDriveMetadataSourceOrBuilder

      public GoogleDriveSourceOrBuilder getGoogleDriveMetadataSourceOrBuilder()
       Google Drive location. Supports importing individual files as
       well as Google Drive folders.
       If the user provides a directory, the metadata will be read from
       the files that ends with "metadata.json" in the directory.
       
      .google.cloud.aiplatform.v1beta1.GoogleDriveSource google_drive_metadata_source = 5;
      Specified by:
      getGoogleDriveMetadataSourceOrBuilder in interface RagFileMetadataConfigOrBuilder
    • hasInlineMetadataSource

      public boolean hasInlineMetadataSource()
       Inline metadata source. Must be a JSON string.
       
      string inline_metadata_source = 6;
      Specified by:
      hasInlineMetadataSource in interface RagFileMetadataConfigOrBuilder
      Returns:
      Whether the inlineMetadataSource field is set.
    • getInlineMetadataSource

      public String getInlineMetadataSource()
       Inline metadata source. Must be a JSON string.
       
      string inline_metadata_source = 6;
      Specified by:
      getInlineMetadataSource in interface RagFileMetadataConfigOrBuilder
      Returns:
      The inlineMetadataSource.
    • getInlineMetadataSourceBytes

      public com.google.protobuf.ByteString getInlineMetadataSourceBytes()
       Inline metadata source. Must be a JSON string.
       
      string inline_metadata_source = 6;
      Specified by:
      getInlineMetadataSourceBytes in interface RagFileMetadataConfigOrBuilder
      Returns:
      The bytes for inlineMetadataSource.
    • 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 RagFileMetadataConfig parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

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

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

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

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

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

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

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

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

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

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

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

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

      public static RagFileMetadataConfig.Builder newBuilder()
    • newBuilder

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

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

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

      public static RagFileMetadataConfig getDefaultInstance()
    • parser

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

      public com.google.protobuf.Parser<RagFileMetadataConfig> 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 RagFileMetadataConfig getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder