Class ClickLocation.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<ClickLocation.Builder>
com.google.ads.googleads.v18.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,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 type
google.ads.googleads.v18.common.ClickLocation-
Method Summary
Modifier and TypeMethodDescriptionaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) build()clear()The city location criterion associated with the impression.The country location criterion associated with the impression.clearField(com.google.protobuf.Descriptors.FieldDescriptor field) The metro location criterion associated with the impression.The most specific location criterion associated with the impression.clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) The region location criterion associated with the impression.clone()getCity()The city location criterion associated with the impression.com.google.protobuf.ByteStringThe city location criterion associated with the impression.The country location criterion associated with the impression.com.google.protobuf.ByteStringThe country location criterion associated with the impression.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorgetMetro()The metro location criterion associated with the impression.com.google.protobuf.ByteStringThe metro location criterion associated with the impression.The most specific location criterion associated with the impression.com.google.protobuf.ByteStringThe most specific location criterion associated with the impression.The region location criterion associated with the impression.com.google.protobuf.ByteStringThe region location criterion associated with the impression.booleanhasCity()The city location criterion associated with the impression.booleanThe country location criterion associated with the impression.booleanhasMetro()The metro location criterion associated with the impression.booleanThe most specific location criterion associated with the impression.booleanThe region location criterion associated with the impression.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTablefinal booleanmergeFrom(ClickLocation other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) final ClickLocation.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) The city location criterion associated with the impression.setCityBytes(com.google.protobuf.ByteString value) The city location criterion associated with the impression.setCountry(String value) The country location criterion associated with the impression.setCountryBytes(com.google.protobuf.ByteString value) The country location criterion associated with the impression.The metro location criterion associated with the impression.setMetroBytes(com.google.protobuf.ByteString value) The metro location criterion associated with the impression.setMostSpecific(String value) The most specific location criterion associated with the impression.setMostSpecificBytes(com.google.protobuf.ByteString value) The most specific location criterion associated with the impression.The region location criterion associated with the impression.setRegionBytes(com.google.protobuf.ByteString value) The region location criterion associated with the impression.setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) final 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, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
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
- 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
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.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, Object value) - Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<ClickLocation.Builder>
-
clearField
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<ClickLocation.Builder>
-
clearOneof
- 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, 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, Object value) - Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<ClickLocation.Builder>
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<ClickLocation.Builder>
-
mergeFrom
-
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 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:
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
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
The city location criterion associated with the impression.
optional string city = 6;- Parameters:
value- The city to set.- Returns:
- This builder for chaining.
-
clearCity
The city location criterion associated with the impression.
optional string city = 6;- Returns:
- This builder for chaining.
-
setCityBytes
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
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
The country location criterion associated with the impression.
optional string country = 7;- Parameters:
value- The country to set.- Returns:
- This builder for chaining.
-
clearCountry
The country location criterion associated with the impression.
optional string country = 7;- Returns:
- This builder for chaining.
-
setCountryBytes
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
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
The metro location criterion associated with the impression.
optional string metro = 8;- Parameters:
value- The metro to set.- Returns:
- This builder for chaining.
-
clearMetro
The metro location criterion associated with the impression.
optional string metro = 8;- Returns:
- This builder for chaining.
-
setMetroBytes
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
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
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
The most specific location criterion associated with the impression.
optional string most_specific = 9;- Returns:
- This builder for chaining.
-
setMostSpecificBytes
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
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
The region location criterion associated with the impression.
optional string region = 10;- Parameters:
value- The region to set.- Returns:
- This builder for chaining.
-
clearRegion
The region location criterion associated with the impression.
optional string region = 10;- Returns:
- This builder for chaining.
-
setRegionBytes
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>
-