Class EventLocation (0.14.0)

public final class EventLocation extends GeneratedMessage implements EventLocationOrBuilder

The location where the event occurred.

Protobuf type google.ads.datamanager.v1.EventLocation

Static Fields

CITY_FIELD_NUMBER

public static final int CITY_FIELD_NUMBER
Field Value
Type Description
int

CONTINENT_CODE_FIELD_NUMBER

public static final int CONTINENT_CODE_FIELD_NUMBER
Field Value
Type Description
int

REGION_CODE_FIELD_NUMBER

public static final int REGION_CODE_FIELD_NUMBER
Field Value
Type Description
int

STORE_ID_FIELD_NUMBER

public static final int STORE_ID_FIELD_NUMBER
Field Value
Type Description
int

SUBCONTINENT_CODE_FIELD_NUMBER

public static final int SUBCONTINENT_CODE_FIELD_NUMBER
Field Value
Type Description
int

SUBDIVISION_CODE_FIELD_NUMBER

public static final int SUBDIVISION_CODE_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static EventLocation getDefaultInstance()
Returns
Type Description
EventLocation

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

newBuilder()

public static EventLocation.Builder newBuilder()
Returns
Type Description
EventLocation.Builder

newBuilder(EventLocation prototype)

public static EventLocation.Builder newBuilder(EventLocation prototype)
Parameter
Name Description
prototype EventLocation
Returns
Type Description
EventLocation.Builder

parseDelimitedFrom(InputStream input)

public static EventLocation parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
EventLocation
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static EventLocation parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
EventLocation
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static EventLocation parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
EventLocation
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static EventLocation parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
EventLocation
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static EventLocation parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
EventLocation
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static EventLocation parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
EventLocation
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static EventLocation parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
EventLocation
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static EventLocation parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
EventLocation
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static EventLocation parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
EventLocation
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static EventLocation parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
EventLocation
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static EventLocation parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
EventLocation
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static EventLocation parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
EventLocation
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<EventLocation> parser()
Returns
Type Description
Parser<EventLocation>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getCity()

public String getCity()

Optional. The name of the city where the event occurred.

string city = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The city.

getCityBytes()

public ByteString getCityBytes()

Optional. The name of the city where the event occurred.

string city = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for city.

getContinentCode()

public String getContinentCode()

Optional. The continent code in UN M49 format where the event occurred.

string continent_code = 6 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The continentCode.

getContinentCodeBytes()

public ByteString getContinentCodeBytes()

Optional. The continent code in UN M49 format where the event occurred.

string continent_code = 6 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for continentCode.

getDefaultInstanceForType()

public EventLocation getDefaultInstanceForType()
Returns
Type Description
EventLocation

getParserForType()

public Parser<EventLocation> getParserForType()
Returns
Type Description
Parser<EventLocation>
Overrides

getRegionCode()

public String getRegionCode()

Optional. The 2-letter CLDR region code of the user's address.

string region_code = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The regionCode.

getRegionCodeBytes()

public ByteString getRegionCodeBytes()

Optional. The 2-letter CLDR region code of the user's address.

string region_code = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for regionCode.

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

getStoreId()

public String getStoreId()

Optional. Required for Store Sales. The identifier to represent a physical store where the event happened.

string store_id = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The storeId.

getStoreIdBytes()

public ByteString getStoreIdBytes()

Optional. Required for Store Sales. The identifier to represent a physical store where the event happened.

string store_id = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for storeId.

getSubcontinentCode()

public String getSubcontinentCode()

Optional. The subcontinent code in UN M49 format where the event occurred.

string subcontinent_code = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The subcontinentCode.

getSubcontinentCodeBytes()

public ByteString getSubcontinentCodeBytes()

Optional. The subcontinent code in UN M49 format where the event occurred.

string subcontinent_code = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for subcontinentCode.

getSubdivisionCode()

public String getSubdivisionCode()

Optional. The ISO 3166-2 subdivision code where the event occurred.

string subdivision_code = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The subdivisionCode.

getSubdivisionCodeBytes()

public ByteString getSubdivisionCodeBytes()

Optional. The ISO 3166-2 subdivision code where the event occurred.

string subdivision_code = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for subdivisionCode.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public EventLocation.Builder newBuilderForType()
Returns
Type Description
EventLocation.Builder

newBuilderForType(AbstractMessage.BuilderParent parent)

protected EventLocation.Builder newBuilderForType(AbstractMessage.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
EventLocation.Builder
Overrides

toBuilder()

public EventLocation.Builder toBuilder()
Returns
Type Description
EventLocation.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException