Class PlannableLocation.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderType>
-
- com.google.protobuf.GeneratedMessageV3.Builder<PlannableLocation.Builder>
-
- com.google.ads.googleads.v10.services.PlannableLocation.Builder
-
- All Implemented Interfaces:
PlannableLocationOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,java.lang.Cloneable
- Enclosing class:
- PlannableLocation
public static final class PlannableLocation.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<PlannableLocation.Builder> implements PlannableLocationOrBuilder
A plannable location: a country, a DMA, a metro region, a tv region, a province.
Protobuf typegoogle.ads.googleads.v10.services.PlannableLocation
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description PlannableLocation.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)PlannableLocationbuild()PlannableLocationbuildPartial()PlannableLocation.Builderclear()PlannableLocation.BuilderclearCountryCode()The ISO-3166-1 alpha-2 country code that is associated with the location.PlannableLocation.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)PlannableLocation.BuilderclearId()The location identifier.PlannableLocation.BuilderclearLocationType()The location's type.PlannableLocation.BuilderclearName()The unique location name in english.PlannableLocation.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)PlannableLocation.BuilderclearParentCountryId()The parent country, not present if location is a country.PlannableLocation.Builderclone()java.lang.StringgetCountryCode()The ISO-3166-1 alpha-2 country code that is associated with the location.com.google.protobuf.ByteStringgetCountryCodeBytes()The ISO-3166-1 alpha-2 country code that is associated with the location.PlannableLocationgetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()java.lang.StringgetId()The location identifier.com.google.protobuf.ByteStringgetIdBytes()The location identifier.java.lang.StringgetLocationType()The location's type.com.google.protobuf.ByteStringgetLocationTypeBytes()The location's type.java.lang.StringgetName()The unique location name in english.com.google.protobuf.ByteStringgetNameBytes()The unique location name in english.longgetParentCountryId()The parent country, not present if location is a country.booleanhasCountryCode()The ISO-3166-1 alpha-2 country code that is associated with the location.booleanhasId()The location identifier.booleanhasLocationType()The location's type.booleanhasName()The unique location name in english.booleanhasParentCountryId()The parent country, not present if location is a country.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()PlannableLocation.BuildermergeFrom(PlannableLocation other)PlannableLocation.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)PlannableLocation.BuildermergeFrom(com.google.protobuf.Message other)PlannableLocation.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)PlannableLocation.BuildersetCountryCode(java.lang.String value)The ISO-3166-1 alpha-2 country code that is associated with the location.PlannableLocation.BuildersetCountryCodeBytes(com.google.protobuf.ByteString value)The ISO-3166-1 alpha-2 country code that is associated with the location.PlannableLocation.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)PlannableLocation.BuildersetId(java.lang.String value)The location identifier.PlannableLocation.BuildersetIdBytes(com.google.protobuf.ByteString value)The location identifier.PlannableLocation.BuildersetLocationType(java.lang.String value)The location's type.PlannableLocation.BuildersetLocationTypeBytes(com.google.protobuf.ByteString value)The location's type.PlannableLocation.BuildersetName(java.lang.String value)The unique location name in english.PlannableLocation.BuildersetNameBytes(com.google.protobuf.ByteString value)The unique location name in english.PlannableLocation.BuildersetParentCountryId(long value)The parent country, not present if location is a country.PlannableLocation.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)PlannableLocation.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<PlannableLocation.Builder>
-
clear
public PlannableLocation.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<PlannableLocation.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<PlannableLocation.Builder>
-
getDefaultInstanceForType
public PlannableLocation getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public PlannableLocation build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public PlannableLocation buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public PlannableLocation.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<PlannableLocation.Builder>
-
setField
public PlannableLocation.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<PlannableLocation.Builder>
-
clearField
public PlannableLocation.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<PlannableLocation.Builder>
-
clearOneof
public PlannableLocation.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<PlannableLocation.Builder>
-
setRepeatedField
public PlannableLocation.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<PlannableLocation.Builder>
-
addRepeatedField
public PlannableLocation.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<PlannableLocation.Builder>
-
mergeFrom
public PlannableLocation.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<PlannableLocation.Builder>
-
mergeFrom
public PlannableLocation.Builder mergeFrom(PlannableLocation other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<PlannableLocation.Builder>
-
mergeFrom
public PlannableLocation.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<PlannableLocation.Builder>- Throws:
java.io.IOException
-
hasId
public boolean hasId()
The location identifier.
optional string id = 4;- Specified by:
hasIdin interfacePlannableLocationOrBuilder- Returns:
- Whether the id field is set.
-
getId
public java.lang.String getId()
The location identifier.
optional string id = 4;- Specified by:
getIdin interfacePlannableLocationOrBuilder- Returns:
- The id.
-
getIdBytes
public com.google.protobuf.ByteString getIdBytes()
The location identifier.
optional string id = 4;- Specified by:
getIdBytesin interfacePlannableLocationOrBuilder- Returns:
- The bytes for id.
-
setId
public PlannableLocation.Builder setId(java.lang.String value)
The location identifier.
optional string id = 4;- Parameters:
value- The id to set.- Returns:
- This builder for chaining.
-
clearId
public PlannableLocation.Builder clearId()
The location identifier.
optional string id = 4;- Returns:
- This builder for chaining.
-
setIdBytes
public PlannableLocation.Builder setIdBytes(com.google.protobuf.ByteString value)
The location identifier.
optional string id = 4;- Parameters:
value- The bytes for id to set.- Returns:
- This builder for chaining.
-
hasName
public boolean hasName()
The unique location name in english.
optional string name = 5;- Specified by:
hasNamein interfacePlannableLocationOrBuilder- Returns:
- Whether the name field is set.
-
getName
public java.lang.String getName()
The unique location name in english.
optional string name = 5;- Specified by:
getNamein interfacePlannableLocationOrBuilder- Returns:
- The name.
-
getNameBytes
public com.google.protobuf.ByteString getNameBytes()
The unique location name in english.
optional string name = 5;- Specified by:
getNameBytesin interfacePlannableLocationOrBuilder- Returns:
- The bytes for name.
-
setName
public PlannableLocation.Builder setName(java.lang.String value)
The unique location name in english.
optional string name = 5;- Parameters:
value- The name to set.- Returns:
- This builder for chaining.
-
clearName
public PlannableLocation.Builder clearName()
The unique location name in english.
optional string name = 5;- Returns:
- This builder for chaining.
-
setNameBytes
public PlannableLocation.Builder setNameBytes(com.google.protobuf.ByteString value)
The unique location name in english.
optional string name = 5;- Parameters:
value- The bytes for name to set.- Returns:
- This builder for chaining.
-
hasParentCountryId
public boolean hasParentCountryId()
The parent country, not present if location is a country. If present will always be a GeoTargetConstant ID. Additional information, such as country name is provided by [ReachPlanService.ListPlannableLocations][google.ads.googleads.v10.services.ReachPlanService.ListPlannableLocations] or [GoogleAdsService.Search/SearchStream][].
optional int64 parent_country_id = 6;- Specified by:
hasParentCountryIdin interfacePlannableLocationOrBuilder- Returns:
- Whether the parentCountryId field is set.
-
getParentCountryId
public long getParentCountryId()
The parent country, not present if location is a country. If present will always be a GeoTargetConstant ID. Additional information, such as country name is provided by [ReachPlanService.ListPlannableLocations][google.ads.googleads.v10.services.ReachPlanService.ListPlannableLocations] or [GoogleAdsService.Search/SearchStream][].
optional int64 parent_country_id = 6;- Specified by:
getParentCountryIdin interfacePlannableLocationOrBuilder- Returns:
- The parentCountryId.
-
setParentCountryId
public PlannableLocation.Builder setParentCountryId(long value)
The parent country, not present if location is a country. If present will always be a GeoTargetConstant ID. Additional information, such as country name is provided by [ReachPlanService.ListPlannableLocations][google.ads.googleads.v10.services.ReachPlanService.ListPlannableLocations] or [GoogleAdsService.Search/SearchStream][].
optional int64 parent_country_id = 6;- Parameters:
value- The parentCountryId to set.- Returns:
- This builder for chaining.
-
clearParentCountryId
public PlannableLocation.Builder clearParentCountryId()
The parent country, not present if location is a country. If present will always be a GeoTargetConstant ID. Additional information, such as country name is provided by [ReachPlanService.ListPlannableLocations][google.ads.googleads.v10.services.ReachPlanService.ListPlannableLocations] or [GoogleAdsService.Search/SearchStream][].
optional int64 parent_country_id = 6;- Returns:
- This builder for chaining.
-
hasCountryCode
public boolean hasCountryCode()
The ISO-3166-1 alpha-2 country code that is associated with the location.
optional string country_code = 7;- Specified by:
hasCountryCodein interfacePlannableLocationOrBuilder- Returns:
- Whether the countryCode field is set.
-
getCountryCode
public java.lang.String getCountryCode()
The ISO-3166-1 alpha-2 country code that is associated with the location.
optional string country_code = 7;- Specified by:
getCountryCodein interfacePlannableLocationOrBuilder- Returns:
- The countryCode.
-
getCountryCodeBytes
public com.google.protobuf.ByteString getCountryCodeBytes()
The ISO-3166-1 alpha-2 country code that is associated with the location.
optional string country_code = 7;- Specified by:
getCountryCodeBytesin interfacePlannableLocationOrBuilder- Returns:
- The bytes for countryCode.
-
setCountryCode
public PlannableLocation.Builder setCountryCode(java.lang.String value)
The ISO-3166-1 alpha-2 country code that is associated with the location.
optional string country_code = 7;- Parameters:
value- The countryCode to set.- Returns:
- This builder for chaining.
-
clearCountryCode
public PlannableLocation.Builder clearCountryCode()
The ISO-3166-1 alpha-2 country code that is associated with the location.
optional string country_code = 7;- Returns:
- This builder for chaining.
-
setCountryCodeBytes
public PlannableLocation.Builder setCountryCodeBytes(com.google.protobuf.ByteString value)
The ISO-3166-1 alpha-2 country code that is associated with the location.
optional string country_code = 7;- Parameters:
value- The bytes for countryCode to set.- Returns:
- This builder for chaining.
-
hasLocationType
public boolean hasLocationType()
The location's type. Location types correspond to target_type returned by searching location type in [GoogleAdsService.Search/SearchStream][].
optional string location_type = 8;- Specified by:
hasLocationTypein interfacePlannableLocationOrBuilder- Returns:
- Whether the locationType field is set.
-
getLocationType
public java.lang.String getLocationType()
The location's type. Location types correspond to target_type returned by searching location type in [GoogleAdsService.Search/SearchStream][].
optional string location_type = 8;- Specified by:
getLocationTypein interfacePlannableLocationOrBuilder- Returns:
- The locationType.
-
getLocationTypeBytes
public com.google.protobuf.ByteString getLocationTypeBytes()
The location's type. Location types correspond to target_type returned by searching location type in [GoogleAdsService.Search/SearchStream][].
optional string location_type = 8;- Specified by:
getLocationTypeBytesin interfacePlannableLocationOrBuilder- Returns:
- The bytes for locationType.
-
setLocationType
public PlannableLocation.Builder setLocationType(java.lang.String value)
The location's type. Location types correspond to target_type returned by searching location type in [GoogleAdsService.Search/SearchStream][].
optional string location_type = 8;- Parameters:
value- The locationType to set.- Returns:
- This builder for chaining.
-
clearLocationType
public PlannableLocation.Builder clearLocationType()
The location's type. Location types correspond to target_type returned by searching location type in [GoogleAdsService.Search/SearchStream][].
optional string location_type = 8;- Returns:
- This builder for chaining.
-
setLocationTypeBytes
public PlannableLocation.Builder setLocationTypeBytes(com.google.protobuf.ByteString value)
The location's type. Location types correspond to target_type returned by searching location type in [GoogleAdsService.Search/SearchStream][].
optional string location_type = 8;- Parameters:
value- The bytes for locationType to set.- Returns:
- This builder for chaining.
-
setUnknownFields
public final PlannableLocation.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<PlannableLocation.Builder>
-
mergeUnknownFields
public final PlannableLocation.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<PlannableLocation.Builder>
-
-