Class RecommendationSubscription.Builder

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

public static final class RecommendationSubscription.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<RecommendationSubscription.Builder> implements RecommendationSubscriptionOrBuilder
 Recommendation Subscription resource
 
Protobuf type google.ads.googleads.v18.resources.RecommendationSubscription
  • 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<RecommendationSubscription.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<RecommendationSubscription.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<RecommendationSubscription.Builder>
    • getDefaultInstanceForType

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

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

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

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

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

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

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

      public RecommendationSubscription.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<RecommendationSubscription.Builder>
      Throws:
      IOException
    • getResourceName

      public String getResourceName()
       Immutable. The resource name of the recommendation subscription.
      
       `customers/{customer_id}/recommendationSubscriptions/{recommendation_type}`
       
      string resource_name = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
      Specified by:
      getResourceName in interface RecommendationSubscriptionOrBuilder
      Returns:
      The resourceName.
    • getResourceNameBytes

      public com.google.protobuf.ByteString getResourceNameBytes()
       Immutable. The resource name of the recommendation subscription.
      
       `customers/{customer_id}/recommendationSubscriptions/{recommendation_type}`
       
      string resource_name = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
      Specified by:
      getResourceNameBytes in interface RecommendationSubscriptionOrBuilder
      Returns:
      The bytes for resourceName.
    • setResourceName

      public RecommendationSubscription.Builder setResourceName(String value)
       Immutable. The resource name of the recommendation subscription.
      
       `customers/{customer_id}/recommendationSubscriptions/{recommendation_type}`
       
      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 RecommendationSubscription.Builder clearResourceName()
       Immutable. The resource name of the recommendation subscription.
      
       `customers/{customer_id}/recommendationSubscriptions/{recommendation_type}`
       
      string resource_name = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
      Returns:
      This builder for chaining.
    • setResourceNameBytes

      public RecommendationSubscription.Builder setResourceNameBytes(com.google.protobuf.ByteString value)
       Immutable. The resource name of the recommendation subscription.
      
       `customers/{customer_id}/recommendationSubscriptions/{recommendation_type}`
       
      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.
    • getTypeValue

      public int getTypeValue()
       Required. Immutable. The type of recommendation subscribed to.
       
      .google.ads.googleads.v18.enums.RecommendationTypeEnum.RecommendationType type = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];
      Specified by:
      getTypeValue in interface RecommendationSubscriptionOrBuilder
      Returns:
      The enum numeric value on the wire for type.
    • setTypeValue

      public RecommendationSubscription.Builder setTypeValue(int value)
       Required. Immutable. The type of recommendation subscribed to.
       
      .google.ads.googleads.v18.enums.RecommendationTypeEnum.RecommendationType type = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];
      Parameters:
      value - The enum numeric value on the wire for type to set.
      Returns:
      This builder for chaining.
    • getType

       Required. Immutable. The type of recommendation subscribed to.
       
      .google.ads.googleads.v18.enums.RecommendationTypeEnum.RecommendationType type = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];
      Specified by:
      getType in interface RecommendationSubscriptionOrBuilder
      Returns:
      The type.
    • setType

       Required. Immutable. The type of recommendation subscribed to.
       
      .google.ads.googleads.v18.enums.RecommendationTypeEnum.RecommendationType type = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];
      Parameters:
      value - The type to set.
      Returns:
      This builder for chaining.
    • clearType

       Required. Immutable. The type of recommendation subscribed to.
       
      .google.ads.googleads.v18.enums.RecommendationTypeEnum.RecommendationType type = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];
      Returns:
      This builder for chaining.
    • hasCreateDateTime

      public boolean hasCreateDateTime()
       Output only. Time in seconds when the subscription was first created. The
       datetime is in the customer's time zone and in "yyyy-MM-dd HH:mm:ss"
       format.
       
      optional string create_date_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      hasCreateDateTime in interface RecommendationSubscriptionOrBuilder
      Returns:
      Whether the createDateTime field is set.
    • getCreateDateTime

      public String getCreateDateTime()
       Output only. Time in seconds when the subscription was first created. The
       datetime is in the customer's time zone and in "yyyy-MM-dd HH:mm:ss"
       format.
       
      optional string create_date_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getCreateDateTime in interface RecommendationSubscriptionOrBuilder
      Returns:
      The createDateTime.
    • getCreateDateTimeBytes

      public com.google.protobuf.ByteString getCreateDateTimeBytes()
       Output only. Time in seconds when the subscription was first created. The
       datetime is in the customer's time zone and in "yyyy-MM-dd HH:mm:ss"
       format.
       
      optional string create_date_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getCreateDateTimeBytes in interface RecommendationSubscriptionOrBuilder
      Returns:
      The bytes for createDateTime.
    • setCreateDateTime

      public RecommendationSubscription.Builder setCreateDateTime(String value)
       Output only. Time in seconds when the subscription was first created. The
       datetime is in the customer's time zone and in "yyyy-MM-dd HH:mm:ss"
       format.
       
      optional string create_date_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The createDateTime to set.
      Returns:
      This builder for chaining.
    • clearCreateDateTime

      public RecommendationSubscription.Builder clearCreateDateTime()
       Output only. Time in seconds when the subscription was first created. The
       datetime is in the customer's time zone and in "yyyy-MM-dd HH:mm:ss"
       format.
       
      optional string create_date_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • setCreateDateTimeBytes

      public RecommendationSubscription.Builder setCreateDateTimeBytes(com.google.protobuf.ByteString value)
       Output only. Time in seconds when the subscription was first created. The
       datetime is in the customer's time zone and in "yyyy-MM-dd HH:mm:ss"
       format.
       
      optional string create_date_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The bytes for createDateTime to set.
      Returns:
      This builder for chaining.
    • hasModifyDateTime

      public boolean hasModifyDateTime()
       Output only. Contains the time in microseconds, when the Recommendation
       Subscription was last updated. The datetime is in the customer's time zone
       and in "yyyy-MM-dd HH:mm:ss.ssssss" format.
       
      optional string modify_date_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      hasModifyDateTime in interface RecommendationSubscriptionOrBuilder
      Returns:
      Whether the modifyDateTime field is set.
    • getModifyDateTime

      public String getModifyDateTime()
       Output only. Contains the time in microseconds, when the Recommendation
       Subscription was last updated. The datetime is in the customer's time zone
       and in "yyyy-MM-dd HH:mm:ss.ssssss" format.
       
      optional string modify_date_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getModifyDateTime in interface RecommendationSubscriptionOrBuilder
      Returns:
      The modifyDateTime.
    • getModifyDateTimeBytes

      public com.google.protobuf.ByteString getModifyDateTimeBytes()
       Output only. Contains the time in microseconds, when the Recommendation
       Subscription was last updated. The datetime is in the customer's time zone
       and in "yyyy-MM-dd HH:mm:ss.ssssss" format.
       
      optional string modify_date_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getModifyDateTimeBytes in interface RecommendationSubscriptionOrBuilder
      Returns:
      The bytes for modifyDateTime.
    • setModifyDateTime

      public RecommendationSubscription.Builder setModifyDateTime(String value)
       Output only. Contains the time in microseconds, when the Recommendation
       Subscription was last updated. The datetime is in the customer's time zone
       and in "yyyy-MM-dd HH:mm:ss.ssssss" format.
       
      optional string modify_date_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The modifyDateTime to set.
      Returns:
      This builder for chaining.
    • clearModifyDateTime

      public RecommendationSubscription.Builder clearModifyDateTime()
       Output only. Contains the time in microseconds, when the Recommendation
       Subscription was last updated. The datetime is in the customer's time zone
       and in "yyyy-MM-dd HH:mm:ss.ssssss" format.
       
      optional string modify_date_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • setModifyDateTimeBytes

      public RecommendationSubscription.Builder setModifyDateTimeBytes(com.google.protobuf.ByteString value)
       Output only. Contains the time in microseconds, when the Recommendation
       Subscription was last updated. The datetime is in the customer's time zone
       and in "yyyy-MM-dd HH:mm:ss.ssssss" format.
       
      optional string modify_date_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The bytes for modifyDateTime to set.
      Returns:
      This builder for chaining.
    • hasStatus

      public boolean hasStatus()
       Required. Status of the subscription, either enabled or paused.
       
      optional .google.ads.googleads.v18.enums.RecommendationSubscriptionStatusEnum.RecommendationSubscriptionStatus status = 5 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      hasStatus in interface RecommendationSubscriptionOrBuilder
      Returns:
      Whether the status field is set.
    • getStatusValue

      public int getStatusValue()
       Required. Status of the subscription, either enabled or paused.
       
      optional .google.ads.googleads.v18.enums.RecommendationSubscriptionStatusEnum.RecommendationSubscriptionStatus status = 5 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getStatusValue in interface RecommendationSubscriptionOrBuilder
      Returns:
      The enum numeric value on the wire for status.
    • setStatusValue

      public RecommendationSubscription.Builder setStatusValue(int value)
       Required. Status of the subscription, either enabled or paused.
       
      optional .google.ads.googleads.v18.enums.RecommendationSubscriptionStatusEnum.RecommendationSubscriptionStatus status = 5 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The enum numeric value on the wire for status to set.
      Returns:
      This builder for chaining.
    • getStatus

       Required. Status of the subscription, either enabled or paused.
       
      optional .google.ads.googleads.v18.enums.RecommendationSubscriptionStatusEnum.RecommendationSubscriptionStatus status = 5 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getStatus in interface RecommendationSubscriptionOrBuilder
      Returns:
      The status.
    • setStatus

       Required. Status of the subscription, either enabled or paused.
       
      optional .google.ads.googleads.v18.enums.RecommendationSubscriptionStatusEnum.RecommendationSubscriptionStatus status = 5 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The status to set.
      Returns:
      This builder for chaining.
    • clearStatus

      public RecommendationSubscription.Builder clearStatus()
       Required. Status of the subscription, either enabled or paused.
       
      optional .google.ads.googleads.v18.enums.RecommendationSubscriptionStatusEnum.RecommendationSubscriptionStatus status = 5 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      This builder for chaining.
    • setUnknownFields

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

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