Class SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.GeolocationConstraint.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.GeolocationConstraint.Builder>
com.google.cloud.discoveryengine.v1beta.SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.GeolocationConstraint.Builder
- All Implemented Interfaces:
SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.GeolocationConstraintOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.GeolocationConstraint
public static final class SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.GeolocationConstraint.Builder
extends com.google.protobuf.GeneratedMessage.Builder<SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.GeolocationConstraint.Builder>
implements SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.GeolocationConstraintOrBuilder
Constraint of a geolocation field. Name of the geolocation field as defined in the schema.Protobuf type
google.cloud.discoveryengine.v1beta.SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.GeolocationConstraint-
Method Summary
Modifier and TypeMethodDescriptionSearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.GeolocationConstraintbuild()SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.GeolocationConstraintclear()The reference address that was inferred from the input query.The name of the geolocation field as defined in the schema.The latitude of the geolocation inferred from the input query.The longitude of the geolocation inferred from the input query.The radius in meters around the address.The reference address that was inferred from the input query.com.google.protobuf.ByteStringThe reference address that was inferred from the input query.SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.GeolocationConstraintstatic final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorThe name of the geolocation field as defined in the schema.com.google.protobuf.ByteStringThe name of the geolocation field as defined in the schema.doubleThe latitude of the geolocation inferred from the input query.doubleThe longitude of the geolocation inferred from the input query.floatThe radius in meters around the address.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.GeolocationConstraint other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) setAddress(String value) The reference address that was inferred from the input query.setAddressBytes(com.google.protobuf.ByteString value) The reference address that was inferred from the input query.setFieldName(String value) The name of the geolocation field as defined in the schema.setFieldNameBytes(com.google.protobuf.ByteString value) The name of the geolocation field as defined in the schema.setLatitude(double value) The latitude of the geolocation inferred from the input query.setLongitude(double value) The longitude of the geolocation inferred from the input query.setRadiusInMeters(float value) The radius in meters around the address.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.GeolocationConstraint.Builder>
-
clear
public SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.GeolocationConstraint.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.GeolocationConstraint.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.GeolocationConstraint.Builder>
-
getDefaultInstanceForType
public SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.GeolocationConstraint getDefaultInstanceForType()- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.GeolocationConstraint build()- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.GeolocationConstraint buildPartial()- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
public SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.GeolocationConstraint.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.GeolocationConstraint.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.GeolocationConstraint.Builder>
-
mergeFrom
public SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.GeolocationConstraint.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.GeolocationConstraint.Builder>- Throws:
IOException
-
getFieldName
The name of the geolocation field as defined in the schema.
string field_name = 1;- Specified by:
getFieldNamein interfaceSearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.GeolocationConstraintOrBuilder- Returns:
- The fieldName.
-
getFieldNameBytes
public com.google.protobuf.ByteString getFieldNameBytes()The name of the geolocation field as defined in the schema.
string field_name = 1;- Specified by:
getFieldNameBytesin interfaceSearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.GeolocationConstraintOrBuilder- Returns:
- The bytes for fieldName.
-
setFieldName
public SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.GeolocationConstraint.Builder setFieldName(String value) The name of the geolocation 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.GeolocationConstraint.Builder clearFieldName()The name of the geolocation field as defined in the schema.
string field_name = 1;- Returns:
- This builder for chaining.
-
setFieldNameBytes
public SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.GeolocationConstraint.Builder setFieldNameBytes(com.google.protobuf.ByteString value) The name of the geolocation field as defined in the schema.
string field_name = 1;- Parameters:
value- The bytes for fieldName to set.- Returns:
- This builder for chaining.
-
getAddress
The reference address that was inferred from the input query. The proximity of the reference address to the geolocation field will be used to filter the results.
string address = 2;- Specified by:
getAddressin interfaceSearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.GeolocationConstraintOrBuilder- Returns:
- The address.
-
getAddressBytes
public com.google.protobuf.ByteString getAddressBytes()The reference address that was inferred from the input query. The proximity of the reference address to the geolocation field will be used to filter the results.
string address = 2;- Specified by:
getAddressBytesin interfaceSearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.GeolocationConstraintOrBuilder- Returns:
- The bytes for address.
-
setAddress
public SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.GeolocationConstraint.Builder setAddress(String value) The reference address that was inferred from the input query. The proximity of the reference address to the geolocation field will be used to filter the results.
string address = 2;- Parameters:
value- The address to set.- Returns:
- This builder for chaining.
-
clearAddress
public SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.GeolocationConstraint.Builder clearAddress()The reference address that was inferred from the input query. The proximity of the reference address to the geolocation field will be used to filter the results.
string address = 2;- Returns:
- This builder for chaining.
-
setAddressBytes
public SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.GeolocationConstraint.Builder setAddressBytes(com.google.protobuf.ByteString value) The reference address that was inferred from the input query. The proximity of the reference address to the geolocation field will be used to filter the results.
string address = 2;- Parameters:
value- The bytes for address to set.- Returns:
- This builder for chaining.
-
getLatitude
public double getLatitude()The latitude of the geolocation inferred from the input query.
double latitude = 4;- Specified by:
getLatitudein interfaceSearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.GeolocationConstraintOrBuilder- Returns:
- The latitude.
-
setLatitude
public SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.GeolocationConstraint.Builder setLatitude(double value) The latitude of the geolocation inferred from the input query.
double latitude = 4;- Parameters:
value- The latitude to set.- Returns:
- This builder for chaining.
-
clearLatitude
public SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.GeolocationConstraint.Builder clearLatitude()The latitude of the geolocation inferred from the input query.
double latitude = 4;- Returns:
- This builder for chaining.
-
getLongitude
public double getLongitude()The longitude of the geolocation inferred from the input query.
double longitude = 5;- Specified by:
getLongitudein interfaceSearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.GeolocationConstraintOrBuilder- Returns:
- The longitude.
-
setLongitude
public SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.GeolocationConstraint.Builder setLongitude(double value) The longitude of the geolocation inferred from the input query.
double longitude = 5;- Parameters:
value- The longitude to set.- Returns:
- This builder for chaining.
-
clearLongitude
public SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.GeolocationConstraint.Builder clearLongitude()The longitude of the geolocation inferred from the input query.
double longitude = 5;- Returns:
- This builder for chaining.
-
getRadiusInMeters
public float getRadiusInMeters()The radius in meters around the address. The record is returned if the location of the geolocation field is within the radius.
float radius_in_meters = 3;- Specified by:
getRadiusInMetersin interfaceSearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.GeolocationConstraintOrBuilder- Returns:
- The radiusInMeters.
-
setRadiusInMeters
public SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.GeolocationConstraint.Builder setRadiusInMeters(float value) The radius in meters around the address. The record is returned if the location of the geolocation field is within the radius.
float radius_in_meters = 3;- Parameters:
value- The radiusInMeters to set.- Returns:
- This builder for chaining.
-
clearRadiusInMeters
public SearchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.GeolocationConstraint.Builder clearRadiusInMeters()The radius in meters around the address. The record is returned if the location of the geolocation field is within the radius.
float radius_in_meters = 3;- Returns:
- This builder for chaining.
-