Interface ProductAttributes.RelatedProductOrBuilder (1.23.0)

public static interface ProductAttributes.RelatedProductOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getId()

public abstract String getId()

Required. The identifier of the related product.

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

Returns
Type Description
String

The id.

getIdBytes()

public abstract ByteString getIdBytes()

Required. The identifier of the related product.

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

Returns
Type Description
ByteString

The bytes for id.

getIdType()

public abstract ProductAttributes.RelatedProduct.IdType getIdType()

Required. The type of the identifier of the related product. For example, GTIN or product ID.

.google.shopping.merchant.products.v1.ProductAttributes.RelatedProduct.IdType id_type = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ProductAttributes.RelatedProduct.IdType

The idType.

getIdTypeValue()

public abstract int getIdTypeValue()

Required. The type of the identifier of the related product. For example, GTIN or product ID.

.google.shopping.merchant.products.v1.ProductAttributes.RelatedProduct.IdType id_type = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
int

The enum numeric value on the wire for idType.

getRelationshipType()

public abstract ProductAttributes.RelatedProduct.RelationshipType getRelationshipType()

Required. The type of the relationship between this product and the related product.

.google.shopping.merchant.products.v1.ProductAttributes.RelatedProduct.RelationshipType relationship_type = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ProductAttributes.RelatedProduct.RelationshipType

The relationshipType.

getRelationshipTypeValue()

public abstract int getRelationshipTypeValue()

Required. The type of the relationship between this product and the related product.

.google.shopping.merchant.products.v1.ProductAttributes.RelatedProduct.RelationshipType relationship_type = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
int

The enum numeric value on the wire for relationshipType.