Class ExternalAction.Builder (1.16.0)

public static final class ExternalAction.Builder extends GeneratedMessage.Builder<ExternalAction.Builder> implements ExternalActionOrBuilder

Action that is implemented and performed outside of the third-party application. It should redirect the business to the provided URL of an external system where they can perform the action. For example to request a review in the Merchant Center.

Protobuf type google.shopping.merchant.issueresolution.v1.ExternalAction

Static Methods

getDescriptor()

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

Methods

build()

public ExternalAction build()
Returns
Type Description
ExternalAction

buildPartial()

public ExternalAction buildPartial()
Returns
Type Description
ExternalAction

clear()

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

clearType()

public ExternalAction.Builder clearType()

The type of external action.

.google.shopping.merchant.issueresolution.v1.ExternalAction.ExternalActionType type = 1;

Returns
Type Description
ExternalAction.Builder

This builder for chaining.

clearUri()

public ExternalAction.Builder clearUri()

URL to external system, for example Merchant Center, where the business can perform the action.

string uri = 2;

Returns
Type Description
ExternalAction.Builder

This builder for chaining.

getDefaultInstanceForType()

public ExternalAction getDefaultInstanceForType()
Returns
Type Description
ExternalAction

getDescriptorForType()

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

getType()

public ExternalAction.ExternalActionType getType()

The type of external action.

.google.shopping.merchant.issueresolution.v1.ExternalAction.ExternalActionType type = 1;

Returns
Type Description
ExternalAction.ExternalActionType

The type.

getTypeValue()

public int getTypeValue()

The type of external action.

.google.shopping.merchant.issueresolution.v1.ExternalAction.ExternalActionType type = 1;

Returns
Type Description
int

The enum numeric value on the wire for type.

getUri()

public String getUri()

URL to external system, for example Merchant Center, where the business can perform the action.

string uri = 2;

Returns
Type Description
String

The uri.

getUriBytes()

public ByteString getUriBytes()

URL to external system, for example Merchant Center, where the business can perform the action.

string uri = 2;

Returns
Type Description
ByteString

The bytes for uri.

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

mergeFrom(Message other)

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

mergeFrom(ExternalAction other)

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

setType(ExternalAction.ExternalActionType value)

public ExternalAction.Builder setType(ExternalAction.ExternalActionType value)

The type of external action.

.google.shopping.merchant.issueresolution.v1.ExternalAction.ExternalActionType type = 1;

Parameter
Name Description
value ExternalAction.ExternalActionType

The type to set.

Returns
Type Description
ExternalAction.Builder

This builder for chaining.

setTypeValue(int value)

public ExternalAction.Builder setTypeValue(int value)

The type of external action.

.google.shopping.merchant.issueresolution.v1.ExternalAction.ExternalActionType type = 1;

Parameter
Name Description
value int

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

Returns
Type Description
ExternalAction.Builder

This builder for chaining.

setUri(String value)

public ExternalAction.Builder setUri(String value)

URL to external system, for example Merchant Center, where the business can perform the action.

string uri = 2;

Parameter
Name Description
value String

The uri to set.

Returns
Type Description
ExternalAction.Builder

This builder for chaining.

setUriBytes(ByteString value)

public ExternalAction.Builder setUriBytes(ByteString value)

URL to external system, for example Merchant Center, where the business can perform the action.

string uri = 2;

Parameter
Name Description
value ByteString

The bytes for uri to set.

Returns
Type Description
ExternalAction.Builder

This builder for chaining.