Package com.google.cloud.compute.v1
Class HttpRedirectAction.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<HttpRedirectAction.Builder>
com.google.cloud.compute.v1.HttpRedirectAction.Builder
- All Implemented Interfaces:
HttpRedirectActionOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- HttpRedirectAction
public static final class HttpRedirectAction.Builder
extends com.google.protobuf.GeneratedMessage.Builder<HttpRedirectAction.Builder>
implements HttpRedirectActionOrBuilder
Specifies settings for an HTTP redirect.Protobuf type
google.cloud.compute.v1.HttpRedirectAction-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()The host that is used in the redirect response instead of the one that was supplied in the request.If set to true, the URL scheme in the redirected request is set to HTTPS.The path that is used in the redirect response instead of the one that was supplied in the request.The prefix that replaces the prefixMatch specified in the HttpRouteRuleMatch, retaining the remaining portion of the URL before redirecting the request.The HTTP Status code to use for this RedirectAction.If set to true, any accompanying query portion of the original URL is removed before redirecting the request.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorThe host that is used in the redirect response instead of the one that was supplied in the request.com.google.protobuf.ByteStringThe host that is 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 is used in the redirect response instead of the one that was supplied in the request.com.google.protobuf.ByteStringThe path that is used in the redirect response instead of the one that was supplied in the request.The prefix that replaces the prefixMatch specified in the HttpRouteRuleMatch, retaining the remaining portion of the URL before redirecting the request.com.google.protobuf.ByteStringThe prefix that replaces the prefixMatch specified in the HttpRouteRuleMatch, retaining the remaining portion of the URL before redirecting the request.The HTTP Status code to use for this RedirectAction.com.google.protobuf.ByteStringThe HTTP Status code to use for this RedirectAction.booleanIf set to true, any accompanying query portion of the original URL is removed before redirecting the request.booleanThe host that is 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.booleanThe path that is used in the redirect response instead of the one that was supplied in the request.booleanThe prefix that replaces the prefixMatch specified in the HttpRouteRuleMatch, retaining the remaining portion of the URL before redirecting the request.booleanThe HTTP Status code to use for this RedirectAction.booleanIf set to true, any accompanying query portion of the original URL is removed before redirecting the request.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(HttpRedirectAction other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) setHostRedirect(String value) The host that is used in the redirect response instead of the one that was supplied in the request.setHostRedirectBytes(com.google.protobuf.ByteString value) The host that is used in the redirect response instead of the one that was supplied in the request.setHttpsRedirect(boolean value) If set to true, the URL scheme in the redirected request is set to HTTPS.setPathRedirect(String value) The path that is used in the redirect response instead of the one that was supplied in the request.setPathRedirectBytes(com.google.protobuf.ByteString value) The path that is used in the redirect response instead of the one that was supplied in the request.setPrefixRedirect(String value) The prefix that replaces the prefixMatch specified in the HttpRouteRuleMatch, retaining the remaining portion of the URL before redirecting the request.setPrefixRedirectBytes(com.google.protobuf.ByteString value) The prefix that replaces the prefixMatch specified in the HttpRouteRuleMatch, retaining the remaining portion of the URL before redirecting the request.setRedirectResponseCode(String value) The HTTP Status code to use for this RedirectAction.setRedirectResponseCodeBytes(com.google.protobuf.ByteString value) The HTTP Status code to use for this RedirectAction.setStripQuery(boolean value) If set to true, any accompanying query portion of the original URL is removed before redirecting the request.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<HttpRedirectAction.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<HttpRedirectAction.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<HttpRedirectAction.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<HttpRedirectAction.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<HttpRedirectAction.Builder>
-
mergeFrom
public HttpRedirectAction.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<HttpRedirectAction.Builder>- Throws:
IOException
-
hasHostRedirect
public 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;- Specified by:
hasHostRedirectin interfaceHttpRedirectActionOrBuilder- Returns:
- Whether the hostRedirect field is set.
-
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;- Specified by:
getHostRedirectin interfaceHttpRedirectActionOrBuilder- Returns:
- The hostRedirect.
-
getHostRedirectBytes
public com.google.protobuf.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;- Specified by:
getHostRedirectBytesin interfaceHttpRedirectActionOrBuilder- Returns:
- The bytes for hostRedirect.
-
setHostRedirect
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;- Parameters:
value- The hostRedirect to set.- Returns:
- This builder for chaining.
-
clearHostRedirect
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:
- This builder for chaining.
-
setHostRedirectBytes
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;- Parameters:
value- The bytes for hostRedirect to set.- Returns:
- This builder for chaining.
-
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 remains the same as that of the request. This must only be set for URL maps used inTargetHttpProxys. Setting this true forTargetHttpsProxy is not permitted. The default is set to false.
optional bool https_redirect = 170260656;- Specified by:
hasHttpsRedirectin interfaceHttpRedirectActionOrBuilder- Returns:
- Whether the httpsRedirect field is set.
-
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 remains the same as that of the request. This must only be set for URL maps used inTargetHttpProxys. Setting this true forTargetHttpsProxy is not permitted. The default is set to false.
optional bool https_redirect = 170260656;- Specified by:
getHttpsRedirectin interfaceHttpRedirectActionOrBuilder- Returns:
- The httpsRedirect.
-
setHttpsRedirect
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 inTargetHttpProxys. Setting this true forTargetHttpsProxy is not permitted. The default is set to false.
optional bool https_redirect = 170260656;- Parameters:
value- The httpsRedirect to set.- Returns:
- This builder for chaining.
-
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 remains the same as that of the request. This must only be set for URL maps used inTargetHttpProxys. Setting this true forTargetHttpsProxy is not permitted. The default is set to false.
optional bool https_redirect = 170260656;- Returns:
- This builder for chaining.
-
hasPathRedirect
public 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 withprefixRedirect. 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;- Specified by:
hasPathRedirectin interfaceHttpRedirectActionOrBuilder- Returns:
- Whether the pathRedirect field is set.
-
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 withprefixRedirect. 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;- Specified by:
getPathRedirectin interfaceHttpRedirectActionOrBuilder- Returns:
- The pathRedirect.
-
getPathRedirectBytes
public com.google.protobuf.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 withprefixRedirect. 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;- Specified by:
getPathRedirectBytesin interfaceHttpRedirectActionOrBuilder- Returns:
- The bytes for pathRedirect.
-
setPathRedirect
The path that is used in the redirect response instead of the one that was supplied in the request. pathRedirect cannot be supplied together withprefixRedirect. 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;- Parameters:
value- The pathRedirect to set.- Returns:
- This builder for chaining.
-
clearPathRedirect
The path that is used in the redirect response instead of the one that was supplied in the request. pathRedirect cannot be supplied together withprefixRedirect. 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:
- This builder for chaining.
-
setPathRedirectBytes
The path that is used in the redirect response instead of the one that was supplied in the request. pathRedirect cannot be supplied together withprefixRedirect. 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;- Parameters:
value- The bytes for pathRedirect to set.- Returns:
- This builder for chaining.
-
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 withpathRedirect. 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;- Specified by:
hasPrefixRedirectin interfaceHttpRedirectActionOrBuilder- Returns:
- Whether the prefixRedirect field is set.
-
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 withpathRedirect. 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;- Specified by:
getPrefixRedirectin interfaceHttpRedirectActionOrBuilder- Returns:
- The prefixRedirect.
-
getPrefixRedirectBytes
public com.google.protobuf.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 withpathRedirect. 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;- Specified by:
getPrefixRedirectBytesin interfaceHttpRedirectActionOrBuilder- Returns:
- The bytes for prefixRedirect.
-
setPrefixRedirect
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 withpathRedirect. 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;- Parameters:
value- The prefixRedirect to set.- Returns:
- This builder for chaining.
-
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 withpathRedirect. 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:
- This builder for chaining.
-
setPrefixRedirectBytes
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 withpathRedirect. 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;- Parameters:
value- The bytes for prefixRedirect to set.- Returns:
- This builder for chaining.
-
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 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;- Specified by:
hasRedirectResponseCodein interfaceHttpRedirectActionOrBuilder- Returns:
- Whether the redirectResponseCode field is set.
-
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;- Specified by:
getRedirectResponseCodein interfaceHttpRedirectActionOrBuilder- Returns:
- The redirectResponseCode.
-
getRedirectResponseCodeBytes
public com.google.protobuf.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;- Specified by:
getRedirectResponseCodeBytesin interfaceHttpRedirectActionOrBuilder- Returns:
- The bytes for redirectResponseCode.
-
setRedirectResponseCode
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;- Parameters:
value- The redirectResponseCode to set.- Returns:
- This builder for chaining.
-
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 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:
- This builder for chaining.
-
setRedirectResponseCodeBytes
public HttpRedirectAction.Builder setRedirectResponseCodeBytes(com.google.protobuf.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 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;- Parameters:
value- The bytes for redirectResponseCode to set.- Returns:
- This builder for chaining.
-
hasStripQuery
public 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;- Specified by:
hasStripQueryin interfaceHttpRedirectActionOrBuilder- Returns:
- Whether the stripQuery field is set.
-
getStripQuery
public 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;- Specified by:
getStripQueryin interfaceHttpRedirectActionOrBuilder- Returns:
- The stripQuery.
-
setStripQuery
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;- Parameters:
value- The stripQuery to set.- Returns:
- This builder for chaining.
-
clearStripQuery
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:
- This builder for chaining.
-