Class ClickLocation.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderType>
-
- com.google.protobuf.GeneratedMessageV3.Builder<ClickLocation.Builder>
-
- com.google.ads.googleads.v10.common.ClickLocation.Builder
-
- All Implemented Interfaces:
ClickLocationOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,java.lang.Cloneable
- Enclosing class:
- ClickLocation
public static final class ClickLocation.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<ClickLocation.Builder> implements ClickLocationOrBuilder
Location criteria associated with a click.
Protobuf typegoogle.ads.googleads.v10.common.ClickLocation
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ClickLocation.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)ClickLocationbuild()ClickLocationbuildPartial()ClickLocation.Builderclear()ClickLocation.BuilderclearCity()The city location criterion associated with the impression.ClickLocation.BuilderclearCountry()The country location criterion associated with the impression.ClickLocation.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)ClickLocation.BuilderclearMetro()The metro location criterion associated with the impression.ClickLocation.BuilderclearMostSpecific()The most specific location criterion associated with the impression.ClickLocation.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)ClickLocation.BuilderclearRegion()The region location criterion associated with the impression.ClickLocation.Builderclone()java.lang.StringgetCity()The city location criterion associated with the impression.com.google.protobuf.ByteStringgetCityBytes()The city location criterion associated with the impression.java.lang.StringgetCountry()The country location criterion associated with the impression.com.google.protobuf.ByteStringgetCountryBytes()The country location criterion associated with the impression.ClickLocationgetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()java.lang.StringgetMetro()The metro location criterion associated with the impression.com.google.protobuf.ByteStringgetMetroBytes()The metro location criterion associated with the impression.java.lang.StringgetMostSpecific()The most specific location criterion associated with the impression.com.google.protobuf.ByteStringgetMostSpecificBytes()The most specific location criterion associated with the impression.java.lang.StringgetRegion()The region location criterion associated with the impression.com.google.protobuf.ByteStringgetRegionBytes()The region location criterion associated with the impression.booleanhasCity()The city location criterion associated with the impression.booleanhasCountry()The country location criterion associated with the impression.booleanhasMetro()The metro location criterion associated with the impression.booleanhasMostSpecific()The most specific location criterion associated with the impression.booleanhasRegion()The region location criterion associated with the impression.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()ClickLocation.BuildermergeFrom(ClickLocation other)ClickLocation.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)ClickLocation.BuildermergeFrom(com.google.protobuf.Message other)ClickLocation.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)ClickLocation.BuildersetCity(java.lang.String value)The city location criterion associated with the impression.ClickLocation.BuildersetCityBytes(com.google.protobuf.ByteString value)The city location criterion associated with the impression.ClickLocation.BuildersetCountry(java.lang.String value)The country location criterion associated with the impression.ClickLocation.BuildersetCountryBytes(com.google.protobuf.ByteString value)The country location criterion associated with the impression.ClickLocation.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)ClickLocation.BuildersetMetro(java.lang.String value)The metro location criterion associated with the impression.ClickLocation.BuildersetMetroBytes(com.google.protobuf.ByteString value)The metro location criterion associated with the impression.ClickLocation.BuildersetMostSpecific(java.lang.String value)The most specific location criterion associated with the impression.ClickLocation.BuildersetMostSpecificBytes(com.google.protobuf.ByteString value)The most specific location criterion associated with the impression.ClickLocation.BuildersetRegion(java.lang.String value)The region location criterion associated with the impression.ClickLocation.BuildersetRegionBytes(com.google.protobuf.ByteString value)The region location criterion associated with the impression.ClickLocation.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)ClickLocation.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeFrom, newUninitializedMessageException
-
-
-
-
Method Detail
-
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.Builder<ClickLocation.Builder>
-
clear
public ClickLocation.Builder clear()
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<ClickLocation.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessageV3.Builder<ClickLocation.Builder>
-
getDefaultInstanceForType
public ClickLocation getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public ClickLocation build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public ClickLocation buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public ClickLocation.Builder clone()
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<ClickLocation.Builder>
-
setField
public ClickLocation.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
- Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<ClickLocation.Builder>
-
clearField
public ClickLocation.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<ClickLocation.Builder>
-
clearOneof
public ClickLocation.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<ClickLocation.Builder>
-
setRepeatedField
public ClickLocation.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)
- Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<ClickLocation.Builder>
-
addRepeatedField
public ClickLocation.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
- Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<ClickLocation.Builder>
-
mergeFrom
public ClickLocation.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<ClickLocation.Builder>
-
mergeFrom
public ClickLocation.Builder mergeFrom(ClickLocation other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<ClickLocation.Builder>
-
mergeFrom
public ClickLocation.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<ClickLocation.Builder>- Throws:
java.io.IOException
-
hasCity
public boolean hasCity()
The city location criterion associated with the impression.
optional string city = 6;- Specified by:
hasCityin interfaceClickLocationOrBuilder- Returns:
- Whether the city field is set.
-
getCity
public java.lang.String getCity()
The city location criterion associated with the impression.
optional string city = 6;- Specified by:
getCityin interfaceClickLocationOrBuilder- Returns:
- The city.
-
getCityBytes
public com.google.protobuf.ByteString getCityBytes()
The city location criterion associated with the impression.
optional string city = 6;- Specified by:
getCityBytesin interfaceClickLocationOrBuilder- Returns:
- The bytes for city.
-
setCity
public ClickLocation.Builder setCity(java.lang.String value)
The city location criterion associated with the impression.
optional string city = 6;- Parameters:
value- The city to set.- Returns:
- This builder for chaining.
-
clearCity
public ClickLocation.Builder clearCity()
The city location criterion associated with the impression.
optional string city = 6;- Returns:
- This builder for chaining.
-
setCityBytes
public ClickLocation.Builder setCityBytes(com.google.protobuf.ByteString value)
The city location criterion associated with the impression.
optional string city = 6;- Parameters:
value- The bytes for city to set.- Returns:
- This builder for chaining.
-
hasCountry
public boolean hasCountry()
The country location criterion associated with the impression.
optional string country = 7;- Specified by:
hasCountryin interfaceClickLocationOrBuilder- Returns:
- Whether the country field is set.
-
getCountry
public java.lang.String getCountry()
The country location criterion associated with the impression.
optional string country = 7;- Specified by:
getCountryin interfaceClickLocationOrBuilder- Returns:
- The country.
-
getCountryBytes
public com.google.protobuf.ByteString getCountryBytes()
The country location criterion associated with the impression.
optional string country = 7;- Specified by:
getCountryBytesin interfaceClickLocationOrBuilder- Returns:
- The bytes for country.
-
setCountry
public ClickLocation.Builder setCountry(java.lang.String value)
The country location criterion associated with the impression.
optional string country = 7;- Parameters:
value- The country to set.- Returns:
- This builder for chaining.
-
clearCountry
public ClickLocation.Builder clearCountry()
The country location criterion associated with the impression.
optional string country = 7;- Returns:
- This builder for chaining.
-
setCountryBytes
public ClickLocation.Builder setCountryBytes(com.google.protobuf.ByteString value)
The country location criterion associated with the impression.
optional string country = 7;- Parameters:
value- The bytes for country to set.- Returns:
- This builder for chaining.
-
hasMetro
public boolean hasMetro()
The metro location criterion associated with the impression.
optional string metro = 8;- Specified by:
hasMetroin interfaceClickLocationOrBuilder- Returns:
- Whether the metro field is set.
-
getMetro
public java.lang.String getMetro()
The metro location criterion associated with the impression.
optional string metro = 8;- Specified by:
getMetroin interfaceClickLocationOrBuilder- Returns:
- The metro.
-
getMetroBytes
public com.google.protobuf.ByteString getMetroBytes()
The metro location criterion associated with the impression.
optional string metro = 8;- Specified by:
getMetroBytesin interfaceClickLocationOrBuilder- Returns:
- The bytes for metro.
-
setMetro
public ClickLocation.Builder setMetro(java.lang.String value)
The metro location criterion associated with the impression.
optional string metro = 8;- Parameters:
value- The metro to set.- Returns:
- This builder for chaining.
-
clearMetro
public ClickLocation.Builder clearMetro()
The metro location criterion associated with the impression.
optional string metro = 8;- Returns:
- This builder for chaining.
-
setMetroBytes
public ClickLocation.Builder setMetroBytes(com.google.protobuf.ByteString value)
The metro location criterion associated with the impression.
optional string metro = 8;- Parameters:
value- The bytes for metro to set.- Returns:
- This builder for chaining.
-
hasMostSpecific
public boolean hasMostSpecific()
The most specific location criterion associated with the impression.
optional string most_specific = 9;- Specified by:
hasMostSpecificin interfaceClickLocationOrBuilder- Returns:
- Whether the mostSpecific field is set.
-
getMostSpecific
public java.lang.String getMostSpecific()
The most specific location criterion associated with the impression.
optional string most_specific = 9;- Specified by:
getMostSpecificin interfaceClickLocationOrBuilder- Returns:
- The mostSpecific.
-
getMostSpecificBytes
public com.google.protobuf.ByteString getMostSpecificBytes()
The most specific location criterion associated with the impression.
optional string most_specific = 9;- Specified by:
getMostSpecificBytesin interfaceClickLocationOrBuilder- Returns:
- The bytes for mostSpecific.
-
setMostSpecific
public ClickLocation.Builder setMostSpecific(java.lang.String value)
The most specific location criterion associated with the impression.
optional string most_specific = 9;- Parameters:
value- The mostSpecific to set.- Returns:
- This builder for chaining.
-
clearMostSpecific
public ClickLocation.Builder clearMostSpecific()
The most specific location criterion associated with the impression.
optional string most_specific = 9;- Returns:
- This builder for chaining.
-
setMostSpecificBytes
public ClickLocation.Builder setMostSpecificBytes(com.google.protobuf.ByteString value)
The most specific location criterion associated with the impression.
optional string most_specific = 9;- Parameters:
value- The bytes for mostSpecific to set.- Returns:
- This builder for chaining.
-
hasRegion
public boolean hasRegion()
The region location criterion associated with the impression.
optional string region = 10;- Specified by:
hasRegionin interfaceClickLocationOrBuilder- Returns:
- Whether the region field is set.
-
getRegion
public java.lang.String getRegion()
The region location criterion associated with the impression.
optional string region = 10;- Specified by:
getRegionin interfaceClickLocationOrBuilder- Returns:
- The region.
-
getRegionBytes
public com.google.protobuf.ByteString getRegionBytes()
The region location criterion associated with the impression.
optional string region = 10;- Specified by:
getRegionBytesin interfaceClickLocationOrBuilder- Returns:
- The bytes for region.
-
setRegion
public ClickLocation.Builder setRegion(java.lang.String value)
The region location criterion associated with the impression.
optional string region = 10;- Parameters:
value- The region to set.- Returns:
- This builder for chaining.
-
clearRegion
public ClickLocation.Builder clearRegion()
The region location criterion associated with the impression.
optional string region = 10;- Returns:
- This builder for chaining.
-
setRegionBytes
public ClickLocation.Builder setRegionBytes(com.google.protobuf.ByteString value)
The region location criterion associated with the impression.
optional string region = 10;- Parameters:
value- The bytes for region to set.- Returns:
- This builder for chaining.
-
setUnknownFields
public final ClickLocation.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<ClickLocation.Builder>
-
mergeUnknownFields
public final ClickLocation.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<ClickLocation.Builder>
-
-