Class Control.RedirectAction.Builder (0.81.0)

public static final class Control.RedirectAction.Builder extends GeneratedMessage.Builder<Control.RedirectAction.Builder> implements Control.RedirectActionOrBuilder

Redirects a shopper to the provided URI.

Protobuf type google.cloud.discoveryengine.v1.Control.RedirectAction

Static Methods

getDescriptor()

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

Methods

build()

public Control.RedirectAction build()
Returns
Type Description
Control.RedirectAction

buildPartial()

public Control.RedirectAction buildPartial()
Returns
Type Description
Control.RedirectAction

clear()

public Control.RedirectAction.Builder clear()
Returns
Type Description
Control.RedirectAction.Builder
Overrides

clearRedirectUri()

public Control.RedirectAction.Builder clearRedirectUri()

Required. The URI to which the shopper will be redirected.

Required. URI must have length equal or less than 2000 characters. Otherwise an INVALID ARGUMENT error is thrown.

string redirect_uri = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
Control.RedirectAction.Builder

This builder for chaining.

getDefaultInstanceForType()

public Control.RedirectAction getDefaultInstanceForType()
Returns
Type Description
Control.RedirectAction

getDescriptorForType()

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

getRedirectUri()

public String getRedirectUri()

Required. The URI to which the shopper will be redirected.

Required. URI must have length equal or less than 2000 characters. Otherwise an INVALID ARGUMENT error is thrown.

string redirect_uri = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The redirectUri.

getRedirectUriBytes()

public ByteString getRedirectUriBytes()

Required. The URI to which the shopper will be redirected.

Required. URI must have length equal or less than 2000 characters. Otherwise an INVALID ARGUMENT error is thrown.

string redirect_uri = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for redirectUri.

internalGetFieldAccessorTable()

protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(Control.RedirectAction other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public Control.RedirectAction.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Control.RedirectAction.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

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

setRedirectUri(String value)

public Control.RedirectAction.Builder setRedirectUri(String value)

Required. The URI to which the shopper will be redirected.

Required. URI must have length equal or less than 2000 characters. Otherwise an INVALID ARGUMENT error is thrown.

string redirect_uri = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value String

The redirectUri to set.

Returns
Type Description
Control.RedirectAction.Builder

This builder for chaining.

setRedirectUriBytes(ByteString value)

public Control.RedirectAction.Builder setRedirectUriBytes(ByteString value)

Required. The URI to which the shopper will be redirected.

Required. URI must have length equal or less than 2000 characters. Otherwise an INVALID ARGUMENT error is thrown.

string redirect_uri = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ByteString

The bytes for redirectUri to set.

Returns
Type Description
Control.RedirectAction.Builder

This builder for chaining.