Class QueryReasoningEngineRequest.Builder

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

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

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

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

      public QueryReasoningEngineRequest.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<QueryReasoningEngineRequest.Builder>
      Throws:
      IOException
    • getName

      public String getName()
       Required. The name of the ReasoningEngine resource to use.
       Format:
       `projects/{project}/locations/{location}/reasoningEngines/{reasoning_engine}`
       
      string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Specified by:
      getName in interface QueryReasoningEngineRequestOrBuilder
      Returns:
      The name.
    • getNameBytes

      public com.google.protobuf.ByteString getNameBytes()
       Required. The name of the ReasoningEngine resource to use.
       Format:
       `projects/{project}/locations/{location}/reasoningEngines/{reasoning_engine}`
       
      string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Specified by:
      getNameBytes in interface QueryReasoningEngineRequestOrBuilder
      Returns:
      The bytes for name.
    • setName

       Required. The name of the ReasoningEngine resource to use.
       Format:
       `projects/{project}/locations/{location}/reasoningEngines/{reasoning_engine}`
       
      string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The name to set.
      Returns:
      This builder for chaining.
    • clearName

       Required. The name of the ReasoningEngine resource to use.
       Format:
       `projects/{project}/locations/{location}/reasoningEngines/{reasoning_engine}`
       
      string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Returns:
      This builder for chaining.
    • setNameBytes

      public QueryReasoningEngineRequest.Builder setNameBytes(com.google.protobuf.ByteString value)
       Required. The name of the ReasoningEngine resource to use.
       Format:
       `projects/{project}/locations/{location}/reasoningEngines/{reasoning_engine}`
       
      string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The bytes for name to set.
      Returns:
      This builder for chaining.
    • hasInput

      public boolean hasInput()
       Optional. Input content provided by users in JSON object format. Examples
       include text query, function calling parameters, media bytes, etc.
       
      .google.protobuf.Struct input = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      hasInput in interface QueryReasoningEngineRequestOrBuilder
      Returns:
      Whether the input field is set.
    • getInput

      public com.google.protobuf.Struct getInput()
       Optional. Input content provided by users in JSON object format. Examples
       include text query, function calling parameters, media bytes, etc.
       
      .google.protobuf.Struct input = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getInput in interface QueryReasoningEngineRequestOrBuilder
      Returns:
      The input.
    • setInput

      public QueryReasoningEngineRequest.Builder setInput(com.google.protobuf.Struct value)
       Optional. Input content provided by users in JSON object format. Examples
       include text query, function calling parameters, media bytes, etc.
       
      .google.protobuf.Struct input = 2 [(.google.api.field_behavior) = OPTIONAL];
    • setInput

      public QueryReasoningEngineRequest.Builder setInput(com.google.protobuf.Struct.Builder builderForValue)
       Optional. Input content provided by users in JSON object format. Examples
       include text query, function calling parameters, media bytes, etc.
       
      .google.protobuf.Struct input = 2 [(.google.api.field_behavior) = OPTIONAL];
    • mergeInput

      public QueryReasoningEngineRequest.Builder mergeInput(com.google.protobuf.Struct value)
       Optional. Input content provided by users in JSON object format. Examples
       include text query, function calling parameters, media bytes, etc.
       
      .google.protobuf.Struct input = 2 [(.google.api.field_behavior) = OPTIONAL];
    • clearInput

       Optional. Input content provided by users in JSON object format. Examples
       include text query, function calling parameters, media bytes, etc.
       
      .google.protobuf.Struct input = 2 [(.google.api.field_behavior) = OPTIONAL];
    • getInputBuilder

      public com.google.protobuf.Struct.Builder getInputBuilder()
       Optional. Input content provided by users in JSON object format. Examples
       include text query, function calling parameters, media bytes, etc.
       
      .google.protobuf.Struct input = 2 [(.google.api.field_behavior) = OPTIONAL];
    • getInputOrBuilder

      public com.google.protobuf.StructOrBuilder getInputOrBuilder()
       Optional. Input content provided by users in JSON object format. Examples
       include text query, function calling parameters, media bytes, etc.
       
      .google.protobuf.Struct input = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getInputOrBuilder in interface QueryReasoningEngineRequestOrBuilder
    • getClassMethod

      public String getClassMethod()
       Optional. Class method to be used for the query.
       It is optional and defaults to "query" if unspecified.
       
      string class_method = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getClassMethod in interface QueryReasoningEngineRequestOrBuilder
      Returns:
      The classMethod.
    • getClassMethodBytes

      public com.google.protobuf.ByteString getClassMethodBytes()
       Optional. Class method to be used for the query.
       It is optional and defaults to "query" if unspecified.
       
      string class_method = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getClassMethodBytes in interface QueryReasoningEngineRequestOrBuilder
      Returns:
      The bytes for classMethod.
    • setClassMethod

      public QueryReasoningEngineRequest.Builder setClassMethod(String value)
       Optional. Class method to be used for the query.
       It is optional and defaults to "query" if unspecified.
       
      string class_method = 3 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The classMethod to set.
      Returns:
      This builder for chaining.
    • clearClassMethod

      public QueryReasoningEngineRequest.Builder clearClassMethod()
       Optional. Class method to be used for the query.
       It is optional and defaults to "query" if unspecified.
       
      string class_method = 3 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • setClassMethodBytes

      public QueryReasoningEngineRequest.Builder setClassMethodBytes(com.google.protobuf.ByteString value)
       Optional. Class method to be used for the query.
       It is optional and defaults to "query" if unspecified.
       
      string class_method = 3 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The bytes for classMethod to set.
      Returns:
      This builder for chaining.