Interface PromotionOrBuilder (2.50.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.

Corresponds to Google Merchant Center property promotion_id.

string promotion_id = 1;

Returns
Type Description
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.

Corresponds to Google Merchant Center property promotion_id.

string promotion_id = 1;

Returns
Type Description
ByteString

The bytes for promotionId.