Class Recommendation.TextAdRecommendation.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<Recommendation.TextAdRecommendation.Builder>
com.google.ads.googleads.v18.resources.Recommendation.TextAdRecommendation.Builder
All Implemented Interfaces:
Recommendation.TextAdRecommendationOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
Recommendation.TextAdRecommendation

public static final class Recommendation.TextAdRecommendation.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Recommendation.TextAdRecommendation.Builder> implements Recommendation.TextAdRecommendationOrBuilder
 The text ad recommendation.
 
Protobuf type google.ads.googleads.v18.resources.Recommendation.TextAdRecommendation
  • Method Details

    • 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>
    • 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<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

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

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

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

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

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

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

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

    • 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 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:
      IOException
    • hasAd

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

      public Ad getAd()
       Output only. Recommended ad.
       
      .google.ads.googleads.v18.resources.Ad ad = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getAd in interface Recommendation.TextAdRecommendationOrBuilder
      Returns:
      The ad.
    • setAd

       Output only. Recommended ad.
       
      .google.ads.googleads.v18.resources.Ad ad = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • setAd

       Output only. Recommended ad.
       
      .google.ads.googleads.v18.resources.Ad ad = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • mergeAd

       Output only. Recommended ad.
       
      .google.ads.googleads.v18.resources.Ad ad = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • clearAd

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

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

      public AdOrBuilder getAdOrBuilder()
       Output only. Recommended ad.
       
      .google.ads.googleads.v18.resources.Ad ad = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getAdOrBuilder in interface Recommendation.TextAdRecommendationOrBuilder
    • 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 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(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 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(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.
    • setUnknownFields

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

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