Class ImportRagFilesOperationMetadata.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<ImportRagFilesOperationMetadata.Builder>
com.google.cloud.aiplatform.v1.ImportRagFilesOperationMetadata.Builder
All Implemented Interfaces:
ImportRagFilesOperationMetadataOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
ImportRagFilesOperationMetadata

public static final class ImportRagFilesOperationMetadata.Builder extends com.google.protobuf.GeneratedMessage.Builder<ImportRagFilesOperationMetadata.Builder> implements ImportRagFilesOperationMetadataOrBuilder
 Runtime operation information for
 [VertexRagDataService.ImportRagFiles][google.cloud.aiplatform.v1.VertexRagDataService.ImportRagFiles].
 
Protobuf type google.cloud.aiplatform.v1.ImportRagFilesOperationMetadata
  • 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.Builder<ImportRagFilesOperationMetadata.Builder>
    • clear

      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<ImportRagFilesOperationMetadata.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<ImportRagFilesOperationMetadata.Builder>
    • getDefaultInstanceForType

      public ImportRagFilesOperationMetadata getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public ImportRagFilesOperationMetadata buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public ImportRagFilesOperationMetadata.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<ImportRagFilesOperationMetadata.Builder>
    • mergeFrom

    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.Builder<ImportRagFilesOperationMetadata.Builder>
    • mergeFrom

      public ImportRagFilesOperationMetadata.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<ImportRagFilesOperationMetadata.Builder>
      Throws:
      IOException
    • hasGenericMetadata

      public boolean hasGenericMetadata()
       The operation generic information.
       
      .google.cloud.aiplatform.v1.GenericOperationMetadata generic_metadata = 1;
      Specified by:
      hasGenericMetadata in interface ImportRagFilesOperationMetadataOrBuilder
      Returns:
      Whether the genericMetadata field is set.
    • getGenericMetadata

      public GenericOperationMetadata getGenericMetadata()
       The operation generic information.
       
      .google.cloud.aiplatform.v1.GenericOperationMetadata generic_metadata = 1;
      Specified by:
      getGenericMetadata in interface ImportRagFilesOperationMetadataOrBuilder
      Returns:
      The genericMetadata.
    • setGenericMetadata

       The operation generic information.
       
      .google.cloud.aiplatform.v1.GenericOperationMetadata generic_metadata = 1;
    • setGenericMetadata

       The operation generic information.
       
      .google.cloud.aiplatform.v1.GenericOperationMetadata generic_metadata = 1;
    • mergeGenericMetadata

       The operation generic information.
       
      .google.cloud.aiplatform.v1.GenericOperationMetadata generic_metadata = 1;
    • clearGenericMetadata

      public ImportRagFilesOperationMetadata.Builder clearGenericMetadata()
       The operation generic information.
       
      .google.cloud.aiplatform.v1.GenericOperationMetadata generic_metadata = 1;
    • getGenericMetadataBuilder

      public GenericOperationMetadata.Builder getGenericMetadataBuilder()
       The operation generic information.
       
      .google.cloud.aiplatform.v1.GenericOperationMetadata generic_metadata = 1;
    • getGenericMetadataOrBuilder

      public GenericOperationMetadataOrBuilder getGenericMetadataOrBuilder()
       The operation generic information.
       
      .google.cloud.aiplatform.v1.GenericOperationMetadata generic_metadata = 1;
      Specified by:
      getGenericMetadataOrBuilder in interface ImportRagFilesOperationMetadataOrBuilder
    • getRagCorpusId

      public long getRagCorpusId()
       The resource ID of RagCorpus that this operation is executed on.
       
      int64 rag_corpus_id = 2;
      Specified by:
      getRagCorpusId in interface ImportRagFilesOperationMetadataOrBuilder
      Returns:
      The ragCorpusId.
    • setRagCorpusId

      public ImportRagFilesOperationMetadata.Builder setRagCorpusId(long value)
       The resource ID of RagCorpus that this operation is executed on.
       
      int64 rag_corpus_id = 2;
      Parameters:
      value - The ragCorpusId to set.
      Returns:
      This builder for chaining.
    • clearRagCorpusId

      public ImportRagFilesOperationMetadata.Builder clearRagCorpusId()
       The resource ID of RagCorpus that this operation is executed on.
       
      int64 rag_corpus_id = 2;
      Returns:
      This builder for chaining.
    • hasImportRagFilesConfig

      public boolean hasImportRagFilesConfig()
       Output only. The config that was passed in the ImportRagFilesRequest.
       
      .google.cloud.aiplatform.v1.ImportRagFilesConfig import_rag_files_config = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      hasImportRagFilesConfig in interface ImportRagFilesOperationMetadataOrBuilder
      Returns:
      Whether the importRagFilesConfig field is set.
    • getImportRagFilesConfig

      public ImportRagFilesConfig getImportRagFilesConfig()
       Output only. The config that was passed in the ImportRagFilesRequest.
       
      .google.cloud.aiplatform.v1.ImportRagFilesConfig import_rag_files_config = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getImportRagFilesConfig in interface ImportRagFilesOperationMetadataOrBuilder
      Returns:
      The importRagFilesConfig.
    • setImportRagFilesConfig

      public ImportRagFilesOperationMetadata.Builder setImportRagFilesConfig(ImportRagFilesConfig value)
       Output only. The config that was passed in the ImportRagFilesRequest.
       
      .google.cloud.aiplatform.v1.ImportRagFilesConfig import_rag_files_config = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • setImportRagFilesConfig

      public ImportRagFilesOperationMetadata.Builder setImportRagFilesConfig(ImportRagFilesConfig.Builder builderForValue)
       Output only. The config that was passed in the ImportRagFilesRequest.
       
      .google.cloud.aiplatform.v1.ImportRagFilesConfig import_rag_files_config = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • mergeImportRagFilesConfig

      public ImportRagFilesOperationMetadata.Builder mergeImportRagFilesConfig(ImportRagFilesConfig value)
       Output only. The config that was passed in the ImportRagFilesRequest.
       
      .google.cloud.aiplatform.v1.ImportRagFilesConfig import_rag_files_config = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • clearImportRagFilesConfig

      public ImportRagFilesOperationMetadata.Builder clearImportRagFilesConfig()
       Output only. The config that was passed in the ImportRagFilesRequest.
       
      .google.cloud.aiplatform.v1.ImportRagFilesConfig import_rag_files_config = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getImportRagFilesConfigBuilder

      public ImportRagFilesConfig.Builder getImportRagFilesConfigBuilder()
       Output only. The config that was passed in the ImportRagFilesRequest.
       
      .google.cloud.aiplatform.v1.ImportRagFilesConfig import_rag_files_config = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getImportRagFilesConfigOrBuilder

      public ImportRagFilesConfigOrBuilder getImportRagFilesConfigOrBuilder()
       Output only. The config that was passed in the ImportRagFilesRequest.
       
      .google.cloud.aiplatform.v1.ImportRagFilesConfig import_rag_files_config = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getImportRagFilesConfigOrBuilder in interface ImportRagFilesOperationMetadataOrBuilder
    • getProgressPercentage

      public int getProgressPercentage()
       The progress percentage of the operation. Value is in the range [0, 100].
       This percentage is calculated as follows:
       progress_percentage = 100 * (successes + failures + skips) / total
       
      int32 progress_percentage = 4;
      Specified by:
      getProgressPercentage in interface ImportRagFilesOperationMetadataOrBuilder
      Returns:
      The progressPercentage.
    • setProgressPercentage

      public ImportRagFilesOperationMetadata.Builder setProgressPercentage(int value)
       The progress percentage of the operation. Value is in the range [0, 100].
       This percentage is calculated as follows:
       progress_percentage = 100 * (successes + failures + skips) / total
       
      int32 progress_percentage = 4;
      Parameters:
      value - The progressPercentage to set.
      Returns:
      This builder for chaining.
    • clearProgressPercentage

      public ImportRagFilesOperationMetadata.Builder clearProgressPercentage()
       The progress percentage of the operation. Value is in the range [0, 100].
       This percentage is calculated as follows:
       progress_percentage = 100 * (successes + failures + skips) / total
       
      int32 progress_percentage = 4;
      Returns:
      This builder for chaining.