Class ProximityInfo
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite
-
- com.google.protobuf.AbstractMessage
-
- com.google.protobuf.GeneratedMessageV3
-
- com.google.ads.googleads.v10.common.ProximityInfo
-
- All Implemented Interfaces:
ProximityInfoOrBuilder,com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,java.io.Serializable
public final class ProximityInfo extends com.google.protobuf.GeneratedMessageV3 implements ProximityInfoOrBuilder
A Proximity criterion. The geo point and radius determine what geographical area is included. The address is a description of the geo point that does not affect ad serving. There are two ways to create a proximity. First, by setting an address and radius. The geo point will be automatically computed. Second, by setting a geo point and radius. The address is an optional label that won't be validated.
Protobuf typegoogle.ads.googleads.v10.common.ProximityInfo- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classProximityInfo.BuilderA Proximity criterion.-
Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage,BuilderType extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter
-
-
Field Summary
Fields Modifier and Type Field Description static intADDRESS_FIELD_NUMBERstatic intGEO_POINT_FIELD_NUMBERstatic intRADIUS_FIELD_NUMBERstatic intRADIUS_UNITS_FIELD_NUMBER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object obj)AddressInfogetAddress()Full address.AddressInfoOrBuildergetAddressOrBuilder()Full address.static ProximityInfogetDefaultInstance()ProximityInfogetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()GeoPointInfogetGeoPoint()Latitude and longitude.GeoPointInfoOrBuildergetGeoPointOrBuilder()Latitude and longitude.com.google.protobuf.Parser<ProximityInfo>getParserForType()doublegetRadius()The radius of the proximity.ProximityRadiusUnitsEnum.ProximityRadiusUnitsgetRadiusUnits()The unit of measurement of the radius.intgetRadiusUnitsValue()The unit of measurement of the radius.intgetSerializedSize()com.google.protobuf.UnknownFieldSetgetUnknownFields()booleanhasAddress()Full address.booleanhasGeoPoint()Latitude and longitude.inthashCode()booleanhasRadius()The radius of the proximity.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()static ProximityInfo.BuildernewBuilder()static ProximityInfo.BuildernewBuilder(ProximityInfo prototype)ProximityInfo.BuildernewBuilderForType()protected ProximityInfo.BuildernewBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)protected java.lang.ObjectnewInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)static ProximityInfoparseDelimitedFrom(java.io.InputStream input)static ProximityInfoparseDelimitedFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static ProximityInfoparseFrom(byte[] data)static ProximityInfoparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static ProximityInfoparseFrom(com.google.protobuf.ByteString data)static ProximityInfoparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static ProximityInfoparseFrom(com.google.protobuf.CodedInputStream input)static ProximityInfoparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static ProximityInfoparseFrom(java.io.InputStream input)static ProximityInfoparseFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static ProximityInfoparseFrom(java.nio.ByteBuffer data)static ProximityInfoparseFrom(java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static com.google.protobuf.Parser<ProximityInfo>parser()ProximityInfo.BuildertoBuilder()voidwriteTo(com.google.protobuf.CodedOutputStream output)-
Methods inherited from class com.google.protobuf.GeneratedMessageV3
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, internalGetMapField, isStringEmpty, makeExtensionsImmutable, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTag
-
Methods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
-
-
-
Field Detail
-
GEO_POINT_FIELD_NUMBER
public static final int GEO_POINT_FIELD_NUMBER
- See Also:
- Constant Field Values
-
RADIUS_FIELD_NUMBER
public static final int RADIUS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
RADIUS_UNITS_FIELD_NUMBER
public static final int RADIUS_UNITS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
ADDRESS_FIELD_NUMBER
public static final int ADDRESS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
-
Method Detail
-
newInstance
protected java.lang.Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
- Overrides:
newInstancein classcom.google.protobuf.GeneratedMessageV3
-
getUnknownFields
public final com.google.protobuf.UnknownFieldSet getUnknownFields()
- Specified by:
getUnknownFieldsin interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3
-
hasGeoPoint
public boolean hasGeoPoint()
Latitude and longitude.
.google.ads.googleads.v10.common.GeoPointInfo geo_point = 1;- Specified by:
hasGeoPointin interfaceProximityInfoOrBuilder- Returns:
- Whether the geoPoint field is set.
-
getGeoPoint
public GeoPointInfo getGeoPoint()
Latitude and longitude.
.google.ads.googleads.v10.common.GeoPointInfo geo_point = 1;- Specified by:
getGeoPointin interfaceProximityInfoOrBuilder- Returns:
- The geoPoint.
-
getGeoPointOrBuilder
public GeoPointInfoOrBuilder getGeoPointOrBuilder()
Latitude and longitude.
.google.ads.googleads.v10.common.GeoPointInfo geo_point = 1;- Specified by:
getGeoPointOrBuilderin interfaceProximityInfoOrBuilder
-
hasRadius
public boolean hasRadius()
The radius of the proximity.
optional double radius = 5;- Specified by:
hasRadiusin interfaceProximityInfoOrBuilder- Returns:
- Whether the radius field is set.
-
getRadius
public double getRadius()
The radius of the proximity.
optional double radius = 5;- Specified by:
getRadiusin interfaceProximityInfoOrBuilder- Returns:
- The radius.
-
getRadiusUnitsValue
public int getRadiusUnitsValue()
The unit of measurement of the radius. Default is KILOMETERS.
.google.ads.googleads.v10.enums.ProximityRadiusUnitsEnum.ProximityRadiusUnits radius_units = 3;- Specified by:
getRadiusUnitsValuein interfaceProximityInfoOrBuilder- Returns:
- The enum numeric value on the wire for radiusUnits.
-
getRadiusUnits
public ProximityRadiusUnitsEnum.ProximityRadiusUnits getRadiusUnits()
The unit of measurement of the radius. Default is KILOMETERS.
.google.ads.googleads.v10.enums.ProximityRadiusUnitsEnum.ProximityRadiusUnits radius_units = 3;- Specified by:
getRadiusUnitsin interfaceProximityInfoOrBuilder- Returns:
- The radiusUnits.
-
hasAddress
public boolean hasAddress()
Full address.
.google.ads.googleads.v10.common.AddressInfo address = 4;- Specified by:
hasAddressin interfaceProximityInfoOrBuilder- Returns:
- Whether the address field is set.
-
getAddress
public AddressInfo getAddress()
Full address.
.google.ads.googleads.v10.common.AddressInfo address = 4;- Specified by:
getAddressin interfaceProximityInfoOrBuilder- Returns:
- The address.
-
getAddressOrBuilder
public AddressInfoOrBuilder getAddressOrBuilder()
Full address.
.google.ads.googleads.v10.common.AddressInfo address = 4;- Specified by:
getAddressOrBuilderin interfaceProximityInfoOrBuilder
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3
-
writeTo
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessageV3- Throws:
java.io.IOException
-
getSerializedSize
public int getSerializedSize()
- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessageV3
-
equals
public boolean equals(java.lang.Object obj)
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()
- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.google.protobuf.AbstractMessage
-
parseFrom
public static ProximityInfo parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static ProximityInfo parseFrom(java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static ProximityInfo parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static ProximityInfo parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static ProximityInfo parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static ProximityInfo parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static ProximityInfo parseFrom(java.io.InputStream input) throws java.io.IOException
- Throws:
java.io.IOException
-
parseFrom
public static ProximityInfo parseFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
- Throws:
java.io.IOException
-
parseDelimitedFrom
public static ProximityInfo parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException
- Throws:
java.io.IOException
-
parseDelimitedFrom
public static ProximityInfo parseDelimitedFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
- Throws:
java.io.IOException
-
parseFrom
public static ProximityInfo parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException
- Throws:
java.io.IOException
-
parseFrom
public static ProximityInfo parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
- Throws:
java.io.IOException
-
newBuilderForType
public ProximityInfo.Builder newBuilderForType()
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
public static ProximityInfo.Builder newBuilder()
-
newBuilder
public static ProximityInfo.Builder newBuilder(ProximityInfo prototype)
-
toBuilder
public ProximityInfo.Builder toBuilder()
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected ProximityInfo.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
- Specified by:
newBuilderForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
public static ProximityInfo getDefaultInstance()
-
parser
public static com.google.protobuf.Parser<ProximityInfo> parser()
-
getParserForType
public com.google.protobuf.Parser<ProximityInfo> getParserForType()
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
public ProximityInfo getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
-