Class StreamAssistRequest.ToolsSpec.Builder

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

public static final class StreamAssistRequest.ToolsSpec.Builder extends com.google.protobuf.GeneratedMessage.Builder<StreamAssistRequest.ToolsSpec.Builder> implements StreamAssistRequest.ToolsSpecOrBuilder
 Specification of tools that are used to serve the request.
 
Protobuf type google.cloud.discoveryengine.v1.StreamAssistRequest.ToolsSpec
  • 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<StreamAssistRequest.ToolsSpec.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<StreamAssistRequest.ToolsSpec.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<StreamAssistRequest.ToolsSpec.Builder>
    • getDefaultInstanceForType

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

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

      public StreamAssistRequest.ToolsSpec.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<StreamAssistRequest.ToolsSpec.Builder>
      Throws:
      IOException
    • hasVertexAiSearchSpec

      public boolean hasVertexAiSearchSpec()
       Optional. Specification of the Vertex AI Search tool.
       
      .google.cloud.discoveryengine.v1.StreamAssistRequest.ToolsSpec.VertexAiSearchSpec vertex_ai_search_spec = 1 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      hasVertexAiSearchSpec in interface StreamAssistRequest.ToolsSpecOrBuilder
      Returns:
      Whether the vertexAiSearchSpec field is set.
    • getVertexAiSearchSpec

      public StreamAssistRequest.ToolsSpec.VertexAiSearchSpec getVertexAiSearchSpec()
       Optional. Specification of the Vertex AI Search tool.
       
      .google.cloud.discoveryengine.v1.StreamAssistRequest.ToolsSpec.VertexAiSearchSpec vertex_ai_search_spec = 1 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getVertexAiSearchSpec in interface StreamAssistRequest.ToolsSpecOrBuilder
      Returns:
      The vertexAiSearchSpec.
    • setVertexAiSearchSpec

       Optional. Specification of the Vertex AI Search tool.
       
      .google.cloud.discoveryengine.v1.StreamAssistRequest.ToolsSpec.VertexAiSearchSpec vertex_ai_search_spec = 1 [(.google.api.field_behavior) = OPTIONAL];
    • setVertexAiSearchSpec

       Optional. Specification of the Vertex AI Search tool.
       
      .google.cloud.discoveryengine.v1.StreamAssistRequest.ToolsSpec.VertexAiSearchSpec vertex_ai_search_spec = 1 [(.google.api.field_behavior) = OPTIONAL];
    • mergeVertexAiSearchSpec

       Optional. Specification of the Vertex AI Search tool.
       
      .google.cloud.discoveryengine.v1.StreamAssistRequest.ToolsSpec.VertexAiSearchSpec vertex_ai_search_spec = 1 [(.google.api.field_behavior) = OPTIONAL];
    • clearVertexAiSearchSpec

      public StreamAssistRequest.ToolsSpec.Builder clearVertexAiSearchSpec()
       Optional. Specification of the Vertex AI Search tool.
       
      .google.cloud.discoveryengine.v1.StreamAssistRequest.ToolsSpec.VertexAiSearchSpec vertex_ai_search_spec = 1 [(.google.api.field_behavior) = OPTIONAL];
    • getVertexAiSearchSpecBuilder

      public StreamAssistRequest.ToolsSpec.VertexAiSearchSpec.Builder getVertexAiSearchSpecBuilder()
       Optional. Specification of the Vertex AI Search tool.
       
      .google.cloud.discoveryengine.v1.StreamAssistRequest.ToolsSpec.VertexAiSearchSpec vertex_ai_search_spec = 1 [(.google.api.field_behavior) = OPTIONAL];
    • getVertexAiSearchSpecOrBuilder

      public StreamAssistRequest.ToolsSpec.VertexAiSearchSpecOrBuilder getVertexAiSearchSpecOrBuilder()
       Optional. Specification of the Vertex AI Search tool.
       
      .google.cloud.discoveryengine.v1.StreamAssistRequest.ToolsSpec.VertexAiSearchSpec vertex_ai_search_spec = 1 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getVertexAiSearchSpecOrBuilder in interface StreamAssistRequest.ToolsSpecOrBuilder
    • hasWebGroundingSpec

      public boolean hasWebGroundingSpec()
       Optional. Specification of the web grounding tool.
       If field is present, enables grounding with web search. Works only if
       [Assistant.web_grounding_type][google.cloud.discoveryengine.v1.Assistant.web_grounding_type]
       is [WEB_GROUNDING_TYPE_GOOGLE_SEARCH][] or
       [WEB_GROUNDING_TYPE_ENTERPRISE_WEB_SEARCH][].
       
      .google.cloud.discoveryengine.v1.StreamAssistRequest.ToolsSpec.WebGroundingSpec web_grounding_spec = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      hasWebGroundingSpec in interface StreamAssistRequest.ToolsSpecOrBuilder
      Returns:
      Whether the webGroundingSpec field is set.
    • getWebGroundingSpec

      public StreamAssistRequest.ToolsSpec.WebGroundingSpec getWebGroundingSpec()
       Optional. Specification of the web grounding tool.
       If field is present, enables grounding with web search. Works only if
       [Assistant.web_grounding_type][google.cloud.discoveryengine.v1.Assistant.web_grounding_type]
       is [WEB_GROUNDING_TYPE_GOOGLE_SEARCH][] or
       [WEB_GROUNDING_TYPE_ENTERPRISE_WEB_SEARCH][].
       
      .google.cloud.discoveryengine.v1.StreamAssistRequest.ToolsSpec.WebGroundingSpec web_grounding_spec = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getWebGroundingSpec in interface StreamAssistRequest.ToolsSpecOrBuilder
      Returns:
      The webGroundingSpec.
    • setWebGroundingSpec

       Optional. Specification of the web grounding tool.
       If field is present, enables grounding with web search. Works only if
       [Assistant.web_grounding_type][google.cloud.discoveryengine.v1.Assistant.web_grounding_type]
       is [WEB_GROUNDING_TYPE_GOOGLE_SEARCH][] or
       [WEB_GROUNDING_TYPE_ENTERPRISE_WEB_SEARCH][].
       
      .google.cloud.discoveryengine.v1.StreamAssistRequest.ToolsSpec.WebGroundingSpec web_grounding_spec = 2 [(.google.api.field_behavior) = OPTIONAL];
    • setWebGroundingSpec

       Optional. Specification of the web grounding tool.
       If field is present, enables grounding with web search. Works only if
       [Assistant.web_grounding_type][google.cloud.discoveryengine.v1.Assistant.web_grounding_type]
       is [WEB_GROUNDING_TYPE_GOOGLE_SEARCH][] or
       [WEB_GROUNDING_TYPE_ENTERPRISE_WEB_SEARCH][].
       
      .google.cloud.discoveryengine.v1.StreamAssistRequest.ToolsSpec.WebGroundingSpec web_grounding_spec = 2 [(.google.api.field_behavior) = OPTIONAL];
    • mergeWebGroundingSpec

       Optional. Specification of the web grounding tool.
       If field is present, enables grounding with web search. Works only if
       [Assistant.web_grounding_type][google.cloud.discoveryengine.v1.Assistant.web_grounding_type]
       is [WEB_GROUNDING_TYPE_GOOGLE_SEARCH][] or
       [WEB_GROUNDING_TYPE_ENTERPRISE_WEB_SEARCH][].
       
      .google.cloud.discoveryengine.v1.StreamAssistRequest.ToolsSpec.WebGroundingSpec web_grounding_spec = 2 [(.google.api.field_behavior) = OPTIONAL];
    • clearWebGroundingSpec

      public StreamAssistRequest.ToolsSpec.Builder clearWebGroundingSpec()
       Optional. Specification of the web grounding tool.
       If field is present, enables grounding with web search. Works only if
       [Assistant.web_grounding_type][google.cloud.discoveryengine.v1.Assistant.web_grounding_type]
       is [WEB_GROUNDING_TYPE_GOOGLE_SEARCH][] or
       [WEB_GROUNDING_TYPE_ENTERPRISE_WEB_SEARCH][].
       
      .google.cloud.discoveryengine.v1.StreamAssistRequest.ToolsSpec.WebGroundingSpec web_grounding_spec = 2 [(.google.api.field_behavior) = OPTIONAL];
    • getWebGroundingSpecBuilder

      public StreamAssistRequest.ToolsSpec.WebGroundingSpec.Builder getWebGroundingSpecBuilder()
       Optional. Specification of the web grounding tool.
       If field is present, enables grounding with web search. Works only if
       [Assistant.web_grounding_type][google.cloud.discoveryengine.v1.Assistant.web_grounding_type]
       is [WEB_GROUNDING_TYPE_GOOGLE_SEARCH][] or
       [WEB_GROUNDING_TYPE_ENTERPRISE_WEB_SEARCH][].
       
      .google.cloud.discoveryengine.v1.StreamAssistRequest.ToolsSpec.WebGroundingSpec web_grounding_spec = 2 [(.google.api.field_behavior) = OPTIONAL];
    • getWebGroundingSpecOrBuilder

      public StreamAssistRequest.ToolsSpec.WebGroundingSpecOrBuilder getWebGroundingSpecOrBuilder()
       Optional. Specification of the web grounding tool.
       If field is present, enables grounding with web search. Works only if
       [Assistant.web_grounding_type][google.cloud.discoveryengine.v1.Assistant.web_grounding_type]
       is [WEB_GROUNDING_TYPE_GOOGLE_SEARCH][] or
       [WEB_GROUNDING_TYPE_ENTERPRISE_WEB_SEARCH][].
       
      .google.cloud.discoveryengine.v1.StreamAssistRequest.ToolsSpec.WebGroundingSpec web_grounding_spec = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getWebGroundingSpecOrBuilder in interface StreamAssistRequest.ToolsSpecOrBuilder
    • hasImageGenerationSpec

      public boolean hasImageGenerationSpec()
       Optional. Specification of the image generation tool.
       
      .google.cloud.discoveryengine.v1.StreamAssistRequest.ToolsSpec.ImageGenerationSpec image_generation_spec = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      hasImageGenerationSpec in interface StreamAssistRequest.ToolsSpecOrBuilder
      Returns:
      Whether the imageGenerationSpec field is set.
    • getImageGenerationSpec

      public StreamAssistRequest.ToolsSpec.ImageGenerationSpec getImageGenerationSpec()
       Optional. Specification of the image generation tool.
       
      .google.cloud.discoveryengine.v1.StreamAssistRequest.ToolsSpec.ImageGenerationSpec image_generation_spec = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getImageGenerationSpec in interface StreamAssistRequest.ToolsSpecOrBuilder
      Returns:
      The imageGenerationSpec.
    • setImageGenerationSpec

       Optional. Specification of the image generation tool.
       
      .google.cloud.discoveryengine.v1.StreamAssistRequest.ToolsSpec.ImageGenerationSpec image_generation_spec = 3 [(.google.api.field_behavior) = OPTIONAL];
    • setImageGenerationSpec

       Optional. Specification of the image generation tool.
       
      .google.cloud.discoveryengine.v1.StreamAssistRequest.ToolsSpec.ImageGenerationSpec image_generation_spec = 3 [(.google.api.field_behavior) = OPTIONAL];
    • mergeImageGenerationSpec

       Optional. Specification of the image generation tool.
       
      .google.cloud.discoveryengine.v1.StreamAssistRequest.ToolsSpec.ImageGenerationSpec image_generation_spec = 3 [(.google.api.field_behavior) = OPTIONAL];
    • clearImageGenerationSpec

      public StreamAssistRequest.ToolsSpec.Builder clearImageGenerationSpec()
       Optional. Specification of the image generation tool.
       
      .google.cloud.discoveryengine.v1.StreamAssistRequest.ToolsSpec.ImageGenerationSpec image_generation_spec = 3 [(.google.api.field_behavior) = OPTIONAL];
    • getImageGenerationSpecBuilder

      public StreamAssistRequest.ToolsSpec.ImageGenerationSpec.Builder getImageGenerationSpecBuilder()
       Optional. Specification of the image generation tool.
       
      .google.cloud.discoveryengine.v1.StreamAssistRequest.ToolsSpec.ImageGenerationSpec image_generation_spec = 3 [(.google.api.field_behavior) = OPTIONAL];
    • getImageGenerationSpecOrBuilder

      public StreamAssistRequest.ToolsSpec.ImageGenerationSpecOrBuilder getImageGenerationSpecOrBuilder()
       Optional. Specification of the image generation tool.
       
      .google.cloud.discoveryengine.v1.StreamAssistRequest.ToolsSpec.ImageGenerationSpec image_generation_spec = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getImageGenerationSpecOrBuilder in interface StreamAssistRequest.ToolsSpecOrBuilder
    • hasVideoGenerationSpec

      public boolean hasVideoGenerationSpec()
       Optional. Specification of the video generation tool.
       
      .google.cloud.discoveryengine.v1.StreamAssistRequest.ToolsSpec.VideoGenerationSpec video_generation_spec = 4 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      hasVideoGenerationSpec in interface StreamAssistRequest.ToolsSpecOrBuilder
      Returns:
      Whether the videoGenerationSpec field is set.
    • getVideoGenerationSpec

      public StreamAssistRequest.ToolsSpec.VideoGenerationSpec getVideoGenerationSpec()
       Optional. Specification of the video generation tool.
       
      .google.cloud.discoveryengine.v1.StreamAssistRequest.ToolsSpec.VideoGenerationSpec video_generation_spec = 4 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getVideoGenerationSpec in interface StreamAssistRequest.ToolsSpecOrBuilder
      Returns:
      The videoGenerationSpec.
    • setVideoGenerationSpec

       Optional. Specification of the video generation tool.
       
      .google.cloud.discoveryengine.v1.StreamAssistRequest.ToolsSpec.VideoGenerationSpec video_generation_spec = 4 [(.google.api.field_behavior) = OPTIONAL];
    • setVideoGenerationSpec

       Optional. Specification of the video generation tool.
       
      .google.cloud.discoveryengine.v1.StreamAssistRequest.ToolsSpec.VideoGenerationSpec video_generation_spec = 4 [(.google.api.field_behavior) = OPTIONAL];
    • mergeVideoGenerationSpec

       Optional. Specification of the video generation tool.
       
      .google.cloud.discoveryengine.v1.StreamAssistRequest.ToolsSpec.VideoGenerationSpec video_generation_spec = 4 [(.google.api.field_behavior) = OPTIONAL];
    • clearVideoGenerationSpec

      public StreamAssistRequest.ToolsSpec.Builder clearVideoGenerationSpec()
       Optional. Specification of the video generation tool.
       
      .google.cloud.discoveryengine.v1.StreamAssistRequest.ToolsSpec.VideoGenerationSpec video_generation_spec = 4 [(.google.api.field_behavior) = OPTIONAL];
    • getVideoGenerationSpecBuilder

      public StreamAssistRequest.ToolsSpec.VideoGenerationSpec.Builder getVideoGenerationSpecBuilder()
       Optional. Specification of the video generation tool.
       
      .google.cloud.discoveryengine.v1.StreamAssistRequest.ToolsSpec.VideoGenerationSpec video_generation_spec = 4 [(.google.api.field_behavior) = OPTIONAL];
    • getVideoGenerationSpecOrBuilder

      public StreamAssistRequest.ToolsSpec.VideoGenerationSpecOrBuilder getVideoGenerationSpecOrBuilder()
       Optional. Specification of the video generation tool.
       
      .google.cloud.discoveryengine.v1.StreamAssistRequest.ToolsSpec.VideoGenerationSpec video_generation_spec = 4 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getVideoGenerationSpecOrBuilder in interface StreamAssistRequest.ToolsSpecOrBuilder