Interface PromotionOrBuilder

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

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

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      String getPromotionId()
      ID of the promotion.
      com.google.protobuf.ByteString getPromotionIdBytes()
      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 Detail

      • 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.
        
         Google Merchant Center property
         [promotion](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.
        
         Google Merchant Center property
         [promotion](https://support.google.com/merchants/answer/7050148).
         
        string promotion_id = 1;
        Returns:
        The bytes for promotionId.