Class AdvancedCompleteQueryRequest.BoostSpec

java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryRequest.BoostSpec
All Implemented Interfaces:
AdvancedCompleteQueryRequest.BoostSpecOrBuilder, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable
Enclosing class:
AdvancedCompleteQueryRequest

public static final class AdvancedCompleteQueryRequest.BoostSpec extends com.google.protobuf.GeneratedMessage implements AdvancedCompleteQueryRequest.BoostSpecOrBuilder
 Specification to boost suggestions based on the condtion of the suggestion.
 
Protobuf type google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryRequest.BoostSpec
See Also:
  • Field Details

    • CONDITION_BOOST_SPECS_FIELD_NUMBER

      public static final int CONDITION_BOOST_SPECS_FIELD_NUMBER
      See Also:
  • 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
    • getConditionBoostSpecsList

       Condition boost specifications. If a suggestion matches multiple
       conditions in the specifictions, boost values from these specifications
       are all applied and combined in a non-linear way. Maximum number of
       specifications is 20.
      
       Note: Currently only support language condition boost.
       
      repeated .google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryRequest.BoostSpec.ConditionBoostSpec condition_boost_specs = 1;
      Specified by:
      getConditionBoostSpecsList in interface AdvancedCompleteQueryRequest.BoostSpecOrBuilder
    • getConditionBoostSpecsOrBuilderList

      public List<? extends AdvancedCompleteQueryRequest.BoostSpec.ConditionBoostSpecOrBuilder> getConditionBoostSpecsOrBuilderList()
       Condition boost specifications. If a suggestion matches multiple
       conditions in the specifictions, boost values from these specifications
       are all applied and combined in a non-linear way. Maximum number of
       specifications is 20.
      
       Note: Currently only support language condition boost.
       
      repeated .google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryRequest.BoostSpec.ConditionBoostSpec condition_boost_specs = 1;
      Specified by:
      getConditionBoostSpecsOrBuilderList in interface AdvancedCompleteQueryRequest.BoostSpecOrBuilder
    • getConditionBoostSpecsCount

      public int getConditionBoostSpecsCount()
       Condition boost specifications. If a suggestion matches multiple
       conditions in the specifictions, boost values from these specifications
       are all applied and combined in a non-linear way. Maximum number of
       specifications is 20.
      
       Note: Currently only support language condition boost.
       
      repeated .google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryRequest.BoostSpec.ConditionBoostSpec condition_boost_specs = 1;
      Specified by:
      getConditionBoostSpecsCount in interface AdvancedCompleteQueryRequest.BoostSpecOrBuilder
    • getConditionBoostSpecs

      public AdvancedCompleteQueryRequest.BoostSpec.ConditionBoostSpec getConditionBoostSpecs(int index)
       Condition boost specifications. If a suggestion matches multiple
       conditions in the specifictions, boost values from these specifications
       are all applied and combined in a non-linear way. Maximum number of
       specifications is 20.
      
       Note: Currently only support language condition boost.
       
      repeated .google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryRequest.BoostSpec.ConditionBoostSpec condition_boost_specs = 1;
      Specified by:
      getConditionBoostSpecs in interface AdvancedCompleteQueryRequest.BoostSpecOrBuilder
    • getConditionBoostSpecsOrBuilder

      public AdvancedCompleteQueryRequest.BoostSpec.ConditionBoostSpecOrBuilder getConditionBoostSpecsOrBuilder(int index)
       Condition boost specifications. If a suggestion matches multiple
       conditions in the specifictions, boost values from these specifications
       are all applied and combined in a non-linear way. Maximum number of
       specifications is 20.
      
       Note: Currently only support language condition boost.
       
      repeated .google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryRequest.BoostSpec.ConditionBoostSpec condition_boost_specs = 1;
      Specified by:
      getConditionBoostSpecsOrBuilder in interface AdvancedCompleteQueryRequest.BoostSpecOrBuilder
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage
    • writeTo

      public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
      Specified by:
      writeTo in interface com.google.protobuf.MessageLite
      Overrides:
      writeTo in class com.google.protobuf.GeneratedMessage
      Throws:
      IOException
    • getSerializedSize

      public int getSerializedSize()
      Specified by:
      getSerializedSize in interface com.google.protobuf.MessageLite
      Overrides:
      getSerializedSize in class com.google.protobuf.GeneratedMessage
    • equals

      public boolean equals(Object obj)
      Specified by:
      equals in interface com.google.protobuf.Message
      Overrides:
      equals in class com.google.protobuf.AbstractMessage
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in interface com.google.protobuf.Message
      Overrides:
      hashCode in class com.google.protobuf.AbstractMessage
    • parseFrom

      public static AdvancedCompleteQueryRequest.BoostSpec parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static AdvancedCompleteQueryRequest.BoostSpec parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static AdvancedCompleteQueryRequest.BoostSpec parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static AdvancedCompleteQueryRequest.BoostSpec parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static AdvancedCompleteQueryRequest.BoostSpec parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static AdvancedCompleteQueryRequest.BoostSpec parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static AdvancedCompleteQueryRequest.BoostSpec parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static AdvancedCompleteQueryRequest.BoostSpec parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static AdvancedCompleteQueryRequest.BoostSpec parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static AdvancedCompleteQueryRequest.BoostSpec parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseFrom

      public static AdvancedCompleteQueryRequest.BoostSpec parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static AdvancedCompleteQueryRequest.BoostSpec parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • newBuilderForType

      Specified by:
      newBuilderForType in interface com.google.protobuf.Message
      Specified by:
      newBuilderForType in interface com.google.protobuf.MessageLite
    • newBuilder

    • newBuilder

    • toBuilder

      Specified by:
      toBuilder in interface com.google.protobuf.Message
      Specified by:
      toBuilder in interface com.google.protobuf.MessageLite
    • newBuilderForType

      protected AdvancedCompleteQueryRequest.BoostSpec.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent)
      Overrides:
      newBuilderForType in class com.google.protobuf.AbstractMessage
    • getDefaultInstance

      public static AdvancedCompleteQueryRequest.BoostSpec getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<AdvancedCompleteQueryRequest.BoostSpec> parser()
    • getParserForType

      public com.google.protobuf.Parser<AdvancedCompleteQueryRequest.BoostSpec> getParserForType()
      Specified by:
      getParserForType in interface com.google.protobuf.Message
      Specified by:
      getParserForType in interface com.google.protobuf.MessageLite
      Overrides:
      getParserForType in class com.google.protobuf.GeneratedMessage
    • getDefaultInstanceForType

      public AdvancedCompleteQueryRequest.BoostSpec getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder