Class BoostSpec.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<BoostSpec.Builder>
com.google.cloud.dialogflow.cx.v3beta1.BoostSpec.Builder
All Implemented Interfaces:
BoostSpecOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
BoostSpec

public static final class BoostSpec.Builder extends com.google.protobuf.GeneratedMessage.Builder<BoostSpec.Builder> implements BoostSpecOrBuilder
 Boost specification to boost certain documents.
 A copy of google.cloud.discoveryengine.v1main.BoostSpec, field documentation
 is available at
 https://cloud.google.com/generative-ai-app-builder/docs/reference/rest/v1alpha/BoostSpec
 
Protobuf type google.cloud.dialogflow.cx.v3beta1.BoostSpec
  • 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<BoostSpec.Builder>
    • clear

      public BoostSpec.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<BoostSpec.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<BoostSpec.Builder>
    • getDefaultInstanceForType

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

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

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

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

      public BoostSpec.Builder mergeFrom(BoostSpec other)
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.Builder<BoostSpec.Builder>
    • mergeFrom

      public BoostSpec.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<BoostSpec.Builder>
      Throws:
      IOException
    • getConditionBoostSpecsList

      public List<BoostSpec.ConditionBoostSpec> getConditionBoostSpecsList()
       Optional. Condition boost specifications. If a document matches multiple
       conditions in the specifications, boost scores from these specifications
       are all applied and combined in a non-linear way. Maximum number of
       specifications is 20.
       
      repeated .google.cloud.dialogflow.cx.v3beta1.BoostSpec.ConditionBoostSpec condition_boost_specs = 1 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getConditionBoostSpecsList in interface BoostSpecOrBuilder
    • getConditionBoostSpecsCount

      public int getConditionBoostSpecsCount()
       Optional. Condition boost specifications. If a document matches multiple
       conditions in the specifications, boost scores from these specifications
       are all applied and combined in a non-linear way. Maximum number of
       specifications is 20.
       
      repeated .google.cloud.dialogflow.cx.v3beta1.BoostSpec.ConditionBoostSpec condition_boost_specs = 1 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getConditionBoostSpecsCount in interface BoostSpecOrBuilder
    • getConditionBoostSpecs

      public BoostSpec.ConditionBoostSpec getConditionBoostSpecs(int index)
       Optional. Condition boost specifications. If a document matches multiple
       conditions in the specifications, boost scores from these specifications
       are all applied and combined in a non-linear way. Maximum number of
       specifications is 20.
       
      repeated .google.cloud.dialogflow.cx.v3beta1.BoostSpec.ConditionBoostSpec condition_boost_specs = 1 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getConditionBoostSpecs in interface BoostSpecOrBuilder
    • setConditionBoostSpecs

      public BoostSpec.Builder setConditionBoostSpecs(int index, BoostSpec.ConditionBoostSpec value)
       Optional. Condition boost specifications. If a document matches multiple
       conditions in the specifications, boost scores from these specifications
       are all applied and combined in a non-linear way. Maximum number of
       specifications is 20.
       
      repeated .google.cloud.dialogflow.cx.v3beta1.BoostSpec.ConditionBoostSpec condition_boost_specs = 1 [(.google.api.field_behavior) = OPTIONAL];
    • setConditionBoostSpecs

      public BoostSpec.Builder setConditionBoostSpecs(int index, BoostSpec.ConditionBoostSpec.Builder builderForValue)
       Optional. Condition boost specifications. If a document matches multiple
       conditions in the specifications, boost scores from these specifications
       are all applied and combined in a non-linear way. Maximum number of
       specifications is 20.
       
      repeated .google.cloud.dialogflow.cx.v3beta1.BoostSpec.ConditionBoostSpec condition_boost_specs = 1 [(.google.api.field_behavior) = OPTIONAL];
    • addConditionBoostSpecs

      public BoostSpec.Builder addConditionBoostSpecs(BoostSpec.ConditionBoostSpec value)
       Optional. Condition boost specifications. If a document matches multiple
       conditions in the specifications, boost scores from these specifications
       are all applied and combined in a non-linear way. Maximum number of
       specifications is 20.
       
      repeated .google.cloud.dialogflow.cx.v3beta1.BoostSpec.ConditionBoostSpec condition_boost_specs = 1 [(.google.api.field_behavior) = OPTIONAL];
    • addConditionBoostSpecs

      public BoostSpec.Builder addConditionBoostSpecs(int index, BoostSpec.ConditionBoostSpec value)
       Optional. Condition boost specifications. If a document matches multiple
       conditions in the specifications, boost scores from these specifications
       are all applied and combined in a non-linear way. Maximum number of
       specifications is 20.
       
      repeated .google.cloud.dialogflow.cx.v3beta1.BoostSpec.ConditionBoostSpec condition_boost_specs = 1 [(.google.api.field_behavior) = OPTIONAL];
    • addConditionBoostSpecs

      public BoostSpec.Builder addConditionBoostSpecs(BoostSpec.ConditionBoostSpec.Builder builderForValue)
       Optional. Condition boost specifications. If a document matches multiple
       conditions in the specifications, boost scores from these specifications
       are all applied and combined in a non-linear way. Maximum number of
       specifications is 20.
       
      repeated .google.cloud.dialogflow.cx.v3beta1.BoostSpec.ConditionBoostSpec condition_boost_specs = 1 [(.google.api.field_behavior) = OPTIONAL];
    • addConditionBoostSpecs

      public BoostSpec.Builder addConditionBoostSpecs(int index, BoostSpec.ConditionBoostSpec.Builder builderForValue)
       Optional. Condition boost specifications. If a document matches multiple
       conditions in the specifications, boost scores from these specifications
       are all applied and combined in a non-linear way. Maximum number of
       specifications is 20.
       
      repeated .google.cloud.dialogflow.cx.v3beta1.BoostSpec.ConditionBoostSpec condition_boost_specs = 1 [(.google.api.field_behavior) = OPTIONAL];
    • addAllConditionBoostSpecs

      public BoostSpec.Builder addAllConditionBoostSpecs(Iterable<? extends BoostSpec.ConditionBoostSpec> values)
       Optional. Condition boost specifications. If a document matches multiple
       conditions in the specifications, boost scores from these specifications
       are all applied and combined in a non-linear way. Maximum number of
       specifications is 20.
       
      repeated .google.cloud.dialogflow.cx.v3beta1.BoostSpec.ConditionBoostSpec condition_boost_specs = 1 [(.google.api.field_behavior) = OPTIONAL];
    • clearConditionBoostSpecs

      public BoostSpec.Builder clearConditionBoostSpecs()
       Optional. Condition boost specifications. If a document matches multiple
       conditions in the specifications, boost scores from these specifications
       are all applied and combined in a non-linear way. Maximum number of
       specifications is 20.
       
      repeated .google.cloud.dialogflow.cx.v3beta1.BoostSpec.ConditionBoostSpec condition_boost_specs = 1 [(.google.api.field_behavior) = OPTIONAL];
    • removeConditionBoostSpecs

      public BoostSpec.Builder removeConditionBoostSpecs(int index)
       Optional. Condition boost specifications. If a document matches multiple
       conditions in the specifications, boost scores from these specifications
       are all applied and combined in a non-linear way. Maximum number of
       specifications is 20.
       
      repeated .google.cloud.dialogflow.cx.v3beta1.BoostSpec.ConditionBoostSpec condition_boost_specs = 1 [(.google.api.field_behavior) = OPTIONAL];
    • getConditionBoostSpecsBuilder

      public BoostSpec.ConditionBoostSpec.Builder getConditionBoostSpecsBuilder(int index)
       Optional. Condition boost specifications. If a document matches multiple
       conditions in the specifications, boost scores from these specifications
       are all applied and combined in a non-linear way. Maximum number of
       specifications is 20.
       
      repeated .google.cloud.dialogflow.cx.v3beta1.BoostSpec.ConditionBoostSpec condition_boost_specs = 1 [(.google.api.field_behavior) = OPTIONAL];
    • getConditionBoostSpecsOrBuilder

      public BoostSpec.ConditionBoostSpecOrBuilder getConditionBoostSpecsOrBuilder(int index)
       Optional. Condition boost specifications. If a document matches multiple
       conditions in the specifications, boost scores from these specifications
       are all applied and combined in a non-linear way. Maximum number of
       specifications is 20.
       
      repeated .google.cloud.dialogflow.cx.v3beta1.BoostSpec.ConditionBoostSpec condition_boost_specs = 1 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getConditionBoostSpecsOrBuilder in interface BoostSpecOrBuilder
    • getConditionBoostSpecsOrBuilderList

      public List<? extends BoostSpec.ConditionBoostSpecOrBuilder> getConditionBoostSpecsOrBuilderList()
       Optional. Condition boost specifications. If a document matches multiple
       conditions in the specifications, boost scores from these specifications
       are all applied and combined in a non-linear way. Maximum number of
       specifications is 20.
       
      repeated .google.cloud.dialogflow.cx.v3beta1.BoostSpec.ConditionBoostSpec condition_boost_specs = 1 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getConditionBoostSpecsOrBuilderList in interface BoostSpecOrBuilder
    • addConditionBoostSpecsBuilder

      public BoostSpec.ConditionBoostSpec.Builder addConditionBoostSpecsBuilder()
       Optional. Condition boost specifications. If a document matches multiple
       conditions in the specifications, boost scores from these specifications
       are all applied and combined in a non-linear way. Maximum number of
       specifications is 20.
       
      repeated .google.cloud.dialogflow.cx.v3beta1.BoostSpec.ConditionBoostSpec condition_boost_specs = 1 [(.google.api.field_behavior) = OPTIONAL];
    • addConditionBoostSpecsBuilder

      public BoostSpec.ConditionBoostSpec.Builder addConditionBoostSpecsBuilder(int index)
       Optional. Condition boost specifications. If a document matches multiple
       conditions in the specifications, boost scores from these specifications
       are all applied and combined in a non-linear way. Maximum number of
       specifications is 20.
       
      repeated .google.cloud.dialogflow.cx.v3beta1.BoostSpec.ConditionBoostSpec condition_boost_specs = 1 [(.google.api.field_behavior) = OPTIONAL];
    • getConditionBoostSpecsBuilderList

      public List<BoostSpec.ConditionBoostSpec.Builder> getConditionBoostSpecsBuilderList()
       Optional. Condition boost specifications. If a document matches multiple
       conditions in the specifications, boost scores from these specifications
       are all applied and combined in a non-linear way. Maximum number of
       specifications is 20.
       
      repeated .google.cloud.dialogflow.cx.v3beta1.BoostSpec.ConditionBoostSpec condition_boost_specs = 1 [(.google.api.field_behavior) = OPTIONAL];