Class AssetGroup.Builder

  • All Implemented Interfaces:
    AssetGroupOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, java.lang.Cloneable
    Enclosing class:
    AssetGroup

    public static final class AssetGroup.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<AssetGroup.Builder>
    implements AssetGroupOrBuilder
     An asset group.
     AssetGroupAsset will be used to link an asset to the asset group.
     AssetGroupHint will be used to associate a hint to an asset group.
     
    Protobuf type google.ads.googleads.v10.resources.AssetGroup
    • Method Detail

      • 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.Builder<AssetGroup.Builder>
      • clear

        public AssetGroup.Builder clear()
        Specified by:
        clear in interface com.google.protobuf.Message.Builder
        Specified by:
        clear in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clear in class com.google.protobuf.GeneratedMessageV3.Builder<AssetGroup.Builder>
      • getDescriptorForType

        public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
        Specified by:
        getDescriptorForType in interface com.google.protobuf.Message.Builder
        Specified by:
        getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
        Overrides:
        getDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<AssetGroup.Builder>
      • getDefaultInstanceForType

        public AssetGroup getDefaultInstanceForType()
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
      • build

        public AssetGroup build()
        Specified by:
        build in interface com.google.protobuf.Message.Builder
        Specified by:
        build in interface com.google.protobuf.MessageLite.Builder
      • buildPartial

        public AssetGroup buildPartial()
        Specified by:
        buildPartial in interface com.google.protobuf.Message.Builder
        Specified by:
        buildPartial in interface com.google.protobuf.MessageLite.Builder
      • clone

        public AssetGroup.Builder clone()
        Specified by:
        clone in interface com.google.protobuf.Message.Builder
        Specified by:
        clone in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clone in class com.google.protobuf.GeneratedMessageV3.Builder<AssetGroup.Builder>
      • setField

        public AssetGroup.Builder setField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                           java.lang.Object value)
        Specified by:
        setField in interface com.google.protobuf.Message.Builder
        Overrides:
        setField in class com.google.protobuf.GeneratedMessageV3.Builder<AssetGroup.Builder>
      • clearField

        public AssetGroup.Builder clearField​(com.google.protobuf.Descriptors.FieldDescriptor field)
        Specified by:
        clearField in interface com.google.protobuf.Message.Builder
        Overrides:
        clearField in class com.google.protobuf.GeneratedMessageV3.Builder<AssetGroup.Builder>
      • clearOneof

        public AssetGroup.Builder clearOneof​(com.google.protobuf.Descriptors.OneofDescriptor oneof)
        Specified by:
        clearOneof in interface com.google.protobuf.Message.Builder
        Overrides:
        clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<AssetGroup.Builder>
      • setRepeatedField

        public AssetGroup.Builder setRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                   int index,
                                                   java.lang.Object value)
        Specified by:
        setRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<AssetGroup.Builder>
      • addRepeatedField

        public AssetGroup.Builder addRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                   java.lang.Object value)
        Specified by:
        addRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<AssetGroup.Builder>
      • mergeFrom

        public AssetGroup.Builder mergeFrom​(com.google.protobuf.Message other)
        Specified by:
        mergeFrom in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeFrom in class com.google.protobuf.AbstractMessage.Builder<AssetGroup.Builder>
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<AssetGroup.Builder>
      • mergeFrom

        public AssetGroup.Builder mergeFrom​(com.google.protobuf.CodedInputStream input,
                                            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                     throws java.io.IOException
        Specified by:
        mergeFrom in interface com.google.protobuf.Message.Builder
        Specified by:
        mergeFrom in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        mergeFrom in class com.google.protobuf.AbstractMessage.Builder<AssetGroup.Builder>
        Throws:
        java.io.IOException
      • getResourceName

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

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

        public AssetGroup.Builder setResourceName​(java.lang.String value)
         Immutable. The resource name of the asset group.
         Asset group resource names have the form:
         `customers/{customer_id}/assetGroups/{asset_group_id}`
         
        string resource_name = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
        Parameters:
        value - The resourceName to set.
        Returns:
        This builder for chaining.
      • clearResourceName

        public AssetGroup.Builder clearResourceName()
         Immutable. The resource name of the asset group.
         Asset group resource names have the form:
         `customers/{customer_id}/assetGroups/{asset_group_id}`
         
        string resource_name = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
        Returns:
        This builder for chaining.
      • setResourceNameBytes

        public AssetGroup.Builder setResourceNameBytes​(com.google.protobuf.ByteString value)
         Immutable. The resource name of the asset group.
         Asset group resource names have the form:
         `customers/{customer_id}/assetGroups/{asset_group_id}`
         
        string resource_name = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
        Parameters:
        value - The bytes for resourceName to set.
        Returns:
        This builder for chaining.
      • getId

        public long getId()
         Output only. The ID of the asset group.
         
        int64 id = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getId in interface AssetGroupOrBuilder
        Returns:
        The id.
      • setId

        public AssetGroup.Builder setId​(long value)
         Output only. The ID of the asset group.
         
        int64 id = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Parameters:
        value - The id to set.
        Returns:
        This builder for chaining.
      • clearId

        public AssetGroup.Builder clearId()
         Output only. The ID of the asset group.
         
        int64 id = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Returns:
        This builder for chaining.
      • getCampaign

        public java.lang.String getCampaign()
         Immutable. The campaign with which this asset group is associated.
         The asset which is linked to the asset group.
         
        string campaign = 2 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
        Specified by:
        getCampaign in interface AssetGroupOrBuilder
        Returns:
        The campaign.
      • getCampaignBytes

        public com.google.protobuf.ByteString getCampaignBytes()
         Immutable. The campaign with which this asset group is associated.
         The asset which is linked to the asset group.
         
        string campaign = 2 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
        Specified by:
        getCampaignBytes in interface AssetGroupOrBuilder
        Returns:
        The bytes for campaign.
      • setCampaign

        public AssetGroup.Builder setCampaign​(java.lang.String value)
         Immutable. The campaign with which this asset group is associated.
         The asset which is linked to the asset group.
         
        string campaign = 2 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
        Parameters:
        value - The campaign to set.
        Returns:
        This builder for chaining.
      • clearCampaign

        public AssetGroup.Builder clearCampaign()
         Immutable. The campaign with which this asset group is associated.
         The asset which is linked to the asset group.
         
        string campaign = 2 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
        Returns:
        This builder for chaining.
      • setCampaignBytes

        public AssetGroup.Builder setCampaignBytes​(com.google.protobuf.ByteString value)
         Immutable. The campaign with which this asset group is associated.
         The asset which is linked to the asset group.
         
        string campaign = 2 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
        Parameters:
        value - The bytes for campaign to set.
        Returns:
        This builder for chaining.
      • getName

        public java.lang.String getName()
         Required. Name of the asset group. Required. It must have a minimum length of 1 and
         maximum length of 128. It must be unique under a campaign.
         
        string name = 3 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        getName in interface AssetGroupOrBuilder
        Returns:
        The name.
      • getNameBytes

        public com.google.protobuf.ByteString getNameBytes()
         Required. Name of the asset group. Required. It must have a minimum length of 1 and
         maximum length of 128. It must be unique under a campaign.
         
        string name = 3 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        getNameBytes in interface AssetGroupOrBuilder
        Returns:
        The bytes for name.
      • setName

        public AssetGroup.Builder setName​(java.lang.String value)
         Required. Name of the asset group. Required. It must have a minimum length of 1 and
         maximum length of 128. It must be unique under a campaign.
         
        string name = 3 [(.google.api.field_behavior) = REQUIRED];
        Parameters:
        value - The name to set.
        Returns:
        This builder for chaining.
      • clearName

        public AssetGroup.Builder clearName()
         Required. Name of the asset group. Required. It must have a minimum length of 1 and
         maximum length of 128. It must be unique under a campaign.
         
        string name = 3 [(.google.api.field_behavior) = REQUIRED];
        Returns:
        This builder for chaining.
      • setNameBytes

        public AssetGroup.Builder setNameBytes​(com.google.protobuf.ByteString value)
         Required. Name of the asset group. Required. It must have a minimum length of 1 and
         maximum length of 128. It must be unique under a campaign.
         
        string name = 3 [(.google.api.field_behavior) = REQUIRED];
        Parameters:
        value - The bytes for name to set.
        Returns:
        This builder for chaining.
      • getFinalUrlsList

        public com.google.protobuf.ProtocolStringList getFinalUrlsList()
         A list of final URLs after all cross domain redirects. In performance max,
         by default, the urls will be eligible for expansion unless opted out.
         
        repeated string final_urls = 4;
        Specified by:
        getFinalUrlsList in interface AssetGroupOrBuilder
        Returns:
        A list containing the finalUrls.
      • getFinalUrlsCount

        public int getFinalUrlsCount()
         A list of final URLs after all cross domain redirects. In performance max,
         by default, the urls will be eligible for expansion unless opted out.
         
        repeated string final_urls = 4;
        Specified by:
        getFinalUrlsCount in interface AssetGroupOrBuilder
        Returns:
        The count of finalUrls.
      • getFinalUrls

        public java.lang.String getFinalUrls​(int index)
         A list of final URLs after all cross domain redirects. In performance max,
         by default, the urls will be eligible for expansion unless opted out.
         
        repeated string final_urls = 4;
        Specified by:
        getFinalUrls in interface AssetGroupOrBuilder
        Parameters:
        index - The index of the element to return.
        Returns:
        The finalUrls at the given index.
      • getFinalUrlsBytes

        public com.google.protobuf.ByteString getFinalUrlsBytes​(int index)
         A list of final URLs after all cross domain redirects. In performance max,
         by default, the urls will be eligible for expansion unless opted out.
         
        repeated string final_urls = 4;
        Specified by:
        getFinalUrlsBytes in interface AssetGroupOrBuilder
        Parameters:
        index - The index of the value to return.
        Returns:
        The bytes of the finalUrls at the given index.
      • setFinalUrls

        public AssetGroup.Builder setFinalUrls​(int index,
                                               java.lang.String value)
         A list of final URLs after all cross domain redirects. In performance max,
         by default, the urls will be eligible for expansion unless opted out.
         
        repeated string final_urls = 4;
        Parameters:
        index - The index to set the value at.
        value - The finalUrls to set.
        Returns:
        This builder for chaining.
      • addFinalUrls

        public AssetGroup.Builder addFinalUrls​(java.lang.String value)
         A list of final URLs after all cross domain redirects. In performance max,
         by default, the urls will be eligible for expansion unless opted out.
         
        repeated string final_urls = 4;
        Parameters:
        value - The finalUrls to add.
        Returns:
        This builder for chaining.
      • addAllFinalUrls

        public AssetGroup.Builder addAllFinalUrls​(java.lang.Iterable<java.lang.String> values)
         A list of final URLs after all cross domain redirects. In performance max,
         by default, the urls will be eligible for expansion unless opted out.
         
        repeated string final_urls = 4;
        Parameters:
        values - The finalUrls to add.
        Returns:
        This builder for chaining.
      • clearFinalUrls

        public AssetGroup.Builder clearFinalUrls()
         A list of final URLs after all cross domain redirects. In performance max,
         by default, the urls will be eligible for expansion unless opted out.
         
        repeated string final_urls = 4;
        Returns:
        This builder for chaining.
      • addFinalUrlsBytes

        public AssetGroup.Builder addFinalUrlsBytes​(com.google.protobuf.ByteString value)
         A list of final URLs after all cross domain redirects. In performance max,
         by default, the urls will be eligible for expansion unless opted out.
         
        repeated string final_urls = 4;
        Parameters:
        value - The bytes of the finalUrls to add.
        Returns:
        This builder for chaining.
      • getFinalMobileUrlsList

        public com.google.protobuf.ProtocolStringList getFinalMobileUrlsList()
         A list of final mobile URLs after all cross domain redirects. In
         performance max, by default, the urls will be eligible for expansion
         unless opted out.
         
        repeated string final_mobile_urls = 5;
        Specified by:
        getFinalMobileUrlsList in interface AssetGroupOrBuilder
        Returns:
        A list containing the finalMobileUrls.
      • getFinalMobileUrlsCount

        public int getFinalMobileUrlsCount()
         A list of final mobile URLs after all cross domain redirects. In
         performance max, by default, the urls will be eligible for expansion
         unless opted out.
         
        repeated string final_mobile_urls = 5;
        Specified by:
        getFinalMobileUrlsCount in interface AssetGroupOrBuilder
        Returns:
        The count of finalMobileUrls.
      • getFinalMobileUrls

        public java.lang.String getFinalMobileUrls​(int index)
         A list of final mobile URLs after all cross domain redirects. In
         performance max, by default, the urls will be eligible for expansion
         unless opted out.
         
        repeated string final_mobile_urls = 5;
        Specified by:
        getFinalMobileUrls in interface AssetGroupOrBuilder
        Parameters:
        index - The index of the element to return.
        Returns:
        The finalMobileUrls at the given index.
      • getFinalMobileUrlsBytes

        public com.google.protobuf.ByteString getFinalMobileUrlsBytes​(int index)
         A list of final mobile URLs after all cross domain redirects. In
         performance max, by default, the urls will be eligible for expansion
         unless opted out.
         
        repeated string final_mobile_urls = 5;
        Specified by:
        getFinalMobileUrlsBytes in interface AssetGroupOrBuilder
        Parameters:
        index - The index of the value to return.
        Returns:
        The bytes of the finalMobileUrls at the given index.
      • setFinalMobileUrls

        public AssetGroup.Builder setFinalMobileUrls​(int index,
                                                     java.lang.String value)
         A list of final mobile URLs after all cross domain redirects. In
         performance max, by default, the urls will be eligible for expansion
         unless opted out.
         
        repeated string final_mobile_urls = 5;
        Parameters:
        index - The index to set the value at.
        value - The finalMobileUrls to set.
        Returns:
        This builder for chaining.
      • addFinalMobileUrls

        public AssetGroup.Builder addFinalMobileUrls​(java.lang.String value)
         A list of final mobile URLs after all cross domain redirects. In
         performance max, by default, the urls will be eligible for expansion
         unless opted out.
         
        repeated string final_mobile_urls = 5;
        Parameters:
        value - The finalMobileUrls to add.
        Returns:
        This builder for chaining.
      • addAllFinalMobileUrls

        public AssetGroup.Builder addAllFinalMobileUrls​(java.lang.Iterable<java.lang.String> values)
         A list of final mobile URLs after all cross domain redirects. In
         performance max, by default, the urls will be eligible for expansion
         unless opted out.
         
        repeated string final_mobile_urls = 5;
        Parameters:
        values - The finalMobileUrls to add.
        Returns:
        This builder for chaining.
      • clearFinalMobileUrls

        public AssetGroup.Builder clearFinalMobileUrls()
         A list of final mobile URLs after all cross domain redirects. In
         performance max, by default, the urls will be eligible for expansion
         unless opted out.
         
        repeated string final_mobile_urls = 5;
        Returns:
        This builder for chaining.
      • addFinalMobileUrlsBytes

        public AssetGroup.Builder addFinalMobileUrlsBytes​(com.google.protobuf.ByteString value)
         A list of final mobile URLs after all cross domain redirects. In
         performance max, by default, the urls will be eligible for expansion
         unless opted out.
         
        repeated string final_mobile_urls = 5;
        Parameters:
        value - The bytes of the finalMobileUrls to add.
        Returns:
        This builder for chaining.
      • getStatusValue

        public int getStatusValue()
         The status of the asset group.
         
        .google.ads.googleads.v10.enums.AssetGroupStatusEnum.AssetGroupStatus status = 6;
        Specified by:
        getStatusValue in interface AssetGroupOrBuilder
        Returns:
        The enum numeric value on the wire for status.
      • setStatusValue

        public AssetGroup.Builder setStatusValue​(int value)
         The status of the asset group.
         
        .google.ads.googleads.v10.enums.AssetGroupStatusEnum.AssetGroupStatus status = 6;
        Parameters:
        value - The enum numeric value on the wire for status to set.
        Returns:
        This builder for chaining.
      • setStatus

        public AssetGroup.Builder setStatus​(AssetGroupStatusEnum.AssetGroupStatus value)
         The status of the asset group.
         
        .google.ads.googleads.v10.enums.AssetGroupStatusEnum.AssetGroupStatus status = 6;
        Parameters:
        value - The status to set.
        Returns:
        This builder for chaining.
      • clearStatus

        public AssetGroup.Builder clearStatus()
         The status of the asset group.
         
        .google.ads.googleads.v10.enums.AssetGroupStatusEnum.AssetGroupStatus status = 6;
        Returns:
        This builder for chaining.
      • getPath1

        public java.lang.String getPath1()
         First part of text that may appear appended to the url displayed in
         the ad.
         
        string path1 = 7;
        Specified by:
        getPath1 in interface AssetGroupOrBuilder
        Returns:
        The path1.
      • getPath1Bytes

        public com.google.protobuf.ByteString getPath1Bytes()
         First part of text that may appear appended to the url displayed in
         the ad.
         
        string path1 = 7;
        Specified by:
        getPath1Bytes in interface AssetGroupOrBuilder
        Returns:
        The bytes for path1.
      • setPath1

        public AssetGroup.Builder setPath1​(java.lang.String value)
         First part of text that may appear appended to the url displayed in
         the ad.
         
        string path1 = 7;
        Parameters:
        value - The path1 to set.
        Returns:
        This builder for chaining.
      • clearPath1

        public AssetGroup.Builder clearPath1()
         First part of text that may appear appended to the url displayed in
         the ad.
         
        string path1 = 7;
        Returns:
        This builder for chaining.
      • setPath1Bytes

        public AssetGroup.Builder setPath1Bytes​(com.google.protobuf.ByteString value)
         First part of text that may appear appended to the url displayed in
         the ad.
         
        string path1 = 7;
        Parameters:
        value - The bytes for path1 to set.
        Returns:
        This builder for chaining.
      • getPath2

        public java.lang.String getPath2()
         Second part of text that may appear appended to the url displayed in
         the ad. This field can only be set when path1 is set.
         
        string path2 = 8;
        Specified by:
        getPath2 in interface AssetGroupOrBuilder
        Returns:
        The path2.
      • getPath2Bytes

        public com.google.protobuf.ByteString getPath2Bytes()
         Second part of text that may appear appended to the url displayed in
         the ad. This field can only be set when path1 is set.
         
        string path2 = 8;
        Specified by:
        getPath2Bytes in interface AssetGroupOrBuilder
        Returns:
        The bytes for path2.
      • setPath2

        public AssetGroup.Builder setPath2​(java.lang.String value)
         Second part of text that may appear appended to the url displayed in
         the ad. This field can only be set when path1 is set.
         
        string path2 = 8;
        Parameters:
        value - The path2 to set.
        Returns:
        This builder for chaining.
      • clearPath2

        public AssetGroup.Builder clearPath2()
         Second part of text that may appear appended to the url displayed in
         the ad. This field can only be set when path1 is set.
         
        string path2 = 8;
        Returns:
        This builder for chaining.
      • setPath2Bytes

        public AssetGroup.Builder setPath2Bytes​(com.google.protobuf.ByteString value)
         Second part of text that may appear appended to the url displayed in
         the ad. This field can only be set when path1 is set.
         
        string path2 = 8;
        Parameters:
        value - The bytes for path2 to set.
        Returns:
        This builder for chaining.
      • setUnknownFields

        public final AssetGroup.Builder setUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        setUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<AssetGroup.Builder>
      • mergeUnknownFields

        public final AssetGroup.Builder mergeUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        mergeUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<AssetGroup.Builder>