Class AssetSet

java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessageV3
com.google.ads.googleads.v18.resources.AssetSet
All Implemented Interfaces:
AssetSetOrBuilder, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable

public final class AssetSet extends com.google.protobuf.GeneratedMessageV3 implements AssetSetOrBuilder
 An asset set representing a collection of assets.
 Use AssetSetAsset to link an asset to the asset set.
 
Protobuf type google.ads.googleads.v18.resources.AssetSet
See Also:
  • Field Details

    • ID_FIELD_NUMBER

      public static final int ID_FIELD_NUMBER
      See Also:
    • RESOURCE_NAME_FIELD_NUMBER

      public static final int RESOURCE_NAME_FIELD_NUMBER
      See Also:
    • NAME_FIELD_NUMBER

      public static final int NAME_FIELD_NUMBER
      See Also:
    • TYPE_FIELD_NUMBER

      public static final int TYPE_FIELD_NUMBER
      See Also:
    • STATUS_FIELD_NUMBER

      public static final int STATUS_FIELD_NUMBER
      See Also:
    • MERCHANT_CENTER_FEED_FIELD_NUMBER

      public static final int MERCHANT_CENTER_FEED_FIELD_NUMBER
      See Also:
    • LOCATION_GROUP_PARENT_ASSET_SET_ID_FIELD_NUMBER

      public static final int LOCATION_GROUP_PARENT_ASSET_SET_ID_FIELD_NUMBER
      See Also:
    • HOTEL_PROPERTY_DATA_FIELD_NUMBER

      public static final int HOTEL_PROPERTY_DATA_FIELD_NUMBER
      See Also:
    • LOCATION_SET_FIELD_NUMBER

      public static final int LOCATION_SET_FIELD_NUMBER
      See Also:
    • BUSINESS_PROFILE_LOCATION_GROUP_FIELD_NUMBER

      public static final int BUSINESS_PROFILE_LOCATION_GROUP_FIELD_NUMBER
      See Also:
    • CHAIN_LOCATION_GROUP_FIELD_NUMBER

      public static final int CHAIN_LOCATION_GROUP_FIELD_NUMBER
      See Also:
  • Method Details

    • newInstance

      protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
      Overrides:
      newInstance in class com.google.protobuf.GeneratedMessageV3
    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3
    • getAssetSetSourceCase

      public AssetSet.AssetSetSourceCase getAssetSetSourceCase()
      Specified by:
      getAssetSetSourceCase in interface AssetSetOrBuilder
    • getId

      public long getId()
       Output only. The ID of the asset set.
       
      int64 id = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getId in interface AssetSetOrBuilder
      Returns:
      The id.
    • getResourceName

      public String getResourceName()
       Immutable. The resource name of the asset set.
       Asset set resource names have the form:
      
       `customers/{customer_id}/assetSets/{asset_set_id}`
       
      string resource_name = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
      Specified by:
      getResourceName in interface AssetSetOrBuilder
      Returns:
      The resourceName.
    • getResourceNameBytes

      public com.google.protobuf.ByteString getResourceNameBytes()
       Immutable. The resource name of the asset set.
       Asset set resource names have the form:
      
       `customers/{customer_id}/assetSets/{asset_set_id}`
       
      string resource_name = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
      Specified by:
      getResourceNameBytes in interface AssetSetOrBuilder
      Returns:
      The bytes for resourceName.
    • getName

      public String getName()
       Required. Name of the asset set. Required. It must have a minimum length of
       1 and maximum length of 128.
       
      string name = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getName in interface AssetSetOrBuilder
      Returns:
      The name.
    • getNameBytes

      public com.google.protobuf.ByteString getNameBytes()
       Required. Name of the asset set. Required. It must have a minimum length of
       1 and maximum length of 128.
       
      string name = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getNameBytes in interface AssetSetOrBuilder
      Returns:
      The bytes for name.
    • getTypeValue

      public int getTypeValue()
       Required. Immutable. The type of the asset set. Required.
       
      .google.ads.googleads.v18.enums.AssetSetTypeEnum.AssetSetType type = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];
      Specified by:
      getTypeValue in interface AssetSetOrBuilder
      Returns:
      The enum numeric value on the wire for type.
    • getType

       Required. Immutable. The type of the asset set. Required.
       
      .google.ads.googleads.v18.enums.AssetSetTypeEnum.AssetSetType type = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];
      Specified by:
      getType in interface AssetSetOrBuilder
      Returns:
      The type.
    • getStatusValue

      public int getStatusValue()
       Output only. The status of the asset set. Read-only.
       
      .google.ads.googleads.v18.enums.AssetSetStatusEnum.AssetSetStatus status = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getStatusValue in interface AssetSetOrBuilder
      Returns:
      The enum numeric value on the wire for status.
    • getStatus

       Output only. The status of the asset set. Read-only.
       
      .google.ads.googleads.v18.enums.AssetSetStatusEnum.AssetSetStatus status = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getStatus in interface AssetSetOrBuilder
      Returns:
      The status.
    • hasMerchantCenterFeed

      public boolean hasMerchantCenterFeed()
       Merchant ID and Feed Label from Google Merchant Center.
       
      .google.ads.googleads.v18.resources.AssetSet.MerchantCenterFeed merchant_center_feed = 5;
      Specified by:
      hasMerchantCenterFeed in interface AssetSetOrBuilder
      Returns:
      Whether the merchantCenterFeed field is set.
    • getMerchantCenterFeed

      public AssetSet.MerchantCenterFeed getMerchantCenterFeed()
       Merchant ID and Feed Label from Google Merchant Center.
       
      .google.ads.googleads.v18.resources.AssetSet.MerchantCenterFeed merchant_center_feed = 5;
      Specified by:
      getMerchantCenterFeed in interface AssetSetOrBuilder
      Returns:
      The merchantCenterFeed.
    • getMerchantCenterFeedOrBuilder

      public AssetSet.MerchantCenterFeedOrBuilder getMerchantCenterFeedOrBuilder()
       Merchant ID and Feed Label from Google Merchant Center.
       
      .google.ads.googleads.v18.resources.AssetSet.MerchantCenterFeed merchant_center_feed = 5;
      Specified by:
      getMerchantCenterFeedOrBuilder in interface AssetSetOrBuilder
    • getLocationGroupParentAssetSetId

      public long getLocationGroupParentAssetSetId()
       Immutable. Parent asset set id for the asset set where the elements of this
       asset set come from. For example: the sync level location AssetSet id where
       the the elements in LocationGroup AssetSet come from. This field is
       required and only applicable for Location Group typed AssetSet.
       
      int64 location_group_parent_asset_set_id = 10 [(.google.api.field_behavior) = IMMUTABLE];
      Specified by:
      getLocationGroupParentAssetSetId in interface AssetSetOrBuilder
      Returns:
      The locationGroupParentAssetSetId.
    • hasHotelPropertyData

      public boolean hasHotelPropertyData()
       Output only. For Performance Max for travel goals campaigns with a Hotel
       Center account link. Read-only.
       
      .google.ads.googleads.v18.resources.AssetSet.HotelPropertyData hotel_property_data = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      hasHotelPropertyData in interface AssetSetOrBuilder
      Returns:
      Whether the hotelPropertyData field is set.
    • getHotelPropertyData

      public AssetSet.HotelPropertyData getHotelPropertyData()
       Output only. For Performance Max for travel goals campaigns with a Hotel
       Center account link. Read-only.
       
      .google.ads.googleads.v18.resources.AssetSet.HotelPropertyData hotel_property_data = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getHotelPropertyData in interface AssetSetOrBuilder
      Returns:
      The hotelPropertyData.
    • getHotelPropertyDataOrBuilder

      public AssetSet.HotelPropertyDataOrBuilder getHotelPropertyDataOrBuilder()
       Output only. For Performance Max for travel goals campaigns with a Hotel
       Center account link. Read-only.
       
      .google.ads.googleads.v18.resources.AssetSet.HotelPropertyData hotel_property_data = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getHotelPropertyDataOrBuilder in interface AssetSetOrBuilder
    • hasLocationSet

      public boolean hasLocationSet()
       Location asset set data. This will be used for sync level location
       set. This can only be set if AssetSet's type is LOCATION_SYNC.
       
      .google.ads.googleads.v18.common.LocationSet location_set = 7;
      Specified by:
      hasLocationSet in interface AssetSetOrBuilder
      Returns:
      Whether the locationSet field is set.
    • getLocationSet

      public LocationSet getLocationSet()
       Location asset set data. This will be used for sync level location
       set. This can only be set if AssetSet's type is LOCATION_SYNC.
       
      .google.ads.googleads.v18.common.LocationSet location_set = 7;
      Specified by:
      getLocationSet in interface AssetSetOrBuilder
      Returns:
      The locationSet.
    • getLocationSetOrBuilder

      public LocationSetOrBuilder getLocationSetOrBuilder()
       Location asset set data. This will be used for sync level location
       set. This can only be set if AssetSet's type is LOCATION_SYNC.
       
      .google.ads.googleads.v18.common.LocationSet location_set = 7;
      Specified by:
      getLocationSetOrBuilder in interface AssetSetOrBuilder
    • hasBusinessProfileLocationGroup

      public boolean hasBusinessProfileLocationGroup()
       Business Profile location group asset set data.
       
      .google.ads.googleads.v18.common.BusinessProfileLocationGroup business_profile_location_group = 8;
      Specified by:
      hasBusinessProfileLocationGroup in interface AssetSetOrBuilder
      Returns:
      Whether the businessProfileLocationGroup field is set.
    • getBusinessProfileLocationGroup

      public BusinessProfileLocationGroup getBusinessProfileLocationGroup()
       Business Profile location group asset set data.
       
      .google.ads.googleads.v18.common.BusinessProfileLocationGroup business_profile_location_group = 8;
      Specified by:
      getBusinessProfileLocationGroup in interface AssetSetOrBuilder
      Returns:
      The businessProfileLocationGroup.
    • getBusinessProfileLocationGroupOrBuilder

      public BusinessProfileLocationGroupOrBuilder getBusinessProfileLocationGroupOrBuilder()
       Business Profile location group asset set data.
       
      .google.ads.googleads.v18.common.BusinessProfileLocationGroup business_profile_location_group = 8;
      Specified by:
      getBusinessProfileLocationGroupOrBuilder in interface AssetSetOrBuilder
    • hasChainLocationGroup

      public boolean hasChainLocationGroup()
       Represents information about a Chain dynamic location group.
       Only applicable if the sync level AssetSet's type is LOCATION_SYNC and
       sync source is chain.
       
      .google.ads.googleads.v18.common.ChainLocationGroup chain_location_group = 9;
      Specified by:
      hasChainLocationGroup in interface AssetSetOrBuilder
      Returns:
      Whether the chainLocationGroup field is set.
    • getChainLocationGroup

      public ChainLocationGroup getChainLocationGroup()
       Represents information about a Chain dynamic location group.
       Only applicable if the sync level AssetSet's type is LOCATION_SYNC and
       sync source is chain.
       
      .google.ads.googleads.v18.common.ChainLocationGroup chain_location_group = 9;
      Specified by:
      getChainLocationGroup in interface AssetSetOrBuilder
      Returns:
      The chainLocationGroup.
    • getChainLocationGroupOrBuilder

      public ChainLocationGroupOrBuilder getChainLocationGroupOrBuilder()
       Represents information about a Chain dynamic location group.
       Only applicable if the sync level AssetSet's type is LOCATION_SYNC and
       sync source is chain.
       
      .google.ads.googleads.v18.common.ChainLocationGroup chain_location_group = 9;
      Specified by:
      getChainLocationGroupOrBuilder in interface AssetSetOrBuilder
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessageV3
    • writeTo

      public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
      Specified by:
      writeTo in interface com.google.protobuf.MessageLite
      Overrides:
      writeTo in class com.google.protobuf.GeneratedMessageV3
      Throws:
      IOException
    • getSerializedSize

      public int getSerializedSize()
      Specified by:
      getSerializedSize in interface com.google.protobuf.MessageLite
      Overrides:
      getSerializedSize in class com.google.protobuf.GeneratedMessageV3
    • equals

      public boolean equals(Object obj)
      Specified by:
      equals in interface com.google.protobuf.Message
      Overrides:
      equals in class com.google.protobuf.AbstractMessage
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in interface com.google.protobuf.Message
      Overrides:
      hashCode in class com.google.protobuf.AbstractMessage
    • parseFrom

      public static AssetSet parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static AssetSet parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static AssetSet parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static AssetSet parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static AssetSet parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static AssetSet parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static AssetSet parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static AssetSet parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static AssetSet parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static AssetSet parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseFrom

      public static AssetSet parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static AssetSet parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • newBuilderForType

      public AssetSet.Builder newBuilderForType()
      Specified by:
      newBuilderForType in interface com.google.protobuf.Message
      Specified by:
      newBuilderForType in interface com.google.protobuf.MessageLite
    • newBuilder

      public static AssetSet.Builder newBuilder()
    • newBuilder

      public static AssetSet.Builder newBuilder(AssetSet prototype)
    • toBuilder

      public AssetSet.Builder toBuilder()
      Specified by:
      toBuilder in interface com.google.protobuf.Message
      Specified by:
      toBuilder in interface com.google.protobuf.MessageLite
    • newBuilderForType

      protected AssetSet.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
      Specified by:
      newBuilderForType in class com.google.protobuf.GeneratedMessageV3
    • getDefaultInstance

      public static AssetSet getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<AssetSet> parser()
    • getParserForType

      public com.google.protobuf.Parser<AssetSet> getParserForType()
      Specified by:
      getParserForType in interface com.google.protobuf.Message
      Specified by:
      getParserForType in interface com.google.protobuf.MessageLite
      Overrides:
      getParserForType in class com.google.protobuf.GeneratedMessageV3
    • getDefaultInstanceForType

      public AssetSet getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder