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.v15.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,java.lang.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 typegoogle.ads.googleads.v15.common.LocationSet
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description LocationSet.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)LocationSetbuild()LocationSetbuildPartial()LocationSet.Builderclear()LocationSet.BuilderclearBusinessProfileLocationSet()Data used to configure a location set populated from Google Business Profile locations.LocationSet.BuilderclearChainLocationSet()Data used to configure a location on chain set populated with the specified chains.LocationSet.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)LocationSet.BuilderclearLocationOwnershipType()Required.LocationSet.BuilderclearMapsLocationSet()Only set if locations are synced based on selected maps locationsLocationSet.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)LocationSet.BuilderclearSource()LocationSet.Builderclone()BusinessProfileLocationSetgetBusinessProfileLocationSet()Data used to configure a location set populated from Google Business Profile locations.BusinessProfileLocationSet.BuildergetBusinessProfileLocationSetBuilder()Data used to configure a location set populated from Google Business Profile locations.BusinessProfileLocationSetOrBuildergetBusinessProfileLocationSetOrBuilder()Data used to configure a location set populated from Google Business Profile locations.ChainSetgetChainLocationSet()Data used to configure a location on chain set populated with the specified chains.ChainSet.BuildergetChainLocationSetBuilder()Data used to configure a location on chain set populated with the specified chains.ChainSetOrBuildergetChainLocationSetOrBuilder()Data used to configure a location on chain set populated with the specified chains.LocationSetgetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()LocationOwnershipTypeEnum.LocationOwnershipTypegetLocationOwnershipType()Required.intgetLocationOwnershipTypeValue()Required.MapsLocationSetgetMapsLocationSet()Only set if locations are synced based on selected maps locationsMapsLocationSet.BuildergetMapsLocationSetBuilder()Only set if locations are synced based on selected maps locationsMapsLocationSetOrBuildergetMapsLocationSetOrBuilder()Only set if locations are synced based on selected maps locationsLocationSet.SourceCasegetSourceCase()booleanhasBusinessProfileLocationSet()Data used to configure a location set populated from Google Business Profile locations.booleanhasChainLocationSet()Data used to configure a location on chain set populated with the specified chains.booleanhasMapsLocationSet()Only set if locations are synced based on selected maps locationsprotected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()LocationSet.BuildermergeBusinessProfileLocationSet(BusinessProfileLocationSet value)Data used to configure a location set populated from Google Business Profile locations.LocationSet.BuildermergeChainLocationSet(ChainSet value)Data used to configure a location on chain set populated with the specified chains.LocationSet.BuildermergeFrom(LocationSet other)LocationSet.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)LocationSet.BuildermergeFrom(com.google.protobuf.Message other)LocationSet.BuildermergeMapsLocationSet(MapsLocationSet value)Only set if locations are synced based on selected maps locationsLocationSet.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)LocationSet.BuildersetBusinessProfileLocationSet(BusinessProfileLocationSet value)Data used to configure a location set populated from Google Business Profile locations.LocationSet.BuildersetBusinessProfileLocationSet(BusinessProfileLocationSet.Builder builderForValue)Data used to configure a location set populated from Google Business Profile locations.LocationSet.BuildersetChainLocationSet(ChainSet value)Data used to configure a location on chain set populated with the specified chains.LocationSet.BuildersetChainLocationSet(ChainSet.Builder builderForValue)Data used to configure a location on chain set populated with the specified chains.LocationSet.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)LocationSet.BuildersetLocationOwnershipType(LocationOwnershipTypeEnum.LocationOwnershipType value)Required.LocationSet.BuildersetLocationOwnershipTypeValue(int value)Required.LocationSet.BuildersetMapsLocationSet(MapsLocationSet value)Only set if locations are synced based on selected maps locationsLocationSet.BuildersetMapsLocationSet(MapsLocationSet.Builder builderForValue)Only set if locations are synced based on selected maps locationsLocationSet.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)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, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
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<LocationSet.Builder>
-
clear
public 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
public LocationSet getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public LocationSet build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public LocationSet buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public LocationSet.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, java.lang.Object value)
- Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<LocationSet.Builder>
-
clearField
public LocationSet.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<LocationSet.Builder>
-
clearOneof
public LocationSet.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- 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, java.lang.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, java.lang.Object value)
- Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<LocationSet.Builder>
-
mergeFrom
public LocationSet.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<LocationSet.Builder>
-
mergeFrom
public LocationSet.Builder mergeFrom(LocationSet other)
-
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 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<LocationSet.Builder>- Throws:
java.io.IOException
-
getSourceCase
public LocationSet.SourceCase getSourceCase()
- Specified by:
getSourceCasein interfaceLocationSetOrBuilder
-
clearSource
public LocationSet.Builder clearSource()
-
getLocationOwnershipTypeValue
public int getLocationOwnershipTypeValue()
Required. Immutable. Location Ownership Type (owned location or affiliate location).
.google.ads.googleads.v15.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
public LocationSet.Builder setLocationOwnershipTypeValue(int value)
Required. Immutable. Location Ownership Type (owned location or affiliate location).
.google.ads.googleads.v15.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
public LocationOwnershipTypeEnum.LocationOwnershipType getLocationOwnershipType()
Required. Immutable. Location Ownership Type (owned location or affiliate location).
.google.ads.googleads.v15.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.v15.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
public LocationSet.Builder clearLocationOwnershipType()
Required. Immutable. Location Ownership Type (owned location or affiliate location).
.google.ads.googleads.v15.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.v15.common.BusinessProfileLocationSet business_profile_location_set = 1;- Specified by:
hasBusinessProfileLocationSetin interfaceLocationSetOrBuilder- Returns:
- Whether the businessProfileLocationSet field is set.
-
getBusinessProfileLocationSet
public BusinessProfileLocationSet getBusinessProfileLocationSet()
Data used to configure a location set populated from Google Business Profile locations.
.google.ads.googleads.v15.common.BusinessProfileLocationSet business_profile_location_set = 1;- Specified by:
getBusinessProfileLocationSetin interfaceLocationSetOrBuilder- Returns:
- The businessProfileLocationSet.
-
setBusinessProfileLocationSet
public LocationSet.Builder setBusinessProfileLocationSet(BusinessProfileLocationSet value)
Data used to configure a location set populated from Google Business Profile locations.
.google.ads.googleads.v15.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.v15.common.BusinessProfileLocationSet business_profile_location_set = 1;
-
mergeBusinessProfileLocationSet
public LocationSet.Builder mergeBusinessProfileLocationSet(BusinessProfileLocationSet value)
Data used to configure a location set populated from Google Business Profile locations.
.google.ads.googleads.v15.common.BusinessProfileLocationSet business_profile_location_set = 1;
-
clearBusinessProfileLocationSet
public LocationSet.Builder clearBusinessProfileLocationSet()
Data used to configure a location set populated from Google Business Profile locations.
.google.ads.googleads.v15.common.BusinessProfileLocationSet business_profile_location_set = 1;
-
getBusinessProfileLocationSetBuilder
public BusinessProfileLocationSet.Builder getBusinessProfileLocationSetBuilder()
Data used to configure a location set populated from Google Business Profile locations.
.google.ads.googleads.v15.common.BusinessProfileLocationSet business_profile_location_set = 1;
-
getBusinessProfileLocationSetOrBuilder
public BusinessProfileLocationSetOrBuilder getBusinessProfileLocationSetOrBuilder()
Data used to configure a location set populated from Google Business Profile locations.
.google.ads.googleads.v15.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.v15.common.ChainSet chain_location_set = 2;- Specified by:
hasChainLocationSetin interfaceLocationSetOrBuilder- Returns:
- Whether the chainLocationSet field is set.
-
getChainLocationSet
public ChainSet getChainLocationSet()
Data used to configure a location on chain set populated with the specified chains.
.google.ads.googleads.v15.common.ChainSet chain_location_set = 2;- Specified by:
getChainLocationSetin interfaceLocationSetOrBuilder- Returns:
- The chainLocationSet.
-
setChainLocationSet
public LocationSet.Builder setChainLocationSet(ChainSet value)
Data used to configure a location on chain set populated with the specified chains.
.google.ads.googleads.v15.common.ChainSet chain_location_set = 2;
-
setChainLocationSet
public LocationSet.Builder setChainLocationSet(ChainSet.Builder builderForValue)
Data used to configure a location on chain set populated with the specified chains.
.google.ads.googleads.v15.common.ChainSet chain_location_set = 2;
-
mergeChainLocationSet
public LocationSet.Builder mergeChainLocationSet(ChainSet value)
Data used to configure a location on chain set populated with the specified chains.
.google.ads.googleads.v15.common.ChainSet chain_location_set = 2;
-
clearChainLocationSet
public LocationSet.Builder clearChainLocationSet()
Data used to configure a location on chain set populated with the specified chains.
.google.ads.googleads.v15.common.ChainSet chain_location_set = 2;
-
getChainLocationSetBuilder
public ChainSet.Builder getChainLocationSetBuilder()
Data used to configure a location on chain set populated with the specified chains.
.google.ads.googleads.v15.common.ChainSet chain_location_set = 2;
-
getChainLocationSetOrBuilder
public ChainSetOrBuilder getChainLocationSetOrBuilder()
Data used to configure a location on chain set populated with the specified chains.
.google.ads.googleads.v15.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.v15.common.MapsLocationSet maps_location_set = 5;- Specified by:
hasMapsLocationSetin interfaceLocationSetOrBuilder- Returns:
- Whether the mapsLocationSet field is set.
-
getMapsLocationSet
public MapsLocationSet getMapsLocationSet()
Only set if locations are synced based on selected maps locations
.google.ads.googleads.v15.common.MapsLocationSet maps_location_set = 5;- Specified by:
getMapsLocationSetin interfaceLocationSetOrBuilder- Returns:
- The mapsLocationSet.
-
setMapsLocationSet
public LocationSet.Builder setMapsLocationSet(MapsLocationSet value)
Only set if locations are synced based on selected maps locations
.google.ads.googleads.v15.common.MapsLocationSet maps_location_set = 5;
-
setMapsLocationSet
public LocationSet.Builder setMapsLocationSet(MapsLocationSet.Builder builderForValue)
Only set if locations are synced based on selected maps locations
.google.ads.googleads.v15.common.MapsLocationSet maps_location_set = 5;
-
mergeMapsLocationSet
public LocationSet.Builder mergeMapsLocationSet(MapsLocationSet value)
Only set if locations are synced based on selected maps locations
.google.ads.googleads.v15.common.MapsLocationSet maps_location_set = 5;
-
clearMapsLocationSet
public LocationSet.Builder clearMapsLocationSet()
Only set if locations are synced based on selected maps locations
.google.ads.googleads.v15.common.MapsLocationSet maps_location_set = 5;
-
getMapsLocationSetBuilder
public MapsLocationSet.Builder getMapsLocationSetBuilder()
Only set if locations are synced based on selected maps locations
.google.ads.googleads.v15.common.MapsLocationSet maps_location_set = 5;
-
getMapsLocationSetOrBuilder
public MapsLocationSetOrBuilder getMapsLocationSetOrBuilder()
Only set if locations are synced based on selected maps locations
.google.ads.googleads.v15.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>
-
-