Class SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.NumberConstraint.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.NumberConstraint.Builder>
com.google.cloud.discoveryengine.v1beta.SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.NumberConstraint.Builder
- All Implemented Interfaces:
SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.NumberConstraintOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.NumberConstraint
public static final class SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.NumberConstraint.Builder
extends com.google.protobuf.GeneratedMessage.Builder<SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.NumberConstraint.Builder>
implements SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.NumberConstraintOrBuilder
Constraint expression of a number field. Example: price < 100.Protobuf type
google.cloud.discoveryengine.v1beta.SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.NumberConstraint-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()The comparison operation performed between the field value and the value specified in the constraint.Name of the numerical field as defined in the schema.Identifies the keywords within the search query that match a filter.The value specified in the numerical constraint.The comparison operation performed between the field value and the value specified in the constraint.intThe comparison operation performed between the field value and the value specified in the constraint.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorName of the numerical field as defined in the schema.com.google.protobuf.ByteStringName of the numerical field as defined in the schema.Identifies the keywords within the search query that match a filter.com.google.protobuf.ByteStringIdentifies the keywords within the search query that match a filter.doublegetValue()The value specified in the numerical constraint.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.NumberConstraint other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) setComparison(SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.NumberConstraint.Comparison value) The comparison operation performed between the field value and the value specified in the constraint.setComparisonValue(int value) The comparison operation performed between the field value and the value specified in the constraint.setFieldName(String value) Name of the numerical field as defined in the schema.setFieldNameBytes(com.google.protobuf.ByteString value) Name of the numerical field as defined in the schema.setQuerySegment(String value) Identifies the keywords within the search query that match a filter.setQuerySegmentBytes(com.google.protobuf.ByteString value) Identifies the keywords within the search query that match a filter.setValue(double value) The value specified in the numerical constraint.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.NumberConstraint.Builder>
-
clear
public SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.NumberConstraint.Builder clear()- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.NumberConstraint.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.NumberConstraint.Builder>
-
getDefaultInstanceForType
public SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.NumberConstraint getDefaultInstanceForType()- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.NumberConstraint build()- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.NumberConstraint buildPartial()- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
public SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.NumberConstraint.Builder mergeFrom(com.google.protobuf.Message other) - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.NumberConstraint.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.NumberConstraint.Builder>
-
mergeFrom
public SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.NumberConstraint.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.NumberConstraint.Builder>- Throws:
IOException
-
getFieldName
Name of the numerical field as defined in the schema.
string field_name = 1;- Specified by:
getFieldNamein interfaceSearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.NumberConstraintOrBuilder- Returns:
- The fieldName.
-
getFieldNameBytes
public com.google.protobuf.ByteString getFieldNameBytes()Name of the numerical field as defined in the schema.
string field_name = 1;- Specified by:
getFieldNameBytesin interfaceSearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.NumberConstraintOrBuilder- Returns:
- The bytes for fieldName.
-
setFieldName
public SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.NumberConstraint.Builder setFieldName(String value) Name of the numerical field as defined in the schema.
string field_name = 1;- Parameters:
value- The fieldName to set.- Returns:
- This builder for chaining.
-
clearFieldName
public SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.NumberConstraint.Builder clearFieldName()Name of the numerical field as defined in the schema.
string field_name = 1;- Returns:
- This builder for chaining.
-
setFieldNameBytes
public SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.NumberConstraint.Builder setFieldNameBytes(com.google.protobuf.ByteString value) Name of the numerical field as defined in the schema.
string field_name = 1;- Parameters:
value- The bytes for fieldName to set.- Returns:
- This builder for chaining.
-
getComparisonValue
public int getComparisonValue()The comparison operation performed between the field value and the value specified in the constraint.
.google.cloud.discoveryengine.v1beta.SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.NumberConstraint.Comparison comparison = 2;- Specified by:
getComparisonValuein interfaceSearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.NumberConstraintOrBuilder- Returns:
- The enum numeric value on the wire for comparison.
-
setComparisonValue
public SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.NumberConstraint.Builder setComparisonValue(int value) The comparison operation performed between the field value and the value specified in the constraint.
.google.cloud.discoveryengine.v1beta.SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.NumberConstraint.Comparison comparison = 2;- Parameters:
value- The enum numeric value on the wire for comparison to set.- Returns:
- This builder for chaining.
-
getComparison
public SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.NumberConstraint.Comparison getComparison()The comparison operation performed between the field value and the value specified in the constraint.
.google.cloud.discoveryengine.v1beta.SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.NumberConstraint.Comparison comparison = 2;- Specified by:
getComparisonin interfaceSearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.NumberConstraintOrBuilder- Returns:
- The comparison.
-
setComparison
public SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.NumberConstraint.Builder setComparison(SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.NumberConstraint.Comparison value) The comparison operation performed between the field value and the value specified in the constraint.
.google.cloud.discoveryengine.v1beta.SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.NumberConstraint.Comparison comparison = 2;- Parameters:
value- The comparison to set.- Returns:
- This builder for chaining.
-
clearComparison
public SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.NumberConstraint.Builder clearComparison()The comparison operation performed between the field value and the value specified in the constraint.
.google.cloud.discoveryengine.v1beta.SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.NumberConstraint.Comparison comparison = 2;- Returns:
- This builder for chaining.
-
getValue
public double getValue()The value specified in the numerical constraint.
double value = 3;- Specified by:
getValuein interfaceSearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.NumberConstraintOrBuilder- Returns:
- The value.
-
setValue
public SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.NumberConstraint.Builder setValue(double value) The value specified in the numerical constraint.
double value = 3;- Parameters:
value- The value to set.- Returns:
- This builder for chaining.
-
clearValue
public SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.NumberConstraint.Builder clearValue()The value specified in the numerical constraint.
double value = 3;- Returns:
- This builder for chaining.
-
getQuerySegment
Identifies the keywords within the search query that match a filter.
string query_segment = 4;- Specified by:
getQuerySegmentin interfaceSearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.NumberConstraintOrBuilder- Returns:
- The querySegment.
-
getQuerySegmentBytes
public com.google.protobuf.ByteString getQuerySegmentBytes()Identifies the keywords within the search query that match a filter.
string query_segment = 4;- Specified by:
getQuerySegmentBytesin interfaceSearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.NumberConstraintOrBuilder- Returns:
- The bytes for querySegment.
-
setQuerySegment
public SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.NumberConstraint.Builder setQuerySegment(String value) Identifies the keywords within the search query that match a filter.
string query_segment = 4;- Parameters:
value- The querySegment to set.- Returns:
- This builder for chaining.
-
clearQuerySegment
public SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.NumberConstraint.Builder clearQuerySegment()Identifies the keywords within the search query that match a filter.
string query_segment = 4;- Returns:
- This builder for chaining.
-
setQuerySegmentBytes
public SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.NumberConstraint.Builder setQuerySegmentBytes(com.google.protobuf.ByteString value) Identifies the keywords within the search query that match a filter.
string query_segment = 4;- Parameters:
value- The bytes for querySegment to set.- Returns:
- This builder for chaining.
-