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.v18.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,Cloneable
- Enclosing class:
- LocationAsset
public static final class LocationAsset.Builder
extends com.google.protobuf.GeneratedMessageV3.Builder<LocationAsset.Builder>
implements LocationAssetOrBuilder
A location asset.Protobuf type
google.ads.googleads.v18.common.LocationAsset-
Method Summary
Modifier and TypeMethodDescriptionaddAllBusinessProfileLocations(Iterable<? extends BusinessProfileLocation> values) The list of business locations for the customer.addBusinessProfileLocations(int index, BusinessProfileLocation value) The list of business locations for the customer.addBusinessProfileLocations(int index, BusinessProfileLocation.Builder builderForValue) The list of business locations for the customer.The list of business locations for the customer.addBusinessProfileLocations(BusinessProfileLocation.Builder builderForValue) The list of business locations for the customer.The list of business locations for the customer.addBusinessProfileLocationsBuilder(int index) The list of business locations for the customer.addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) build()clear()The list of business locations for the customer.clearField(com.google.protobuf.Descriptors.FieldDescriptor field) The type of location ownership.clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) Place IDs uniquely identify a place in the Google Places database and on Google Maps.clone()getBusinessProfileLocations(int index) The list of business locations for the customer.getBusinessProfileLocationsBuilder(int index) The list of business locations for the customer.The list of business locations for the customer.intThe list of business locations for the customer.The list of business locations for the customer.getBusinessProfileLocationsOrBuilder(int index) The list of business locations for the customer.List<? extends BusinessProfileLocationOrBuilder>The list of business locations for the customer.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorThe type of location ownership.intThe type of location ownership.Place IDs uniquely identify a place in the Google Places database and on Google Maps.com.google.protobuf.ByteStringPlace IDs uniquely identify a place in the Google Places database and on Google Maps.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTablefinal booleanmergeFrom(LocationAsset other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) final LocationAsset.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) removeBusinessProfileLocations(int index) The list of business locations for the customer.setBusinessProfileLocations(int index, BusinessProfileLocation value) The list of business locations for the customer.setBusinessProfileLocations(int index, BusinessProfileLocation.Builder builderForValue) The list of business locations for the customer.The type of location ownership.setLocationOwnershipTypeValue(int value) The type of location ownership.setPlaceId(String value) Place IDs uniquely identify a place in the Google Places database and on Google Maps.setPlaceIdBytes(com.google.protobuf.ByteString value) Place IDs uniquely identify a place in the Google Places database and on Google Maps.setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) final 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, 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<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
- 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<LocationAsset.Builder>
-
setField
public LocationAsset.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<LocationAsset.Builder>
-
clearField
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<LocationAsset.Builder>
-
clearOneof
- 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, 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, Object value) - Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<LocationAsset.Builder>
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<LocationAsset.Builder>
-
mergeFrom
-
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 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:
IOException
-
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
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
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
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
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.v18.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.v18.common.BusinessProfileLocation business_profile_locations = 2;- Specified by:
getBusinessProfileLocationsCountin interfaceLocationAssetOrBuilder
-
getBusinessProfileLocations
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.v18.common.BusinessProfileLocation business_profile_locations = 2;- Specified by:
getBusinessProfileLocationsin interfaceLocationAssetOrBuilder
-
setBusinessProfileLocations
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.v18.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.v18.common.BusinessProfileLocation business_profile_locations = 2; -
addBusinessProfileLocations
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.v18.common.BusinessProfileLocation business_profile_locations = 2; -
addBusinessProfileLocations
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.v18.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.v18.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.v18.common.BusinessProfileLocation business_profile_locations = 2; -
addAllBusinessProfileLocations
public LocationAsset.Builder addAllBusinessProfileLocations(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.v18.common.BusinessProfileLocation business_profile_locations = 2; -
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.v18.common.BusinessProfileLocation business_profile_locations = 2; -
removeBusinessProfileLocations
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.v18.common.BusinessProfileLocation business_profile_locations = 2; -
getBusinessProfileLocationsBuilder
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.v18.common.BusinessProfileLocation business_profile_locations = 2; -
getBusinessProfileLocationsOrBuilder
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.v18.common.BusinessProfileLocation business_profile_locations = 2;- Specified by:
getBusinessProfileLocationsOrBuilderin interfaceLocationAssetOrBuilder
-
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.v18.common.BusinessProfileLocation business_profile_locations = 2;- Specified by:
getBusinessProfileLocationsOrBuilderListin interfaceLocationAssetOrBuilder
-
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.v18.common.BusinessProfileLocation business_profile_locations = 2; -
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.v18.common.BusinessProfileLocation business_profile_locations = 2; -
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.v18.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.v18.enums.LocationOwnershipTypeEnum.LocationOwnershipType location_ownership_type = 3;- Specified by:
getLocationOwnershipTypeValuein interfaceLocationAssetOrBuilder- Returns:
- The enum numeric value on the wire for locationOwnershipType.
-
setLocationOwnershipTypeValue
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.v18.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
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.v18.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.v18.enums.LocationOwnershipTypeEnum.LocationOwnershipType location_ownership_type = 3;- Parameters:
value- The locationOwnershipType to set.- Returns:
- This builder for chaining.
-
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.v18.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>
-