public static final class EventLocation.Builder extends GeneratedMessage.Builder<EventLocation.Builder> implements EventLocationOrBuilderThe location where the event occurred.
Protobuf type google.ads.datamanager.v1.EventLocation
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > EventLocation.BuilderImplements
EventLocationOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
build()
public EventLocation build()| Returns | |
|---|---|
| Type | Description |
EventLocation |
|
buildPartial()
public EventLocation buildPartial()| Returns | |
|---|---|
| Type | Description |
EventLocation |
|
clear()
public EventLocation.Builder clear()| Returns | |
|---|---|
| Type | Description |
EventLocation.Builder |
|
clearCity()
public EventLocation.Builder clearCity()Optional. The name of the city where the event occurred.
string city = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
EventLocation.Builder |
This builder for chaining. |
clearContinentCode()
public EventLocation.Builder clearContinentCode()Optional. The continent code in UN M49 format where the event occurred.
string continent_code = 6 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
EventLocation.Builder |
This builder for chaining. |
clearRegionCode()
public EventLocation.Builder clearRegionCode()Optional. The 2-letter CLDR region code of the user's address.
string region_code = 4 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
EventLocation.Builder |
This builder for chaining. |
clearStoreId()
public EventLocation.Builder clearStoreId()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 |
EventLocation.Builder |
This builder for chaining. |
clearSubcontinentCode()
public EventLocation.Builder clearSubcontinentCode()Optional. The subcontinent code in UN M49 format where the event occurred.
string subcontinent_code = 5 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
EventLocation.Builder |
This builder for chaining. |
clearSubdivisionCode()
public EventLocation.Builder clearSubdivisionCode()Optional. The ISO 3166-2 subdivision code where the event occurred.
string subdivision_code = 3 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
EventLocation.Builder |
This builder for chaining. |
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 |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
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. |
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. |
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeFrom(EventLocation other)
public EventLocation.Builder mergeFrom(EventLocation other)| Parameter | |
|---|---|
| Name | Description |
other |
EventLocation |
| Returns | |
|---|---|
| Type | Description |
EventLocation.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public EventLocation.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
EventLocation.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public EventLocation.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
EventLocation.Builder |
|
setCity(String value)
public EventLocation.Builder setCity(String value)Optional. The name of the city where the event occurred.
string city = 2 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe city to set. |
| Returns | |
|---|---|
| Type | Description |
EventLocation.Builder |
This builder for chaining. |
setCityBytes(ByteString value)
public EventLocation.Builder setCityBytes(ByteString value)Optional. The name of the city where the event occurred.
string city = 2 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for city to set. |
| Returns | |
|---|---|
| Type | Description |
EventLocation.Builder |
This builder for chaining. |
setContinentCode(String value)
public EventLocation.Builder setContinentCode(String value)Optional. The continent code in UN M49 format where the event occurred.
string continent_code = 6 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe continentCode to set. |
| Returns | |
|---|---|
| Type | Description |
EventLocation.Builder |
This builder for chaining. |
setContinentCodeBytes(ByteString value)
public EventLocation.Builder setContinentCodeBytes(ByteString value)Optional. The continent code in UN M49 format where the event occurred.
string continent_code = 6 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for continentCode to set. |
| Returns | |
|---|---|
| Type | Description |
EventLocation.Builder |
This builder for chaining. |
setRegionCode(String value)
public EventLocation.Builder setRegionCode(String value)Optional. The 2-letter CLDR region code of the user's address.
string region_code = 4 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe regionCode to set. |
| Returns | |
|---|---|
| Type | Description |
EventLocation.Builder |
This builder for chaining. |
setRegionCodeBytes(ByteString value)
public EventLocation.Builder setRegionCodeBytes(ByteString value)Optional. The 2-letter CLDR region code of the user's address.
string region_code = 4 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for regionCode to set. |
| Returns | |
|---|---|
| Type | Description |
EventLocation.Builder |
This builder for chaining. |
setStoreId(String value)
public EventLocation.Builder setStoreId(String value)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];
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe storeId to set. |
| Returns | |
|---|---|
| Type | Description |
EventLocation.Builder |
This builder for chaining. |
setStoreIdBytes(ByteString value)
public EventLocation.Builder setStoreIdBytes(ByteString value)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];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for storeId to set. |
| Returns | |
|---|---|
| Type | Description |
EventLocation.Builder |
This builder for chaining. |
setSubcontinentCode(String value)
public EventLocation.Builder setSubcontinentCode(String value)Optional. The subcontinent code in UN M49 format where the event occurred.
string subcontinent_code = 5 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe subcontinentCode to set. |
| Returns | |
|---|---|
| Type | Description |
EventLocation.Builder |
This builder for chaining. |
setSubcontinentCodeBytes(ByteString value)
public EventLocation.Builder setSubcontinentCodeBytes(ByteString value)Optional. The subcontinent code in UN M49 format where the event occurred.
string subcontinent_code = 5 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for subcontinentCode to set. |
| Returns | |
|---|---|
| Type | Description |
EventLocation.Builder |
This builder for chaining. |
setSubdivisionCode(String value)
public EventLocation.Builder setSubdivisionCode(String value)Optional. The ISO 3166-2 subdivision code where the event occurred.
string subdivision_code = 3 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe subdivisionCode to set. |
| Returns | |
|---|---|
| Type | Description |
EventLocation.Builder |
This builder for chaining. |
setSubdivisionCodeBytes(ByteString value)
public EventLocation.Builder setSubdivisionCodeBytes(ByteString value)Optional. The ISO 3166-2 subdivision code where the event occurred.
string subdivision_code = 3 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for subdivisionCode to set. |
| Returns | |
|---|---|
| Type | Description |
EventLocation.Builder |
This builder for chaining. |