Class Control.RedirectAction.Builder (0.43.0)

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

Redirects a shopper to the provided URI.

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

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public Control.RedirectAction.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
Control.RedirectAction.Builder
Overrides

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

clearField(Descriptors.FieldDescriptor field)

public Control.RedirectAction.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
Control.RedirectAction.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public Control.RedirectAction.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
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.

clone()

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

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 GeneratedMessageV3.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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final Control.RedirectAction.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
Control.RedirectAction.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public Control.RedirectAction.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
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.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public Control.RedirectAction.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
Control.RedirectAction.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final Control.RedirectAction.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
Control.RedirectAction.Builder
Overrides