Class AskContextsResponse.Builder

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

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

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

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

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

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

      public AskContextsResponse.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<AskContextsResponse.Builder>
      Throws:
      IOException
    • getResponse

      public String getResponse()
       The Retrieval Response.
       
      string response = 1;
      Specified by:
      getResponse in interface AskContextsResponseOrBuilder
      Returns:
      The response.
    • getResponseBytes

      public com.google.protobuf.ByteString getResponseBytes()
       The Retrieval Response.
       
      string response = 1;
      Specified by:
      getResponseBytes in interface AskContextsResponseOrBuilder
      Returns:
      The bytes for response.
    • setResponse

      public AskContextsResponse.Builder setResponse(String value)
       The Retrieval Response.
       
      string response = 1;
      Parameters:
      value - The response to set.
      Returns:
      This builder for chaining.
    • clearResponse

      public AskContextsResponse.Builder clearResponse()
       The Retrieval Response.
       
      string response = 1;
      Returns:
      This builder for chaining.
    • setResponseBytes

      public AskContextsResponse.Builder setResponseBytes(com.google.protobuf.ByteString value)
       The Retrieval Response.
       
      string response = 1;
      Parameters:
      value - The bytes for response to set.
      Returns:
      This builder for chaining.
    • hasContexts

      public boolean hasContexts()
       The contexts of the query.
       
      .google.cloud.aiplatform.v1.RagContexts contexts = 2;
      Specified by:
      hasContexts in interface AskContextsResponseOrBuilder
      Returns:
      Whether the contexts field is set.
    • getContexts

      public RagContexts getContexts()
       The contexts of the query.
       
      .google.cloud.aiplatform.v1.RagContexts contexts = 2;
      Specified by:
      getContexts in interface AskContextsResponseOrBuilder
      Returns:
      The contexts.
    • setContexts

      public AskContextsResponse.Builder setContexts(RagContexts value)
       The contexts of the query.
       
      .google.cloud.aiplatform.v1.RagContexts contexts = 2;
    • setContexts

      public AskContextsResponse.Builder setContexts(RagContexts.Builder builderForValue)
       The contexts of the query.
       
      .google.cloud.aiplatform.v1.RagContexts contexts = 2;
    • mergeContexts

      public AskContextsResponse.Builder mergeContexts(RagContexts value)
       The contexts of the query.
       
      .google.cloud.aiplatform.v1.RagContexts contexts = 2;
    • clearContexts

      public AskContextsResponse.Builder clearContexts()
       The contexts of the query.
       
      .google.cloud.aiplatform.v1.RagContexts contexts = 2;
    • getContextsBuilder

      public RagContexts.Builder getContextsBuilder()
       The contexts of the query.
       
      .google.cloud.aiplatform.v1.RagContexts contexts = 2;
    • getContextsOrBuilder

      public RagContextsOrBuilder getContextsOrBuilder()
       The contexts of the query.
       
      .google.cloud.aiplatform.v1.RagContexts contexts = 2;
      Specified by:
      getContextsOrBuilder in interface AskContextsResponseOrBuilder