Class RuntimeAnnotation.UserInput.Builder

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

public static final class RuntimeAnnotation.UserInput.Builder extends com.google.protobuf.GeneratedMessage.Builder<RuntimeAnnotation.UserInput.Builder> implements RuntimeAnnotation.UserInputOrBuilder
 Explicit input used for generating the answer
 
Protobuf type google.cloud.contactcenterinsights.v1.RuntimeAnnotation.UserInput
  • 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<RuntimeAnnotation.UserInput.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<RuntimeAnnotation.UserInput.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<RuntimeAnnotation.UserInput.Builder>
    • getDefaultInstanceForType

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

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

      public RuntimeAnnotation.UserInput.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<RuntimeAnnotation.UserInput.Builder>
      Throws:
      IOException
    • getQuery

      public String getQuery()
       Query text. Article Search uses this to store the input query used
       to generate the search results.
       
      string query = 1;
      Specified by:
      getQuery in interface RuntimeAnnotation.UserInputOrBuilder
      Returns:
      The query.
    • getQueryBytes

      public com.google.protobuf.ByteString getQueryBytes()
       Query text. Article Search uses this to store the input query used
       to generate the search results.
       
      string query = 1;
      Specified by:
      getQueryBytes in interface RuntimeAnnotation.UserInputOrBuilder
      Returns:
      The bytes for query.
    • setQuery

       Query text. Article Search uses this to store the input query used
       to generate the search results.
       
      string query = 1;
      Parameters:
      value - The query to set.
      Returns:
      This builder for chaining.
    • clearQuery

       Query text. Article Search uses this to store the input query used
       to generate the search results.
       
      string query = 1;
      Returns:
      This builder for chaining.
    • setQueryBytes

      public RuntimeAnnotation.UserInput.Builder setQueryBytes(com.google.protobuf.ByteString value)
       Query text. Article Search uses this to store the input query used
       to generate the search results.
       
      string query = 1;
      Parameters:
      value - The bytes for query to set.
      Returns:
      This builder for chaining.
    • getGeneratorName

      public String getGeneratorName()
       The resource name of associated generator. Format:
       `projects/<Project ID>/locations/<Location ID>/generators/<Generator ID>`
       
      string generator_name = 2;
      Specified by:
      getGeneratorName in interface RuntimeAnnotation.UserInputOrBuilder
      Returns:
      The generatorName.
    • getGeneratorNameBytes

      public com.google.protobuf.ByteString getGeneratorNameBytes()
       The resource name of associated generator. Format:
       `projects/<Project ID>/locations/<Location ID>/generators/<Generator ID>`
       
      string generator_name = 2;
      Specified by:
      getGeneratorNameBytes in interface RuntimeAnnotation.UserInputOrBuilder
      Returns:
      The bytes for generatorName.
    • setGeneratorName

      public RuntimeAnnotation.UserInput.Builder setGeneratorName(String value)
       The resource name of associated generator. Format:
       `projects/<Project ID>/locations/<Location ID>/generators/<Generator ID>`
       
      string generator_name = 2;
      Parameters:
      value - The generatorName to set.
      Returns:
      This builder for chaining.
    • clearGeneratorName

      public RuntimeAnnotation.UserInput.Builder clearGeneratorName()
       The resource name of associated generator. Format:
       `projects/<Project ID>/locations/<Location ID>/generators/<Generator ID>`
       
      string generator_name = 2;
      Returns:
      This builder for chaining.
    • setGeneratorNameBytes

      public RuntimeAnnotation.UserInput.Builder setGeneratorNameBytes(com.google.protobuf.ByteString value)
       The resource name of associated generator. Format:
       `projects/<Project ID>/locations/<Location ID>/generators/<Generator ID>`
       
      string generator_name = 2;
      Parameters:
      value - The bytes for generatorName to set.
      Returns:
      This builder for chaining.
    • getQuerySourceValue

      public int getQuerySourceValue()
       Query source for the answer.
       
      .google.cloud.contactcenterinsights.v1.RuntimeAnnotation.UserInput.QuerySource query_source = 3;
      Specified by:
      getQuerySourceValue in interface RuntimeAnnotation.UserInputOrBuilder
      Returns:
      The enum numeric value on the wire for querySource.
    • setQuerySourceValue

      public RuntimeAnnotation.UserInput.Builder setQuerySourceValue(int value)
       Query source for the answer.
       
      .google.cloud.contactcenterinsights.v1.RuntimeAnnotation.UserInput.QuerySource query_source = 3;
      Parameters:
      value - The enum numeric value on the wire for querySource to set.
      Returns:
      This builder for chaining.
    • getQuerySource

      public RuntimeAnnotation.UserInput.QuerySource getQuerySource()
       Query source for the answer.
       
      .google.cloud.contactcenterinsights.v1.RuntimeAnnotation.UserInput.QuerySource query_source = 3;
      Specified by:
      getQuerySource in interface RuntimeAnnotation.UserInputOrBuilder
      Returns:
      The querySource.
    • setQuerySource

       Query source for the answer.
       
      .google.cloud.contactcenterinsights.v1.RuntimeAnnotation.UserInput.QuerySource query_source = 3;
      Parameters:
      value - The querySource to set.
      Returns:
      This builder for chaining.
    • clearQuerySource

      public RuntimeAnnotation.UserInput.Builder clearQuerySource()
       Query source for the answer.
       
      .google.cloud.contactcenterinsights.v1.RuntimeAnnotation.UserInput.QuerySource query_source = 3;
      Returns:
      This builder for chaining.