Class Action.Reason (0.2.0)

public static final class Action.Reason extends GeneratedMessageV3 implements Action.ReasonOrBuilder

A single reason why the action is not available.

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

Static Fields

ACTION_FIELD_NUMBER

public static final int ACTION_FIELD_NUMBER
Field Value
Type Description
int

DETAIL_FIELD_NUMBER

public static final int DETAIL_FIELD_NUMBER
Field Value
Type Description
int

MESSAGE_FIELD_NUMBER

public static final int MESSAGE_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static Action.Reason getDefaultInstance()
Returns
Type Description
Action.Reason

getDescriptor()

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

newBuilder()

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

newBuilder(Action.Reason prototype)

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

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

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

getAction()

public Action getAction()

Optional. An action that needs to be performed to solve the problem represented by this reason. This action will always be available. Should be rendered as a link or button next to the summarizing message.

For example, the review may be available only once the business configure all required attributes. In such a situation this action can be a link to the form, where they can fill the missing attribute to unblock the main action.

optional .google.shopping.merchant.issueresolution.v1beta.Action action = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Action

The action.

getActionOrBuilder()

public ActionOrBuilder getActionOrBuilder()

Optional. An action that needs to be performed to solve the problem represented by this reason. This action will always be available. Should be rendered as a link or button next to the summarizing message.

For example, the review may be available only once the business configure all required attributes. In such a situation this action can be a link to the form, where they can fill the missing attribute to unblock the main action.

optional .google.shopping.merchant.issueresolution.v1beta.Action action = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ActionOrBuilder

getDefaultInstanceForType()

public Action.Reason getDefaultInstanceForType()
Returns
Type Description
Action.Reason

getDetail()

public String getDetail()

Detailed explanation of the reason. Should be displayed as a hint if present.

optional string detail = 2;

Returns
Type Description
String

The detail.

getDetailBytes()

public ByteString getDetailBytes()

Detailed explanation of the reason. Should be displayed as a hint if present.

optional string detail = 2;

Returns
Type Description
ByteString

The bytes for detail.

getMessage()

public String getMessage()

Messages summarizing the reason, why the action is not available. For example: "Review requested on Jan 03. Review requests can take a few days to complete."

string message = 1;

Returns
Type Description
String

The message.

getMessageBytes()

public ByteString getMessageBytes()

Messages summarizing the reason, why the action is not available. For example: "Review requested on Jan 03. Review requests can take a few days to complete."

string message = 1;

Returns
Type Description
ByteString

The bytes for message.

getParserForType()

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

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

hasAction()

public boolean hasAction()

Optional. An action that needs to be performed to solve the problem represented by this reason. This action will always be available. Should be rendered as a link or button next to the summarizing message.

For example, the review may be available only once the business configure all required attributes. In such a situation this action can be a link to the form, where they can fill the missing attribute to unblock the main action.

optional .google.shopping.merchant.issueresolution.v1beta.Action action = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the action field is set.

hasDetail()

public boolean hasDetail()

Detailed explanation of the reason. Should be displayed as a hint if present.

optional string detail = 2;

Returns
Type Description
boolean

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

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected Action.Reason.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
Action.Reason.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.Reason.Builder toBuilder()
Returns
Type Description
Action.Reason.Builder

writeTo(CodedOutputStream output)

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