Class OnlineReturnPolicy.Policy.Builder (0.2.0)

public static final class OnlineReturnPolicy.Policy.Builder extends GeneratedMessageV3.Builder<OnlineReturnPolicy.Policy.Builder> implements OnlineReturnPolicy.PolicyOrBuilder

The available policies.

Protobuf type google.shopping.merchant.accounts.v1beta.OnlineReturnPolicy.Policy

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public OnlineReturnPolicy.Policy.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
OnlineReturnPolicy.Policy.Builder
Overrides

build()

public OnlineReturnPolicy.Policy build()
Returns
Type Description
OnlineReturnPolicy.Policy

buildPartial()

public OnlineReturnPolicy.Policy buildPartial()
Returns
Type Description
OnlineReturnPolicy.Policy

clear()

public OnlineReturnPolicy.Policy.Builder clear()
Returns
Type Description
OnlineReturnPolicy.Policy.Builder
Overrides

clearDays()

public OnlineReturnPolicy.Policy.Builder clearDays()

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
OnlineReturnPolicy.Policy.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public OnlineReturnPolicy.Policy.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
OnlineReturnPolicy.Policy.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public OnlineReturnPolicy.Policy.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
OnlineReturnPolicy.Policy.Builder
Overrides

clearType()

public OnlineReturnPolicy.Policy.Builder clearType()

Policy type.

.google.shopping.merchant.accounts.v1beta.OnlineReturnPolicy.Policy.Type type = 1;

Returns
Type Description
OnlineReturnPolicy.Policy.Builder

This builder for chaining.

clone()

public OnlineReturnPolicy.Policy.Builder clone()
Returns
Type Description
OnlineReturnPolicy.Policy.Builder
Overrides

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

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

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.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public OnlineReturnPolicy.Policy.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
OnlineReturnPolicy.Policy.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public OnlineReturnPolicy.Policy.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
OnlineReturnPolicy.Policy.Builder
Overrides

mergeFrom(OnlineReturnPolicy.Policy other)

public OnlineReturnPolicy.Policy.Builder mergeFrom(OnlineReturnPolicy.Policy other)
Parameter
Name Description
other OnlineReturnPolicy.Policy
Returns
Type Description
OnlineReturnPolicy.Policy.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final OnlineReturnPolicy.Policy.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
OnlineReturnPolicy.Policy.Builder
Overrides

setDays(long value)

public OnlineReturnPolicy.Policy.Builder setDays(long value)

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;

Parameter
Name Description
value long

The days to set.

Returns
Type Description
OnlineReturnPolicy.Policy.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public OnlineReturnPolicy.Policy.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
OnlineReturnPolicy.Policy.Builder
Overrides

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public OnlineReturnPolicy.Policy.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
OnlineReturnPolicy.Policy.Builder
Overrides

setType(OnlineReturnPolicy.Policy.Type value)

public OnlineReturnPolicy.Policy.Builder setType(OnlineReturnPolicy.Policy.Type value)

Policy type.

.google.shopping.merchant.accounts.v1beta.OnlineReturnPolicy.Policy.Type type = 1;

Parameter
Name Description
value OnlineReturnPolicy.Policy.Type

The type to set.

Returns
Type Description
OnlineReturnPolicy.Policy.Builder

This builder for chaining.

setTypeValue(int value)

public OnlineReturnPolicy.Policy.Builder setTypeValue(int value)

Policy type.

.google.shopping.merchant.accounts.v1beta.OnlineReturnPolicy.Policy.Type type = 1;

Parameter
Name Description
value int

The enum numeric value on the wire for type to set.

Returns
Type Description
OnlineReturnPolicy.Policy.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final OnlineReturnPolicy.Policy.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
OnlineReturnPolicy.Policy.Builder
Overrides