Class LocationSet.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<LocationSet.Builder>
com.google.ads.googleads.v18.common.LocationSet.Builder
- All Implemented Interfaces:
LocationSetOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- LocationSet
public static final class LocationSet.Builder
extends com.google.protobuf.GeneratedMessageV3.Builder<LocationSet.Builder>
implements LocationSetOrBuilder
Data related to location set. One of the Google Business Profile (previously known as Google My Business) data, Chain data, and map location data need to be specified.Protobuf type
google.ads.googleads.v18.common.LocationSet-
Method Summary
Modifier and TypeMethodDescriptionaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) build()clear()Data used to configure a location set populated from Google Business Profile locations.Data used to configure a location on chain set populated with the specified chains.clearField(com.google.protobuf.Descriptors.FieldDescriptor field) Required.Only set if locations are synced based on selected maps locationsclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) clone()Data used to configure a location set populated from Google Business Profile locations.Data used to configure a location set populated from Google Business Profile locations.Data used to configure a location set populated from Google Business Profile locations.Data used to configure a location on chain set populated with the specified chains.Data used to configure a location on chain set populated with the specified chains.Data used to configure a location on chain set populated with the specified chains.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorRequired.intRequired.Only set if locations are synced based on selected maps locationsOnly set if locations are synced based on selected maps locationsOnly set if locations are synced based on selected maps locationsbooleanData used to configure a location set populated from Google Business Profile locations.booleanData used to configure a location on chain set populated with the specified chains.booleanOnly set if locations are synced based on selected maps locationsprotected com.google.protobuf.GeneratedMessageV3.FieldAccessorTablefinal booleanData used to configure a location set populated from Google Business Profile locations.mergeChainLocationSet(ChainSet value) Data used to configure a location on chain set populated with the specified chains.mergeFrom(LocationSet other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) Only set if locations are synced based on selected maps locationsfinal LocationSet.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) Data used to configure a location set populated from Google Business Profile locations.setBusinessProfileLocationSet(BusinessProfileLocationSet.Builder builderForValue) Data used to configure a location set populated from Google Business Profile locations.setChainLocationSet(ChainSet value) Data used to configure a location on chain set populated with the specified chains.setChainLocationSet(ChainSet.Builder builderForValue) Data used to configure a location on chain set populated with the specified chains.Required.setLocationOwnershipTypeValue(int value) Required.Only set if locations are synced based on selected maps locationssetMapsLocationSet(MapsLocationSet.Builder builderForValue) Only set if locations are synced based on selected maps locationssetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) final LocationSet.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<LocationSet.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<LocationSet.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<LocationSet.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<LocationSet.Builder>
-
setField
public LocationSet.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<LocationSet.Builder>
-
clearField
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<LocationSet.Builder>
-
clearOneof
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<LocationSet.Builder>
-
setRepeatedField
public LocationSet.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<LocationSet.Builder>
-
addRepeatedField
public LocationSet.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<LocationSet.Builder>
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<LocationSet.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<LocationSet.Builder>
-
mergeFrom
public LocationSet.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<LocationSet.Builder>- Throws:
IOException
-
getSourceCase
- Specified by:
getSourceCasein interfaceLocationSetOrBuilder
-
clearSource
-
getLocationOwnershipTypeValue
public int getLocationOwnershipTypeValue()Required. Immutable. Location Ownership Type (owned location or affiliate location).
.google.ads.googleads.v18.enums.LocationOwnershipTypeEnum.LocationOwnershipType location_ownership_type = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];- Specified by:
getLocationOwnershipTypeValuein interfaceLocationSetOrBuilder- Returns:
- The enum numeric value on the wire for locationOwnershipType.
-
setLocationOwnershipTypeValue
Required. Immutable. Location Ownership Type (owned location or affiliate location).
.google.ads.googleads.v18.enums.LocationOwnershipTypeEnum.LocationOwnershipType location_ownership_type = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];- Parameters:
value- The enum numeric value on the wire for locationOwnershipType to set.- Returns:
- This builder for chaining.
-
getLocationOwnershipType
Required. Immutable. Location Ownership Type (owned location or affiliate location).
.google.ads.googleads.v18.enums.LocationOwnershipTypeEnum.LocationOwnershipType location_ownership_type = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];- Specified by:
getLocationOwnershipTypein interfaceLocationSetOrBuilder- Returns:
- The locationOwnershipType.
-
setLocationOwnershipType
public LocationSet.Builder setLocationOwnershipType(LocationOwnershipTypeEnum.LocationOwnershipType value) Required. Immutable. Location Ownership Type (owned location or affiliate location).
.google.ads.googleads.v18.enums.LocationOwnershipTypeEnum.LocationOwnershipType location_ownership_type = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];- Parameters:
value- The locationOwnershipType to set.- Returns:
- This builder for chaining.
-
clearLocationOwnershipType
Required. Immutable. Location Ownership Type (owned location or affiliate location).
.google.ads.googleads.v18.enums.LocationOwnershipTypeEnum.LocationOwnershipType location_ownership_type = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];- Returns:
- This builder for chaining.
-
hasBusinessProfileLocationSet
public boolean hasBusinessProfileLocationSet()Data used to configure a location set populated from Google Business Profile locations.
.google.ads.googleads.v18.common.BusinessProfileLocationSet business_profile_location_set = 1;- Specified by:
hasBusinessProfileLocationSetin interfaceLocationSetOrBuilder- Returns:
- Whether the businessProfileLocationSet field is set.
-
getBusinessProfileLocationSet
Data used to configure a location set populated from Google Business Profile locations.
.google.ads.googleads.v18.common.BusinessProfileLocationSet business_profile_location_set = 1;- Specified by:
getBusinessProfileLocationSetin interfaceLocationSetOrBuilder- Returns:
- The businessProfileLocationSet.
-
setBusinessProfileLocationSet
Data used to configure a location set populated from Google Business Profile locations.
.google.ads.googleads.v18.common.BusinessProfileLocationSet business_profile_location_set = 1; -
setBusinessProfileLocationSet
public LocationSet.Builder setBusinessProfileLocationSet(BusinessProfileLocationSet.Builder builderForValue) Data used to configure a location set populated from Google Business Profile locations.
.google.ads.googleads.v18.common.BusinessProfileLocationSet business_profile_location_set = 1; -
mergeBusinessProfileLocationSet
Data used to configure a location set populated from Google Business Profile locations.
.google.ads.googleads.v18.common.BusinessProfileLocationSet business_profile_location_set = 1; -
clearBusinessProfileLocationSet
Data used to configure a location set populated from Google Business Profile locations.
.google.ads.googleads.v18.common.BusinessProfileLocationSet business_profile_location_set = 1; -
getBusinessProfileLocationSetBuilder
Data used to configure a location set populated from Google Business Profile locations.
.google.ads.googleads.v18.common.BusinessProfileLocationSet business_profile_location_set = 1; -
getBusinessProfileLocationSetOrBuilder
Data used to configure a location set populated from Google Business Profile locations.
.google.ads.googleads.v18.common.BusinessProfileLocationSet business_profile_location_set = 1;- Specified by:
getBusinessProfileLocationSetOrBuilderin interfaceLocationSetOrBuilder
-
hasChainLocationSet
public boolean hasChainLocationSet()Data used to configure a location on chain set populated with the specified chains.
.google.ads.googleads.v18.common.ChainSet chain_location_set = 2;- Specified by:
hasChainLocationSetin interfaceLocationSetOrBuilder- Returns:
- Whether the chainLocationSet field is set.
-
getChainLocationSet
Data used to configure a location on chain set populated with the specified chains.
.google.ads.googleads.v18.common.ChainSet chain_location_set = 2;- Specified by:
getChainLocationSetin interfaceLocationSetOrBuilder- Returns:
- The chainLocationSet.
-
setChainLocationSet
Data used to configure a location on chain set populated with the specified chains.
.google.ads.googleads.v18.common.ChainSet chain_location_set = 2; -
setChainLocationSet
Data used to configure a location on chain set populated with the specified chains.
.google.ads.googleads.v18.common.ChainSet chain_location_set = 2; -
mergeChainLocationSet
Data used to configure a location on chain set populated with the specified chains.
.google.ads.googleads.v18.common.ChainSet chain_location_set = 2; -
clearChainLocationSet
Data used to configure a location on chain set populated with the specified chains.
.google.ads.googleads.v18.common.ChainSet chain_location_set = 2; -
getChainLocationSetBuilder
Data used to configure a location on chain set populated with the specified chains.
.google.ads.googleads.v18.common.ChainSet chain_location_set = 2; -
getChainLocationSetOrBuilder
Data used to configure a location on chain set populated with the specified chains.
.google.ads.googleads.v18.common.ChainSet chain_location_set = 2;- Specified by:
getChainLocationSetOrBuilderin interfaceLocationSetOrBuilder
-
hasMapsLocationSet
public boolean hasMapsLocationSet()Only set if locations are synced based on selected maps locations
.google.ads.googleads.v18.common.MapsLocationSet maps_location_set = 5;- Specified by:
hasMapsLocationSetin interfaceLocationSetOrBuilder- Returns:
- Whether the mapsLocationSet field is set.
-
getMapsLocationSet
Only set if locations are synced based on selected maps locations
.google.ads.googleads.v18.common.MapsLocationSet maps_location_set = 5;- Specified by:
getMapsLocationSetin interfaceLocationSetOrBuilder- Returns:
- The mapsLocationSet.
-
setMapsLocationSet
Only set if locations are synced based on selected maps locations
.google.ads.googleads.v18.common.MapsLocationSet maps_location_set = 5; -
setMapsLocationSet
Only set if locations are synced based on selected maps locations
.google.ads.googleads.v18.common.MapsLocationSet maps_location_set = 5; -
mergeMapsLocationSet
Only set if locations are synced based on selected maps locations
.google.ads.googleads.v18.common.MapsLocationSet maps_location_set = 5; -
clearMapsLocationSet
Only set if locations are synced based on selected maps locations
.google.ads.googleads.v18.common.MapsLocationSet maps_location_set = 5; -
getMapsLocationSetBuilder
Only set if locations are synced based on selected maps locations
.google.ads.googleads.v18.common.MapsLocationSet maps_location_set = 5; -
getMapsLocationSetOrBuilder
Only set if locations are synced based on selected maps locations
.google.ads.googleads.v18.common.MapsLocationSet maps_location_set = 5;- Specified by:
getMapsLocationSetOrBuilderin interfaceLocationSetOrBuilder
-
setUnknownFields
public final LocationSet.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<LocationSet.Builder>
-
mergeUnknownFields
public final LocationSet.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<LocationSet.Builder>
-