Class AsyncRetrieveContextsRequest.Builder

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

public static final class AsyncRetrieveContextsRequest.Builder extends com.google.protobuf.GeneratedMessage.Builder<AsyncRetrieveContextsRequest.Builder> implements AsyncRetrieveContextsRequestOrBuilder
 Request message for
 [VertexRagService.AsyncRetrieveContexts][google.cloud.aiplatform.v1.VertexRagService.AsyncRetrieveContexts].
 
Protobuf type google.cloud.aiplatform.v1.AsyncRetrieveContextsRequest
  • 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<AsyncRetrieveContextsRequest.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<AsyncRetrieveContextsRequest.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<AsyncRetrieveContextsRequest.Builder>
    • getDefaultInstanceForType

      public AsyncRetrieveContextsRequest 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 AsyncRetrieveContextsRequest buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public AsyncRetrieveContextsRequest.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<AsyncRetrieveContextsRequest.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<AsyncRetrieveContextsRequest.Builder>
    • mergeFrom

      public AsyncRetrieveContextsRequest.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<AsyncRetrieveContextsRequest.Builder>
      Throws:
      IOException
    • getParent

      public String getParent()
       Required. The resource name of the Location from which to retrieve
       RagContexts. The users must have permission to make a call in the project.
       Format:
       `projects/{project}/locations/{location}`.
       
      string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Specified by:
      getParent in interface AsyncRetrieveContextsRequestOrBuilder
      Returns:
      The parent.
    • getParentBytes

      public com.google.protobuf.ByteString getParentBytes()
       Required. The resource name of the Location from which to retrieve
       RagContexts. The users must have permission to make a call in the project.
       Format:
       `projects/{project}/locations/{location}`.
       
      string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Specified by:
      getParentBytes in interface AsyncRetrieveContextsRequestOrBuilder
      Returns:
      The bytes for parent.
    • setParent

      public AsyncRetrieveContextsRequest.Builder setParent(String value)
       Required. The resource name of the Location from which to retrieve
       RagContexts. The users must have permission to make a call in the project.
       Format:
       `projects/{project}/locations/{location}`.
       
      string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The parent to set.
      Returns:
      This builder for chaining.
    • clearParent

       Required. The resource name of the Location from which to retrieve
       RagContexts. The users must have permission to make a call in the project.
       Format:
       `projects/{project}/locations/{location}`.
       
      string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Returns:
      This builder for chaining.
    • setParentBytes

      public AsyncRetrieveContextsRequest.Builder setParentBytes(com.google.protobuf.ByteString value)
       Required. The resource name of the Location from which to retrieve
       RagContexts. The users must have permission to make a call in the project.
       Format:
       `projects/{project}/locations/{location}`.
       
      string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The bytes for parent to set.
      Returns:
      This builder for chaining.
    • hasQuery

      public boolean hasQuery()
       Required. Single RAG retrieve query.
       
      .google.cloud.aiplatform.v1.RagQuery query = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      hasQuery in interface AsyncRetrieveContextsRequestOrBuilder
      Returns:
      Whether the query field is set.
    • getQuery

      public RagQuery getQuery()
       Required. Single RAG retrieve query.
       
      .google.cloud.aiplatform.v1.RagQuery query = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getQuery in interface AsyncRetrieveContextsRequestOrBuilder
      Returns:
      The query.
    • setQuery

       Required. Single RAG retrieve query.
       
      .google.cloud.aiplatform.v1.RagQuery query = 2 [(.google.api.field_behavior) = REQUIRED];
    • setQuery

      public AsyncRetrieveContextsRequest.Builder setQuery(RagQuery.Builder builderForValue)
       Required. Single RAG retrieve query.
       
      .google.cloud.aiplatform.v1.RagQuery query = 2 [(.google.api.field_behavior) = REQUIRED];
    • mergeQuery

       Required. Single RAG retrieve query.
       
      .google.cloud.aiplatform.v1.RagQuery query = 2 [(.google.api.field_behavior) = REQUIRED];
    • clearQuery

       Required. Single RAG retrieve query.
       
      .google.cloud.aiplatform.v1.RagQuery query = 2 [(.google.api.field_behavior) = REQUIRED];
    • getQueryBuilder

      public RagQuery.Builder getQueryBuilder()
       Required. Single RAG retrieve query.
       
      .google.cloud.aiplatform.v1.RagQuery query = 2 [(.google.api.field_behavior) = REQUIRED];
    • getQueryOrBuilder

      public RagQueryOrBuilder getQueryOrBuilder()
       Required. Single RAG retrieve query.
       
      .google.cloud.aiplatform.v1.RagQuery query = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getQueryOrBuilder in interface AsyncRetrieveContextsRequestOrBuilder
    • getToolsList

      public List<Tool> getToolsList()
       Optional. The tools to use for AskContexts.
       
      repeated .google.cloud.aiplatform.v1.Tool tools = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getToolsList in interface AsyncRetrieveContextsRequestOrBuilder
    • getToolsCount

      public int getToolsCount()
       Optional. The tools to use for AskContexts.
       
      repeated .google.cloud.aiplatform.v1.Tool tools = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getToolsCount in interface AsyncRetrieveContextsRequestOrBuilder
    • getTools

      public Tool getTools(int index)
       Optional. The tools to use for AskContexts.
       
      repeated .google.cloud.aiplatform.v1.Tool tools = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getTools in interface AsyncRetrieveContextsRequestOrBuilder
    • setTools

      public AsyncRetrieveContextsRequest.Builder setTools(int index, Tool value)
       Optional. The tools to use for AskContexts.
       
      repeated .google.cloud.aiplatform.v1.Tool tools = 3 [(.google.api.field_behavior) = OPTIONAL];
    • setTools

      public AsyncRetrieveContextsRequest.Builder setTools(int index, Tool.Builder builderForValue)
       Optional. The tools to use for AskContexts.
       
      repeated .google.cloud.aiplatform.v1.Tool tools = 3 [(.google.api.field_behavior) = OPTIONAL];
    • addTools

      public AsyncRetrieveContextsRequest.Builder addTools(Tool value)
       Optional. The tools to use for AskContexts.
       
      repeated .google.cloud.aiplatform.v1.Tool tools = 3 [(.google.api.field_behavior) = OPTIONAL];
    • addTools

      public AsyncRetrieveContextsRequest.Builder addTools(int index, Tool value)
       Optional. The tools to use for AskContexts.
       
      repeated .google.cloud.aiplatform.v1.Tool tools = 3 [(.google.api.field_behavior) = OPTIONAL];
    • addTools

      public AsyncRetrieveContextsRequest.Builder addTools(Tool.Builder builderForValue)
       Optional. The tools to use for AskContexts.
       
      repeated .google.cloud.aiplatform.v1.Tool tools = 3 [(.google.api.field_behavior) = OPTIONAL];
    • addTools

      public AsyncRetrieveContextsRequest.Builder addTools(int index, Tool.Builder builderForValue)
       Optional. The tools to use for AskContexts.
       
      repeated .google.cloud.aiplatform.v1.Tool tools = 3 [(.google.api.field_behavior) = OPTIONAL];
    • addAllTools

      public AsyncRetrieveContextsRequest.Builder addAllTools(Iterable<? extends Tool> values)
       Optional. The tools to use for AskContexts.
       
      repeated .google.cloud.aiplatform.v1.Tool tools = 3 [(.google.api.field_behavior) = OPTIONAL];
    • clearTools

       Optional. The tools to use for AskContexts.
       
      repeated .google.cloud.aiplatform.v1.Tool tools = 3 [(.google.api.field_behavior) = OPTIONAL];
    • removeTools

      public AsyncRetrieveContextsRequest.Builder removeTools(int index)
       Optional. The tools to use for AskContexts.
       
      repeated .google.cloud.aiplatform.v1.Tool tools = 3 [(.google.api.field_behavior) = OPTIONAL];
    • getToolsBuilder

      public Tool.Builder getToolsBuilder(int index)
       Optional. The tools to use for AskContexts.
       
      repeated .google.cloud.aiplatform.v1.Tool tools = 3 [(.google.api.field_behavior) = OPTIONAL];
    • getToolsOrBuilder

      public ToolOrBuilder getToolsOrBuilder(int index)
       Optional. The tools to use for AskContexts.
       
      repeated .google.cloud.aiplatform.v1.Tool tools = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getToolsOrBuilder in interface AsyncRetrieveContextsRequestOrBuilder
    • getToolsOrBuilderList

      public List<? extends ToolOrBuilder> getToolsOrBuilderList()
       Optional. The tools to use for AskContexts.
       
      repeated .google.cloud.aiplatform.v1.Tool tools = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getToolsOrBuilderList in interface AsyncRetrieveContextsRequestOrBuilder
    • addToolsBuilder

      public Tool.Builder addToolsBuilder()
       Optional. The tools to use for AskContexts.
       
      repeated .google.cloud.aiplatform.v1.Tool tools = 3 [(.google.api.field_behavior) = OPTIONAL];
    • addToolsBuilder

      public Tool.Builder addToolsBuilder(int index)
       Optional. The tools to use for AskContexts.
       
      repeated .google.cloud.aiplatform.v1.Tool tools = 3 [(.google.api.field_behavior) = OPTIONAL];
    • getToolsBuilderList

      public List<Tool.Builder> getToolsBuilderList()
       Optional. The tools to use for AskContexts.
       
      repeated .google.cloud.aiplatform.v1.Tool tools = 3 [(.google.api.field_behavior) = OPTIONAL];