Class UriSettings (0.24.0)

public final class UriSettings extends GeneratedMessageV3 implements UriSettingsOrBuilder

URL settings for cart or checkout URL.

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

Static Fields

CART_URI_TEMPLATE_FIELD_NUMBER

public static final int CART_URI_TEMPLATE_FIELD_NUMBER
Field Value
Type Description
int

CHECKOUT_URI_TEMPLATE_FIELD_NUMBER

public static final int CHECKOUT_URI_TEMPLATE_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static UriSettings getDefaultInstance()
Returns
Type Description
UriSettings

getDescriptor()

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

newBuilder()

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

newBuilder(UriSettings prototype)

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

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
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

getParserForType()

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

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
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.

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 UriSettings.Builder newBuilderForType()
Returns
Type Description
UriSettings.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

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

writeTo(CodedOutputStream output)

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