Class LocationAsset.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<LocationAsset.Builder>
-
- com.google.ads.googleads.v15.common.LocationAsset.Builder
-
- All Implemented Interfaces:
LocationAssetOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,java.lang.Cloneable
- Enclosing class:
- LocationAsset
public static final class LocationAsset.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<LocationAsset.Builder> implements LocationAssetOrBuilder
A location asset.
Protobuf typegoogle.ads.googleads.v15.common.LocationAsset
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description LocationAsset.BuilderaddAllBusinessProfileLocations(java.lang.Iterable<? extends BusinessProfileLocation> values)The list of business locations for the customer.LocationAsset.BuilderaddBusinessProfileLocations(int index, BusinessProfileLocation value)The list of business locations for the customer.LocationAsset.BuilderaddBusinessProfileLocations(int index, BusinessProfileLocation.Builder builderForValue)The list of business locations for the customer.LocationAsset.BuilderaddBusinessProfileLocations(BusinessProfileLocation value)The list of business locations for the customer.LocationAsset.BuilderaddBusinessProfileLocations(BusinessProfileLocation.Builder builderForValue)The list of business locations for the customer.BusinessProfileLocation.BuilderaddBusinessProfileLocationsBuilder()The list of business locations for the customer.BusinessProfileLocation.BuilderaddBusinessProfileLocationsBuilder(int index)The list of business locations for the customer.LocationAsset.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)LocationAssetbuild()LocationAssetbuildPartial()LocationAsset.Builderclear()LocationAsset.BuilderclearBusinessProfileLocations()The list of business locations for the customer.LocationAsset.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)LocationAsset.BuilderclearLocationOwnershipType()The type of location ownership.LocationAsset.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)LocationAsset.BuilderclearPlaceId()Place IDs uniquely identify a place in the Google Places database and on Google Maps.LocationAsset.Builderclone()BusinessProfileLocationgetBusinessProfileLocations(int index)The list of business locations for the customer.BusinessProfileLocation.BuildergetBusinessProfileLocationsBuilder(int index)The list of business locations for the customer.java.util.List<BusinessProfileLocation.Builder>getBusinessProfileLocationsBuilderList()The list of business locations for the customer.intgetBusinessProfileLocationsCount()The list of business locations for the customer.java.util.List<BusinessProfileLocation>getBusinessProfileLocationsList()The list of business locations for the customer.BusinessProfileLocationOrBuildergetBusinessProfileLocationsOrBuilder(int index)The list of business locations for the customer.java.util.List<? extends BusinessProfileLocationOrBuilder>getBusinessProfileLocationsOrBuilderList()The list of business locations for the customer.LocationAssetgetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()LocationOwnershipTypeEnum.LocationOwnershipTypegetLocationOwnershipType()The type of location ownership.intgetLocationOwnershipTypeValue()The type of location ownership.java.lang.StringgetPlaceId()Place IDs uniquely identify a place in the Google Places database and on Google Maps.com.google.protobuf.ByteStringgetPlaceIdBytes()Place IDs uniquely identify a place in the Google Places database and on Google Maps.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()LocationAsset.BuildermergeFrom(LocationAsset other)LocationAsset.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)LocationAsset.BuildermergeFrom(com.google.protobuf.Message other)LocationAsset.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)LocationAsset.BuilderremoveBusinessProfileLocations(int index)The list of business locations for the customer.LocationAsset.BuildersetBusinessProfileLocations(int index, BusinessProfileLocation value)The list of business locations for the customer.LocationAsset.BuildersetBusinessProfileLocations(int index, BusinessProfileLocation.Builder builderForValue)The list of business locations for the customer.LocationAsset.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)LocationAsset.BuildersetLocationOwnershipType(LocationOwnershipTypeEnum.LocationOwnershipType value)The type of location ownership.LocationAsset.BuildersetLocationOwnershipTypeValue(int value)The type of location ownership.LocationAsset.BuildersetPlaceId(java.lang.String value)Place IDs uniquely identify a place in the Google Places database and on Google Maps.LocationAsset.BuildersetPlaceIdBytes(com.google.protobuf.ByteString value)Place IDs uniquely identify a place in the Google Places database and on Google Maps.LocationAsset.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)LocationAsset.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<LocationAsset.Builder>
-
clear
public LocationAsset.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<LocationAsset.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<LocationAsset.Builder>
-
getDefaultInstanceForType
public LocationAsset getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public LocationAsset build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public LocationAsset buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public LocationAsset.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<LocationAsset.Builder>
-
setField
public LocationAsset.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<LocationAsset.Builder>
-
clearField
public LocationAsset.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<LocationAsset.Builder>
-
clearOneof
public LocationAsset.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<LocationAsset.Builder>
-
setRepeatedField
public LocationAsset.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<LocationAsset.Builder>
-
addRepeatedField
public LocationAsset.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<LocationAsset.Builder>
-
mergeFrom
public LocationAsset.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<LocationAsset.Builder>
-
mergeFrom
public LocationAsset.Builder mergeFrom(LocationAsset other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<LocationAsset.Builder>
-
mergeFrom
public LocationAsset.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<LocationAsset.Builder>- Throws:
java.io.IOException
-
getPlaceId
public java.lang.String getPlaceId()
Place IDs uniquely identify a place in the Google Places database and on Google Maps. This field is unique for a given customer ID and asset type. See https://developers.google.com/places/web-service/place-id to learn more about Place ID.
string place_id = 1;- Specified by:
getPlaceIdin interfaceLocationAssetOrBuilder- Returns:
- The placeId.
-
getPlaceIdBytes
public com.google.protobuf.ByteString getPlaceIdBytes()
Place IDs uniquely identify a place in the Google Places database and on Google Maps. This field is unique for a given customer ID and asset type. See https://developers.google.com/places/web-service/place-id to learn more about Place ID.
string place_id = 1;- Specified by:
getPlaceIdBytesin interfaceLocationAssetOrBuilder- Returns:
- The bytes for placeId.
-
setPlaceId
public LocationAsset.Builder setPlaceId(java.lang.String value)
Place IDs uniquely identify a place in the Google Places database and on Google Maps. This field is unique for a given customer ID and asset type. See https://developers.google.com/places/web-service/place-id to learn more about Place ID.
string place_id = 1;- Parameters:
value- The placeId to set.- Returns:
- This builder for chaining.
-
clearPlaceId
public LocationAsset.Builder clearPlaceId()
Place IDs uniquely identify a place in the Google Places database and on Google Maps. This field is unique for a given customer ID and asset type. See https://developers.google.com/places/web-service/place-id to learn more about Place ID.
string place_id = 1;- Returns:
- This builder for chaining.
-
setPlaceIdBytes
public LocationAsset.Builder setPlaceIdBytes(com.google.protobuf.ByteString value)
Place IDs uniquely identify a place in the Google Places database and on Google Maps. This field is unique for a given customer ID and asset type. See https://developers.google.com/places/web-service/place-id to learn more about Place ID.
string place_id = 1;- Parameters:
value- The bytes for placeId to set.- Returns:
- This builder for chaining.
-
getBusinessProfileLocationsList
public java.util.List<BusinessProfileLocation> getBusinessProfileLocationsList()
The list of business locations for the customer. This will only be returned if the Location Asset is syncing from the Business Profile account. It is possible to have multiple Business Profile listings under the same account that point to the same Place ID.
repeated .google.ads.googleads.v15.common.BusinessProfileLocation business_profile_locations = 2;- Specified by:
getBusinessProfileLocationsListin interfaceLocationAssetOrBuilder
-
getBusinessProfileLocationsCount
public int getBusinessProfileLocationsCount()
The list of business locations for the customer. This will only be returned if the Location Asset is syncing from the Business Profile account. It is possible to have multiple Business Profile listings under the same account that point to the same Place ID.
repeated .google.ads.googleads.v15.common.BusinessProfileLocation business_profile_locations = 2;- Specified by:
getBusinessProfileLocationsCountin interfaceLocationAssetOrBuilder
-
getBusinessProfileLocations
public BusinessProfileLocation getBusinessProfileLocations(int index)
The list of business locations for the customer. This will only be returned if the Location Asset is syncing from the Business Profile account. It is possible to have multiple Business Profile listings under the same account that point to the same Place ID.
repeated .google.ads.googleads.v15.common.BusinessProfileLocation business_profile_locations = 2;- Specified by:
getBusinessProfileLocationsin interfaceLocationAssetOrBuilder
-
setBusinessProfileLocations
public LocationAsset.Builder setBusinessProfileLocations(int index, BusinessProfileLocation value)
The list of business locations for the customer. This will only be returned if the Location Asset is syncing from the Business Profile account. It is possible to have multiple Business Profile listings under the same account that point to the same Place ID.
repeated .google.ads.googleads.v15.common.BusinessProfileLocation business_profile_locations = 2;
-
setBusinessProfileLocations
public LocationAsset.Builder setBusinessProfileLocations(int index, BusinessProfileLocation.Builder builderForValue)
The list of business locations for the customer. This will only be returned if the Location Asset is syncing from the Business Profile account. It is possible to have multiple Business Profile listings under the same account that point to the same Place ID.
repeated .google.ads.googleads.v15.common.BusinessProfileLocation business_profile_locations = 2;
-
addBusinessProfileLocations
public LocationAsset.Builder addBusinessProfileLocations(BusinessProfileLocation value)
The list of business locations for the customer. This will only be returned if the Location Asset is syncing from the Business Profile account. It is possible to have multiple Business Profile listings under the same account that point to the same Place ID.
repeated .google.ads.googleads.v15.common.BusinessProfileLocation business_profile_locations = 2;
-
addBusinessProfileLocations
public LocationAsset.Builder addBusinessProfileLocations(int index, BusinessProfileLocation value)
The list of business locations for the customer. This will only be returned if the Location Asset is syncing from the Business Profile account. It is possible to have multiple Business Profile listings under the same account that point to the same Place ID.
repeated .google.ads.googleads.v15.common.BusinessProfileLocation business_profile_locations = 2;
-
addBusinessProfileLocations
public LocationAsset.Builder addBusinessProfileLocations(BusinessProfileLocation.Builder builderForValue)
The list of business locations for the customer. This will only be returned if the Location Asset is syncing from the Business Profile account. It is possible to have multiple Business Profile listings under the same account that point to the same Place ID.
repeated .google.ads.googleads.v15.common.BusinessProfileLocation business_profile_locations = 2;
-
addBusinessProfileLocations
public LocationAsset.Builder addBusinessProfileLocations(int index, BusinessProfileLocation.Builder builderForValue)
The list of business locations for the customer. This will only be returned if the Location Asset is syncing from the Business Profile account. It is possible to have multiple Business Profile listings under the same account that point to the same Place ID.
repeated .google.ads.googleads.v15.common.BusinessProfileLocation business_profile_locations = 2;
-
addAllBusinessProfileLocations
public LocationAsset.Builder addAllBusinessProfileLocations(java.lang.Iterable<? extends BusinessProfileLocation> values)
The list of business locations for the customer. This will only be returned if the Location Asset is syncing from the Business Profile account. It is possible to have multiple Business Profile listings under the same account that point to the same Place ID.
repeated .google.ads.googleads.v15.common.BusinessProfileLocation business_profile_locations = 2;
-
clearBusinessProfileLocations
public LocationAsset.Builder clearBusinessProfileLocations()
The list of business locations for the customer. This will only be returned if the Location Asset is syncing from the Business Profile account. It is possible to have multiple Business Profile listings under the same account that point to the same Place ID.
repeated .google.ads.googleads.v15.common.BusinessProfileLocation business_profile_locations = 2;
-
removeBusinessProfileLocations
public LocationAsset.Builder removeBusinessProfileLocations(int index)
The list of business locations for the customer. This will only be returned if the Location Asset is syncing from the Business Profile account. It is possible to have multiple Business Profile listings under the same account that point to the same Place ID.
repeated .google.ads.googleads.v15.common.BusinessProfileLocation business_profile_locations = 2;
-
getBusinessProfileLocationsBuilder
public BusinessProfileLocation.Builder getBusinessProfileLocationsBuilder(int index)
The list of business locations for the customer. This will only be returned if the Location Asset is syncing from the Business Profile account. It is possible to have multiple Business Profile listings under the same account that point to the same Place ID.
repeated .google.ads.googleads.v15.common.BusinessProfileLocation business_profile_locations = 2;
-
getBusinessProfileLocationsOrBuilder
public BusinessProfileLocationOrBuilder getBusinessProfileLocationsOrBuilder(int index)
The list of business locations for the customer. This will only be returned if the Location Asset is syncing from the Business Profile account. It is possible to have multiple Business Profile listings under the same account that point to the same Place ID.
repeated .google.ads.googleads.v15.common.BusinessProfileLocation business_profile_locations = 2;- Specified by:
getBusinessProfileLocationsOrBuilderin interfaceLocationAssetOrBuilder
-
getBusinessProfileLocationsOrBuilderList
public java.util.List<? extends BusinessProfileLocationOrBuilder> getBusinessProfileLocationsOrBuilderList()
The list of business locations for the customer. This will only be returned if the Location Asset is syncing from the Business Profile account. It is possible to have multiple Business Profile listings under the same account that point to the same Place ID.
repeated .google.ads.googleads.v15.common.BusinessProfileLocation business_profile_locations = 2;- Specified by:
getBusinessProfileLocationsOrBuilderListin interfaceLocationAssetOrBuilder
-
addBusinessProfileLocationsBuilder
public BusinessProfileLocation.Builder addBusinessProfileLocationsBuilder()
The list of business locations for the customer. This will only be returned if the Location Asset is syncing from the Business Profile account. It is possible to have multiple Business Profile listings under the same account that point to the same Place ID.
repeated .google.ads.googleads.v15.common.BusinessProfileLocation business_profile_locations = 2;
-
addBusinessProfileLocationsBuilder
public BusinessProfileLocation.Builder addBusinessProfileLocationsBuilder(int index)
The list of business locations for the customer. This will only be returned if the Location Asset is syncing from the Business Profile account. It is possible to have multiple Business Profile listings under the same account that point to the same Place ID.
repeated .google.ads.googleads.v15.common.BusinessProfileLocation business_profile_locations = 2;
-
getBusinessProfileLocationsBuilderList
public java.util.List<BusinessProfileLocation.Builder> getBusinessProfileLocationsBuilderList()
The list of business locations for the customer. This will only be returned if the Location Asset is syncing from the Business Profile account. It is possible to have multiple Business Profile listings under the same account that point to the same Place ID.
repeated .google.ads.googleads.v15.common.BusinessProfileLocation business_profile_locations = 2;
-
getLocationOwnershipTypeValue
public int getLocationOwnershipTypeValue()
The type of location ownership. If the type is BUSINESS_OWNER, it will be served as a location extension. If the type is AFFILIATE, it will be served as an affiliate location.
.google.ads.googleads.v15.enums.LocationOwnershipTypeEnum.LocationOwnershipType location_ownership_type = 3;- Specified by:
getLocationOwnershipTypeValuein interfaceLocationAssetOrBuilder- Returns:
- The enum numeric value on the wire for locationOwnershipType.
-
setLocationOwnershipTypeValue
public LocationAsset.Builder setLocationOwnershipTypeValue(int value)
The type of location ownership. If the type is BUSINESS_OWNER, it will be served as a location extension. If the type is AFFILIATE, it will be served as an affiliate location.
.google.ads.googleads.v15.enums.LocationOwnershipTypeEnum.LocationOwnershipType location_ownership_type = 3;- Parameters:
value- The enum numeric value on the wire for locationOwnershipType to set.- Returns:
- This builder for chaining.
-
getLocationOwnershipType
public LocationOwnershipTypeEnum.LocationOwnershipType getLocationOwnershipType()
The type of location ownership. If the type is BUSINESS_OWNER, it will be served as a location extension. If the type is AFFILIATE, it will be served as an affiliate location.
.google.ads.googleads.v15.enums.LocationOwnershipTypeEnum.LocationOwnershipType location_ownership_type = 3;- Specified by:
getLocationOwnershipTypein interfaceLocationAssetOrBuilder- Returns:
- The locationOwnershipType.
-
setLocationOwnershipType
public LocationAsset.Builder setLocationOwnershipType(LocationOwnershipTypeEnum.LocationOwnershipType value)
The type of location ownership. If the type is BUSINESS_OWNER, it will be served as a location extension. If the type is AFFILIATE, it will be served as an affiliate location.
.google.ads.googleads.v15.enums.LocationOwnershipTypeEnum.LocationOwnershipType location_ownership_type = 3;- Parameters:
value- The locationOwnershipType to set.- Returns:
- This builder for chaining.
-
clearLocationOwnershipType
public LocationAsset.Builder clearLocationOwnershipType()
The type of location ownership. If the type is BUSINESS_OWNER, it will be served as a location extension. If the type is AFFILIATE, it will be served as an affiliate location.
.google.ads.googleads.v15.enums.LocationOwnershipTypeEnum.LocationOwnershipType location_ownership_type = 3;- Returns:
- This builder for chaining.
-
setUnknownFields
public final LocationAsset.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<LocationAsset.Builder>
-
mergeUnknownFields
public final LocationAsset.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<LocationAsset.Builder>
-
-