Interface InsertPromotionRequestOrBuilder (0.4.0)

public interface InsertPromotionRequestOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getDataSource()

public abstract String getDataSource()

Required. The data source of the promotion Format: accounts/{account}/dataSources/{datasource}.

string data_source = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The dataSource.

getDataSourceBytes()

public abstract ByteString getDataSourceBytes()

Required. The data source of the promotion Format: accounts/{account}/dataSources/{datasource}.

string data_source = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for dataSource.

getParent()

public abstract String getParent()

Required. The account where the promotion will be inserted. Format: accounts/{account}

string parent = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The parent.

getParentBytes()

public abstract ByteString getParentBytes()

Required. The account where the promotion will be inserted. Format: accounts/{account}

string parent = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for parent.

getPromotion()

public abstract Promotion getPromotion()

Required. The promotion to insert.

.google.shopping.merchant.promotions.v1beta.Promotion promotion = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
Promotion

The promotion.

getPromotionOrBuilder()

public abstract PromotionOrBuilder getPromotionOrBuilder()

Required. The promotion to insert.

.google.shopping.merchant.promotions.v1beta.Promotion promotion = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
PromotionOrBuilder

hasPromotion()

public abstract boolean hasPromotion()

Required. The promotion to insert.

.google.shopping.merchant.promotions.v1beta.Promotion promotion = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the promotion field is set.