public static final class ProductInfo.Builder extends GeneratedMessageV3.Builder<ProductInfo.Builder> implements ProductInfoOrBuilder
Available information about the product. Used to inform the genAI models.
Protobuf type google.shopping.merchant.productstudio.v1alpha.ProductInfo
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 ProductInfo.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
public ProductInfo build()
public ProductInfo buildPartial()
public ProductInfo.Builder clear()
Overrides
public ProductInfo.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
public ProductInfo.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
public ProductInfo.Builder clearProductAttributes()
public ProductInfo.Builder clearProductImage()
Optional. Image associated with the product.
optional .google.shopping.merchant.productstudio.v1alpha.Image product_image = 2 [(.google.api.field_behavior) = OPTIONAL];
public ProductInfo.Builder clone()
Overrides
public boolean containsProductAttributes(String key)
Required. A mapping of all available product attributes. This may include
title, description, brand, gender, color, size, etc.
map<string, string> product_attributes = 1 [(.google.api.field_behavior) = REQUIRED];
Parameter |
Name |
Description |
key |
String
|
public ProductInfo getDefaultInstanceForType()
public Descriptors.Descriptor getDescriptorForType()
Overrides
public Map<String,String> getMutableProductAttributes()
Use alternate mutation accessors instead.
public Map<String,String> getProductAttributes()
public int getProductAttributesCount()
Required. A mapping of all available product attributes. This may include
title, description, brand, gender, color, size, etc.
map<string, string> product_attributes = 1 [(.google.api.field_behavior) = REQUIRED];
Returns |
Type |
Description |
int |
|
public Map<String,String> getProductAttributesMap()
Required. A mapping of all available product attributes. This may include
title, description, brand, gender, color, size, etc.
map<string, string> product_attributes = 1 [(.google.api.field_behavior) = REQUIRED];
public String getProductAttributesOrDefault(String key, String defaultValue)
Required. A mapping of all available product attributes. This may include
title, description, brand, gender, color, size, etc.
map<string, string> product_attributes = 1 [(.google.api.field_behavior) = REQUIRED];
Returns |
Type |
Description |
String |
|
public String getProductAttributesOrThrow(String key)
Required. A mapping of all available product attributes. This may include
title, description, brand, gender, color, size, etc.
map<string, string> product_attributes = 1 [(.google.api.field_behavior) = REQUIRED];
Parameter |
Name |
Description |
key |
String
|
Returns |
Type |
Description |
String |
|
public Image getProductImage()
Optional. Image associated with the product.
optional .google.shopping.merchant.productstudio.v1alpha.Image product_image = 2 [(.google.api.field_behavior) = OPTIONAL];
Returns |
Type |
Description |
Image |
The productImage.
|
public Image.Builder getProductImageBuilder()
Optional. Image associated with the product.
optional .google.shopping.merchant.productstudio.v1alpha.Image product_image = 2 [(.google.api.field_behavior) = OPTIONAL];
public ImageOrBuilder getProductImageOrBuilder()
Optional. Image associated with the product.
optional .google.shopping.merchant.productstudio.v1alpha.Image product_image = 2 [(.google.api.field_behavior) = OPTIONAL];
public boolean hasProductImage()
Optional. Image associated with the product.
optional .google.shopping.merchant.productstudio.v1alpha.Image product_image = 2 [(.google.api.field_behavior) = OPTIONAL];
Returns |
Type |
Description |
boolean |
Whether the productImage field is set.
|
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
protected MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
Parameter |
Name |
Description |
number |
int
|
Returns |
Type |
Description |
com.google.protobuf.MapFieldReflectionAccessor |
|
Overrides
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
protected MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number)
Parameter |
Name |
Description |
number |
int
|
Returns |
Type |
Description |
com.google.protobuf.MapFieldReflectionAccessor |
|
Overrides
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
public final boolean isInitialized()
Overrides
public ProductInfo.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
public ProductInfo.Builder mergeFrom(Message other)
Parameter |
Name |
Description |
other |
Message
|
Overrides
public ProductInfo.Builder mergeFrom(ProductInfo other)
public ProductInfo.Builder mergeProductImage(Image value)
Optional. Image associated with the product.
optional .google.shopping.merchant.productstudio.v1alpha.Image product_image = 2 [(.google.api.field_behavior) = OPTIONAL];
Parameter |
Name |
Description |
value |
Image
|
public final ProductInfo.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Overrides
public ProductInfo.Builder putAllProductAttributes(Map<String,String> values)
Required. A mapping of all available product attributes. This may include
title, description, brand, gender, color, size, etc.
map<string, string> product_attributes = 1 [(.google.api.field_behavior) = REQUIRED];
public ProductInfo.Builder putProductAttributes(String key, String value)
Required. A mapping of all available product attributes. This may include
title, description, brand, gender, color, size, etc.
map<string, string> product_attributes = 1 [(.google.api.field_behavior) = REQUIRED];
public ProductInfo.Builder removeProductAttributes(String key)
Required. A mapping of all available product attributes. This may include
title, description, brand, gender, color, size, etc.
map<string, string> product_attributes = 1 [(.google.api.field_behavior) = REQUIRED];
Parameter |
Name |
Description |
key |
String
|
public ProductInfo.Builder setField(Descriptors.FieldDescriptor field, Object value)
Overrides
public ProductInfo.Builder setProductImage(Image value)
Optional. Image associated with the product.
optional .google.shopping.merchant.productstudio.v1alpha.Image product_image = 2 [(.google.api.field_behavior) = OPTIONAL];
Parameter |
Name |
Description |
value |
Image
|
public ProductInfo.Builder setProductImage(Image.Builder builderForValue)
Optional. Image associated with the product.
optional .google.shopping.merchant.productstudio.v1alpha.Image product_image = 2 [(.google.api.field_behavior) = OPTIONAL];
public ProductInfo.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
public final ProductInfo.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides