public static final class Rule.RedirectAction.Builder extends GeneratedMessageV3.Builder<Rule.RedirectAction.Builder> 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
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public Rule.RedirectAction.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
build()
public Rule.RedirectAction build()
Returns
buildPartial()
public Rule.RedirectAction buildPartial()
Returns
clear()
public Rule.RedirectAction.Builder clear()
Returns
Overrides
clearField(Descriptors.FieldDescriptor field)
public Rule.RedirectAction.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public Rule.RedirectAction.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
Overrides
clearRedirectUri()
public Rule.RedirectAction.Builder clearRedirectUri()
URL must have length equal or less than 2000 characters.
string redirect_uri = 1;
Returns
clone()
public Rule.RedirectAction.Builder clone()
Returns
Overrides
getDefaultInstanceForType()
public Rule.RedirectAction getDefaultInstanceForType()
Returns
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns
Overrides
getRedirectUri()
public String getRedirectUri()
URL must have length equal or less than 2000 characters.
string redirect_uri = 1;
Returns
Type | Description |
String | The redirectUri.
|
getRedirectUriBytes()
public ByteString getRedirectUriBytes()
URL must have length equal or less than 2000 characters.
string redirect_uri = 1;
Returns
Type | Description |
ByteString | The bytes for redirectUri.
|
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
mergeFrom(Rule.RedirectAction other)
public Rule.RedirectAction.Builder mergeFrom(Rule.RedirectAction other)
Parameter
Returns
public Rule.RedirectAction.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public Rule.RedirectAction.Builder mergeFrom(Message other)
Parameter
Returns
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final Rule.RedirectAction.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides
setField(Descriptors.FieldDescriptor field, Object value)
public Rule.RedirectAction.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
setRedirectUri(String value)
public Rule.RedirectAction.Builder setRedirectUri(String value)
URL must have length equal or less than 2000 characters.
string redirect_uri = 1;
Parameter
Name | Description |
value | String
The redirectUri to set.
|
Returns
setRedirectUriBytes(ByteString value)
public Rule.RedirectAction.Builder setRedirectUriBytes(ByteString value)
URL must have length equal or less than 2000 characters.
string redirect_uri = 1;
Parameter
Name | Description |
value | ByteString
The bytes for redirectUri to set.
|
Returns
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public Rule.RedirectAction.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final Rule.RedirectAction.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides