Class PlannableLocation.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<PlannableLocation.Builder>
com.google.ads.googleads.v18.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,Cloneable
- Enclosing class:
- PlannableLocation
public static final class PlannableLocation.Builder
extends com.google.protobuf.GeneratedMessageV3.Builder<PlannableLocation.Builder>
implements PlannableLocationOrBuilder
A plannable location: country, metro region, province, etc.Protobuf type
google.ads.googleads.v18.services.PlannableLocation-
Method Summary
Modifier and TypeMethodDescriptionaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) build()clear()The ISO-3166-1 alpha-2 country code that is associated with the location.clearField(com.google.protobuf.Descriptors.FieldDescriptor field) clearId()The location identifier.The location's type.The unique location name in English.clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) The parent country (not present if location is a country).clone()The ISO-3166-1 alpha-2 country code that is associated with the location.com.google.protobuf.ByteStringThe ISO-3166-1 alpha-2 country code that is associated with the location.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorgetId()The location identifier.com.google.protobuf.ByteStringThe location identifier.The location's type.com.google.protobuf.ByteStringThe location's type.getName()The unique location name in English.com.google.protobuf.ByteStringThe unique location name in English.longThe parent country (not present if location is a country).booleanThe ISO-3166-1 alpha-2 country code that is associated with the location.booleanhasId()The location identifier.booleanThe location's type.booleanhasName()The unique location name in English.booleanThe parent country (not present if location is a country).protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTablefinal booleanmergeFrom(PlannableLocation other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) setCountryCode(String value) The ISO-3166-1 alpha-2 country code that is associated with the location.setCountryCodeBytes(com.google.protobuf.ByteString value) The ISO-3166-1 alpha-2 country code that is associated with the location.The location identifier.setIdBytes(com.google.protobuf.ByteString value) The location identifier.setLocationType(String value) The location's type.setLocationTypeBytes(com.google.protobuf.ByteString value) The location's type.The unique location name in English.setNameBytes(com.google.protobuf.ByteString value) The unique location name in English.setParentCountryId(long value) The parent country (not present if location is a country).setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) setUnknownFields(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<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
- 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<PlannableLocation.Builder>
-
setField
public PlannableLocation.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<PlannableLocation.Builder>
-
clearField
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<PlannableLocation.Builder>
-
clearOneof
- 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, 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, Object value) - Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<PlannableLocation.Builder>
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<PlannableLocation.Builder>
-
mergeFrom
-
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 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:
IOException
-
hasId
public boolean hasId()The location identifier.
optional string id = 4;- Specified by:
hasIdin interfacePlannableLocationOrBuilder- Returns:
- Whether the id field is set.
-
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
The location identifier.
optional string id = 4;- Parameters:
value- The id to set.- Returns:
- This builder for chaining.
-
clearId
The location identifier.
optional string id = 4;- Returns:
- This builder for chaining.
-
setIdBytes
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
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
The unique location name in English.
optional string name = 5;- Parameters:
value- The name to set.- Returns:
- This builder for chaining.
-
clearName
The unique location name in English.
optional string name = 5;- Returns:
- This builder for chaining.
-
setNameBytes
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.v18.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.v18.services.ReachPlanService.ListPlannableLocations] or GoogleAdsService.Search/SearchStream.
optional int64 parent_country_id = 6;- Specified by:
getParentCountryIdin interfacePlannableLocationOrBuilder- Returns:
- The parentCountryId.
-
setParentCountryId
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.v18.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
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.v18.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
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
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
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
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
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
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
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
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>
-