Class Rule.RedirectAction (2.6.0)

public static final class Rule.RedirectAction extends GeneratedMessageV3 implements Rule.RedirectActionOrBuilder

Redirects a shopper to a specific page.

  • Rule Condition:
    • Must specify Condition.query_terms.
  • Action Input: Request Query
  • Action Result: Redirects shopper to provided uri.

Protobuf type google.cloud.retail.v2alpha.Rule.RedirectAction

Static Fields

REDIRECT_URI_FIELD_NUMBER

public static final int REDIRECT_URI_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static Rule.RedirectAction getDefaultInstance()
Returns
TypeDescription
Rule.RedirectAction

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

newBuilder()

public static Rule.RedirectAction.Builder newBuilder()
Returns
TypeDescription
Rule.RedirectAction.Builder

newBuilder(Rule.RedirectAction prototype)

public static Rule.RedirectAction.Builder newBuilder(Rule.RedirectAction prototype)
Parameter
NameDescription
prototypeRule.RedirectAction
Returns
TypeDescription
Rule.RedirectAction.Builder

parseDelimitedFrom(InputStream input)

public static Rule.RedirectAction parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
Rule.RedirectAction
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static Rule.RedirectAction parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Rule.RedirectAction
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static Rule.RedirectAction parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
Rule.RedirectAction
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static Rule.RedirectAction parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Rule.RedirectAction
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static Rule.RedirectAction parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
Rule.RedirectAction
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static Rule.RedirectAction parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Rule.RedirectAction
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static Rule.RedirectAction parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
Rule.RedirectAction
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static Rule.RedirectAction parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Rule.RedirectAction
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static Rule.RedirectAction parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
Rule.RedirectAction
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static Rule.RedirectAction parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Rule.RedirectAction
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static Rule.RedirectAction parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
Rule.RedirectAction
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static Rule.RedirectAction parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Rule.RedirectAction
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<Rule.RedirectAction> parser()
Returns
TypeDescription
Parser<RedirectAction>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getDefaultInstanceForType()

public Rule.RedirectAction getDefaultInstanceForType()
Returns
TypeDescription
Rule.RedirectAction

getParserForType()

public Parser<Rule.RedirectAction> getParserForType()
Returns
TypeDescription
Parser<RedirectAction>
Overrides

getRedirectUri()

public String getRedirectUri()

URL must have length equal or less than 2000 characters.

string redirect_uri = 1;

Returns
TypeDescription
String

The redirectUri.

getRedirectUriBytes()

public ByteString getRedirectUriBytes()

URL must have length equal or less than 2000 characters.

string redirect_uri = 1;

Returns
TypeDescription
ByteString

The bytes for redirectUri.

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getUnknownFields()

public final UnknownFieldSet getUnknownFields()
Returns
TypeDescription
UnknownFieldSet
Overrides

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public Rule.RedirectAction.Builder newBuilderForType()
Returns
TypeDescription
Rule.RedirectAction.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected Rule.RedirectAction.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
Rule.RedirectAction.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public Rule.RedirectAction.Builder toBuilder()
Returns
TypeDescription
Rule.RedirectAction.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides Exceptions
TypeDescription
IOException