public static final class InsertPromotionRequest.Builder extends GeneratedMessageV3.Builder<InsertPromotionRequest.Builder> implements InsertPromotionRequestOrBuilder
Request message for the InsertPromotion
method.
Protobuf type google.shopping.merchant.promotions.v1beta.InsertPromotionRequest
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
public static final Descriptors.Descriptor getDescriptor()
Methods
public InsertPromotionRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
public InsertPromotionRequest build()
public InsertPromotionRequest buildPartial()
public InsertPromotionRequest.Builder clear()
Overrides
public InsertPromotionRequest.Builder clearDataSource()
Required. The data source of the
promotion
Format:
accounts/{account}/dataSources/{datasource}
.
string data_source = 3 [(.google.api.field_behavior) = REQUIRED];
public InsertPromotionRequest.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
public InsertPromotionRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
public InsertPromotionRequest.Builder clearParent()
Required. The account where the promotion will be inserted.
Format: accounts/{account}
string parent = 1 [(.google.api.field_behavior) = REQUIRED];
public InsertPromotionRequest.Builder clearPromotion()
Required. The promotion to insert.
.google.shopping.merchant.promotions.v1beta.Promotion promotion = 2 [(.google.api.field_behavior) = REQUIRED];
public InsertPromotionRequest.Builder clone()
Overrides
public 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.
|
public 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.
|
public InsertPromotionRequest getDefaultInstanceForType()
public Descriptors.Descriptor getDescriptorForType()
Overrides
public 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.
|
public 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.
|
public 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.
|
public Promotion.Builder getPromotionBuilder()
Required. The promotion to insert.
.google.shopping.merchant.promotions.v1beta.Promotion promotion = 2 [(.google.api.field_behavior) = REQUIRED];
public PromotionOrBuilder getPromotionOrBuilder()
Required. The promotion to insert.
.google.shopping.merchant.promotions.v1beta.Promotion promotion = 2 [(.google.api.field_behavior) = REQUIRED];
public 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.
|
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
public final boolean isInitialized()
Overrides
public InsertPromotionRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
public InsertPromotionRequest.Builder mergeFrom(Message other)
Parameter |
Name |
Description |
other |
Message
|
Overrides
public InsertPromotionRequest.Builder mergeFrom(InsertPromotionRequest other)
public InsertPromotionRequest.Builder mergePromotion(Promotion value)
Required. The promotion to insert.
.google.shopping.merchant.promotions.v1beta.Promotion promotion = 2 [(.google.api.field_behavior) = REQUIRED];
public final InsertPromotionRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Overrides
public InsertPromotionRequest.Builder setDataSource(String value)
Required. The data source of the
promotion
Format:
accounts/{account}/dataSources/{datasource}
.
string data_source = 3 [(.google.api.field_behavior) = REQUIRED];
Parameter |
Name |
Description |
value |
String
The dataSource to set.
|
public InsertPromotionRequest.Builder setDataSourceBytes(ByteString value)
Required. The data source of the
promotion
Format:
accounts/{account}/dataSources/{datasource}
.
string data_source = 3 [(.google.api.field_behavior) = REQUIRED];
Parameter |
Name |
Description |
value |
ByteString
The bytes for dataSource to set.
|
public InsertPromotionRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Overrides
public InsertPromotionRequest.Builder setParent(String value)
Required. The account where the promotion will be inserted.
Format: accounts/{account}
string parent = 1 [(.google.api.field_behavior) = REQUIRED];
Parameter |
Name |
Description |
value |
String
The parent to set.
|
public InsertPromotionRequest.Builder setParentBytes(ByteString value)
Required. The account where the promotion will be inserted.
Format: accounts/{account}
string parent = 1 [(.google.api.field_behavior) = REQUIRED];
Parameter |
Name |
Description |
value |
ByteString
The bytes for parent to set.
|
public InsertPromotionRequest.Builder setPromotion(Promotion value)
Required. The promotion to insert.
.google.shopping.merchant.promotions.v1beta.Promotion promotion = 2 [(.google.api.field_behavior) = REQUIRED];
public InsertPromotionRequest.Builder setPromotion(Promotion.Builder builderForValue)
Required. The promotion to insert.
.google.shopping.merchant.promotions.v1beta.Promotion promotion = 2 [(.google.api.field_behavior) = REQUIRED];
public InsertPromotionRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
public final InsertPromotionRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides