Interface PromotionOrBuilder

All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder
All Known Implementing Classes:
Promotion, Promotion.Builder

@Generated public interface PromotionOrBuilder extends com.google.protobuf.MessageOrBuilder
  • Method Summary

    Modifier and Type
    Method
    Description
    ID of the promotion.
    com.google.protobuf.ByteString
    ID of the promotion.

    Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder

    isInitialized

    Methods inherited from interface com.google.protobuf.MessageOrBuilder

    findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
  • Method Details

    • getPromotionId

      String getPromotionId()
       ID of the promotion. For example, "free gift".
      
       The value must be a UTF-8 encoded string with a length limit of 128
       characters, and match the pattern: `[a-zA-Z][a-zA-Z0-9_]*`. For example,
       id0LikeThis or ID_1_LIKE_THIS. Otherwise, an INVALID_ARGUMENT error is
       returned.
      
       Corresponds to Google Merchant Center property
       [promotion_id](https://support.google.com/merchants/answer/7050148).
       
      string promotion_id = 1;
      Returns:
      The promotionId.
    • getPromotionIdBytes

      com.google.protobuf.ByteString getPromotionIdBytes()
       ID of the promotion. For example, "free gift".
      
       The value must be a UTF-8 encoded string with a length limit of 128
       characters, and match the pattern: `[a-zA-Z][a-zA-Z0-9_]*`. For example,
       id0LikeThis or ID_1_LIKE_THIS. Otherwise, an INVALID_ARGUMENT error is
       returned.
      
       Corresponds to Google Merchant Center property
       [promotion_id](https://support.google.com/merchants/answer/7050148).
       
      string promotion_id = 1;
      Returns:
      The bytes for promotionId.