Class Recommendation.TextAdRecommendation.Builder

    • 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<Recommendation.TextAdRecommendation.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<Recommendation.TextAdRecommendation.Builder>
      • getDefaultInstanceForType

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

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

        public Recommendation.TextAdRecommendation buildPartial()
        Specified by:
        buildPartial in interface com.google.protobuf.Message.Builder
        Specified by:
        buildPartial in interface com.google.protobuf.MessageLite.Builder
      • isInitialized

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

        public Recommendation.TextAdRecommendation.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<Recommendation.TextAdRecommendation.Builder>
        Throws:
        java.io.IOException
      • hasAd

        public boolean hasAd()
         Output only. Recommended ad.
         
        .google.ads.googleads.v14.resources.Ad ad = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        hasAd in interface Recommendation.TextAdRecommendationOrBuilder
        Returns:
        Whether the ad field is set.
      • getAdBuilder

        public Ad.Builder getAdBuilder()
         Output only. Recommended ad.
         
        .google.ads.googleads.v14.resources.Ad ad = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • hasCreationDate

        public boolean hasCreationDate()
         Output only. Creation date of the recommended ad.
         YYYY-MM-DD format, for example, 2018-04-17.
         
        optional string creation_date = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        hasCreationDate in interface Recommendation.TextAdRecommendationOrBuilder
        Returns:
        Whether the creationDate field is set.
      • getCreationDate

        public java.lang.String getCreationDate()
         Output only. Creation date of the recommended ad.
         YYYY-MM-DD format, for example, 2018-04-17.
         
        optional string creation_date = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getCreationDate in interface Recommendation.TextAdRecommendationOrBuilder
        Returns:
        The creationDate.
      • getCreationDateBytes

        public com.google.protobuf.ByteString getCreationDateBytes()
         Output only. Creation date of the recommended ad.
         YYYY-MM-DD format, for example, 2018-04-17.
         
        optional string creation_date = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getCreationDateBytes in interface Recommendation.TextAdRecommendationOrBuilder
        Returns:
        The bytes for creationDate.
      • setCreationDate

        public Recommendation.TextAdRecommendation.Builder setCreationDate​(java.lang.String value)
         Output only. Creation date of the recommended ad.
         YYYY-MM-DD format, for example, 2018-04-17.
         
        optional string creation_date = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Parameters:
        value - The creationDate to set.
        Returns:
        This builder for chaining.
      • clearCreationDate

        public Recommendation.TextAdRecommendation.Builder clearCreationDate()
         Output only. Creation date of the recommended ad.
         YYYY-MM-DD format, for example, 2018-04-17.
         
        optional string creation_date = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Returns:
        This builder for chaining.
      • setCreationDateBytes

        public Recommendation.TextAdRecommendation.Builder setCreationDateBytes​(com.google.protobuf.ByteString value)
         Output only. Creation date of the recommended ad.
         YYYY-MM-DD format, for example, 2018-04-17.
         
        optional string creation_date = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Parameters:
        value - The bytes for creationDate to set.
        Returns:
        This builder for chaining.
      • hasAutoApplyDate

        public boolean hasAutoApplyDate()
         Output only. Date, if present, is the earliest when the recommendation
         will be auto applied. YYYY-MM-DD format, for example, 2018-04-17.
         
        optional string auto_apply_date = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        hasAutoApplyDate in interface Recommendation.TextAdRecommendationOrBuilder
        Returns:
        Whether the autoApplyDate field is set.
      • getAutoApplyDate

        public java.lang.String getAutoApplyDate()
         Output only. Date, if present, is the earliest when the recommendation
         will be auto applied. YYYY-MM-DD format, for example, 2018-04-17.
         
        optional string auto_apply_date = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getAutoApplyDate in interface Recommendation.TextAdRecommendationOrBuilder
        Returns:
        The autoApplyDate.
      • getAutoApplyDateBytes

        public com.google.protobuf.ByteString getAutoApplyDateBytes()
         Output only. Date, if present, is the earliest when the recommendation
         will be auto applied. YYYY-MM-DD format, for example, 2018-04-17.
         
        optional string auto_apply_date = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getAutoApplyDateBytes in interface Recommendation.TextAdRecommendationOrBuilder
        Returns:
        The bytes for autoApplyDate.
      • setAutoApplyDate

        public Recommendation.TextAdRecommendation.Builder setAutoApplyDate​(java.lang.String value)
         Output only. Date, if present, is the earliest when the recommendation
         will be auto applied. YYYY-MM-DD format, for example, 2018-04-17.
         
        optional string auto_apply_date = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Parameters:
        value - The autoApplyDate to set.
        Returns:
        This builder for chaining.
      • clearAutoApplyDate

        public Recommendation.TextAdRecommendation.Builder clearAutoApplyDate()
         Output only. Date, if present, is the earliest when the recommendation
         will be auto applied. YYYY-MM-DD format, for example, 2018-04-17.
         
        optional string auto_apply_date = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Returns:
        This builder for chaining.
      • setAutoApplyDateBytes

        public Recommendation.TextAdRecommendation.Builder setAutoApplyDateBytes​(com.google.protobuf.ByteString value)
         Output only. Date, if present, is the earliest when the recommendation
         will be auto applied. YYYY-MM-DD format, for example, 2018-04-17.
         
        optional string auto_apply_date = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Parameters:
        value - The bytes for autoApplyDate to set.
        Returns:
        This builder for chaining.