public static final class OnlineReturnPolicy.Policy extends GeneratedMessageV3 implements OnlineReturnPolicy.PolicyOrBuilder
The available policies.
Protobuf type google.shopping.merchant.accounts.v1beta.OnlineReturnPolicy.Policy
Inheritance
Object > AbstractMessageLite<MessageType,BuilderType> > AbstractMessage > GeneratedMessageV3 > OnlineReturnPolicy.PolicyImplements
OnlineReturnPolicy.PolicyOrBuilderStatic Fields
DAYS_FIELD_NUMBER
public static final int DAYS_FIELD_NUMBER
Field Value | |
---|---|
Type | Description |
int |
TYPE_FIELD_NUMBER
public static final int TYPE_FIELD_NUMBER
Field Value | |
---|---|
Type | Description |
int |
Static Methods
getDefaultInstance()
public static OnlineReturnPolicy.Policy getDefaultInstance()
Returns | |
---|---|
Type | Description |
OnlineReturnPolicy.Policy |
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns | |
---|---|
Type | Description |
Descriptor |
newBuilder()
public static OnlineReturnPolicy.Policy.Builder newBuilder()
Returns | |
---|---|
Type | Description |
OnlineReturnPolicy.Policy.Builder |
newBuilder(OnlineReturnPolicy.Policy prototype)
public static OnlineReturnPolicy.Policy.Builder newBuilder(OnlineReturnPolicy.Policy prototype)
Parameter | |
---|---|
Name | Description |
prototype |
OnlineReturnPolicy.Policy |
Returns | |
---|---|
Type | Description |
OnlineReturnPolicy.Policy.Builder |
parseDelimitedFrom(InputStream input)
public static OnlineReturnPolicy.Policy parseDelimitedFrom(InputStream input)
Parameter | |
---|---|
Name | Description |
input |
InputStream |
Returns | |
---|---|
Type | Description |
OnlineReturnPolicy.Policy |
Exceptions | |
---|---|
Type | Description |
IOException |
parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static OnlineReturnPolicy.Policy parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters | |
---|---|
Name | Description |
input |
InputStream |
extensionRegistry |
ExtensionRegistryLite |
Returns | |
---|---|
Type | Description |
OnlineReturnPolicy.Policy |
Exceptions | |
---|---|
Type | Description |
IOException |
parseFrom(byte[] data)
public static OnlineReturnPolicy.Policy parseFrom(byte[] data)
Parameter | |
---|---|
Name | Description |
data |
byte[] |
Returns | |
---|---|
Type | Description |
OnlineReturnPolicy.Policy |
Exceptions | |
---|---|
Type | Description |
InvalidProtocolBufferException |
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static OnlineReturnPolicy.Policy parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters | |
---|---|
Name | Description |
data |
byte[] |
extensionRegistry |
ExtensionRegistryLite |
Returns | |
---|---|
Type | Description |
OnlineReturnPolicy.Policy |
Exceptions | |
---|---|
Type | Description |
InvalidProtocolBufferException |
parseFrom(ByteString data)
public static OnlineReturnPolicy.Policy parseFrom(ByteString data)
Parameter | |
---|---|
Name | Description |
data |
ByteString |
Returns | |
---|---|
Type | Description |
OnlineReturnPolicy.Policy |
Exceptions | |
---|---|
Type | Description |
InvalidProtocolBufferException |
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static OnlineReturnPolicy.Policy parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters | |
---|---|
Name | Description |
data |
ByteString |
extensionRegistry |
ExtensionRegistryLite |
Returns | |
---|---|
Type | Description |
OnlineReturnPolicy.Policy |
Exceptions | |
---|---|
Type | Description |
InvalidProtocolBufferException |
parseFrom(CodedInputStream input)
public static OnlineReturnPolicy.Policy parseFrom(CodedInputStream input)
Parameter | |
---|---|
Name | Description |
input |
CodedInputStream |
Returns | |
---|---|
Type | Description |
OnlineReturnPolicy.Policy |
Exceptions | |
---|---|
Type | Description |
IOException |
parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static OnlineReturnPolicy.Policy parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters | |
---|---|
Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
Returns | |
---|---|
Type | Description |
OnlineReturnPolicy.Policy |
Exceptions | |
---|---|
Type | Description |
IOException |
parseFrom(InputStream input)
public static OnlineReturnPolicy.Policy parseFrom(InputStream input)
Parameter | |
---|---|
Name | Description |
input |
InputStream |
Returns | |
---|---|
Type | Description |
OnlineReturnPolicy.Policy |
Exceptions | |
---|---|
Type | Description |
IOException |
parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static OnlineReturnPolicy.Policy parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters | |
---|---|
Name | Description |
input |
InputStream |
extensionRegistry |
ExtensionRegistryLite |
Returns | |
---|---|
Type | Description |
OnlineReturnPolicy.Policy |
Exceptions | |
---|---|
Type | Description |
IOException |
parseFrom(ByteBuffer data)
public static OnlineReturnPolicy.Policy parseFrom(ByteBuffer data)
Parameter | |
---|---|
Name | Description |
data |
ByteBuffer |
Returns | |
---|---|
Type | Description |
OnlineReturnPolicy.Policy |
Exceptions | |
---|---|
Type | Description |
InvalidProtocolBufferException |
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static OnlineReturnPolicy.Policy parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters | |
---|---|
Name | Description |
data |
ByteBuffer |
extensionRegistry |
ExtensionRegistryLite |
Returns | |
---|---|
Type | Description |
OnlineReturnPolicy.Policy |
Exceptions | |
---|---|
Type | Description |
InvalidProtocolBufferException |
parser()
public static Parser<OnlineReturnPolicy.Policy> parser()
Returns | |
---|---|
Type | Description |
Parser<Policy> |
Methods
equals(Object obj)
public boolean equals(Object obj)
Parameter | |
---|---|
Name | Description |
obj |
Object |
Returns | |
---|---|
Type | Description |
boolean |
getDays()
public long getDays()
The number of days items can be returned after delivery, where one day
is defined as 24 hours after the delivery timestamp. Required for
NUMBER_OF_DAYS_AFTER_DELIVERY
returns.
int64 days = 2;
Returns | |
---|---|
Type | Description |
long |
The days. |
getDefaultInstanceForType()
public OnlineReturnPolicy.Policy getDefaultInstanceForType()
Returns | |
---|---|
Type | Description |
OnlineReturnPolicy.Policy |
getParserForType()
public Parser<OnlineReturnPolicy.Policy> getParserForType()
Returns | |
---|---|
Type | Description |
Parser<Policy> |
getSerializedSize()
public int getSerializedSize()
Returns | |
---|---|
Type | Description |
int |
getType()
public OnlineReturnPolicy.Policy.Type getType()
Policy type.
.google.shopping.merchant.accounts.v1beta.OnlineReturnPolicy.Policy.Type type = 1;
Returns | |
---|---|
Type | Description |
OnlineReturnPolicy.Policy.Type |
The type. |
getTypeValue()
public int getTypeValue()
Policy type.
.google.shopping.merchant.accounts.v1beta.OnlineReturnPolicy.Policy.Type type = 1;
Returns | |
---|---|
Type | Description |
int |
The enum numeric value on the wire for type. |
hashCode()
public int hashCode()
Returns | |
---|---|
Type | Description |
int |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns | |
---|---|
Type | Description |
FieldAccessorTable |
isInitialized()
public final boolean isInitialized()
Returns | |
---|---|
Type | Description |
boolean |
newBuilderForType()
public OnlineReturnPolicy.Policy.Builder newBuilderForType()
Returns | |
---|---|
Type | Description |
OnlineReturnPolicy.Policy.Builder |
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected OnlineReturnPolicy.Policy.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter | |
---|---|
Name | Description |
parent |
BuilderParent |
Returns | |
---|---|
Type | Description |
OnlineReturnPolicy.Policy.Builder |
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter | |
---|---|
Name | Description |
unused |
UnusedPrivateParameter |
Returns | |
---|---|
Type | Description |
Object |
toBuilder()
public OnlineReturnPolicy.Policy.Builder toBuilder()
Returns | |
---|---|
Type | Description |
OnlineReturnPolicy.Policy.Builder |
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Parameter | |
---|---|
Name | Description |
output |
CodedOutputStream |
Exceptions | |
---|---|
Type | Description |
IOException |