Class SuggestGeoTargetConstantsRequest.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<SuggestGeoTargetConstantsRequest.Builder>
com.google.ads.googleads.v18.services.SuggestGeoTargetConstantsRequest.Builder
- All Implemented Interfaces:
SuggestGeoTargetConstantsRequestOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- SuggestGeoTargetConstantsRequest
public static final class SuggestGeoTargetConstantsRequest.Builder
extends com.google.protobuf.GeneratedMessageV3.Builder<SuggestGeoTargetConstantsRequest.Builder>
implements SuggestGeoTargetConstantsRequestOrBuilder
Request message for [GeoTargetConstantService.SuggestGeoTargetConstants][google.ads.googleads.v18.services.GeoTargetConstantService.SuggestGeoTargetConstants].Protobuf type
google.ads.googleads.v18.services.SuggestGeoTargetConstantsRequest-
Method Summary
Modifier and TypeMethodDescriptionaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) build()clear()Returned geo targets are restricted to this country code.clearField(com.google.protobuf.Descriptors.FieldDescriptor field) The geo target constant resource names to filter by.If possible, returned geo targets are translated using this locale.The location names to search by.clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) clone()Returned geo targets are restricted to this country code.com.google.protobuf.ByteStringReturned geo targets are restricted to this country code.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorThe geo target constant resource names to filter by.The geo target constant resource names to filter by.The geo target constant resource names to filter by.If possible, returned geo targets are translated using this locale.com.google.protobuf.ByteStringIf possible, returned geo targets are translated using this locale.The location names to search by.The location names to search by.The location names to search by.booleanReturned geo targets are restricted to this country code.booleanThe geo target constant resource names to filter by.booleanIf possible, returned geo targets are translated using this locale.booleanThe location names to search by.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) The geo target constant resource names to filter by.The location names to search by.mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) setCountryCode(String value) Returned geo targets are restricted to this country code.setCountryCodeBytes(com.google.protobuf.ByteString value) Returned geo targets are restricted to this country code.The geo target constant resource names to filter by.setGeoTargets(SuggestGeoTargetConstantsRequest.GeoTargets.Builder builderForValue) The geo target constant resource names to filter by.If possible, returned geo targets are translated using this locale.setLocaleBytes(com.google.protobuf.ByteString value) If possible, returned geo targets are translated using this locale.The location names to search by.setLocationNames(SuggestGeoTargetConstantsRequest.LocationNames.Builder builderForValue) The location names to search by.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<SuggestGeoTargetConstantsRequest.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<SuggestGeoTargetConstantsRequest.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<SuggestGeoTargetConstantsRequest.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<SuggestGeoTargetConstantsRequest.Builder>
-
setField
public SuggestGeoTargetConstantsRequest.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<SuggestGeoTargetConstantsRequest.Builder>
-
clearField
public SuggestGeoTargetConstantsRequest.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) - Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<SuggestGeoTargetConstantsRequest.Builder>
-
clearOneof
public SuggestGeoTargetConstantsRequest.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) - Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<SuggestGeoTargetConstantsRequest.Builder>
-
setRepeatedField
public SuggestGeoTargetConstantsRequest.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<SuggestGeoTargetConstantsRequest.Builder>
-
addRepeatedField
public SuggestGeoTargetConstantsRequest.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<SuggestGeoTargetConstantsRequest.Builder>
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<SuggestGeoTargetConstantsRequest.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<SuggestGeoTargetConstantsRequest.Builder>
-
mergeFrom
public SuggestGeoTargetConstantsRequest.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<SuggestGeoTargetConstantsRequest.Builder>- Throws:
IOException
-
getQueryCase
- Specified by:
getQueryCasein interfaceSuggestGeoTargetConstantsRequestOrBuilder
-
clearQuery
-
hasLocale
public boolean hasLocale()If possible, returned geo targets are translated using this locale. If not, en is used by default. This is also used as a hint for returned geo targets.
optional string locale = 6;- Specified by:
hasLocalein interfaceSuggestGeoTargetConstantsRequestOrBuilder- Returns:
- Whether the locale field is set.
-
getLocale
If possible, returned geo targets are translated using this locale. If not, en is used by default. This is also used as a hint for returned geo targets.
optional string locale = 6;- Specified by:
getLocalein interfaceSuggestGeoTargetConstantsRequestOrBuilder- Returns:
- The locale.
-
getLocaleBytes
public com.google.protobuf.ByteString getLocaleBytes()If possible, returned geo targets are translated using this locale. If not, en is used by default. This is also used as a hint for returned geo targets.
optional string locale = 6;- Specified by:
getLocaleBytesin interfaceSuggestGeoTargetConstantsRequestOrBuilder- Returns:
- The bytes for locale.
-
setLocale
If possible, returned geo targets are translated using this locale. If not, en is used by default. This is also used as a hint for returned geo targets.
optional string locale = 6;- Parameters:
value- The locale to set.- Returns:
- This builder for chaining.
-
clearLocale
If possible, returned geo targets are translated using this locale. If not, en is used by default. This is also used as a hint for returned geo targets.
optional string locale = 6;- Returns:
- This builder for chaining.
-
setLocaleBytes
public SuggestGeoTargetConstantsRequest.Builder setLocaleBytes(com.google.protobuf.ByteString value) If possible, returned geo targets are translated using this locale. If not, en is used by default. This is also used as a hint for returned geo targets.
optional string locale = 6;- Parameters:
value- The bytes for locale to set.- Returns:
- This builder for chaining.
-
hasCountryCode
public boolean hasCountryCode()Returned geo targets are restricted to this country code.
optional string country_code = 7;- Specified by:
hasCountryCodein interfaceSuggestGeoTargetConstantsRequestOrBuilder- Returns:
- Whether the countryCode field is set.
-
getCountryCode
Returned geo targets are restricted to this country code.
optional string country_code = 7;- Specified by:
getCountryCodein interfaceSuggestGeoTargetConstantsRequestOrBuilder- Returns:
- The countryCode.
-
getCountryCodeBytes
public com.google.protobuf.ByteString getCountryCodeBytes()Returned geo targets are restricted to this country code.
optional string country_code = 7;- Specified by:
getCountryCodeBytesin interfaceSuggestGeoTargetConstantsRequestOrBuilder- Returns:
- The bytes for countryCode.
-
setCountryCode
Returned geo targets are restricted to this country code.
optional string country_code = 7;- Parameters:
value- The countryCode to set.- Returns:
- This builder for chaining.
-
clearCountryCode
Returned geo targets are restricted to this country code.
optional string country_code = 7;- Returns:
- This builder for chaining.
-
setCountryCodeBytes
public SuggestGeoTargetConstantsRequest.Builder setCountryCodeBytes(com.google.protobuf.ByteString value) Returned geo targets are restricted to this country code.
optional string country_code = 7;- Parameters:
value- The bytes for countryCode to set.- Returns:
- This builder for chaining.
-
hasLocationNames
public boolean hasLocationNames()The location names to search by. At most 25 names can be set.
.google.ads.googleads.v18.services.SuggestGeoTargetConstantsRequest.LocationNames location_names = 1;- Specified by:
hasLocationNamesin interfaceSuggestGeoTargetConstantsRequestOrBuilder- Returns:
- Whether the locationNames field is set.
-
getLocationNames
The location names to search by. At most 25 names can be set.
.google.ads.googleads.v18.services.SuggestGeoTargetConstantsRequest.LocationNames location_names = 1;- Specified by:
getLocationNamesin interfaceSuggestGeoTargetConstantsRequestOrBuilder- Returns:
- The locationNames.
-
setLocationNames
public SuggestGeoTargetConstantsRequest.Builder setLocationNames(SuggestGeoTargetConstantsRequest.LocationNames value) The location names to search by. At most 25 names can be set.
.google.ads.googleads.v18.services.SuggestGeoTargetConstantsRequest.LocationNames location_names = 1; -
setLocationNames
public SuggestGeoTargetConstantsRequest.Builder setLocationNames(SuggestGeoTargetConstantsRequest.LocationNames.Builder builderForValue) The location names to search by. At most 25 names can be set.
.google.ads.googleads.v18.services.SuggestGeoTargetConstantsRequest.LocationNames location_names = 1; -
mergeLocationNames
public SuggestGeoTargetConstantsRequest.Builder mergeLocationNames(SuggestGeoTargetConstantsRequest.LocationNames value) The location names to search by. At most 25 names can be set.
.google.ads.googleads.v18.services.SuggestGeoTargetConstantsRequest.LocationNames location_names = 1; -
clearLocationNames
The location names to search by. At most 25 names can be set.
.google.ads.googleads.v18.services.SuggestGeoTargetConstantsRequest.LocationNames location_names = 1; -
getLocationNamesBuilder
The location names to search by. At most 25 names can be set.
.google.ads.googleads.v18.services.SuggestGeoTargetConstantsRequest.LocationNames location_names = 1; -
getLocationNamesOrBuilder
The location names to search by. At most 25 names can be set.
.google.ads.googleads.v18.services.SuggestGeoTargetConstantsRequest.LocationNames location_names = 1;- Specified by:
getLocationNamesOrBuilderin interfaceSuggestGeoTargetConstantsRequestOrBuilder
-
hasGeoTargets
public boolean hasGeoTargets()The geo target constant resource names to filter by.
.google.ads.googleads.v18.services.SuggestGeoTargetConstantsRequest.GeoTargets geo_targets = 2;- Specified by:
hasGeoTargetsin interfaceSuggestGeoTargetConstantsRequestOrBuilder- Returns:
- Whether the geoTargets field is set.
-
getGeoTargets
The geo target constant resource names to filter by.
.google.ads.googleads.v18.services.SuggestGeoTargetConstantsRequest.GeoTargets geo_targets = 2;- Specified by:
getGeoTargetsin interfaceSuggestGeoTargetConstantsRequestOrBuilder- Returns:
- The geoTargets.
-
setGeoTargets
public SuggestGeoTargetConstantsRequest.Builder setGeoTargets(SuggestGeoTargetConstantsRequest.GeoTargets value) The geo target constant resource names to filter by.
.google.ads.googleads.v18.services.SuggestGeoTargetConstantsRequest.GeoTargets geo_targets = 2; -
setGeoTargets
public SuggestGeoTargetConstantsRequest.Builder setGeoTargets(SuggestGeoTargetConstantsRequest.GeoTargets.Builder builderForValue) The geo target constant resource names to filter by.
.google.ads.googleads.v18.services.SuggestGeoTargetConstantsRequest.GeoTargets geo_targets = 2; -
mergeGeoTargets
public SuggestGeoTargetConstantsRequest.Builder mergeGeoTargets(SuggestGeoTargetConstantsRequest.GeoTargets value) The geo target constant resource names to filter by.
.google.ads.googleads.v18.services.SuggestGeoTargetConstantsRequest.GeoTargets geo_targets = 2; -
clearGeoTargets
The geo target constant resource names to filter by.
.google.ads.googleads.v18.services.SuggestGeoTargetConstantsRequest.GeoTargets geo_targets = 2; -
getGeoTargetsBuilder
The geo target constant resource names to filter by.
.google.ads.googleads.v18.services.SuggestGeoTargetConstantsRequest.GeoTargets geo_targets = 2; -
getGeoTargetsOrBuilder
The geo target constant resource names to filter by.
.google.ads.googleads.v18.services.SuggestGeoTargetConstantsRequest.GeoTargets geo_targets = 2;- Specified by:
getGeoTargetsOrBuilderin interfaceSuggestGeoTargetConstantsRequestOrBuilder
-
setUnknownFields
public final SuggestGeoTargetConstantsRequest.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<SuggestGeoTargetConstantsRequest.Builder>
-
mergeUnknownFields
public final SuggestGeoTargetConstantsRequest.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<SuggestGeoTargetConstantsRequest.Builder>
-