public static final class ProductAttributes.PetPolicy extends GeneratedMessage implements ProductAttributes.PetPolicyOrBuilderThe pet policy of the property.
Protobuf type google.shopping.merchant.products.v1.ProductAttributes.PetPolicy
Inheritance
Object > AbstractMessageLite<MessageType,BuilderType> > AbstractMessage > GeneratedMessage > ProductAttributes.PetPolicyImplements
ProductAttributes.PetPolicyOrBuilderStatic Fields
PETS_ALLOWED_FIELD_NUMBER
public static final int PETS_ALLOWED_FIELD_NUMBER| Field Value | |
|---|---|
| Type | Description |
int |
|
PET_TYPES_FIELD_NUMBER
public static final int PET_TYPES_FIELD_NUMBER| Field Value | |
|---|---|
| Type | Description |
int |
|
Static Methods
getDefaultInstance()
public static ProductAttributes.PetPolicy getDefaultInstance()| Returns | |
|---|---|
| Type | Description |
ProductAttributes.PetPolicy |
|
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
newBuilder()
public static ProductAttributes.PetPolicy.Builder newBuilder()| Returns | |
|---|---|
| Type | Description |
ProductAttributes.PetPolicy.Builder |
|
newBuilder(ProductAttributes.PetPolicy prototype)
public static ProductAttributes.PetPolicy.Builder newBuilder(ProductAttributes.PetPolicy prototype)| Parameter | |
|---|---|
| Name | Description |
prototype |
ProductAttributes.PetPolicy |
| Returns | |
|---|---|
| Type | Description |
ProductAttributes.PetPolicy.Builder |
|
parseDelimitedFrom(InputStream input)
public static ProductAttributes.PetPolicy parseDelimitedFrom(InputStream input)| Parameter | |
|---|---|
| Name | Description |
input |
InputStream |
| Returns | |
|---|---|
| Type | Description |
ProductAttributes.PetPolicy |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static ProductAttributes.PetPolicy parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
InputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
ProductAttributes.PetPolicy |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
parseFrom(byte[] data)
public static ProductAttributes.PetPolicy parseFrom(byte[] data)| Parameter | |
|---|---|
| Name | Description |
data |
byte[] |
| Returns | |
|---|---|
| Type | Description |
ProductAttributes.PetPolicy |
|
| Exceptions | |
|---|---|
| Type | Description |
InvalidProtocolBufferException |
|
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static ProductAttributes.PetPolicy parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
data |
byte[] |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
ProductAttributes.PetPolicy |
|
| Exceptions | |
|---|---|
| Type | Description |
InvalidProtocolBufferException |
|
parseFrom(ByteString data)
public static ProductAttributes.PetPolicy parseFrom(ByteString data)| Parameter | |
|---|---|
| Name | Description |
data |
ByteString |
| Returns | |
|---|---|
| Type | Description |
ProductAttributes.PetPolicy |
|
| Exceptions | |
|---|---|
| Type | Description |
InvalidProtocolBufferException |
|
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static ProductAttributes.PetPolicy parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
data |
ByteString |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
ProductAttributes.PetPolicy |
|
| Exceptions | |
|---|---|
| Type | Description |
InvalidProtocolBufferException |
|
parseFrom(CodedInputStream input)
public static ProductAttributes.PetPolicy parseFrom(CodedInputStream input)| Parameter | |
|---|---|
| Name | Description |
input |
CodedInputStream |
| Returns | |
|---|---|
| Type | Description |
ProductAttributes.PetPolicy |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static ProductAttributes.PetPolicy parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
ProductAttributes.PetPolicy |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
parseFrom(InputStream input)
public static ProductAttributes.PetPolicy parseFrom(InputStream input)| Parameter | |
|---|---|
| Name | Description |
input |
InputStream |
| Returns | |
|---|---|
| Type | Description |
ProductAttributes.PetPolicy |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static ProductAttributes.PetPolicy parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
InputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
ProductAttributes.PetPolicy |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
parseFrom(ByteBuffer data)
public static ProductAttributes.PetPolicy parseFrom(ByteBuffer data)| Parameter | |
|---|---|
| Name | Description |
data |
ByteBuffer |
| Returns | |
|---|---|
| Type | Description |
ProductAttributes.PetPolicy |
|
| Exceptions | |
|---|---|
| Type | Description |
InvalidProtocolBufferException |
|
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static ProductAttributes.PetPolicy parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
data |
ByteBuffer |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
ProductAttributes.PetPolicy |
|
| Exceptions | |
|---|---|
| Type | Description |
InvalidProtocolBufferException |
|
parser()
public static Parser<ProductAttributes.PetPolicy> parser()| Returns | |
|---|---|
| Type | Description |
Parser<PetPolicy> |
|
Methods
equals(Object obj)
public boolean equals(Object obj)| Parameter | |
|---|---|
| Name | Description |
obj |
Object |
| Returns | |
|---|---|
| Type | Description |
boolean |
|
getDefaultInstanceForType()
public ProductAttributes.PetPolicy getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
ProductAttributes.PetPolicy |
|
getParserForType()
public Parser<ProductAttributes.PetPolicy> getParserForType()| Returns | |
|---|---|
| Type | Description |
Parser<PetPolicy> |
|
getPetTypes(int index)
public 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 |
intThe index of the element to return. |
| Returns | |
|---|---|
| Type | Description |
ProductAttributes.PetPolicy.PetType |
The petTypes at the given index. |
getPetTypesCount()
public 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 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 int getPetTypesValue(int index)The pet types allowed.
repeated .google.shopping.merchant.products.v1.ProductAttributes.PetPolicy.PetType pet_types = 2;
| Parameter | |
|---|---|
| Name | Description |
index |
intThe 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 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 boolean getPetsAllowed()Whether pets are allowed.
bool pets_allowed = 1;
| Returns | |
|---|---|
| Type | Description |
boolean |
The petsAllowed. |
getSerializedSize()
public int getSerializedSize()| Returns | |
|---|---|
| Type | Description |
int |
|
hashCode()
public int hashCode()| Returns | |
|---|---|
| Type | Description |
int |
|
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
newBuilderForType()
public ProductAttributes.PetPolicy.Builder newBuilderForType()| Returns | |
|---|---|
| Type | Description |
ProductAttributes.PetPolicy.Builder |
|
newBuilderForType(AbstractMessage.BuilderParent parent)
protected ProductAttributes.PetPolicy.Builder newBuilderForType(AbstractMessage.BuilderParent parent)| Parameter | |
|---|---|
| Name | Description |
parent |
BuilderParent |
| Returns | |
|---|---|
| Type | Description |
ProductAttributes.PetPolicy.Builder |
|
toBuilder()
public ProductAttributes.PetPolicy.Builder toBuilder()| Returns | |
|---|---|
| Type | Description |
ProductAttributes.PetPolicy.Builder |
|
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)| Parameter | |
|---|---|
| Name | Description |
output |
CodedOutputStream |
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|