Interface ProductAttributes.PetPolicyOrBuilder (1.23.0)

public static interface ProductAttributes.PetPolicyOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getPetTypes(int index)

public abstract ProductAttributes.PetPolicy.PetType getPetTypes(int index)

The pet types allowed.

repeated .google.shopping.merchant.products.v1.ProductAttributes.PetPolicy.PetType pet_types = 2;

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
ProductAttributes.PetPolicy.PetType

The petTypes at the given index.

getPetTypesCount()

public abstract int getPetTypesCount()

The pet types allowed.

repeated .google.shopping.merchant.products.v1.ProductAttributes.PetPolicy.PetType pet_types = 2;

Returns
Type Description
int

The count of petTypes.

getPetTypesList()

public abstract List<ProductAttributes.PetPolicy.PetType> getPetTypesList()

The pet types allowed.

repeated .google.shopping.merchant.products.v1.ProductAttributes.PetPolicy.PetType pet_types = 2;

Returns
Type Description
List<PetType>

A list containing the petTypes.

getPetTypesValue(int index)

public abstract int getPetTypesValue(int index)

The pet types allowed.

repeated .google.shopping.merchant.products.v1.ProductAttributes.PetPolicy.PetType pet_types = 2;

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
int

The enum numeric value on the wire of petTypes at the given index.

getPetTypesValueList()

public abstract List<Integer> getPetTypesValueList()

The pet types allowed.

repeated .google.shopping.merchant.products.v1.ProductAttributes.PetPolicy.PetType pet_types = 2;

Returns
Type Description
List<Integer>

A list containing the enum numeric values on the wire for petTypes.

getPetsAllowed()

public abstract boolean getPetsAllowed()

Whether pets are allowed.

bool pets_allowed = 1;

Returns
Type Description
boolean

The petsAllowed.