Class SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.StringConstraint.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.StringConstraint.Builder>
com.google.cloud.discoveryengine.v1beta.SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.StringConstraint.Builder
- All Implemented Interfaces:
SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.StringConstraintOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.StringConstraint
public static final class SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.StringConstraint.Builder
extends com.google.protobuf.GeneratedMessage.Builder<SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.StringConstraint.Builder>
implements SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.StringConstraintOrBuilder
Constraint expression of a string field.Protobuf type
google.cloud.discoveryengine.v1beta.SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.StringConstraint-
Method Summary
Modifier and TypeMethodDescriptionaddAllValues(Iterable<String> values) Values of the string field.Values of the string field.addValuesBytes(com.google.protobuf.ByteString value) Values of the string field.build()clear()Name of the string field as defined in the schema.Identifies the keywords within the search query that match a filter.Values of the string field.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorName of the string field as defined in the schema.com.google.protobuf.ByteStringName of the string 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.getValues(int index) Values of the string field.com.google.protobuf.ByteStringgetValuesBytes(int index) Values of the string field.intValues of the string field.com.google.protobuf.ProtocolStringListValues of the string field.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.StringConstraint other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) setFieldName(String value) Name of the string field as defined in the schema.setFieldNameBytes(com.google.protobuf.ByteString value) Name of the string 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.Values of the string field.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.StringConstraint.Builder>
-
clear
public SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.StringConstraint.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.StringConstraint.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.StringConstraint.Builder>
-
getDefaultInstanceForType
public SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.StringConstraint getDefaultInstanceForType()- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.StringConstraint build()- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.StringConstraint buildPartial()- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
public SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.StringConstraint.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.StringConstraint.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.StringConstraint.Builder>
-
mergeFrom
public SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.StringConstraint.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.StringConstraint.Builder>- Throws:
IOException
-
getFieldName
Name of the string field as defined in the schema.
string field_name = 1;- Specified by:
getFieldNamein interfaceSearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.StringConstraintOrBuilder- Returns:
- The fieldName.
-
getFieldNameBytes
public com.google.protobuf.ByteString getFieldNameBytes()Name of the string field as defined in the schema.
string field_name = 1;- Specified by:
getFieldNameBytesin interfaceSearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.StringConstraintOrBuilder- Returns:
- The bytes for fieldName.
-
setFieldName
public SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.StringConstraint.Builder setFieldName(String value) Name of the string 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.StringConstraint.Builder clearFieldName()Name of the string field as defined in the schema.
string field_name = 1;- Returns:
- This builder for chaining.
-
setFieldNameBytes
public SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.StringConstraint.Builder setFieldNameBytes(com.google.protobuf.ByteString value) Name of the string field as defined in the schema.
string field_name = 1;- Parameters:
value- The bytes for fieldName to set.- Returns:
- This builder for chaining.
-
getValuesList
public com.google.protobuf.ProtocolStringList getValuesList()Values of the string field. The record will only be returned if the field value matches one of the values specified here.
repeated string values = 2;- Specified by:
getValuesListin interfaceSearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.StringConstraintOrBuilder- Returns:
- A list containing the values.
-
getValuesCount
public int getValuesCount()Values of the string field. The record will only be returned if the field value matches one of the values specified here.
repeated string values = 2;- Specified by:
getValuesCountin interfaceSearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.StringConstraintOrBuilder- Returns:
- The count of values.
-
getValues
Values of the string field. The record will only be returned if the field value matches one of the values specified here.
repeated string values = 2;- Specified by:
getValuesin interfaceSearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.StringConstraintOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The values at the given index.
-
getValuesBytes
public com.google.protobuf.ByteString getValuesBytes(int index) Values of the string field. The record will only be returned if the field value matches one of the values specified here.
repeated string values = 2;- Specified by:
getValuesBytesin interfaceSearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.StringConstraintOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the values at the given index.
-
setValues
public SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.StringConstraint.Builder setValues(int index, String value) Values of the string field. The record will only be returned if the field value matches one of the values specified here.
repeated string values = 2;- Parameters:
index- The index to set the value at.value- The values to set.- Returns:
- This builder for chaining.
-
addValues
public SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.StringConstraint.Builder addValues(String value) Values of the string field. The record will only be returned if the field value matches one of the values specified here.
repeated string values = 2;- Parameters:
value- The values to add.- Returns:
- This builder for chaining.
-
addAllValues
public SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.StringConstraint.Builder addAllValues(Iterable<String> values) Values of the string field. The record will only be returned if the field value matches one of the values specified here.
repeated string values = 2;- Parameters:
values- The values to add.- Returns:
- This builder for chaining.
-
clearValues
public SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.StringConstraint.Builder clearValues()Values of the string field. The record will only be returned if the field value matches one of the values specified here.
repeated string values = 2;- Returns:
- This builder for chaining.
-
addValuesBytes
public SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.StringConstraint.Builder addValuesBytes(com.google.protobuf.ByteString value) Values of the string field. The record will only be returned if the field value matches one of the values specified here.
repeated string values = 2;- Parameters:
value- The bytes of the values to add.- Returns:
- This builder for chaining.
-
getQuerySegment
Identifies the keywords within the search query that match a filter.
string query_segment = 3;- Specified by:
getQuerySegmentin interfaceSearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.StringConstraintOrBuilder- Returns:
- The querySegment.
-
getQuerySegmentBytes
public com.google.protobuf.ByteString getQuerySegmentBytes()Identifies the keywords within the search query that match a filter.
string query_segment = 3;- Specified by:
getQuerySegmentBytesin interfaceSearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.StringConstraintOrBuilder- Returns:
- The bytes for querySegment.
-
setQuerySegment
public SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.StringConstraint.Builder setQuerySegment(String value) Identifies the keywords within the search query that match a filter.
string query_segment = 3;- Parameters:
value- The querySegment to set.- Returns:
- This builder for chaining.
-
clearQuerySegment
public SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.StringConstraint.Builder clearQuerySegment()Identifies the keywords within the search query that match a filter.
string query_segment = 3;- Returns:
- This builder for chaining.
-
setQuerySegmentBytes
public SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.StringConstraint.Builder setQuerySegmentBytes(com.google.protobuf.ByteString value) Identifies the keywords within the search query that match a filter.
string query_segment = 3;- Parameters:
value- The bytes for querySegment to set.- Returns:
- This builder for chaining.
-