Class ApplyIncentiveResponse.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.ExtendableBuilder<com.google.protobuf.GeneratedMessageV3,BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<ApplyIncentiveResponse.Builder>
com.google.ads.googleads.v23.services.ApplyIncentiveResponse.Builder
All Implemented Interfaces:
ApplyIncentiveResponseOrBuilder, com.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder<com.google.protobuf.GeneratedMessageV3>, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
ApplyIncentiveResponse

public static final class ApplyIncentiveResponse.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<ApplyIncentiveResponse.Builder> implements ApplyIncentiveResponseOrBuilder
 Response for applying an incentive.
 
Protobuf type google.ads.googleads.v23.services.ApplyIncentiveResponse
  • Method Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
      Overrides:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<ApplyIncentiveResponse.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<ApplyIncentiveResponse.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.GeneratedMessage.Builder<ApplyIncentiveResponse.Builder>
    • getDefaultInstanceForType

      public ApplyIncentiveResponse getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder<com.google.protobuf.GeneratedMessageV3>
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

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

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

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

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

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

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

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

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

    • isInitialized

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

      public ApplyIncentiveResponse.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<ApplyIncentiveResponse.Builder>
      Throws:
      IOException
    • hasCouponCode

      public boolean hasCouponCode()
       The coupon code of the applied incentive.
       A globally unique identifier of the applied incentive.
       This code is separate and distinct from the selected_incentive_id in the
       request.
       
      optional string coupon_code = 1;
      Specified by:
      hasCouponCode in interface ApplyIncentiveResponseOrBuilder
      Returns:
      Whether the couponCode field is set.
    • getCouponCode

      public String getCouponCode()
       The coupon code of the applied incentive.
       A globally unique identifier of the applied incentive.
       This code is separate and distinct from the selected_incentive_id in the
       request.
       
      optional string coupon_code = 1;
      Specified by:
      getCouponCode in interface ApplyIncentiveResponseOrBuilder
      Returns:
      The couponCode.
    • getCouponCodeBytes

      public com.google.protobuf.ByteString getCouponCodeBytes()
       The coupon code of the applied incentive.
       A globally unique identifier of the applied incentive.
       This code is separate and distinct from the selected_incentive_id in the
       request.
       
      optional string coupon_code = 1;
      Specified by:
      getCouponCodeBytes in interface ApplyIncentiveResponseOrBuilder
      Returns:
      The bytes for couponCode.
    • setCouponCode

      public ApplyIncentiveResponse.Builder setCouponCode(String value)
       The coupon code of the applied incentive.
       A globally unique identifier of the applied incentive.
       This code is separate and distinct from the selected_incentive_id in the
       request.
       
      optional string coupon_code = 1;
      Parameters:
      value - The couponCode to set.
      Returns:
      This builder for chaining.
    • clearCouponCode

      public ApplyIncentiveResponse.Builder clearCouponCode()
       The coupon code of the applied incentive.
       A globally unique identifier of the applied incentive.
       This code is separate and distinct from the selected_incentive_id in the
       request.
       
      optional string coupon_code = 1;
      Returns:
      This builder for chaining.
    • setCouponCodeBytes

      public ApplyIncentiveResponse.Builder setCouponCodeBytes(com.google.protobuf.ByteString value)
       The coupon code of the applied incentive.
       A globally unique identifier of the applied incentive.
       This code is separate and distinct from the selected_incentive_id in the
       request.
       
      optional string coupon_code = 1;
      Parameters:
      value - The bytes for couponCode to set.
      Returns:
      This builder for chaining.
    • hasCreationTime

      public boolean hasCreationTime()
       The timestamp when this incentive was applied. The timestamp is in
       UTC timezone and in "yyyy-MM-dd HH:mm:ss" format.
       
      optional string creation_time = 2;
      Specified by:
      hasCreationTime in interface ApplyIncentiveResponseOrBuilder
      Returns:
      Whether the creationTime field is set.
    • getCreationTime

      public String getCreationTime()
       The timestamp when this incentive was applied. The timestamp is in
       UTC timezone and in "yyyy-MM-dd HH:mm:ss" format.
       
      optional string creation_time = 2;
      Specified by:
      getCreationTime in interface ApplyIncentiveResponseOrBuilder
      Returns:
      The creationTime.
    • getCreationTimeBytes

      public com.google.protobuf.ByteString getCreationTimeBytes()
       The timestamp when this incentive was applied. The timestamp is in
       UTC timezone and in "yyyy-MM-dd HH:mm:ss" format.
       
      optional string creation_time = 2;
      Specified by:
      getCreationTimeBytes in interface ApplyIncentiveResponseOrBuilder
      Returns:
      The bytes for creationTime.
    • setCreationTime

      public ApplyIncentiveResponse.Builder setCreationTime(String value)
       The timestamp when this incentive was applied. The timestamp is in
       UTC timezone and in "yyyy-MM-dd HH:mm:ss" format.
       
      optional string creation_time = 2;
      Parameters:
      value - The creationTime to set.
      Returns:
      This builder for chaining.
    • clearCreationTime

      public ApplyIncentiveResponse.Builder clearCreationTime()
       The timestamp when this incentive was applied. The timestamp is in
       UTC timezone and in "yyyy-MM-dd HH:mm:ss" format.
       
      optional string creation_time = 2;
      Returns:
      This builder for chaining.
    • setCreationTimeBytes

      public ApplyIncentiveResponse.Builder setCreationTimeBytes(com.google.protobuf.ByteString value)
       The timestamp when this incentive was applied. The timestamp is in
       UTC timezone and in "yyyy-MM-dd HH:mm:ss" format.
       
      optional string creation_time = 2;
      Parameters:
      value - The bytes for creationTime to set.
      Returns:
      This builder for chaining.
    • setUnknownFields

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

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