public static final class InsertProductInputRequest.Builder extends GeneratedMessageV3.Builder<InsertProductInputRequest.Builder> implements InsertProductInputRequestOrBuilder
Request message for the InsertProductInput method.
Protobuf type google.shopping.merchant.products.v1beta.InsertProductInputRequest
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 InsertProductInputRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
public InsertProductInputRequest build()
public InsertProductInputRequest buildPartial()
public InsertProductInputRequest.Builder clear()
Overrides
public InsertProductInputRequest.Builder clearDataSource()
Required. The primary or supplemental product data source name. If the
product already exists and data source provided is different, then the
product will be moved to a new data source. Format:
accounts/{account}/dataSources/{datasource}
.
string data_source = 3 [(.google.api.field_behavior) = REQUIRED];
public InsertProductInputRequest.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
public InsertProductInputRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
public InsertProductInputRequest.Builder clearParent()
Required. The account where this product will be inserted.
Format: accounts/{account}
string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
public InsertProductInputRequest.Builder clearProductInput()
Required. The product input to insert.
.google.shopping.merchant.products.v1beta.ProductInput product_input = 2 [(.google.api.field_behavior) = REQUIRED];
public InsertProductInputRequest.Builder clone()
Overrides
public String getDataSource()
Required. The primary or supplemental product data source name. If the
product already exists and data source provided is different, then the
product will be moved to a new data source. 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 primary or supplemental product data source name. If the
product already exists and data source provided is different, then the
product will be moved to a new data source. Format:
accounts/{account}/dataSources/{datasource}
.
string data_source = 3 [(.google.api.field_behavior) = REQUIRED];
Returns |
Type |
Description |
ByteString |
The bytes for dataSource.
|
public InsertProductInputRequest getDefaultInstanceForType()
public Descriptors.Descriptor getDescriptorForType()
Overrides
public String getParent()
Required. The account where this product will be inserted.
Format: accounts/{account}
string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
Returns |
Type |
Description |
String |
The parent.
|
public ByteString getParentBytes()
Required. The account where this product will be inserted.
Format: accounts/{account}
string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
Returns |
Type |
Description |
ByteString |
The bytes for parent.
|
public ProductInput getProductInput()
Required. The product input to insert.
.google.shopping.merchant.products.v1beta.ProductInput product_input = 2 [(.google.api.field_behavior) = REQUIRED];
public ProductInput.Builder getProductInputBuilder()
Required. The product input to insert.
.google.shopping.merchant.products.v1beta.ProductInput product_input = 2 [(.google.api.field_behavior) = REQUIRED];
public ProductInputOrBuilder getProductInputOrBuilder()
Required. The product input to insert.
.google.shopping.merchant.products.v1beta.ProductInput product_input = 2 [(.google.api.field_behavior) = REQUIRED];
public boolean hasProductInput()
Required. The product input to insert.
.google.shopping.merchant.products.v1beta.ProductInput product_input = 2 [(.google.api.field_behavior) = REQUIRED];
Returns |
Type |
Description |
boolean |
Whether the productInput field is set.
|
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
public final boolean isInitialized()
Overrides
public InsertProductInputRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
public InsertProductInputRequest.Builder mergeFrom(Message other)
Parameter |
Name |
Description |
other |
Message
|
Overrides
public InsertProductInputRequest.Builder mergeFrom(InsertProductInputRequest other)
public InsertProductInputRequest.Builder mergeProductInput(ProductInput value)
Required. The product input to insert.
.google.shopping.merchant.products.v1beta.ProductInput product_input = 2 [(.google.api.field_behavior) = REQUIRED];
public final InsertProductInputRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Overrides
public InsertProductInputRequest.Builder setDataSource(String value)
Required. The primary or supplemental product data source name. If the
product already exists and data source provided is different, then the
product will be moved to a new data source. Format:
accounts/{account}/dataSources/{datasource}
.
string data_source = 3 [(.google.api.field_behavior) = REQUIRED];
Parameter |
Name |
Description |
value |
String
The dataSource to set.
|
public InsertProductInputRequest.Builder setDataSourceBytes(ByteString value)
Required. The primary or supplemental product data source name. If the
product already exists and data source provided is different, then the
product will be moved to a new data source. 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 InsertProductInputRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Overrides
public InsertProductInputRequest.Builder setParent(String value)
Required. The account where this product will be inserted.
Format: accounts/{account}
string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
Parameter |
Name |
Description |
value |
String
The parent to set.
|
public InsertProductInputRequest.Builder setParentBytes(ByteString value)
Required. The account where this product will be inserted.
Format: accounts/{account}
string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
Parameter |
Name |
Description |
value |
ByteString
The bytes for parent to set.
|
public InsertProductInputRequest.Builder setProductInput(ProductInput value)
Required. The product input to insert.
.google.shopping.merchant.products.v1beta.ProductInput product_input = 2 [(.google.api.field_behavior) = REQUIRED];
public InsertProductInputRequest.Builder setProductInput(ProductInput.Builder builderForValue)
Required. The product input to insert.
.google.shopping.merchant.products.v1beta.ProductInput product_input = 2 [(.google.api.field_behavior) = REQUIRED];
public InsertProductInputRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
public final InsertProductInputRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides