Class StoreSalesMetadata.Builder

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

    public static final class StoreSalesMetadata.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<StoreSalesMetadata.Builder>
    implements StoreSalesMetadataOrBuilder
     Metadata for Store Sales Direct.
     
    Protobuf type google.ads.googleads.v14.common.StoreSalesMetadata
    • 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<StoreSalesMetadata.Builder>
      • clear

        public StoreSalesMetadata.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<StoreSalesMetadata.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<StoreSalesMetadata.Builder>
      • getDefaultInstanceForType

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

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

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

        public StoreSalesMetadata.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<StoreSalesMetadata.Builder>
      • setField

        public StoreSalesMetadata.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<StoreSalesMetadata.Builder>
      • clearField

        public StoreSalesMetadata.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<StoreSalesMetadata.Builder>
      • clearOneof

        public StoreSalesMetadata.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<StoreSalesMetadata.Builder>
      • setRepeatedField

        public StoreSalesMetadata.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<StoreSalesMetadata.Builder>
      • addRepeatedField

        public StoreSalesMetadata.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<StoreSalesMetadata.Builder>
      • mergeFrom

        public StoreSalesMetadata.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<StoreSalesMetadata.Builder>
      • isInitialized

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

        public StoreSalesMetadata.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<StoreSalesMetadata.Builder>
        Throws:
        java.io.IOException
      • hasLoyaltyFraction

        public boolean hasLoyaltyFraction()
         This is the fraction of all transactions that are identifiable (for
         example, associated with any form of customer information). Required. The
         fraction needs to be between 0 and 1 (excluding 0).
         
        optional double loyalty_fraction = 5;
        Specified by:
        hasLoyaltyFraction in interface StoreSalesMetadataOrBuilder
        Returns:
        Whether the loyaltyFraction field is set.
      • getLoyaltyFraction

        public double getLoyaltyFraction()
         This is the fraction of all transactions that are identifiable (for
         example, associated with any form of customer information). Required. The
         fraction needs to be between 0 and 1 (excluding 0).
         
        optional double loyalty_fraction = 5;
        Specified by:
        getLoyaltyFraction in interface StoreSalesMetadataOrBuilder
        Returns:
        The loyaltyFraction.
      • setLoyaltyFraction

        public StoreSalesMetadata.Builder setLoyaltyFraction​(double value)
         This is the fraction of all transactions that are identifiable (for
         example, associated with any form of customer information). Required. The
         fraction needs to be between 0 and 1 (excluding 0).
         
        optional double loyalty_fraction = 5;
        Parameters:
        value - The loyaltyFraction to set.
        Returns:
        This builder for chaining.
      • clearLoyaltyFraction

        public StoreSalesMetadata.Builder clearLoyaltyFraction()
         This is the fraction of all transactions that are identifiable (for
         example, associated with any form of customer information). Required. The
         fraction needs to be between 0 and 1 (excluding 0).
         
        optional double loyalty_fraction = 5;
        Returns:
        This builder for chaining.
      • hasTransactionUploadFraction

        public boolean hasTransactionUploadFraction()
         This is the ratio of sales being uploaded compared to the overall sales
         that can be associated with a customer. Required.
         The fraction needs to be between 0 and 1 (excluding 0). For example, if you
         upload half the sales that you are able to associate with a customer, this
         would be 0.5.
         
        optional double transaction_upload_fraction = 6;
        Specified by:
        hasTransactionUploadFraction in interface StoreSalesMetadataOrBuilder
        Returns:
        Whether the transactionUploadFraction field is set.
      • getTransactionUploadFraction

        public double getTransactionUploadFraction()
         This is the ratio of sales being uploaded compared to the overall sales
         that can be associated with a customer. Required.
         The fraction needs to be between 0 and 1 (excluding 0). For example, if you
         upload half the sales that you are able to associate with a customer, this
         would be 0.5.
         
        optional double transaction_upload_fraction = 6;
        Specified by:
        getTransactionUploadFraction in interface StoreSalesMetadataOrBuilder
        Returns:
        The transactionUploadFraction.
      • setTransactionUploadFraction

        public StoreSalesMetadata.Builder setTransactionUploadFraction​(double value)
         This is the ratio of sales being uploaded compared to the overall sales
         that can be associated with a customer. Required.
         The fraction needs to be between 0 and 1 (excluding 0). For example, if you
         upload half the sales that you are able to associate with a customer, this
         would be 0.5.
         
        optional double transaction_upload_fraction = 6;
        Parameters:
        value - The transactionUploadFraction to set.
        Returns:
        This builder for chaining.
      • clearTransactionUploadFraction

        public StoreSalesMetadata.Builder clearTransactionUploadFraction()
         This is the ratio of sales being uploaded compared to the overall sales
         that can be associated with a customer. Required.
         The fraction needs to be between 0 and 1 (excluding 0). For example, if you
         upload half the sales that you are able to associate with a customer, this
         would be 0.5.
         
        optional double transaction_upload_fraction = 6;
        Returns:
        This builder for chaining.
      • hasCustomKey

        public boolean hasCustomKey()
         Name of the store sales custom variable key. A predefined key that
         can be applied to the transaction and then later used for custom
         segmentation in reporting.
         Accessible only to customers on the allow-list.
         
        optional string custom_key = 7;
        Specified by:
        hasCustomKey in interface StoreSalesMetadataOrBuilder
        Returns:
        Whether the customKey field is set.
      • getCustomKey

        public java.lang.String getCustomKey()
         Name of the store sales custom variable key. A predefined key that
         can be applied to the transaction and then later used for custom
         segmentation in reporting.
         Accessible only to customers on the allow-list.
         
        optional string custom_key = 7;
        Specified by:
        getCustomKey in interface StoreSalesMetadataOrBuilder
        Returns:
        The customKey.
      • getCustomKeyBytes

        public com.google.protobuf.ByteString getCustomKeyBytes()
         Name of the store sales custom variable key. A predefined key that
         can be applied to the transaction and then later used for custom
         segmentation in reporting.
         Accessible only to customers on the allow-list.
         
        optional string custom_key = 7;
        Specified by:
        getCustomKeyBytes in interface StoreSalesMetadataOrBuilder
        Returns:
        The bytes for customKey.
      • setCustomKey

        public StoreSalesMetadata.Builder setCustomKey​(java.lang.String value)
         Name of the store sales custom variable key. A predefined key that
         can be applied to the transaction and then later used for custom
         segmentation in reporting.
         Accessible only to customers on the allow-list.
         
        optional string custom_key = 7;
        Parameters:
        value - The customKey to set.
        Returns:
        This builder for chaining.
      • clearCustomKey

        public StoreSalesMetadata.Builder clearCustomKey()
         Name of the store sales custom variable key. A predefined key that
         can be applied to the transaction and then later used for custom
         segmentation in reporting.
         Accessible only to customers on the allow-list.
         
        optional string custom_key = 7;
        Returns:
        This builder for chaining.
      • setCustomKeyBytes

        public StoreSalesMetadata.Builder setCustomKeyBytes​(com.google.protobuf.ByteString value)
         Name of the store sales custom variable key. A predefined key that
         can be applied to the transaction and then later used for custom
         segmentation in reporting.
         Accessible only to customers on the allow-list.
         
        optional string custom_key = 7;
        Parameters:
        value - The bytes for customKey to set.
        Returns:
        This builder for chaining.
      • hasThirdPartyMetadata

        public boolean hasThirdPartyMetadata()
         Metadata for a third party Store Sales upload.
         
        .google.ads.googleads.v14.common.StoreSalesThirdPartyMetadata third_party_metadata = 3;
        Specified by:
        hasThirdPartyMetadata in interface StoreSalesMetadataOrBuilder
        Returns:
        Whether the thirdPartyMetadata field is set.
      • clearThirdPartyMetadata

        public StoreSalesMetadata.Builder clearThirdPartyMetadata()
         Metadata for a third party Store Sales upload.
         
        .google.ads.googleads.v14.common.StoreSalesThirdPartyMetadata third_party_metadata = 3;
      • getThirdPartyMetadataBuilder

        public StoreSalesThirdPartyMetadata.Builder getThirdPartyMetadataBuilder()
         Metadata for a third party Store Sales upload.
         
        .google.ads.googleads.v14.common.StoreSalesThirdPartyMetadata third_party_metadata = 3;
      • setUnknownFields

        public final StoreSalesMetadata.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<StoreSalesMetadata.Builder>
      • mergeUnknownFields

        public final StoreSalesMetadata.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<StoreSalesMetadata.Builder>