Interface PromotionOrBuilder (2.11.0)

public interface PromotionOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getPromotionId()

public abstract 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*. For example, id0LikeThis or ID_1_LIKE_THIS. Otherwise, an INVALID_ARGUMENT error is returned. Google Merchant Center property promotion.

string promotion_id = 1;

Returns
TypeDescription
String

The promotionId.

getPromotionIdBytes()

public abstract 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*. For example, id0LikeThis or ID_1_LIKE_THIS. Otherwise, an INVALID_ARGUMENT error is returned. Google Merchant Center property promotion.

string promotion_id = 1;

Returns
TypeDescription
ByteString

The bytes for promotionId.