Package com.google.cloud.compute.v1
Class HttpRedirectAction
java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.cloud.compute.v1.HttpRedirectAction
- All Implemented Interfaces:
HttpRedirectActionOrBuilder,com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Serializable
@Generated
public final class HttpRedirectAction
extends com.google.protobuf.GeneratedMessage
implements HttpRedirectActionOrBuilder
Specifies settings for an HTTP redirect.Protobuf type
google.cloud.compute.v1.HttpRedirectAction- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classSpecifies settings for an HTTP redirect.static enumThe HTTP Status code to use for this RedirectAction.Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessage
com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT, BuilderT>>, com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.FieldAccessorTable, com.google.protobuf.GeneratedMessage.GeneratedExtension<ContainingT extends com.google.protobuf.Message, T extends Object>, com.google.protobuf.GeneratedMessage.UnusedPrivateParameter Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessage
com.google.protobuf.AbstractMessage.BuilderParentNested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessageLite.InternalOneOfEnum -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intFields inherited from class com.google.protobuf.GeneratedMessage
alwaysUseFieldBuilders, loggedPre22TypeNames, unknownFieldsFields inherited from class com.google.protobuf.AbstractMessage
memoizedSizeFields inherited from class com.google.protobuf.AbstractMessageLite
memoizedHashCode -
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic HttpRedirectActionstatic final com.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.com.google.protobuf.Parser<HttpRedirectAction>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.intbooleanIf set to true, any accompanying query portion of the original URL is removed before redirecting the request.inthashCode()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 booleanstatic HttpRedirectAction.Builderstatic HttpRedirectAction.BuildernewBuilder(HttpRedirectAction prototype) protected HttpRedirectAction.BuildernewBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) static HttpRedirectActionparseDelimitedFrom(InputStream input) static HttpRedirectActionparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static HttpRedirectActionparseFrom(byte[] data) static HttpRedirectActionparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static HttpRedirectActionparseFrom(com.google.protobuf.ByteString data) static HttpRedirectActionparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static HttpRedirectActionparseFrom(com.google.protobuf.CodedInputStream input) static HttpRedirectActionparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static HttpRedirectActionparseFrom(InputStream input) static HttpRedirectActionparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static HttpRedirectActionparseFrom(ByteBuffer data) static HttpRedirectActionparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<HttpRedirectAction>parser()voidwriteTo(com.google.protobuf.CodedOutputStream output) Methods inherited from class com.google.protobuf.GeneratedMessage
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, newFileScopedGeneratedExtension, newInstance, newMessageScopedGeneratedExtension, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagMethods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashFields, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite
addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.MessageLite
toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Field Details
-
HOST_REDIRECT_FIELD_NUMBER
public static final int HOST_REDIRECT_FIELD_NUMBER- See Also:
-
HTTPS_REDIRECT_FIELD_NUMBER
public static final int HTTPS_REDIRECT_FIELD_NUMBER- See Also:
-
PATH_REDIRECT_FIELD_NUMBER
public static final int PATH_REDIRECT_FIELD_NUMBER- See Also:
-
PREFIX_REDIRECT_FIELD_NUMBER
public static final int PREFIX_REDIRECT_FIELD_NUMBER- See Also:
-
REDIRECT_RESPONSE_CODE_FIELD_NUMBER
public static final int REDIRECT_RESPONSE_CODE_FIELD_NUMBER- See Also:
-
STRIP_QUERY_FIELD_NUMBER
public static final int STRIP_QUERY_FIELD_NUMBER- See Also:
-
-
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
-
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.
-
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.
-
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.
-
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.
-
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.
-
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.
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage
-
writeTo
- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessage- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessage
-
equals
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.google.protobuf.AbstractMessage
-
parseFrom
public static HttpRedirectAction parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static HttpRedirectAction parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static HttpRedirectAction parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static HttpRedirectAction parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static HttpRedirectAction parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static HttpRedirectAction parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static HttpRedirectAction parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- Throws:
IOException
-
parseDelimitedFrom
public static HttpRedirectAction parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
public static HttpRedirectAction parseFrom(com.google.protobuf.CodedInputStream input) throws IOException - Throws:
IOException
-
parseFrom
public static HttpRedirectAction parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
newBuilderForType
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
-
newBuilder
-
toBuilder
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected HttpRedirectAction.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) - Overrides:
newBuilderForTypein classcom.google.protobuf.AbstractMessage
-
getDefaultInstance
-
parser
-
getParserForType
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessage
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-