Class UriSettings.Builder (0.24.0)

public static final class UriSettings.Builder extends GeneratedMessageV3.Builder<UriSettings.Builder> implements UriSettingsOrBuilder

URL settings for cart or checkout URL.

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

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public UriSettings build()
Returns
Type Description
UriSettings

buildPartial()

public UriSettings buildPartial()
Returns
Type Description
UriSettings

clear()

public UriSettings.Builder clear()
Returns
Type Description
UriSettings.Builder
Overrides

clearCartUriTemplate()

public UriSettings.Builder clearCartUriTemplate()

Cart URL template. When the placeholders are expanded will redirect the buyer to the cart page on the merchant website with the selected item in cart. For more details, check the help center doc

string cart_uri_template = 2;

Returns
Type Description
UriSettings.Builder

This builder for chaining.

clearCheckoutUriTemplate()

public UriSettings.Builder clearCheckoutUriTemplate()

Checkout URL template. When the placeholders are expanded will redirect the buyer to the merchant checkout page with the item in the cart. For more details, check the help center doc

string checkout_uri_template = 1;

Returns
Type Description
UriSettings.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearUriTemplate()

public UriSettings.Builder clearUriTemplate()
Returns
Type Description
UriSettings.Builder

clone()

public UriSettings.Builder clone()
Returns
Type Description
UriSettings.Builder
Overrides

getCartUriTemplate()

public String getCartUriTemplate()

Cart URL template. When the placeholders are expanded will redirect the buyer to the cart page on the merchant website with the selected item in cart. For more details, check the help center doc

string cart_uri_template = 2;

Returns
Type Description
String

The cartUriTemplate.

getCartUriTemplateBytes()

public ByteString getCartUriTemplateBytes()

Cart URL template. When the placeholders are expanded will redirect the buyer to the cart page on the merchant website with the selected item in cart. For more details, check the help center doc

string cart_uri_template = 2;

Returns
Type Description
ByteString

The bytes for cartUriTemplate.

getCheckoutUriTemplate()

public String getCheckoutUriTemplate()

Checkout URL template. When the placeholders are expanded will redirect the buyer to the merchant checkout page with the item in the cart. For more details, check the help center doc

string checkout_uri_template = 1;

Returns
Type Description
String

The checkoutUriTemplate.

getCheckoutUriTemplateBytes()

public ByteString getCheckoutUriTemplateBytes()

Checkout URL template. When the placeholders are expanded will redirect the buyer to the merchant checkout page with the item in the cart. For more details, check the help center doc

string checkout_uri_template = 1;

Returns
Type Description
ByteString

The bytes for checkoutUriTemplate.

getDefaultInstanceForType()

public UriSettings getDefaultInstanceForType()
Returns
Type Description
UriSettings

getDescriptorForType()

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

getUriTemplateCase()

public UriSettings.UriTemplateCase getUriTemplateCase()
Returns
Type Description
UriSettings.UriTemplateCase

hasCartUriTemplate()

public boolean hasCartUriTemplate()

Cart URL template. When the placeholders are expanded will redirect the buyer to the cart page on the merchant website with the selected item in cart. For more details, check the help center doc

string cart_uri_template = 2;

Returns
Type Description
boolean

Whether the cartUriTemplate field is set.

hasCheckoutUriTemplate()

public boolean hasCheckoutUriTemplate()

Checkout URL template. When the placeholders are expanded will redirect the buyer to the merchant checkout page with the item in the cart. For more details, check the help center doc

string checkout_uri_template = 1;

Returns
Type Description
boolean

Whether the checkoutUriTemplate field is set.

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 UriSettings.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
UriSettings.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

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

mergeFrom(UriSettings other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setCartUriTemplate(String value)

public UriSettings.Builder setCartUriTemplate(String value)

Cart URL template. When the placeholders are expanded will redirect the buyer to the cart page on the merchant website with the selected item in cart. For more details, check the help center doc

string cart_uri_template = 2;

Parameter
Name Description
value String

The cartUriTemplate to set.

Returns
Type Description
UriSettings.Builder

This builder for chaining.

setCartUriTemplateBytes(ByteString value)

public UriSettings.Builder setCartUriTemplateBytes(ByteString value)

Cart URL template. When the placeholders are expanded will redirect the buyer to the cart page on the merchant website with the selected item in cart. For more details, check the help center doc

string cart_uri_template = 2;

Parameter
Name Description
value ByteString

The bytes for cartUriTemplate to set.

Returns
Type Description
UriSettings.Builder

This builder for chaining.

setCheckoutUriTemplate(String value)

public UriSettings.Builder setCheckoutUriTemplate(String value)

Checkout URL template. When the placeholders are expanded will redirect the buyer to the merchant checkout page with the item in the cart. For more details, check the help center doc

string checkout_uri_template = 1;

Parameter
Name Description
value String

The checkoutUriTemplate to set.

Returns
Type Description
UriSettings.Builder

This builder for chaining.

setCheckoutUriTemplateBytes(ByteString value)

public UriSettings.Builder setCheckoutUriTemplateBytes(ByteString value)

Checkout URL template. When the placeholders are expanded will redirect the buyer to the merchant checkout page with the item in the cart. For more details, check the help center doc

string checkout_uri_template = 1;

Parameter
Name Description
value ByteString

The bytes for checkoutUriTemplate to set.

Returns
Type Description
UriSettings.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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