public static final class OnlineReturnPolicy.ReturnShippingFee extends GeneratedMessage implements OnlineReturnPolicy.ReturnShippingFeeOrBuilderThe return shipping fee. This can either be a fixed fee or a boolean to indicate that the customer pays the actual shipping cost.
Protobuf type
google.shopping.merchant.accounts.v1beta.OnlineReturnPolicy.ReturnShippingFee
Inheritance
Object > AbstractMessageLite<MessageType,BuilderType> > AbstractMessage > GeneratedMessage > OnlineReturnPolicy.ReturnShippingFeeStatic Fields
FIXED_FEE_FIELD_NUMBER
public static final int FIXED_FEE_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.ReturnShippingFee getDefaultInstance()| Returns | |
|---|---|
| Type | Description |
OnlineReturnPolicy.ReturnShippingFee |
|
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
newBuilder()
public static OnlineReturnPolicy.ReturnShippingFee.Builder newBuilder()| Returns | |
|---|---|
| Type | Description |
OnlineReturnPolicy.ReturnShippingFee.Builder |
|
newBuilder(OnlineReturnPolicy.ReturnShippingFee prototype)
public static OnlineReturnPolicy.ReturnShippingFee.Builder newBuilder(OnlineReturnPolicy.ReturnShippingFee prototype)| Parameter | |
|---|---|
| Name | Description |
prototype |
OnlineReturnPolicy.ReturnShippingFee |
| Returns | |
|---|---|
| Type | Description |
OnlineReturnPolicy.ReturnShippingFee.Builder |
|
parseDelimitedFrom(InputStream input)
public static OnlineReturnPolicy.ReturnShippingFee parseDelimitedFrom(InputStream input)| Parameter | |
|---|---|
| Name | Description |
input |
InputStream |
| Returns | |
|---|---|
| Type | Description |
OnlineReturnPolicy.ReturnShippingFee |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static OnlineReturnPolicy.ReturnShippingFee parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
InputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
OnlineReturnPolicy.ReturnShippingFee |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
parseFrom(byte[] data)
public static OnlineReturnPolicy.ReturnShippingFee parseFrom(byte[] data)| Parameter | |
|---|---|
| Name | Description |
data |
byte[] |
| Returns | |
|---|---|
| Type | Description |
OnlineReturnPolicy.ReturnShippingFee |
|
| Exceptions | |
|---|---|
| Type | Description |
InvalidProtocolBufferException |
|
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static OnlineReturnPolicy.ReturnShippingFee parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
data |
byte[] |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
OnlineReturnPolicy.ReturnShippingFee |
|
| Exceptions | |
|---|---|
| Type | Description |
InvalidProtocolBufferException |
|
parseFrom(ByteString data)
public static OnlineReturnPolicy.ReturnShippingFee parseFrom(ByteString data)| Parameter | |
|---|---|
| Name | Description |
data |
ByteString |
| Returns | |
|---|---|
| Type | Description |
OnlineReturnPolicy.ReturnShippingFee |
|
| Exceptions | |
|---|---|
| Type | Description |
InvalidProtocolBufferException |
|
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static OnlineReturnPolicy.ReturnShippingFee parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
data |
ByteString |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
OnlineReturnPolicy.ReturnShippingFee |
|
| Exceptions | |
|---|---|
| Type | Description |
InvalidProtocolBufferException |
|
parseFrom(CodedInputStream input)
public static OnlineReturnPolicy.ReturnShippingFee parseFrom(CodedInputStream input)| Parameter | |
|---|---|
| Name | Description |
input |
CodedInputStream |
| Returns | |
|---|---|
| Type | Description |
OnlineReturnPolicy.ReturnShippingFee |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static OnlineReturnPolicy.ReturnShippingFee parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
OnlineReturnPolicy.ReturnShippingFee |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
parseFrom(InputStream input)
public static OnlineReturnPolicy.ReturnShippingFee parseFrom(InputStream input)| Parameter | |
|---|---|
| Name | Description |
input |
InputStream |
| Returns | |
|---|---|
| Type | Description |
OnlineReturnPolicy.ReturnShippingFee |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static OnlineReturnPolicy.ReturnShippingFee parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
InputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
OnlineReturnPolicy.ReturnShippingFee |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
parseFrom(ByteBuffer data)
public static OnlineReturnPolicy.ReturnShippingFee parseFrom(ByteBuffer data)| Parameter | |
|---|---|
| Name | Description |
data |
ByteBuffer |
| Returns | |
|---|---|
| Type | Description |
OnlineReturnPolicy.ReturnShippingFee |
|
| Exceptions | |
|---|---|
| Type | Description |
InvalidProtocolBufferException |
|
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static OnlineReturnPolicy.ReturnShippingFee parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
data |
ByteBuffer |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
OnlineReturnPolicy.ReturnShippingFee |
|
| Exceptions | |
|---|---|
| Type | Description |
InvalidProtocolBufferException |
|
parser()
public static Parser<OnlineReturnPolicy.ReturnShippingFee> parser()| Returns | |
|---|---|
| Type | Description |
Parser<ReturnShippingFee> |
|
Methods
equals(Object obj)
public boolean equals(Object obj)| Parameter | |
|---|---|
| Name | Description |
obj |
Object |
| Returns | |
|---|---|
| Type | Description |
boolean |
|
getDefaultInstanceForType()
public OnlineReturnPolicy.ReturnShippingFee getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
OnlineReturnPolicy.ReturnShippingFee |
|
getFixedFee()
public Price getFixedFee() Fixed return shipping fee amount. This value is only applicable when type
is FIXED. We will treat the return shipping fee as free if type is
FIXED and this value is not set.
.google.shopping.type.Price fixed_fee = 2;
| Returns | |
|---|---|
| Type | Description |
com.google.shopping.type.Price |
The fixedFee. |
getFixedFeeOrBuilder()
public PriceOrBuilder getFixedFeeOrBuilder() Fixed return shipping fee amount. This value is only applicable when type
is FIXED. We will treat the return shipping fee as free if type is
FIXED and this value is not set.
.google.shopping.type.Price fixed_fee = 2;
| Returns | |
|---|---|
| Type | Description |
com.google.shopping.type.PriceOrBuilder |
|
getParserForType()
public Parser<OnlineReturnPolicy.ReturnShippingFee> getParserForType()| Returns | |
|---|---|
| Type | Description |
Parser<ReturnShippingFee> |
|
getSerializedSize()
public int getSerializedSize()| Returns | |
|---|---|
| Type | Description |
int |
|
getType()
public OnlineReturnPolicy.ReturnShippingFee.Type getType()Required. Type of return shipping fee.
.google.shopping.merchant.accounts.v1beta.OnlineReturnPolicy.ReturnShippingFee.Type type = 1 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
OnlineReturnPolicy.ReturnShippingFee.Type |
The type. |
getTypeValue()
public int getTypeValue()Required. Type of return shipping fee.
.google.shopping.merchant.accounts.v1beta.OnlineReturnPolicy.ReturnShippingFee.Type type = 1 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
int |
The enum numeric value on the wire for type. |
hasFixedFee()
public boolean hasFixedFee() Fixed return shipping fee amount. This value is only applicable when type
is FIXED. We will treat the return shipping fee as free if type is
FIXED and this value is not set.
.google.shopping.type.Price fixed_fee = 2;
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the fixedFee field is set. |
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 OnlineReturnPolicy.ReturnShippingFee.Builder newBuilderForType()| Returns | |
|---|---|
| Type | Description |
OnlineReturnPolicy.ReturnShippingFee.Builder |
|
newBuilderForType(AbstractMessage.BuilderParent parent)
protected OnlineReturnPolicy.ReturnShippingFee.Builder newBuilderForType(AbstractMessage.BuilderParent parent)| Parameter | |
|---|---|
| Name | Description |
parent |
BuilderParent |
| Returns | |
|---|---|
| Type | Description |
OnlineReturnPolicy.ReturnShippingFee.Builder |
|
toBuilder()
public OnlineReturnPolicy.ReturnShippingFee.Builder toBuilder()| Returns | |
|---|---|
| Type | Description |
OnlineReturnPolicy.ReturnShippingFee.Builder |
|
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)| Parameter | |
|---|---|
| Name | Description |
output |
CodedOutputStream |
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|