Interface HttpRoute.RedirectOrBuilder
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
HttpRoute.Redirect,HttpRoute.Redirect.Builder
- Enclosing class:
- HttpRoute
public static interface HttpRoute.RedirectOrBuilder
extends com.google.protobuf.MessageOrBuilder
-
Method Summary
Modifier and TypeMethodDescriptionThe host that will be used in the redirect response instead of the one that was supplied in the request.com.google.protobuf.ByteStringThe host that will be used in the redirect response instead of the one that was supplied in the request.booleanIf set to true, the URL scheme in the redirected request is set to https.The path that will be used in the redirect response instead of the one that was supplied in the request.com.google.protobuf.ByteStringThe path that will be used in the redirect response instead of the one that was supplied in the request.intThe port that will be used in the redirected request instead of the one that was supplied in the request.Indicates that during redirection, the matched prefix (or path) should be swapped with this value.com.google.protobuf.ByteStringIndicates that during redirection, the matched prefix (or path) should be swapped with this value.The HTTP Status code to use for the redirect.intThe HTTP Status code to use for the redirect.booleanif set to true, any accompanying query portion of the original URL is removed prior to redirecting the request.Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder
isInitializedMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getHostRedirect
String getHostRedirect()The host that will be used in the redirect response instead of the one that was supplied in the request.
string host_redirect = 1;- Returns:
- The hostRedirect.
-
getHostRedirectBytes
com.google.protobuf.ByteString getHostRedirectBytes()The host that will be used in the redirect response instead of the one that was supplied in the request.
string host_redirect = 1;- Returns:
- The bytes for hostRedirect.
-
getPathRedirect
String getPathRedirect()The path that will be used in the redirect response instead of the one that was supplied in the request. path_redirect can not be supplied together with prefix_redirect. Supply one alone or neither. If neither is supplied, the path of the original request will be used for the redirect.
string path_redirect = 2;- Returns:
- The pathRedirect.
-
getPathRedirectBytes
com.google.protobuf.ByteString getPathRedirectBytes()The path that will be used in the redirect response instead of the one that was supplied in the request. path_redirect can not be supplied together with prefix_redirect. Supply one alone or neither. If neither is supplied, the path of the original request will be used for the redirect.
string path_redirect = 2;- Returns:
- The bytes for pathRedirect.
-
getPrefixRewrite
String getPrefixRewrite()Indicates that during redirection, the matched prefix (or path) should be swapped with this value. This option allows URLs be dynamically created based on the request.
string prefix_rewrite = 3;- Returns:
- The prefixRewrite.
-
getPrefixRewriteBytes
com.google.protobuf.ByteString getPrefixRewriteBytes()Indicates that during redirection, the matched prefix (or path) should be swapped with this value. This option allows URLs be dynamically created based on the request.
string prefix_rewrite = 3;- Returns:
- The bytes for prefixRewrite.
-
getResponseCodeValue
int getResponseCodeValue()The HTTP Status code to use for the redirect.
.google.cloud.networkservices.v1.HttpRoute.Redirect.ResponseCode response_code = 4;- Returns:
- The enum numeric value on the wire for responseCode.
-
getResponseCode
HttpRoute.Redirect.ResponseCode getResponseCode()The HTTP Status code to use for the redirect.
.google.cloud.networkservices.v1.HttpRoute.Redirect.ResponseCode response_code = 4;- Returns:
- The responseCode.
-
getHttpsRedirect
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 will remain the same as that of the request. The default is set to false.
bool https_redirect = 5;- Returns:
- The httpsRedirect.
-
getStripQuery
boolean getStripQuery()if set to true, any accompanying query portion of the original URL is removed prior to redirecting the request. If set to false, the query portion of the original URL is retained. The default is set to false.
bool strip_query = 6;- Returns:
- The stripQuery.
-
getPortRedirect
int getPortRedirect()The port that will be used in the redirected request instead of the one that was supplied in the request.
int32 port_redirect = 7;- Returns:
- The portRedirect.
-