Class BoostSpec.ConditionBoostSpec.BoostControlSpec.Builder

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

public static final class BoostSpec.ConditionBoostSpec.BoostControlSpec.Builder extends com.google.protobuf.GeneratedMessage.Builder<BoostSpec.ConditionBoostSpec.BoostControlSpec.Builder> implements BoostSpec.ConditionBoostSpec.BoostControlSpecOrBuilder
 Specification for custom ranking based on customer specified attribute
 value. It provides more controls for customized ranking than the simple
 (condition, boost) combination above.
 
Protobuf type google.cloud.dialogflow.cx.v3beta1.BoostSpec.ConditionBoostSpec.BoostControlSpec
  • 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.ConditionBoostSpec.BoostControlSpec.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.ConditionBoostSpec.BoostControlSpec.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.ConditionBoostSpec.BoostControlSpec.Builder>
    • getDefaultInstanceForType

      public BoostSpec.ConditionBoostSpec.BoostControlSpec 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

      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

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

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

      public String getFieldName()
       Optional. The name of the field whose value will be used to determine
       the boost amount.
       
      string field_name = 1 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getFieldName in interface BoostSpec.ConditionBoostSpec.BoostControlSpecOrBuilder
      Returns:
      The fieldName.
    • getFieldNameBytes

      public com.google.protobuf.ByteString getFieldNameBytes()
       Optional. The name of the field whose value will be used to determine
       the boost amount.
       
      string field_name = 1 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getFieldNameBytes in interface BoostSpec.ConditionBoostSpec.BoostControlSpecOrBuilder
      Returns:
      The bytes for fieldName.
    • setFieldName

       Optional. The name of the field whose value will be used to determine
       the boost amount.
       
      string field_name = 1 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The fieldName to set.
      Returns:
      This builder for chaining.
    • clearFieldName

       Optional. The name of the field whose value will be used to determine
       the boost amount.
       
      string field_name = 1 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • setFieldNameBytes

      public BoostSpec.ConditionBoostSpec.BoostControlSpec.Builder setFieldNameBytes(com.google.protobuf.ByteString value)
       Optional. The name of the field whose value will be used to determine
       the boost amount.
       
      string field_name = 1 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The bytes for fieldName to set.
      Returns:
      This builder for chaining.
    • getAttributeTypeValue

      public int getAttributeTypeValue()
       Optional. The attribute type to be used to determine the boost amount.
       The attribute value can be derived from the field value of the
       specified field_name. In the case of numerical it is straightforward
       i.e. attribute_value = numerical_field_value. In the case of freshness
       however, attribute_value = (time.now() - datetime_field_value).
       
      .google.cloud.dialogflow.cx.v3beta1.BoostSpec.ConditionBoostSpec.BoostControlSpec.AttributeType attribute_type = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getAttributeTypeValue in interface BoostSpec.ConditionBoostSpec.BoostControlSpecOrBuilder
      Returns:
      The enum numeric value on the wire for attributeType.
    • setAttributeTypeValue

      public BoostSpec.ConditionBoostSpec.BoostControlSpec.Builder setAttributeTypeValue(int value)
       Optional. The attribute type to be used to determine the boost amount.
       The attribute value can be derived from the field value of the
       specified field_name. In the case of numerical it is straightforward
       i.e. attribute_value = numerical_field_value. In the case of freshness
       however, attribute_value = (time.now() - datetime_field_value).
       
      .google.cloud.dialogflow.cx.v3beta1.BoostSpec.ConditionBoostSpec.BoostControlSpec.AttributeType attribute_type = 2 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The enum numeric value on the wire for attributeType to set.
      Returns:
      This builder for chaining.
    • getAttributeType

       Optional. The attribute type to be used to determine the boost amount.
       The attribute value can be derived from the field value of the
       specified field_name. In the case of numerical it is straightforward
       i.e. attribute_value = numerical_field_value. In the case of freshness
       however, attribute_value = (time.now() - datetime_field_value).
       
      .google.cloud.dialogflow.cx.v3beta1.BoostSpec.ConditionBoostSpec.BoostControlSpec.AttributeType attribute_type = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getAttributeType in interface BoostSpec.ConditionBoostSpec.BoostControlSpecOrBuilder
      Returns:
      The attributeType.
    • setAttributeType

       Optional. The attribute type to be used to determine the boost amount.
       The attribute value can be derived from the field value of the
       specified field_name. In the case of numerical it is straightforward
       i.e. attribute_value = numerical_field_value. In the case of freshness
       however, attribute_value = (time.now() - datetime_field_value).
       
      .google.cloud.dialogflow.cx.v3beta1.BoostSpec.ConditionBoostSpec.BoostControlSpec.AttributeType attribute_type = 2 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The attributeType to set.
      Returns:
      This builder for chaining.
    • clearAttributeType

       Optional. The attribute type to be used to determine the boost amount.
       The attribute value can be derived from the field value of the
       specified field_name. In the case of numerical it is straightforward
       i.e. attribute_value = numerical_field_value. In the case of freshness
       however, attribute_value = (time.now() - datetime_field_value).
       
      .google.cloud.dialogflow.cx.v3beta1.BoostSpec.ConditionBoostSpec.BoostControlSpec.AttributeType attribute_type = 2 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • getInterpolationTypeValue

      public int getInterpolationTypeValue()
       Optional. The interpolation type to be applied to connect the control
       points listed below.
       
      .google.cloud.dialogflow.cx.v3beta1.BoostSpec.ConditionBoostSpec.BoostControlSpec.InterpolationType interpolation_type = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getInterpolationTypeValue in interface BoostSpec.ConditionBoostSpec.BoostControlSpecOrBuilder
      Returns:
      The enum numeric value on the wire for interpolationType.
    • setInterpolationTypeValue

      public BoostSpec.ConditionBoostSpec.BoostControlSpec.Builder setInterpolationTypeValue(int value)
       Optional. The interpolation type to be applied to connect the control
       points listed below.
       
      .google.cloud.dialogflow.cx.v3beta1.BoostSpec.ConditionBoostSpec.BoostControlSpec.InterpolationType interpolation_type = 3 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The enum numeric value on the wire for interpolationType to set.
      Returns:
      This builder for chaining.
    • getInterpolationType

       Optional. The interpolation type to be applied to connect the control
       points listed below.
       
      .google.cloud.dialogflow.cx.v3beta1.BoostSpec.ConditionBoostSpec.BoostControlSpec.InterpolationType interpolation_type = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getInterpolationType in interface BoostSpec.ConditionBoostSpec.BoostControlSpecOrBuilder
      Returns:
      The interpolationType.
    • setInterpolationType

       Optional. The interpolation type to be applied to connect the control
       points listed below.
       
      .google.cloud.dialogflow.cx.v3beta1.BoostSpec.ConditionBoostSpec.BoostControlSpec.InterpolationType interpolation_type = 3 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The interpolationType to set.
      Returns:
      This builder for chaining.
    • clearInterpolationType

       Optional. The interpolation type to be applied to connect the control
       points listed below.
       
      .google.cloud.dialogflow.cx.v3beta1.BoostSpec.ConditionBoostSpec.BoostControlSpec.InterpolationType interpolation_type = 3 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • getControlPointsList

       Optional. The control points used to define the curve. The monotonic
       function (defined through the interpolation_type above) passes through
       the control points listed here.
       
      repeated .google.cloud.dialogflow.cx.v3beta1.BoostSpec.ConditionBoostSpec.BoostControlSpec.ControlPoint control_points = 4 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getControlPointsList in interface BoostSpec.ConditionBoostSpec.BoostControlSpecOrBuilder
    • getControlPointsCount

      public int getControlPointsCount()
       Optional. The control points used to define the curve. The monotonic
       function (defined through the interpolation_type above) passes through
       the control points listed here.
       
      repeated .google.cloud.dialogflow.cx.v3beta1.BoostSpec.ConditionBoostSpec.BoostControlSpec.ControlPoint control_points = 4 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getControlPointsCount in interface BoostSpec.ConditionBoostSpec.BoostControlSpecOrBuilder
    • getControlPoints

       Optional. The control points used to define the curve. The monotonic
       function (defined through the interpolation_type above) passes through
       the control points listed here.
       
      repeated .google.cloud.dialogflow.cx.v3beta1.BoostSpec.ConditionBoostSpec.BoostControlSpec.ControlPoint control_points = 4 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getControlPoints in interface BoostSpec.ConditionBoostSpec.BoostControlSpecOrBuilder
    • setControlPoints

       Optional. The control points used to define the curve. The monotonic
       function (defined through the interpolation_type above) passes through
       the control points listed here.
       
      repeated .google.cloud.dialogflow.cx.v3beta1.BoostSpec.ConditionBoostSpec.BoostControlSpec.ControlPoint control_points = 4 [(.google.api.field_behavior) = OPTIONAL];
    • setControlPoints

       Optional. The control points used to define the curve. The monotonic
       function (defined through the interpolation_type above) passes through
       the control points listed here.
       
      repeated .google.cloud.dialogflow.cx.v3beta1.BoostSpec.ConditionBoostSpec.BoostControlSpec.ControlPoint control_points = 4 [(.google.api.field_behavior) = OPTIONAL];
    • addControlPoints

       Optional. The control points used to define the curve. The monotonic
       function (defined through the interpolation_type above) passes through
       the control points listed here.
       
      repeated .google.cloud.dialogflow.cx.v3beta1.BoostSpec.ConditionBoostSpec.BoostControlSpec.ControlPoint control_points = 4 [(.google.api.field_behavior) = OPTIONAL];
    • addControlPoints

       Optional. The control points used to define the curve. The monotonic
       function (defined through the interpolation_type above) passes through
       the control points listed here.
       
      repeated .google.cloud.dialogflow.cx.v3beta1.BoostSpec.ConditionBoostSpec.BoostControlSpec.ControlPoint control_points = 4 [(.google.api.field_behavior) = OPTIONAL];
    • addControlPoints

       Optional. The control points used to define the curve. The monotonic
       function (defined through the interpolation_type above) passes through
       the control points listed here.
       
      repeated .google.cloud.dialogflow.cx.v3beta1.BoostSpec.ConditionBoostSpec.BoostControlSpec.ControlPoint control_points = 4 [(.google.api.field_behavior) = OPTIONAL];
    • addControlPoints

       Optional. The control points used to define the curve. The monotonic
       function (defined through the interpolation_type above) passes through
       the control points listed here.
       
      repeated .google.cloud.dialogflow.cx.v3beta1.BoostSpec.ConditionBoostSpec.BoostControlSpec.ControlPoint control_points = 4 [(.google.api.field_behavior) = OPTIONAL];
    • addAllControlPoints

       Optional. The control points used to define the curve. The monotonic
       function (defined through the interpolation_type above) passes through
       the control points listed here.
       
      repeated .google.cloud.dialogflow.cx.v3beta1.BoostSpec.ConditionBoostSpec.BoostControlSpec.ControlPoint control_points = 4 [(.google.api.field_behavior) = OPTIONAL];
    • clearControlPoints

       Optional. The control points used to define the curve. The monotonic
       function (defined through the interpolation_type above) passes through
       the control points listed here.
       
      repeated .google.cloud.dialogflow.cx.v3beta1.BoostSpec.ConditionBoostSpec.BoostControlSpec.ControlPoint control_points = 4 [(.google.api.field_behavior) = OPTIONAL];
    • removeControlPoints

      public BoostSpec.ConditionBoostSpec.BoostControlSpec.Builder removeControlPoints(int index)
       Optional. The control points used to define the curve. The monotonic
       function (defined through the interpolation_type above) passes through
       the control points listed here.
       
      repeated .google.cloud.dialogflow.cx.v3beta1.BoostSpec.ConditionBoostSpec.BoostControlSpec.ControlPoint control_points = 4 [(.google.api.field_behavior) = OPTIONAL];
    • getControlPointsBuilder

      public BoostSpec.ConditionBoostSpec.BoostControlSpec.ControlPoint.Builder getControlPointsBuilder(int index)
       Optional. The control points used to define the curve. The monotonic
       function (defined through the interpolation_type above) passes through
       the control points listed here.
       
      repeated .google.cloud.dialogflow.cx.v3beta1.BoostSpec.ConditionBoostSpec.BoostControlSpec.ControlPoint control_points = 4 [(.google.api.field_behavior) = OPTIONAL];
    • getControlPointsOrBuilder

      public BoostSpec.ConditionBoostSpec.BoostControlSpec.ControlPointOrBuilder getControlPointsOrBuilder(int index)
       Optional. The control points used to define the curve. The monotonic
       function (defined through the interpolation_type above) passes through
       the control points listed here.
       
      repeated .google.cloud.dialogflow.cx.v3beta1.BoostSpec.ConditionBoostSpec.BoostControlSpec.ControlPoint control_points = 4 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getControlPointsOrBuilder in interface BoostSpec.ConditionBoostSpec.BoostControlSpecOrBuilder
    • getControlPointsOrBuilderList

      public List<? extends BoostSpec.ConditionBoostSpec.BoostControlSpec.ControlPointOrBuilder> getControlPointsOrBuilderList()
       Optional. The control points used to define the curve. The monotonic
       function (defined through the interpolation_type above) passes through
       the control points listed here.
       
      repeated .google.cloud.dialogflow.cx.v3beta1.BoostSpec.ConditionBoostSpec.BoostControlSpec.ControlPoint control_points = 4 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getControlPointsOrBuilderList in interface BoostSpec.ConditionBoostSpec.BoostControlSpecOrBuilder
    • addControlPointsBuilder

       Optional. The control points used to define the curve. The monotonic
       function (defined through the interpolation_type above) passes through
       the control points listed here.
       
      repeated .google.cloud.dialogflow.cx.v3beta1.BoostSpec.ConditionBoostSpec.BoostControlSpec.ControlPoint control_points = 4 [(.google.api.field_behavior) = OPTIONAL];
    • addControlPointsBuilder

      public BoostSpec.ConditionBoostSpec.BoostControlSpec.ControlPoint.Builder addControlPointsBuilder(int index)
       Optional. The control points used to define the curve. The monotonic
       function (defined through the interpolation_type above) passes through
       the control points listed here.
       
      repeated .google.cloud.dialogflow.cx.v3beta1.BoostSpec.ConditionBoostSpec.BoostControlSpec.ControlPoint control_points = 4 [(.google.api.field_behavior) = OPTIONAL];
    • getControlPointsBuilderList

       Optional. The control points used to define the curve. The monotonic
       function (defined through the interpolation_type above) passes through
       the control points listed here.
       
      repeated .google.cloud.dialogflow.cx.v3beta1.BoostSpec.ConditionBoostSpec.BoostControlSpec.ControlPoint control_points = 4 [(.google.api.field_behavior) = OPTIONAL];