Package com.buildless.telemetry
Class EventLocation
java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessageV3
com.buildless.telemetry.EventLocation
- All Implemented Interfaces:
EventLocationOrBuilder,com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Serializable
public final class EventLocation
extends com.google.protobuf.GeneratedMessageV3
implements EventLocationOrBuilder
## Event Location Specifies originating location information for a telemetry event, to the extent it is known by either the client, or the telemetry system. Location info includes the source IP and other location info embedded in the request.Protobuf type
buildless.telemetry.EventLocation- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final class## Event Location Specifies originating location information for a telemetry event, to the extent it is known by either the client, or the telemetry system.Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT, BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessageLite.InternalOneOfEnum -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intFields inherited from class com.google.protobuf.GeneratedMessageV3
alwaysUseFieldBuilders, unknownFieldsFields inherited from class com.google.protobuf.AbstractMessage
memoizedSizeFields inherited from class com.google.protobuf.AbstractMessageLite
memoizedHashCode -
Method Summary
Modifier and TypeMethodDescriptionbooleanThe only required value for an event locality payload.com.google.protobuf.ByteStringThe only required value for an event locality payload.static EventLocationstatic final com.google.protobuf.Descriptors.DescriptorgetEdge()Detected edge region (state or province) for this event.com.google.protobuf.ByteStringDetected edge region (state or province) for this event.Detected locality (city name) for this event.com.google.protobuf.ByteStringDetected locality (city name) for this event.Detected Nielsen metro (DMA) code for the provided location information on this event.com.google.protobuf.ByteStringDetected Nielsen metro (DMA) code for the provided location information on this event.com.google.protobuf.Parser<EventLocation>getPoint()Specifies an explicit geo-point where this event originates from, or, the telemetry system's best-effort guess as to the originating location for this event.Specifies an explicit geo-point where this event originates from, or, the telemetry system's best-effort guess as to the originating location for this event.Detected region (state or province) for this event.com.google.protobuf.ByteStringDetected region (state or province) for this event.intcom.google.protobuf.ByteStringSpecifies the salted and hashed bytes of the IP address which delivered this event.getTag()Specifies the geo-hash tag value associated with this event location.com.google.protobuf.ByteStringSpecifies the geo-hash tag value associated with this event location.Specifies the timezone code for the originating location of this event.com.google.protobuf.ByteStringSpecifies the timezone code for the originating location of this event.inthashCode()booleanhasPoint()Specifies an explicit geo-point where this event originates from, or, the telemetry system's best-effort guess as to the originating location for this event.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTablefinal booleanstatic EventLocation.Builderstatic EventLocation.BuildernewBuilder(EventLocation prototype) protected EventLocation.BuildernewBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) protected ObjectnewInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) static EventLocationparseDelimitedFrom(InputStream input) static EventLocationparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static EventLocationparseFrom(byte[] data) static EventLocationparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static EventLocationparseFrom(com.google.protobuf.ByteString data) static EventLocationparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static EventLocationparseFrom(com.google.protobuf.CodedInputStream input) static EventLocationparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static EventLocationparseFrom(InputStream input) static EventLocationparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static EventLocationparseFrom(ByteBuffer data) static EventLocationparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<EventLocation>parser()voidwriteTo(com.google.protobuf.CodedOutputStream output) Methods inherited from class com.google.protobuf.GeneratedMessageV3
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, makeMutableCopy, 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, writeStringNoTagMethods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.MessageLite
toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Field Details
-
SOURCE_IP_FIELD_NUMBER
public static final int SOURCE_IP_FIELD_NUMBER- See Also:
-
TIMEZONE_FIELD_NUMBER
public static final int TIMEZONE_FIELD_NUMBER- See Also:
-
POINT_FIELD_NUMBER
public static final int POINT_FIELD_NUMBER- See Also:
-
NIELSEN_FIELD_NUMBER
public static final int NIELSEN_FIELD_NUMBER- See Also:
-
LOCALITY_FIELD_NUMBER
public static final int LOCALITY_FIELD_NUMBER- See Also:
-
REGION_FIELD_NUMBER
public static final int REGION_FIELD_NUMBER- See Also:
-
COUNTRY_FIELD_NUMBER
public static final int COUNTRY_FIELD_NUMBER- See Also:
-
TAG_FIELD_NUMBER
public static final int TAG_FIELD_NUMBER- See Also:
-
EDGE_FIELD_NUMBER
public static final int EDGE_FIELD_NUMBER- See Also:
-
-
Method Details
-
newInstance
- Overrides:
newInstancein 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
-
getSourceIp
public com.google.protobuf.ByteString getSourceIp()Specifies the salted and hashed bytes of the IP address which delivered this event. This value is guaranteed to be stable for a given input IP address within the scope of a Buildless tenant or user account.
bytes source_ip = 1 [json_name = "sourceIp", (.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getSourceIpin interfaceEventLocationOrBuilder- Returns:
- The sourceIp.
-
getTimezone
Specifies the timezone code for the originating location of this event. This value is calculated by the telemetry system on a best-effort basis, or it can be declared and sent by the client.
string timezone = 2 [json_name = "timezone", (.google.api.field_behavior) = OPTIONAL];- Specified by:
getTimezonein interfaceEventLocationOrBuilder- Returns:
- The timezone.
-
getTimezoneBytes
public com.google.protobuf.ByteString getTimezoneBytes()Specifies the timezone code for the originating location of this event. This value is calculated by the telemetry system on a best-effort basis, or it can be declared and sent by the client.
string timezone = 2 [json_name = "timezone", (.google.api.field_behavior) = OPTIONAL];- Specified by:
getTimezoneBytesin interfaceEventLocationOrBuilder- Returns:
- The bytes for timezone.
-
hasPoint
public boolean hasPoint()Specifies an explicit geo-point where this event originates from, or, the telemetry system's best-effort guess as to the originating location for this event. This value is optional, and can be provided by the client.
.buildless.telemetry.GeoPoint point = 3 [json_name = "point", (.google.api.field_behavior) = OPTIONAL];- Specified by:
hasPointin interfaceEventLocationOrBuilder- Returns:
- Whether the point field is set.
-
getPoint
Specifies an explicit geo-point where this event originates from, or, the telemetry system's best-effort guess as to the originating location for this event. This value is optional, and can be provided by the client.
.buildless.telemetry.GeoPoint point = 3 [json_name = "point", (.google.api.field_behavior) = OPTIONAL];- Specified by:
getPointin interfaceEventLocationOrBuilder- Returns:
- The point.
-
getPointOrBuilder
Specifies an explicit geo-point where this event originates from, or, the telemetry system's best-effort guess as to the originating location for this event. This value is optional, and can be provided by the client.
.buildless.telemetry.GeoPoint point = 3 [json_name = "point", (.google.api.field_behavior) = OPTIONAL];- Specified by:
getPointOrBuilderin interfaceEventLocationOrBuilder
-
getNielsen
Detected Nielsen metro (DMA) code for the provided location information on this event. This value is only available if the telemetry system is able to detect and resolve a Nielsen metro code for the provided location information.
string nielsen = 4 [json_name = "nielsen", (.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getNielsenin interfaceEventLocationOrBuilder- Returns:
- The nielsen.
-
getNielsenBytes
public com.google.protobuf.ByteString getNielsenBytes()Detected Nielsen metro (DMA) code for the provided location information on this event. This value is only available if the telemetry system is able to detect and resolve a Nielsen metro code for the provided location information.
string nielsen = 4 [json_name = "nielsen", (.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getNielsenBytesin interfaceEventLocationOrBuilder- Returns:
- The bytes for nielsen.
-
getLocality
Detected locality (city name) for this event. This value is a best-effort calculation, just like the `nielsen` code, unless location info is provided explicitly by the client.
string locality = 5 [json_name = "locality", (.google.api.field_behavior) = OPTIONAL];- Specified by:
getLocalityin interfaceEventLocationOrBuilder- Returns:
- The locality.
-
getLocalityBytes
public com.google.protobuf.ByteString getLocalityBytes()Detected locality (city name) for this event. This value is a best-effort calculation, just like the `nielsen` code, unless location info is provided explicitly by the client.
string locality = 5 [json_name = "locality", (.google.api.field_behavior) = OPTIONAL];- Specified by:
getLocalityBytesin interfaceEventLocationOrBuilder- Returns:
- The bytes for locality.
-
getRegion
Detected region (state or province) for this event. This value is a best-effort calculation, just like the other detected location values listed on this payload.
string region = 6 [json_name = "region", (.google.api.field_behavior) = OPTIONAL];- Specified by:
getRegionin interfaceEventLocationOrBuilder- Returns:
- The region.
-
getRegionBytes
public com.google.protobuf.ByteString getRegionBytes()Detected region (state or province) for this event. This value is a best-effort calculation, just like the other detected location values listed on this payload.
string region = 6 [json_name = "region", (.google.api.field_behavior) = OPTIONAL];- Specified by:
getRegionBytesin interfaceEventLocationOrBuilder- Returns:
- The bytes for region.
-
getCountry
The only required value for an event locality payload. If not provided by the client, this value will be reliably detected (on a best-effort basis) and filled in on behalf of the client by the telemetry system.
string country = 7 [json_name = "country", (.google.api.field_behavior) = OPTIONAL];- Specified by:
getCountryin interfaceEventLocationOrBuilder- Returns:
- The country.
-
getCountryBytes
public com.google.protobuf.ByteString getCountryBytes()The only required value for an event locality payload. If not provided by the client, this value will be reliably detected (on a best-effort basis) and filled in on behalf of the client by the telemetry system.
string country = 7 [json_name = "country", (.google.api.field_behavior) = OPTIONAL];- Specified by:
getCountryBytesin interfaceEventLocationOrBuilder- Returns:
- The bytes for country.
-
getTag
Specifies the geo-hash tag value associated with this event location. This value is typically calculated by the service based on available geographic input material.
string tag = 8 [json_name = "tag", (.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getTagin interfaceEventLocationOrBuilder- Returns:
- The tag.
-
getTagBytes
public com.google.protobuf.ByteString getTagBytes()Specifies the geo-hash tag value associated with this event location. This value is typically calculated by the service based on available geographic input material.
string tag = 8 [json_name = "tag", (.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getTagBytesin interfaceEventLocationOrBuilder- Returns:
- The bytes for tag.
-
getEdge
Detected edge region (state or province) for this event. This value is indicated by the edge CDN service, and specifies the edge region where traffic first entered the network.
string edge = 9 [json_name = "edge", (.google.api.field_behavior) = OPTIONAL];- Specified by:
getEdgein interfaceEventLocationOrBuilder- Returns:
- The edge.
-
getEdgeBytes
public com.google.protobuf.ByteString getEdgeBytes()Detected edge region (state or province) for this event. This value is indicated by the edge CDN service, and specifies the edge region where traffic first entered the network.
string edge = 9 [json_name = "edge", (.google.api.field_behavior) = OPTIONAL];- Specified by:
getEdgeBytesin interfaceEventLocationOrBuilder- Returns:
- The bytes for edge.
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3
-
writeTo
- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessageV3- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessageV3
-
equals
- 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 EventLocation parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static EventLocation parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static EventLocation parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static EventLocation parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static EventLocation parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static EventLocation parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static EventLocation parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- Throws:
IOException
-
parseDelimitedFrom
public static EventLocation parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
public static EventLocation parseFrom(com.google.protobuf.CodedInputStream input) throws IOException - Throws:
IOException
-
parseFrom
public static EventLocation parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
newBuilderForType
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
-
newBuilder
-
toBuilder
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected EventLocation.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) - Specified by:
newBuilderForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
-
parser
-
getParserForType
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-