Interface HttpRedirectActionOrBuilder (1.8.1)

public interface HttpRedirectActionOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getHostRedirect()

public abstract String getHostRedirect()

The host that is used in the redirect response instead of the one that was supplied in the request. The value must be from 1 to 255 characters.

optional string host_redirect = 107417747;

Returns
TypeDescription
String

The hostRedirect.

getHostRedirectBytes()

public abstract ByteString getHostRedirectBytes()

The host that is used in the redirect response instead of the one that was supplied in the request. The value must be from 1 to 255 characters.

optional string host_redirect = 107417747;

Returns
TypeDescription
ByteString

The bytes for hostRedirect.

getHttpsRedirect()

public abstract boolean getHttpsRedirect()

If set to true, the URL scheme in the redirected request is set to HTTPS. If set to false, the URL scheme of the redirected request remains the same as that of the request. This must only be set for URL maps used in TargetHttpProxys. Setting this true for TargetHttpsProxy is not permitted. The default is set to false.

optional bool https_redirect = 170260656;

Returns
TypeDescription
boolean

The httpsRedirect.

getPathRedirect()

public abstract String getPathRedirect()

The path that is used in the redirect response instead of the one that was supplied in the request. pathRedirect cannot be supplied together with prefixRedirect. Supply one alone or neither. If neither is supplied, the path of the original request is used for the redirect. The value must be from 1 to 1024 characters.

optional string path_redirect = 272342710;

Returns
TypeDescription
String

The pathRedirect.

getPathRedirectBytes()

public abstract ByteString getPathRedirectBytes()

The path that is used in the redirect response instead of the one that was supplied in the request. pathRedirect cannot be supplied together with prefixRedirect. Supply one alone or neither. If neither is supplied, the path of the original request is used for the redirect. The value must be from 1 to 1024 characters.

optional string path_redirect = 272342710;

Returns
TypeDescription
ByteString

The bytes for pathRedirect.

getPrefixRedirect()

public abstract String getPrefixRedirect()

The prefix that replaces the prefixMatch specified in the HttpRouteRuleMatch, retaining the remaining portion of the URL before redirecting the request. prefixRedirect cannot be supplied together with pathRedirect. Supply one alone or neither. If neither is supplied, the path of the original request is used for the redirect. The value must be from 1 to 1024 characters.

optional string prefix_redirect = 446184169;

Returns
TypeDescription
String

The prefixRedirect.

getPrefixRedirectBytes()

public abstract ByteString getPrefixRedirectBytes()

The prefix that replaces the prefixMatch specified in the HttpRouteRuleMatch, retaining the remaining portion of the URL before redirecting the request. prefixRedirect cannot be supplied together with pathRedirect. Supply one alone or neither. If neither is supplied, the path of the original request is used for the redirect. The value must be from 1 to 1024 characters.

optional string prefix_redirect = 446184169;

Returns
TypeDescription
ByteString

The bytes for prefixRedirect.

getRedirectResponseCode()

public abstract String getRedirectResponseCode()

The HTTP Status code to use for this RedirectAction. Supported values are: - MOVED_PERMANENTLY_DEFAULT, which is the default value and corresponds to 301. - FOUND, which corresponds to 302. - SEE_OTHER which corresponds to 303. - TEMPORARY_REDIRECT, which corresponds to 307. In this case, the request method is retained. - PERMANENT_REDIRECT, which corresponds to 308. In this case, the request method is retained. Check the RedirectResponseCode enum for the list of possible values.

optional string redirect_response_code = 436710408;

Returns
TypeDescription
String

The redirectResponseCode.

getRedirectResponseCodeBytes()

public abstract ByteString getRedirectResponseCodeBytes()

The HTTP Status code to use for this RedirectAction. Supported values are: - MOVED_PERMANENTLY_DEFAULT, which is the default value and corresponds to 301. - FOUND, which corresponds to 302. - SEE_OTHER which corresponds to 303. - TEMPORARY_REDIRECT, which corresponds to 307. In this case, the request method is retained. - PERMANENT_REDIRECT, which corresponds to 308. In this case, the request method is retained. Check the RedirectResponseCode enum for the list of possible values.

optional string redirect_response_code = 436710408;

Returns
TypeDescription
ByteString

The bytes for redirectResponseCode.

getStripQuery()

public abstract boolean getStripQuery()

If set to true, any accompanying query portion of the original URL is removed before redirecting the request. If set to false, the query portion of the original URL is retained. The default is set to false.

optional bool strip_query = 52284641;

Returns
TypeDescription
boolean

The stripQuery.

hasHostRedirect()

public abstract boolean hasHostRedirect()

The host that is used in the redirect response instead of the one that was supplied in the request. The value must be from 1 to 255 characters.

optional string host_redirect = 107417747;

Returns
TypeDescription
boolean

Whether the hostRedirect field is set.

hasHttpsRedirect()

public abstract boolean hasHttpsRedirect()

If set to true, the URL scheme in the redirected request is set to HTTPS. If set to false, the URL scheme of the redirected request remains the same as that of the request. This must only be set for URL maps used in TargetHttpProxys. Setting this true for TargetHttpsProxy is not permitted. The default is set to false.

optional bool https_redirect = 170260656;

Returns
TypeDescription
boolean

Whether the httpsRedirect field is set.

hasPathRedirect()

public abstract boolean hasPathRedirect()

The path that is used in the redirect response instead of the one that was supplied in the request. pathRedirect cannot be supplied together with prefixRedirect. Supply one alone or neither. If neither is supplied, the path of the original request is used for the redirect. The value must be from 1 to 1024 characters.

optional string path_redirect = 272342710;

Returns
TypeDescription
boolean

Whether the pathRedirect field is set.

hasPrefixRedirect()

public abstract boolean hasPrefixRedirect()

The prefix that replaces the prefixMatch specified in the HttpRouteRuleMatch, retaining the remaining portion of the URL before redirecting the request. prefixRedirect cannot be supplied together with pathRedirect. Supply one alone or neither. If neither is supplied, the path of the original request is used for the redirect. The value must be from 1 to 1024 characters.

optional string prefix_redirect = 446184169;

Returns
TypeDescription
boolean

Whether the prefixRedirect field is set.

hasRedirectResponseCode()

public abstract boolean hasRedirectResponseCode()

The HTTP Status code to use for this RedirectAction. Supported values are: - MOVED_PERMANENTLY_DEFAULT, which is the default value and corresponds to 301. - FOUND, which corresponds to 302. - SEE_OTHER which corresponds to 303. - TEMPORARY_REDIRECT, which corresponds to 307. In this case, the request method is retained. - PERMANENT_REDIRECT, which corresponds to 308. In this case, the request method is retained. Check the RedirectResponseCode enum for the list of possible values.

optional string redirect_response_code = 436710408;

Returns
TypeDescription
boolean

Whether the redirectResponseCode field is set.

hasStripQuery()

public abstract boolean hasStripQuery()

If set to true, any accompanying query portion of the original URL is removed before redirecting the request. If set to false, the query portion of the original URL is retained. The default is set to false.

optional bool strip_query = 52284641;

Returns
TypeDescription
boolean

Whether the stripQuery field is set.