Class LocationInfo.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<LocationInfo.Builder>
com.google.protobuf.GeneratedMessage.Builder<LocationInfo.Builder>
ai.pipestream.parsed.data.image.v1.LocationInfo.Builder
- All Implemented Interfaces:
LocationInfoOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
LocationInfo
public static final class LocationInfo.Builder
extends com.google.protobuf.GeneratedMessage.Builder<LocationInfo.Builder>
implements LocationInfoOrBuilder
Location information with precise semantics.Protobuf type
ai.pipestream.parsed.data.image.v1.LocationInfo-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()City name.ISO country code.Full country name.GPS latitude in decimal degrees.GPS longitude in decimal degrees.Province or state name.Specific sublocation within city.World region at top level of hierarchy.getCity()City name.com.google.protobuf.ByteStringCity name.ISO country code.com.google.protobuf.ByteStringISO country code.Full country name.com.google.protobuf.ByteStringFull country name.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptordoubleGPS latitude in decimal degrees.doubleGPS longitude in decimal degrees.Province or state name.com.google.protobuf.ByteStringProvince or state name.Specific sublocation within city.com.google.protobuf.ByteStringSpecific sublocation within city.World region at top level of hierarchy.com.google.protobuf.ByteStringWorld region at top level of hierarchy.booleanhasCity()City name.booleanISO country code.booleanFull country name.booleanGPS latitude in decimal degrees.booleanGPS longitude in decimal degrees.booleanProvince or state name.booleanSpecific sublocation within city.booleanWorld region at top level of hierarchy.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(LocationInfo other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) City name.setCityBytes(com.google.protobuf.ByteString value) City name.setCountryCode(String value) ISO country code.setCountryCodeBytes(com.google.protobuf.ByteString value) ISO country code.setCountryName(String value) Full country name.setCountryNameBytes(com.google.protobuf.ByteString value) Full country name.setLatitude(double value) GPS latitude in decimal degrees.setLongitude(double value) GPS longitude in decimal degrees.setProvinceState(String value) Province or state name.setProvinceStateBytes(com.google.protobuf.ByteString value) Province or state name.setSublocation(String value) Specific sublocation within city.setSublocationBytes(com.google.protobuf.ByteString value) Specific sublocation within city.setWorldRegion(String value) World region at top level of hierarchy.setWorldRegionBytes(com.google.protobuf.ByteString value) World region at top level of hierarchy.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<LocationInfo.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<LocationInfo.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<LocationInfo.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<LocationInfo.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<LocationInfo.Builder>
-
mergeFrom
public LocationInfo.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<LocationInfo.Builder>- Throws:
IOException
-
hasWorldRegion
public boolean hasWorldRegion()World region at top level of hierarchy.
optional string world_region = 1 [json_name = "worldRegion"];- Specified by:
hasWorldRegionin interfaceLocationInfoOrBuilder- Returns:
- Whether the worldRegion field is set.
-
getWorldRegion
World region at top level of hierarchy.
optional string world_region = 1 [json_name = "worldRegion"];- Specified by:
getWorldRegionin interfaceLocationInfoOrBuilder- Returns:
- The worldRegion.
-
getWorldRegionBytes
public com.google.protobuf.ByteString getWorldRegionBytes()World region at top level of hierarchy.
optional string world_region = 1 [json_name = "worldRegion"];- Specified by:
getWorldRegionBytesin interfaceLocationInfoOrBuilder- Returns:
- The bytes for worldRegion.
-
setWorldRegion
World region at top level of hierarchy.
optional string world_region = 1 [json_name = "worldRegion"];- Parameters:
value- The worldRegion to set.- Returns:
- This builder for chaining.
-
clearWorldRegion
World region at top level of hierarchy.
optional string world_region = 1 [json_name = "worldRegion"];- Returns:
- This builder for chaining.
-
setWorldRegionBytes
World region at top level of hierarchy.
optional string world_region = 1 [json_name = "worldRegion"];- Parameters:
value- The bytes for worldRegion to set.- Returns:
- This builder for chaining.
-
hasCountryName
public boolean hasCountryName()Full country name.
optional string country_name = 2 [json_name = "countryName"];- Specified by:
hasCountryNamein interfaceLocationInfoOrBuilder- Returns:
- Whether the countryName field is set.
-
getCountryName
Full country name.
optional string country_name = 2 [json_name = "countryName"];- Specified by:
getCountryNamein interfaceLocationInfoOrBuilder- Returns:
- The countryName.
-
getCountryNameBytes
public com.google.protobuf.ByteString getCountryNameBytes()Full country name.
optional string country_name = 2 [json_name = "countryName"];- Specified by:
getCountryNameBytesin interfaceLocationInfoOrBuilder- Returns:
- The bytes for countryName.
-
setCountryName
Full country name.
optional string country_name = 2 [json_name = "countryName"];- Parameters:
value- The countryName to set.- Returns:
- This builder for chaining.
-
clearCountryName
Full country name.
optional string country_name = 2 [json_name = "countryName"];- Returns:
- This builder for chaining.
-
setCountryNameBytes
Full country name.
optional string country_name = 2 [json_name = "countryName"];- Parameters:
value- The bytes for countryName to set.- Returns:
- This builder for chaining.
-
hasCountryCode
public boolean hasCountryCode()ISO country code.
optional string country_code = 3 [json_name = "countryCode"];- Specified by:
hasCountryCodein interfaceLocationInfoOrBuilder- Returns:
- Whether the countryCode field is set.
-
getCountryCode
ISO country code.
optional string country_code = 3 [json_name = "countryCode"];- Specified by:
getCountryCodein interfaceLocationInfoOrBuilder- Returns:
- The countryCode.
-
getCountryCodeBytes
public com.google.protobuf.ByteString getCountryCodeBytes()ISO country code.
optional string country_code = 3 [json_name = "countryCode"];- Specified by:
getCountryCodeBytesin interfaceLocationInfoOrBuilder- Returns:
- The bytes for countryCode.
-
setCountryCode
ISO country code.
optional string country_code = 3 [json_name = "countryCode"];- Parameters:
value- The countryCode to set.- Returns:
- This builder for chaining.
-
clearCountryCode
ISO country code.
optional string country_code = 3 [json_name = "countryCode"];- Returns:
- This builder for chaining.
-
setCountryCodeBytes
ISO country code.
optional string country_code = 3 [json_name = "countryCode"];- Parameters:
value- The bytes for countryCode to set.- Returns:
- This builder for chaining.
-
hasProvinceState
public boolean hasProvinceState()Province or state name.
optional string province_state = 4 [json_name = "provinceState"];- Specified by:
hasProvinceStatein interfaceLocationInfoOrBuilder- Returns:
- Whether the provinceState field is set.
-
getProvinceState
Province or state name.
optional string province_state = 4 [json_name = "provinceState"];- Specified by:
getProvinceStatein interfaceLocationInfoOrBuilder- Returns:
- The provinceState.
-
getProvinceStateBytes
public com.google.protobuf.ByteString getProvinceStateBytes()Province or state name.
optional string province_state = 4 [json_name = "provinceState"];- Specified by:
getProvinceStateBytesin interfaceLocationInfoOrBuilder- Returns:
- The bytes for provinceState.
-
setProvinceState
Province or state name.
optional string province_state = 4 [json_name = "provinceState"];- Parameters:
value- The provinceState to set.- Returns:
- This builder for chaining.
-
clearProvinceState
Province or state name.
optional string province_state = 4 [json_name = "provinceState"];- Returns:
- This builder for chaining.
-
setProvinceStateBytes
Province or state name.
optional string province_state = 4 [json_name = "provinceState"];- Parameters:
value- The bytes for provinceState to set.- Returns:
- This builder for chaining.
-
hasCity
public boolean hasCity()City name.
optional string city = 5 [json_name = "city"];- Specified by:
hasCityin interfaceLocationInfoOrBuilder- Returns:
- Whether the city field is set.
-
getCity
City name.
optional string city = 5 [json_name = "city"];- Specified by:
getCityin interfaceLocationInfoOrBuilder- Returns:
- The city.
-
getCityBytes
public com.google.protobuf.ByteString getCityBytes()City name.
optional string city = 5 [json_name = "city"];- Specified by:
getCityBytesin interfaceLocationInfoOrBuilder- Returns:
- The bytes for city.
-
setCity
City name.
optional string city = 5 [json_name = "city"];- Parameters:
value- The city to set.- Returns:
- This builder for chaining.
-
clearCity
City name.
optional string city = 5 [json_name = "city"];- Returns:
- This builder for chaining.
-
setCityBytes
City name.
optional string city = 5 [json_name = "city"];- Parameters:
value- The bytes for city to set.- Returns:
- This builder for chaining.
-
hasSublocation
public boolean hasSublocation()Specific sublocation within city.
optional string sublocation = 6 [json_name = "sublocation"];- Specified by:
hasSublocationin interfaceLocationInfoOrBuilder- Returns:
- Whether the sublocation field is set.
-
getSublocation
Specific sublocation within city.
optional string sublocation = 6 [json_name = "sublocation"];- Specified by:
getSublocationin interfaceLocationInfoOrBuilder- Returns:
- The sublocation.
-
getSublocationBytes
public com.google.protobuf.ByteString getSublocationBytes()Specific sublocation within city.
optional string sublocation = 6 [json_name = "sublocation"];- Specified by:
getSublocationBytesin interfaceLocationInfoOrBuilder- Returns:
- The bytes for sublocation.
-
setSublocation
Specific sublocation within city.
optional string sublocation = 6 [json_name = "sublocation"];- Parameters:
value- The sublocation to set.- Returns:
- This builder for chaining.
-
clearSublocation
Specific sublocation within city.
optional string sublocation = 6 [json_name = "sublocation"];- Returns:
- This builder for chaining.
-
setSublocationBytes
Specific sublocation within city.
optional string sublocation = 6 [json_name = "sublocation"];- Parameters:
value- The bytes for sublocation to set.- Returns:
- This builder for chaining.
-
hasLatitude
public boolean hasLatitude()GPS latitude in decimal degrees.
optional double latitude = 7 [json_name = "latitude"];- Specified by:
hasLatitudein interfaceLocationInfoOrBuilder- Returns:
- Whether the latitude field is set.
-
getLatitude
public double getLatitude()GPS latitude in decimal degrees.
optional double latitude = 7 [json_name = "latitude"];- Specified by:
getLatitudein interfaceLocationInfoOrBuilder- Returns:
- The latitude.
-
setLatitude
GPS latitude in decimal degrees.
optional double latitude = 7 [json_name = "latitude"];- Parameters:
value- The latitude to set.- Returns:
- This builder for chaining.
-
clearLatitude
GPS latitude in decimal degrees.
optional double latitude = 7 [json_name = "latitude"];- Returns:
- This builder for chaining.
-
hasLongitude
public boolean hasLongitude()GPS longitude in decimal degrees.
optional double longitude = 8 [json_name = "longitude"];- Specified by:
hasLongitudein interfaceLocationInfoOrBuilder- Returns:
- Whether the longitude field is set.
-
getLongitude
public double getLongitude()GPS longitude in decimal degrees.
optional double longitude = 8 [json_name = "longitude"];- Specified by:
getLongitudein interfaceLocationInfoOrBuilder- Returns:
- The longitude.
-
setLongitude
GPS longitude in decimal degrees.
optional double longitude = 8 [json_name = "longitude"];- Parameters:
value- The longitude to set.- Returns:
- This builder for chaining.
-
clearLongitude
GPS longitude in decimal degrees.
optional double longitude = 8 [json_name = "longitude"];- Returns:
- This builder for chaining.
-