- 1.63.0 (latest)
- 1.62.0
- 1.61.0
- 1.59.0
- 1.58.0
- 1.57.0
- 1.56.0
- 1.55.0
- 1.54.0
- 1.53.0
- 1.52.0
- 1.51.0
- 1.50.0
- 1.49.0
- 1.47.0
- 1.46.0
- 1.45.0
- 1.44.0
- 1.43.0
- 1.42.0
- 1.41.0
- 1.40.0
- 1.39.0
- 1.38.0
- 1.37.0
- 1.34.0
- 1.33.0
- 1.32.0
- 1.31.0
- 1.30.0
- 1.29.0
- 1.28.0
- 1.27.0
- 1.26.0
- 1.25.0
- 1.24.0
- 1.23.0
- 1.22.0
- 1.21.0
- 1.20.0
- 1.19.0
- 1.18.0
- 1.17.0
- 1.16.0
- 1.15.0
- 1.14.0
- 1.13.0
- 1.12.1
- 1.11.0
- 1.9.1
- 1.8.1
- 1.7.2
- 1.6.0-beta
public static final class HttpRedirectAction.Builder extends GeneratedMessageV3.Builder<HttpRedirectAction.Builder> implements HttpRedirectActionOrBuilder
Specifies settings for an HTTP redirect.
Protobuf type google.cloud.compute.v1.HttpRedirectAction
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > HttpRedirectAction.BuilderImplements
HttpRedirectActionOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Type | Description |
Descriptor |
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public HttpRedirectAction.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Name | Description |
field | FieldDescriptor |
value | Object |
Type | Description |
HttpRedirectAction.Builder |
build()
public HttpRedirectAction build()
Type | Description |
HttpRedirectAction |
buildPartial()
public HttpRedirectAction buildPartial()
Type | Description |
HttpRedirectAction |
clear()
public HttpRedirectAction.Builder clear()
Type | Description |
HttpRedirectAction.Builder |
clearField(Descriptors.FieldDescriptor field)
public HttpRedirectAction.Builder clearField(Descriptors.FieldDescriptor field)
Name | Description |
field | FieldDescriptor |
Type | Description |
HttpRedirectAction.Builder |
clearHostRedirect()
public HttpRedirectAction.Builder clearHostRedirect()
The host that will be used in the redirect response instead of the one that was supplied in the request. The value must be between 1 and 255 characters.
optional string host_redirect = 107417747;
Type | Description |
HttpRedirectAction.Builder | This builder for chaining. |
clearHttpsRedirect()
public HttpRedirectAction.Builder clearHttpsRedirect()
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. This must only be set for UrlMaps used in TargetHttpProxys. Setting this true for TargetHttpsProxy is not permitted. The default is set to false.
optional bool https_redirect = 170260656;
Type | Description |
HttpRedirectAction.Builder | This builder for chaining. |
clearOneof(Descriptors.OneofDescriptor oneof)
public HttpRedirectAction.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Name | Description |
oneof | OneofDescriptor |
Type | Description |
HttpRedirectAction.Builder |
clearPathRedirect()
public HttpRedirectAction.Builder clearPathRedirect()
The path that will be 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 will be used for the redirect. The value must be between 1 and 1024 characters.
optional string path_redirect = 272342710;
Type | Description |
HttpRedirectAction.Builder | This builder for chaining. |
clearPrefixRedirect()
public HttpRedirectAction.Builder clearPrefixRedirect()
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 will be used for the redirect. The value must be between 1 and 1024 characters.
optional string prefix_redirect = 446184169;
Type | Description |
HttpRedirectAction.Builder | This builder for chaining. |
clearRedirectResponseCode()
public HttpRedirectAction.Builder clearRedirectResponseCode()
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 will be retained. - PERMANENT_REDIRECT, which corresponds to 308. In this case, the request method will be retained. Check the RedirectResponseCode enum for the list of possible values.
optional string redirect_response_code = 436710408;
Type | Description |
HttpRedirectAction.Builder | This builder for chaining. |
clearStripQuery()
public HttpRedirectAction.Builder clearStripQuery()
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.
optional bool strip_query = 52284641;
Type | Description |
HttpRedirectAction.Builder | This builder for chaining. |
clone()
public HttpRedirectAction.Builder clone()
Type | Description |
HttpRedirectAction.Builder |
getDefaultInstanceForType()
public HttpRedirectAction getDefaultInstanceForType()
Type | Description |
HttpRedirectAction |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Type | Description |
Descriptor |
getHostRedirect()
public String getHostRedirect()
The host that will be used in the redirect response instead of the one that was supplied in the request. The value must be between 1 and 255 characters.
optional string host_redirect = 107417747;
Type | Description |
String | The hostRedirect. |
getHostRedirectBytes()
public ByteString getHostRedirectBytes()
The host that will be used in the redirect response instead of the one that was supplied in the request. The value must be between 1 and 255 characters.
optional string host_redirect = 107417747;
Type | Description |
ByteString | The bytes for hostRedirect. |
getHttpsRedirect()
public 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. This must only be set for UrlMaps used in TargetHttpProxys. Setting this true for TargetHttpsProxy is not permitted. The default is set to false.
optional bool https_redirect = 170260656;
Type | Description |
boolean | The httpsRedirect. |
getPathRedirect()
public String getPathRedirect()
The path that will be 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 will be used for the redirect. The value must be between 1 and 1024 characters.
optional string path_redirect = 272342710;
Type | Description |
String | The pathRedirect. |
getPathRedirectBytes()
public ByteString getPathRedirectBytes()
The path that will be 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 will be used for the redirect. The value must be between 1 and 1024 characters.
optional string path_redirect = 272342710;
Type | Description |
ByteString | The bytes for pathRedirect. |
getPrefixRedirect()
public 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 will be used for the redirect. The value must be between 1 and 1024 characters.
optional string prefix_redirect = 446184169;
Type | Description |
String | The prefixRedirect. |
getPrefixRedirectBytes()
public 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 will be used for the redirect. The value must be between 1 and 1024 characters.
optional string prefix_redirect = 446184169;
Type | Description |
ByteString | The bytes for prefixRedirect. |
getRedirectResponseCode()
public 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 will be retained. - PERMANENT_REDIRECT, which corresponds to 308. In this case, the request method will be retained. Check the RedirectResponseCode enum for the list of possible values.
optional string redirect_response_code = 436710408;
Type | Description |
String | The redirectResponseCode. |
getRedirectResponseCodeBytes()
public 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 will be retained. - PERMANENT_REDIRECT, which corresponds to 308. In this case, the request method will be retained. Check the RedirectResponseCode enum for the list of possible values.
optional string redirect_response_code = 436710408;
Type | Description |
ByteString | The bytes for redirectResponseCode. |
getStripQuery()
public 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.
optional bool strip_query = 52284641;
Type | Description |
boolean | The stripQuery. |
hasHostRedirect()
public boolean hasHostRedirect()
The host that will be used in the redirect response instead of the one that was supplied in the request. The value must be between 1 and 255 characters.
optional string host_redirect = 107417747;
Type | Description |
boolean | Whether the hostRedirect field is set. |
hasHttpsRedirect()
public 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 will remain the same as that of the request. This must only be set for UrlMaps used in TargetHttpProxys. Setting this true for TargetHttpsProxy is not permitted. The default is set to false.
optional bool https_redirect = 170260656;
Type | Description |
boolean | Whether the httpsRedirect field is set. |
hasPathRedirect()
public boolean hasPathRedirect()
The path that will be 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 will be used for the redirect. The value must be between 1 and 1024 characters.
optional string path_redirect = 272342710;
Type | Description |
boolean | Whether the pathRedirect field is set. |
hasPrefixRedirect()
public 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 will be used for the redirect. The value must be between 1 and 1024 characters.
optional string prefix_redirect = 446184169;
Type | Description |
boolean | Whether the prefixRedirect field is set. |
hasRedirectResponseCode()
public 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 will be retained. - PERMANENT_REDIRECT, which corresponds to 308. In this case, the request method will be retained. Check the RedirectResponseCode enum for the list of possible values.
optional string redirect_response_code = 436710408;
Type | Description |
boolean | Whether the redirectResponseCode field is set. |
hasStripQuery()
public boolean hasStripQuery()
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.
optional bool strip_query = 52284641;
Type | Description |
boolean | Whether the stripQuery field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Type | Description |
FieldAccessorTable |
isInitialized()
public final boolean isInitialized()
Type | Description |
boolean |
mergeFrom(HttpRedirectAction other)
public HttpRedirectAction.Builder mergeFrom(HttpRedirectAction other)
Name | Description |
other | HttpRedirectAction |
Type | Description |
HttpRedirectAction.Builder |
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public HttpRedirectAction.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Name | Description |
input | CodedInputStream |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
HttpRedirectAction.Builder |
Type | Description |
IOException |
mergeFrom(Message other)
public HttpRedirectAction.Builder mergeFrom(Message other)
Name | Description |
other | Message |
Type | Description |
HttpRedirectAction.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final HttpRedirectAction.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Name | Description |
unknownFields | UnknownFieldSet |
Type | Description |
HttpRedirectAction.Builder |
setField(Descriptors.FieldDescriptor field, Object value)
public HttpRedirectAction.Builder setField(Descriptors.FieldDescriptor field, Object value)
Name | Description |
field | FieldDescriptor |
value | Object |
Type | Description |
HttpRedirectAction.Builder |
setHostRedirect(String value)
public HttpRedirectAction.Builder setHostRedirect(String value)
The host that will be used in the redirect response instead of the one that was supplied in the request. The value must be between 1 and 255 characters.
optional string host_redirect = 107417747;
Name | Description |
value | String The hostRedirect to set. |
Type | Description |
HttpRedirectAction.Builder | This builder for chaining. |
setHostRedirectBytes(ByteString value)
public HttpRedirectAction.Builder setHostRedirectBytes(ByteString value)
The host that will be used in the redirect response instead of the one that was supplied in the request. The value must be between 1 and 255 characters.
optional string host_redirect = 107417747;
Name | Description |
value | ByteString The bytes for hostRedirect to set. |
Type | Description |
HttpRedirectAction.Builder | This builder for chaining. |
setHttpsRedirect(boolean value)
public HttpRedirectAction.Builder setHttpsRedirect(boolean value)
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. This must only be set for UrlMaps used in TargetHttpProxys. Setting this true for TargetHttpsProxy is not permitted. The default is set to false.
optional bool https_redirect = 170260656;
Name | Description |
value | boolean The httpsRedirect to set. |
Type | Description |
HttpRedirectAction.Builder | This builder for chaining. |
setPathRedirect(String value)
public HttpRedirectAction.Builder setPathRedirect(String value)
The path that will be 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 will be used for the redirect. The value must be between 1 and 1024 characters.
optional string path_redirect = 272342710;
Name | Description |
value | String The pathRedirect to set. |
Type | Description |
HttpRedirectAction.Builder | This builder for chaining. |
setPathRedirectBytes(ByteString value)
public HttpRedirectAction.Builder setPathRedirectBytes(ByteString value)
The path that will be 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 will be used for the redirect. The value must be between 1 and 1024 characters.
optional string path_redirect = 272342710;
Name | Description |
value | ByteString The bytes for pathRedirect to set. |
Type | Description |
HttpRedirectAction.Builder | This builder for chaining. |
setPrefixRedirect(String value)
public HttpRedirectAction.Builder setPrefixRedirect(String value)
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 will be used for the redirect. The value must be between 1 and 1024 characters.
optional string prefix_redirect = 446184169;
Name | Description |
value | String The prefixRedirect to set. |
Type | Description |
HttpRedirectAction.Builder | This builder for chaining. |
setPrefixRedirectBytes(ByteString value)
public HttpRedirectAction.Builder setPrefixRedirectBytes(ByteString value)
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 will be used for the redirect. The value must be between 1 and 1024 characters.
optional string prefix_redirect = 446184169;
Name | Description |
value | ByteString The bytes for prefixRedirect to set. |
Type | Description |
HttpRedirectAction.Builder | This builder for chaining. |
setRedirectResponseCode(String value)
public HttpRedirectAction.Builder setRedirectResponseCode(String value)
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 will be retained. - PERMANENT_REDIRECT, which corresponds to 308. In this case, the request method will be retained. Check the RedirectResponseCode enum for the list of possible values.
optional string redirect_response_code = 436710408;
Name | Description |
value | String The redirectResponseCode to set. |
Type | Description |
HttpRedirectAction.Builder | This builder for chaining. |
setRedirectResponseCodeBytes(ByteString value)
public HttpRedirectAction.Builder setRedirectResponseCodeBytes(ByteString value)
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 will be retained. - PERMANENT_REDIRECT, which corresponds to 308. In this case, the request method will be retained. Check the RedirectResponseCode enum for the list of possible values.
optional string redirect_response_code = 436710408;
Name | Description |
value | ByteString The bytes for redirectResponseCode to set. |
Type | Description |
HttpRedirectAction.Builder | This builder for chaining. |
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public HttpRedirectAction.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Name | Description |
field | FieldDescriptor |
index | int |
value | Object |
Type | Description |
HttpRedirectAction.Builder |
setStripQuery(boolean value)
public HttpRedirectAction.Builder setStripQuery(boolean value)
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.
optional bool strip_query = 52284641;
Name | Description |
value | boolean The stripQuery to set. |
Type | Description |
HttpRedirectAction.Builder | This builder for chaining. |
setUnknownFields(UnknownFieldSet unknownFields)
public final HttpRedirectAction.Builder setUnknownFields(UnknownFieldSet unknownFields)
Name | Description |
unknownFields | UnknownFieldSet |
Type | Description |
HttpRedirectAction.Builder |