Class PrimaryProductDataSource.Destination.Builder (1.13.0)

public static final class PrimaryProductDataSource.Destination.Builder extends GeneratedMessage.Builder<PrimaryProductDataSource.Destination.Builder> implements PrimaryProductDataSource.DestinationOrBuilder

Destinations also known as Marketing methods selections.

Protobuf type google.shopping.merchant.datasources.v1beta.PrimaryProductDataSource.Destination

Static Methods

getDescriptor()

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

Methods

build()

public PrimaryProductDataSource.Destination build()
Returns
Type Description
PrimaryProductDataSource.Destination

buildPartial()

public PrimaryProductDataSource.Destination buildPartial()
Returns
Type Description
PrimaryProductDataSource.Destination

clear()

public PrimaryProductDataSource.Destination.Builder clear()
Returns
Type Description
PrimaryProductDataSource.Destination.Builder
Overrides

clearDestination()

public PrimaryProductDataSource.Destination.Builder clearDestination()

Marketing methods (also known as destination) selections.

.google.shopping.type.Destination.DestinationEnum destination = 1;

Returns
Type Description
PrimaryProductDataSource.Destination.Builder

This builder for chaining.

clearState()

public PrimaryProductDataSource.Destination.Builder clearState()

The state of the destination.

.google.shopping.merchant.datasources.v1beta.PrimaryProductDataSource.Destination.State state = 2;

Returns
Type Description
PrimaryProductDataSource.Destination.Builder

This builder for chaining.

getDefaultInstanceForType()

public PrimaryProductDataSource.Destination getDefaultInstanceForType()
Returns
Type Description
PrimaryProductDataSource.Destination

getDescriptorForType()

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

getDestination()

public Destination.DestinationEnum getDestination()

Marketing methods (also known as destination) selections.

.google.shopping.type.Destination.DestinationEnum destination = 1;

Returns
Type Description
com.google.shopping.type.Destination.DestinationEnum

The destination.

getDestinationValue()

public int getDestinationValue()

Marketing methods (also known as destination) selections.

.google.shopping.type.Destination.DestinationEnum destination = 1;

Returns
Type Description
int

The enum numeric value on the wire for destination.

getState()

public PrimaryProductDataSource.Destination.State getState()

The state of the destination.

.google.shopping.merchant.datasources.v1beta.PrimaryProductDataSource.Destination.State state = 2;

Returns
Type Description
PrimaryProductDataSource.Destination.State

The state.

getStateValue()

public int getStateValue()

The state of the destination.

.google.shopping.merchant.datasources.v1beta.PrimaryProductDataSource.Destination.State state = 2;

Returns
Type Description
int

The enum numeric value on the wire for state.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

public PrimaryProductDataSource.Destination.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
PrimaryProductDataSource.Destination.Builder
Overrides

mergeFrom(PrimaryProductDataSource.Destination other)

public PrimaryProductDataSource.Destination.Builder mergeFrom(PrimaryProductDataSource.Destination other)
Parameter
Name Description
other PrimaryProductDataSource.Destination
Returns
Type Description
PrimaryProductDataSource.Destination.Builder

setDestination(Destination.DestinationEnum value)

public PrimaryProductDataSource.Destination.Builder setDestination(Destination.DestinationEnum value)

Marketing methods (also known as destination) selections.

.google.shopping.type.Destination.DestinationEnum destination = 1;

Parameter
Name Description
value com.google.shopping.type.Destination.DestinationEnum

The destination to set.

Returns
Type Description
PrimaryProductDataSource.Destination.Builder

This builder for chaining.

setDestinationValue(int value)

public PrimaryProductDataSource.Destination.Builder setDestinationValue(int value)

Marketing methods (also known as destination) selections.

.google.shopping.type.Destination.DestinationEnum destination = 1;

Parameter
Name Description
value int

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

Returns
Type Description
PrimaryProductDataSource.Destination.Builder

This builder for chaining.

setState(PrimaryProductDataSource.Destination.State value)

public PrimaryProductDataSource.Destination.Builder setState(PrimaryProductDataSource.Destination.State value)

The state of the destination.

.google.shopping.merchant.datasources.v1beta.PrimaryProductDataSource.Destination.State state = 2;

Parameter
Name Description
value PrimaryProductDataSource.Destination.State

The state to set.

Returns
Type Description
PrimaryProductDataSource.Destination.Builder

This builder for chaining.

setStateValue(int value)

public PrimaryProductDataSource.Destination.Builder setStateValue(int value)

The state of the destination.

.google.shopping.merchant.datasources.v1beta.PrimaryProductDataSource.Destination.State state = 2;

Parameter
Name Description
value int

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

Returns
Type Description
PrimaryProductDataSource.Destination.Builder

This builder for chaining.