Class CheckoutSettings (0.24.0)

public final class CheckoutSettings extends GeneratedMessageV3 implements CheckoutSettingsOrBuilder

CheckoutSettings for a specific merchant.

Protobuf type google.shopping.merchant.accounts.v1beta.CheckoutSettings

Static Fields

EFFECTIVE_ENROLLMENT_STATE_FIELD_NUMBER

public static final int EFFECTIVE_ENROLLMENT_STATE_FIELD_NUMBER
Field Value
Type Description
int

EFFECTIVE_REVIEW_STATE_FIELD_NUMBER

public static final int EFFECTIVE_REVIEW_STATE_FIELD_NUMBER
Field Value
Type Description
int

EFFECTIVE_URI_SETTINGS_FIELD_NUMBER

public static final int EFFECTIVE_URI_SETTINGS_FIELD_NUMBER
Field Value
Type Description
int

ELIGIBLE_DESTINATIONS_FIELD_NUMBER

public static final int ELIGIBLE_DESTINATIONS_FIELD_NUMBER
Field Value
Type Description
int

ENROLLMENT_STATE_FIELD_NUMBER

public static final int ENROLLMENT_STATE_FIELD_NUMBER
Field Value
Type Description
int

NAME_FIELD_NUMBER

public static final int NAME_FIELD_NUMBER
Field Value
Type Description
int

REVIEW_STATE_FIELD_NUMBER

public static final int REVIEW_STATE_FIELD_NUMBER
Field Value
Type Description
int

URI_SETTINGS_FIELD_NUMBER

public static final int URI_SETTINGS_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static CheckoutSettings getDefaultInstance()
Returns
Type Description
CheckoutSettings

getDescriptor()

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

newBuilder()

public static CheckoutSettings.Builder newBuilder()
Returns
Type Description
CheckoutSettings.Builder

newBuilder(CheckoutSettings prototype)

public static CheckoutSettings.Builder newBuilder(CheckoutSettings prototype)
Parameter
Name Description
prototype CheckoutSettings
Returns
Type Description
CheckoutSettings.Builder

parseDelimitedFrom(InputStream input)

public static CheckoutSettings parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
CheckoutSettings
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static CheckoutSettings parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
CheckoutSettings
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static CheckoutSettings parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
CheckoutSettings
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static CheckoutSettings parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
CheckoutSettings
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static CheckoutSettings parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
CheckoutSettings
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static CheckoutSettings parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
CheckoutSettings
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static CheckoutSettings parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
CheckoutSettings
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static CheckoutSettings parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
CheckoutSettings
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static CheckoutSettings parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
CheckoutSettings
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static CheckoutSettings parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
CheckoutSettings
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static CheckoutSettings parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
CheckoutSettings
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static CheckoutSettings parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
CheckoutSettings
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<CheckoutSettings> parser()
Returns
Type Description
Parser<CheckoutSettings>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getDefaultInstanceForType()

public CheckoutSettings getDefaultInstanceForType()
Returns
Type Description
CheckoutSettings

getEffectiveEnrollmentState()

public CheckoutSettings.CheckoutEnrollmentState getEffectiveEnrollmentState()

Output only. The effective value of enrollment_state for a given merchant ID. If account level settings are present then this value will be a copy of the account level settings. Otherwise, it will have the value of the parent account (for only marketplace sellers).

optional .google.shopping.merchant.accounts.v1beta.CheckoutSettings.CheckoutEnrollmentState effective_enrollment_state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
CheckoutSettings.CheckoutEnrollmentState

The effectiveEnrollmentState.

getEffectiveEnrollmentStateValue()

public int getEffectiveEnrollmentStateValue()

Output only. The effective value of enrollment_state for a given merchant ID. If account level settings are present then this value will be a copy of the account level settings. Otherwise, it will have the value of the parent account (for only marketplace sellers).

optional .google.shopping.merchant.accounts.v1beta.CheckoutSettings.CheckoutEnrollmentState effective_enrollment_state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
int

The enum numeric value on the wire for effectiveEnrollmentState.

getEffectiveReviewState()

public CheckoutSettings.CheckoutReviewState getEffectiveReviewState()

Output only. The effective value of review_state for a given merchant ID. If account level settings are present then this value will be a copy of the account level settings. Otherwise, it will have the value of the parent account (for only marketplace sellers).

optional .google.shopping.merchant.accounts.v1beta.CheckoutSettings.CheckoutReviewState effective_review_state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
CheckoutSettings.CheckoutReviewState

The effectiveReviewState.

getEffectiveReviewStateValue()

public int getEffectiveReviewStateValue()

Output only. The effective value of review_state for a given merchant ID. If account level settings are present then this value will be a copy of the account level settings. Otherwise, it will have the value of the parent account (for only marketplace sellers).

optional .google.shopping.merchant.accounts.v1beta.CheckoutSettings.CheckoutReviewState effective_review_state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
int

The enum numeric value on the wire for effectiveReviewState.

getEffectiveUriSettings()

public UriSettings getEffectiveUriSettings()

Output only. The effective value of uri_settings for a given merchant. If account level settings are present then this value will be a copy of url settings. Otherwise, it will have the value of the parent account (for only marketplace sellers).

.google.shopping.merchant.accounts.v1beta.UriSettings effective_uri_settings = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
UriSettings

The effectiveUriSettings.

getEffectiveUriSettingsOrBuilder()

public UriSettingsOrBuilder getEffectiveUriSettingsOrBuilder()

Output only. The effective value of uri_settings for a given merchant. If account level settings are present then this value will be a copy of url settings. Otherwise, it will have the value of the parent account (for only marketplace sellers).

.google.shopping.merchant.accounts.v1beta.UriSettings effective_uri_settings = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
UriSettingsOrBuilder

getEligibleDestinations(int index)

public Destination.DestinationEnum getEligibleDestinations(int index)

Optional. The destinations to which the checkout program applies, valid destination values are SHOPPING_ADS, FREE_LISTINGS

repeated .google.shopping.type.Destination.DestinationEnum eligible_destinations = 8 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int

The index of the element to return.

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

The eligibleDestinations at the given index.

getEligibleDestinationsCount()

public int getEligibleDestinationsCount()

Optional. The destinations to which the checkout program applies, valid destination values are SHOPPING_ADS, FREE_LISTINGS

repeated .google.shopping.type.Destination.DestinationEnum eligible_destinations = 8 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

The count of eligibleDestinations.

getEligibleDestinationsList()

public List<Destination.DestinationEnum> getEligibleDestinationsList()

Optional. The destinations to which the checkout program applies, valid destination values are SHOPPING_ADS, FREE_LISTINGS

repeated .google.shopping.type.Destination.DestinationEnum eligible_destinations = 8 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
List<com.google.shopping.type.Destination.DestinationEnum>

A list containing the eligibleDestinations.

getEligibleDestinationsValue(int index)

public int getEligibleDestinationsValue(int index)

Optional. The destinations to which the checkout program applies, valid destination values are SHOPPING_ADS, FREE_LISTINGS

repeated .google.shopping.type.Destination.DestinationEnum eligible_destinations = 8 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
int

The enum numeric value on the wire of eligibleDestinations at the given index.

getEligibleDestinationsValueList()

public List<Integer> getEligibleDestinationsValueList()

Optional. The destinations to which the checkout program applies, valid destination values are SHOPPING_ADS, FREE_LISTINGS

repeated .google.shopping.type.Destination.DestinationEnum eligible_destinations = 8 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
List<Integer>

A list containing the enum numeric values on the wire for eligibleDestinations.

getEnrollmentState()

public CheckoutSettings.CheckoutEnrollmentState getEnrollmentState()

Output only. Reflects the merchant enrollment state in Checkout program.

optional .google.shopping.merchant.accounts.v1beta.CheckoutSettings.CheckoutEnrollmentState enrollment_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
CheckoutSettings.CheckoutEnrollmentState

The enrollmentState.

getEnrollmentStateValue()

public int getEnrollmentStateValue()

Output only. Reflects the merchant enrollment state in Checkout program.

optional .google.shopping.merchant.accounts.v1beta.CheckoutSettings.CheckoutEnrollmentState enrollment_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
int

The enum numeric value on the wire for enrollmentState.

getName()

public String getName()

Identifier. The resource name of the program configuration settings. Format: accounts/{account}/programs/{program}/checkoutSettings

string name = 1 [(.google.api.field_behavior) = IDENTIFIER];

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

Identifier. The resource name of the program configuration settings. Format: accounts/{account}/programs/{program}/checkoutSettings

string name = 1 [(.google.api.field_behavior) = IDENTIFIER];

Returns
Type Description
ByteString

The bytes for name.

getParserForType()

public Parser<CheckoutSettings> getParserForType()
Returns
Type Description
Parser<CheckoutSettings>
Overrides

getReviewState()

public CheckoutSettings.CheckoutReviewState getReviewState()

Output only. Reflects the merchant review state in Checkout program. This is set based on the data quality reviews of the URL provided by the merchant. A merchant with enrollment state as ENROLLED can be in the following review states: IN_REVIEW, APPROVED or DISAPPROVED. A merchant must be in an enrollment_state of ENROLLED before a review can begin for the merchant.For more details, check the help center doc.

optional .google.shopping.merchant.accounts.v1beta.CheckoutSettings.CheckoutReviewState review_state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
CheckoutSettings.CheckoutReviewState

The reviewState.

getReviewStateValue()

public int getReviewStateValue()

Output only. Reflects the merchant review state in Checkout program. This is set based on the data quality reviews of the URL provided by the merchant. A merchant with enrollment state as ENROLLED can be in the following review states: IN_REVIEW, APPROVED or DISAPPROVED. A merchant must be in an enrollment_state of ENROLLED before a review can begin for the merchant.For more details, check the help center doc.

optional .google.shopping.merchant.accounts.v1beta.CheckoutSettings.CheckoutReviewState review_state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
int

The enum numeric value on the wire for reviewState.

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

getUriSettings()

public UriSettings getUriSettings()

URI settings for cart or checkout URL.

optional .google.shopping.merchant.accounts.v1beta.UriSettings uri_settings = 2;

Returns
Type Description
UriSettings

The uriSettings.

getUriSettingsOrBuilder()

public UriSettingsOrBuilder getUriSettingsOrBuilder()

URI settings for cart or checkout URL.

optional .google.shopping.merchant.accounts.v1beta.UriSettings uri_settings = 2;

Returns
Type Description
UriSettingsOrBuilder

hasEffectiveEnrollmentState()

public boolean hasEffectiveEnrollmentState()

Output only. The effective value of enrollment_state for a given merchant ID. If account level settings are present then this value will be a copy of the account level settings. Otherwise, it will have the value of the parent account (for only marketplace sellers).

optional .google.shopping.merchant.accounts.v1beta.CheckoutSettings.CheckoutEnrollmentState effective_enrollment_state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the effectiveEnrollmentState field is set.

hasEffectiveReviewState()

public boolean hasEffectiveReviewState()

Output only. The effective value of review_state for a given merchant ID. If account level settings are present then this value will be a copy of the account level settings. Otherwise, it will have the value of the parent account (for only marketplace sellers).

optional .google.shopping.merchant.accounts.v1beta.CheckoutSettings.CheckoutReviewState effective_review_state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the effectiveReviewState field is set.

hasEffectiveUriSettings()

public boolean hasEffectiveUriSettings()

Output only. The effective value of uri_settings for a given merchant. If account level settings are present then this value will be a copy of url settings. Otherwise, it will have the value of the parent account (for only marketplace sellers).

.google.shopping.merchant.accounts.v1beta.UriSettings effective_uri_settings = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the effectiveUriSettings field is set.

hasEnrollmentState()

public boolean hasEnrollmentState()

Output only. Reflects the merchant enrollment state in Checkout program.

optional .google.shopping.merchant.accounts.v1beta.CheckoutSettings.CheckoutEnrollmentState enrollment_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the enrollmentState field is set.

hasReviewState()

public boolean hasReviewState()

Output only. Reflects the merchant review state in Checkout program. This is set based on the data quality reviews of the URL provided by the merchant. A merchant with enrollment state as ENROLLED can be in the following review states: IN_REVIEW, APPROVED or DISAPPROVED. A merchant must be in an enrollment_state of ENROLLED before a review can begin for the merchant.For more details, check the help center doc.

optional .google.shopping.merchant.accounts.v1beta.CheckoutSettings.CheckoutReviewState review_state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the reviewState field is set.

hasUriSettings()

public boolean hasUriSettings()

URI settings for cart or checkout URL.

optional .google.shopping.merchant.accounts.v1beta.UriSettings uri_settings = 2;

Returns
Type Description
boolean

Whether the uriSettings field is set.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public CheckoutSettings.Builder newBuilderForType()
Returns
Type Description
CheckoutSettings.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected CheckoutSettings.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
CheckoutSettings.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

public CheckoutSettings.Builder toBuilder()
Returns
Type Description
CheckoutSettings.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException