Class EventLocation.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<EventLocation.Builder>
com.buildless.telemetry.EventLocation.Builder
All Implemented Interfaces:
EventLocationOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
EventLocation

public static final class EventLocation.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<EventLocation.Builder> 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
  • Method Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<EventLocation.Builder>
    • clear

      public EventLocation.Builder clear()
      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessageV3.Builder<EventLocation.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<EventLocation.Builder>
    • getDefaultInstanceForType

      public EventLocation getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      public EventLocation build()
      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public EventLocation buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • clone

      public EventLocation.Builder clone()
      Specified by:
      clone in interface com.google.protobuf.Message.Builder
      Specified by:
      clone in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clone in class com.google.protobuf.GeneratedMessageV3.Builder<EventLocation.Builder>
    • setField

      public EventLocation.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
      Specified by:
      setField in interface com.google.protobuf.Message.Builder
      Overrides:
      setField in class com.google.protobuf.GeneratedMessageV3.Builder<EventLocation.Builder>
    • clearField

      public EventLocation.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
      Specified by:
      clearField in interface com.google.protobuf.Message.Builder
      Overrides:
      clearField in class com.google.protobuf.GeneratedMessageV3.Builder<EventLocation.Builder>
    • clearOneof

      public EventLocation.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
      Specified by:
      clearOneof in interface com.google.protobuf.Message.Builder
      Overrides:
      clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<EventLocation.Builder>
    • setRepeatedField

      public EventLocation.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
      Specified by:
      setRepeatedField in interface com.google.protobuf.Message.Builder
      Overrides:
      setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<EventLocation.Builder>
    • addRepeatedField

      public EventLocation.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
      Specified by:
      addRepeatedField in interface com.google.protobuf.Message.Builder
      Overrides:
      addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<EventLocation.Builder>
    • mergeFrom

      public EventLocation.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<EventLocation.Builder>
    • mergeFrom

      public EventLocation.Builder mergeFrom(EventLocation other)
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<EventLocation.Builder>
    • mergeFrom

      public EventLocation.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<EventLocation.Builder>
      Throws:
      IOException
    • 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:
      getSourceIp in interface EventLocationOrBuilder
      Returns:
      The sourceIp.
    • setSourceIp

      public EventLocation.Builder setSourceIp(com.google.protobuf.ByteString value)
       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];
      Parameters:
      value - The sourceIp to set.
      Returns:
      This builder for chaining.
    • clearSourceIp

      public EventLocation.Builder clearSourceIp()
       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];
      Returns:
      This builder for chaining.
    • getTimezone

      public String 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:
      getTimezone in interface EventLocationOrBuilder
      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:
      getTimezoneBytes in interface EventLocationOrBuilder
      Returns:
      The bytes for timezone.
    • setTimezone

      public EventLocation.Builder setTimezone(String value)
       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];
      Parameters:
      value - The timezone to set.
      Returns:
      This builder for chaining.
    • clearTimezone

      public EventLocation.Builder clearTimezone()
       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];
      Returns:
      This builder for chaining.
    • setTimezoneBytes

      public EventLocation.Builder setTimezoneBytes(com.google.protobuf.ByteString value)
       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];
      Parameters:
      value - The bytes for timezone to set.
      Returns:
      This builder for chaining.
    • 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:
      hasPoint in interface EventLocationOrBuilder
      Returns:
      Whether the point field is set.
    • getPoint

      public GeoPoint 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:
      getPoint in interface EventLocationOrBuilder
      Returns:
      The point.
    • setPoint

      public EventLocation.Builder setPoint(GeoPoint value)
       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];
    • setPoint

      public EventLocation.Builder setPoint(GeoPoint.Builder builderForValue)
       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];
    • mergePoint

      public EventLocation.Builder mergePoint(GeoPoint value)
       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];
    • clearPoint

      public EventLocation.Builder clearPoint()
       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];
    • getPointBuilder

      public GeoPoint.Builder getPointBuilder()
       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];
    • getPointOrBuilder

      public GeoPointOrBuilder 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:
      getPointOrBuilder in interface EventLocationOrBuilder
    • getNielsen

      public String 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:
      getNielsen in interface EventLocationOrBuilder
      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:
      getNielsenBytes in interface EventLocationOrBuilder
      Returns:
      The bytes for nielsen.
    • setNielsen

      public EventLocation.Builder setNielsen(String value)
       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];
      Parameters:
      value - The nielsen to set.
      Returns:
      This builder for chaining.
    • clearNielsen

      public EventLocation.Builder clearNielsen()
       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];
      Returns:
      This builder for chaining.
    • setNielsenBytes

      public EventLocation.Builder setNielsenBytes(com.google.protobuf.ByteString value)
       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];
      Parameters:
      value - The bytes for nielsen to set.
      Returns:
      This builder for chaining.
    • getLocality

      public String 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:
      getLocality in interface EventLocationOrBuilder
      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:
      getLocalityBytes in interface EventLocationOrBuilder
      Returns:
      The bytes for locality.
    • setLocality

      public EventLocation.Builder setLocality(String value)
       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];
      Parameters:
      value - The locality to set.
      Returns:
      This builder for chaining.
    • clearLocality

      public EventLocation.Builder clearLocality()
       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];
      Returns:
      This builder for chaining.
    • setLocalityBytes

      public EventLocation.Builder setLocalityBytes(com.google.protobuf.ByteString value)
       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];
      Parameters:
      value - The bytes for locality to set.
      Returns:
      This builder for chaining.
    • getRegion

      public String 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:
      getRegion in interface EventLocationOrBuilder
      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:
      getRegionBytes in interface EventLocationOrBuilder
      Returns:
      The bytes for region.
    • setRegion

      public EventLocation.Builder setRegion(String value)
       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];
      Parameters:
      value - The region to set.
      Returns:
      This builder for chaining.
    • clearRegion

      public EventLocation.Builder clearRegion()
       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];
      Returns:
      This builder for chaining.
    • setRegionBytes

      public EventLocation.Builder setRegionBytes(com.google.protobuf.ByteString value)
       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];
      Parameters:
      value - The bytes for region to set.
      Returns:
      This builder for chaining.
    • getCountry

      public String 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:
      getCountry in interface EventLocationOrBuilder
      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:
      getCountryBytes in interface EventLocationOrBuilder
      Returns:
      The bytes for country.
    • setCountry

      public EventLocation.Builder setCountry(String value)
       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];
      Parameters:
      value - The country to set.
      Returns:
      This builder for chaining.
    • clearCountry

      public EventLocation.Builder clearCountry()
       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];
      Returns:
      This builder for chaining.
    • setCountryBytes

      public EventLocation.Builder setCountryBytes(com.google.protobuf.ByteString value)
       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];
      Parameters:
      value - The bytes for country to set.
      Returns:
      This builder for chaining.
    • getTag

      public String 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:
      getTag in interface EventLocationOrBuilder
      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:
      getTagBytes in interface EventLocationOrBuilder
      Returns:
      The bytes for tag.
    • setTag

      public EventLocation.Builder setTag(String value)
       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];
      Parameters:
      value - The tag to set.
      Returns:
      This builder for chaining.
    • clearTag

      public EventLocation.Builder clearTag()
       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];
      Returns:
      This builder for chaining.
    • setTagBytes

      public EventLocation.Builder setTagBytes(com.google.protobuf.ByteString value)
       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];
      Parameters:
      value - The bytes for tag to set.
      Returns:
      This builder for chaining.
    • getEdge

      public String 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:
      getEdge in interface EventLocationOrBuilder
      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:
      getEdgeBytes in interface EventLocationOrBuilder
      Returns:
      The bytes for edge.
    • setEdge

      public EventLocation.Builder setEdge(String value)
       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];
      Parameters:
      value - The edge to set.
      Returns:
      This builder for chaining.
    • clearEdge

      public EventLocation.Builder clearEdge()
       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];
      Returns:
      This builder for chaining.
    • setEdgeBytes

      public EventLocation.Builder setEdgeBytes(com.google.protobuf.ByteString value)
       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];
      Parameters:
      value - The bytes for edge to set.
      Returns:
      This builder for chaining.
    • setUnknownFields

      public final EventLocation.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
      Specified by:
      setUnknownFields in interface com.google.protobuf.Message.Builder
      Overrides:
      setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<EventLocation.Builder>
    • mergeUnknownFields

      public final EventLocation.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
      Specified by:
      mergeUnknownFields in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<EventLocation.Builder>