Class Action (0.2.0)

public final class Action extends GeneratedMessageV3 implements ActionOrBuilder

An actionable step that can be executed to solve the issue.

Protobuf type google.shopping.merchant.issueresolution.v1beta.Action

Implements

ActionOrBuilder

Static Fields

BUILTIN_SIMPLE_ACTION_FIELD_NUMBER

public static final int BUILTIN_SIMPLE_ACTION_FIELD_NUMBER
Field Value
Type Description
int

BUILTIN_USER_INPUT_ACTION_FIELD_NUMBER

public static final int BUILTIN_USER_INPUT_ACTION_FIELD_NUMBER
Field Value
Type Description
int

BUTTON_LABEL_FIELD_NUMBER

public static final int BUTTON_LABEL_FIELD_NUMBER
Field Value
Type Description
int

EXTERNAL_ACTION_FIELD_NUMBER

public static final int EXTERNAL_ACTION_FIELD_NUMBER
Field Value
Type Description
int

IS_AVAILABLE_FIELD_NUMBER

public static final int IS_AVAILABLE_FIELD_NUMBER
Field Value
Type Description
int

REASONS_FIELD_NUMBER

public static final int REASONS_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static Action getDefaultInstance()
Returns
Type Description
Action

getDescriptor()

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

newBuilder()

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

newBuilder(Action prototype)

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

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

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

getActionCase()

public Action.ActionCase getActionCase()
Returns
Type Description
Action.ActionCase

getBuiltinSimpleAction()

public BuiltInSimpleAction getBuiltinSimpleAction()

Action implemented and performed in (your) third-party application. The application should point the business to the place, where they can access the corresponding functionality or provide instructions, if the specific functionality is not available.

.google.shopping.merchant.issueresolution.v1beta.BuiltInSimpleAction builtin_simple_action = 2;

Returns
Type Description
BuiltInSimpleAction

The builtinSimpleAction.

getBuiltinSimpleActionOrBuilder()

public BuiltInSimpleActionOrBuilder getBuiltinSimpleActionOrBuilder()

Action implemented and performed in (your) third-party application. The application should point the business to the place, where they can access the corresponding functionality or provide instructions, if the specific functionality is not available.

.google.shopping.merchant.issueresolution.v1beta.BuiltInSimpleAction builtin_simple_action = 2;

Returns
Type Description
BuiltInSimpleActionOrBuilder

getBuiltinUserInputAction()

public BuiltInUserInputAction getBuiltinUserInputAction()

Action implemented and performed in (your) third-party application. The application needs to show an additional content and input form to the business as specified for given action. They can trigger the action only when they provided all required inputs.

.google.shopping.merchant.issueresolution.v1beta.BuiltInUserInputAction builtin_user_input_action = 7;

Returns
Type Description
BuiltInUserInputAction

The builtinUserInputAction.

getBuiltinUserInputActionOrBuilder()

public BuiltInUserInputActionOrBuilder getBuiltinUserInputActionOrBuilder()

Action implemented and performed in (your) third-party application. The application needs to show an additional content and input form to the business as specified for given action. They can trigger the action only when they provided all required inputs.

.google.shopping.merchant.issueresolution.v1beta.BuiltInUserInputAction builtin_user_input_action = 7;

Returns
Type Description
BuiltInUserInputActionOrBuilder

getButtonLabel()

public String getButtonLabel()

Label of the action button.

string button_label = 4;

Returns
Type Description
String

The buttonLabel.

getButtonLabelBytes()

public ByteString getButtonLabelBytes()

Label of the action button.

string button_label = 4;

Returns
Type Description
ByteString

The bytes for buttonLabel.

getDefaultInstanceForType()

public Action getDefaultInstanceForType()
Returns
Type Description
Action

getExternalAction()

public ExternalAction getExternalAction()

Action that is implemented and performed outside of (your) third-party application. The application needs to redirect the business to the external location where they can perform the action.

.google.shopping.merchant.issueresolution.v1beta.ExternalAction external_action = 3;

Returns
Type Description
ExternalAction

The externalAction.

getExternalActionOrBuilder()

public ExternalActionOrBuilder getExternalActionOrBuilder()

Action that is implemented and performed outside of (your) third-party application. The application needs to redirect the business to the external location where they can perform the action.

.google.shopping.merchant.issueresolution.v1beta.ExternalAction external_action = 3;

Returns
Type Description
ExternalActionOrBuilder

getIsAvailable()

public boolean getIsAvailable()

Controlling whether the button is active or disabled. The value is 'false' when the action was already requested or is not available. If the action is not available then a reason will be present. If (your) third-party application shows a disabled button for action that is not available, then it should also show reasons.

bool is_available = 5;

Returns
Type Description
boolean

The isAvailable.

getParserForType()

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

getReasons(int index)

public Action.Reason getReasons(int index)

List of reasons why the action is not available. The list of reasons is empty if the action is available. If there is only one reason, it can be displayed next to the disabled button. If there are more reasons, all of them should be displayed, for example in a pop-up dialog.

repeated .google.shopping.merchant.issueresolution.v1beta.Action.Reason reasons = 6;

Parameter
Name Description
index int
Returns
Type Description
Action.Reason

getReasonsCount()

public int getReasonsCount()

List of reasons why the action is not available. The list of reasons is empty if the action is available. If there is only one reason, it can be displayed next to the disabled button. If there are more reasons, all of them should be displayed, for example in a pop-up dialog.

repeated .google.shopping.merchant.issueresolution.v1beta.Action.Reason reasons = 6;

Returns
Type Description
int

getReasonsList()

public List<Action.Reason> getReasonsList()

List of reasons why the action is not available. The list of reasons is empty if the action is available. If there is only one reason, it can be displayed next to the disabled button. If there are more reasons, all of them should be displayed, for example in a pop-up dialog.

repeated .google.shopping.merchant.issueresolution.v1beta.Action.Reason reasons = 6;

Returns
Type Description
List<Reason>

getReasonsOrBuilder(int index)

public Action.ReasonOrBuilder getReasonsOrBuilder(int index)

List of reasons why the action is not available. The list of reasons is empty if the action is available. If there is only one reason, it can be displayed next to the disabled button. If there are more reasons, all of them should be displayed, for example in a pop-up dialog.

repeated .google.shopping.merchant.issueresolution.v1beta.Action.Reason reasons = 6;

Parameter
Name Description
index int
Returns
Type Description
Action.ReasonOrBuilder

getReasonsOrBuilderList()

public List<? extends Action.ReasonOrBuilder> getReasonsOrBuilderList()

List of reasons why the action is not available. The list of reasons is empty if the action is available. If there is only one reason, it can be displayed next to the disabled button. If there are more reasons, all of them should be displayed, for example in a pop-up dialog.

repeated .google.shopping.merchant.issueresolution.v1beta.Action.Reason reasons = 6;

Returns
Type Description
List<? extends com.google.shopping.merchant.issueresolution.v1beta.Action.ReasonOrBuilder>

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

hasBuiltinSimpleAction()

public boolean hasBuiltinSimpleAction()

Action implemented and performed in (your) third-party application. The application should point the business to the place, where they can access the corresponding functionality or provide instructions, if the specific functionality is not available.

.google.shopping.merchant.issueresolution.v1beta.BuiltInSimpleAction builtin_simple_action = 2;

Returns
Type Description
boolean

Whether the builtinSimpleAction field is set.

hasBuiltinUserInputAction()

public boolean hasBuiltinUserInputAction()

Action implemented and performed in (your) third-party application. The application needs to show an additional content and input form to the business as specified for given action. They can trigger the action only when they provided all required inputs.

.google.shopping.merchant.issueresolution.v1beta.BuiltInUserInputAction builtin_user_input_action = 7;

Returns
Type Description
boolean

Whether the builtinUserInputAction field is set.

hasExternalAction()

public boolean hasExternalAction()

Action that is implemented and performed outside of (your) third-party application. The application needs to redirect the business to the external location where they can perform the action.

.google.shopping.merchant.issueresolution.v1beta.ExternalAction external_action = 3;

Returns
Type Description
boolean

Whether the externalAction 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 Action.Builder newBuilderForType()
Returns
Type Description
Action.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

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

writeTo(CodedOutputStream output)

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