Package com.google.cloud.compute.v1
Class HttpRedirectAction
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite
-
- com.google.protobuf.AbstractMessage
-
- com.google.protobuf.GeneratedMessageV3
-
- 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
public final class HttpRedirectAction extends com.google.protobuf.GeneratedMessageV3 implements HttpRedirectActionOrBuilder
Specifies settings for an HTTP redirect.
Protobuf typegoogle.cloud.compute.v1.HttpRedirectAction
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
HttpRedirectAction.Builder
Specifies settings for an HTTP redirect.static class
HttpRedirectAction.RedirectResponseCode
The HTTP Status code to use for this RedirectAction.-
Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT,BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter
-
-
Field Summary
Fields Modifier and Type Field Description static int
HOST_REDIRECT_FIELD_NUMBER
static int
HTTPS_REDIRECT_FIELD_NUMBER
static int
PATH_REDIRECT_FIELD_NUMBER
static int
PREFIX_REDIRECT_FIELD_NUMBER
static int
REDIRECT_RESPONSE_CODE_FIELD_NUMBER
static int
STRIP_QUERY_FIELD_NUMBER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object obj)
static HttpRedirectAction
getDefaultInstance()
HttpRedirectAction
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
String
getHostRedirect()
The host that is used in the redirect response instead of the one that was supplied in the request.com.google.protobuf.ByteString
getHostRedirectBytes()
The host that is used in the redirect response instead of the one that was supplied in the request.boolean
getHttpsRedirect()
If set to true, the URL scheme in the redirected request is set to HTTPS.com.google.protobuf.Parser<HttpRedirectAction>
getParserForType()
String
getPathRedirect()
The path that is used in the redirect response instead of the one that was supplied in the request.com.google.protobuf.ByteString
getPathRedirectBytes()
The path that is used in the redirect response instead of the one that was supplied in the request.String
getPrefixRedirect()
The prefix that replaces the prefixMatch specified in the HttpRouteRuleMatch, retaining the remaining portion of the URL before redirecting the request.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.String
getRedirectResponseCode()
The HTTP Status code to use for this RedirectAction.com.google.protobuf.ByteString
getRedirectResponseCodeBytes()
The HTTP Status code to use for this RedirectAction.int
getSerializedSize()
boolean
getStripQuery()
If set to true, any accompanying query portion of the original URL is removed before redirecting the request.int
hashCode()
boolean
hasHostRedirect()
The host that is used in the redirect response instead of the one that was supplied in the request.boolean
hasHttpsRedirect()
If set to true, the URL scheme in the redirected request is set to HTTPS.boolean
hasPathRedirect()
The path that is used in the redirect response instead of the one that was supplied in the request.boolean
hasPrefixRedirect()
The prefix that replaces the prefixMatch specified in the HttpRouteRuleMatch, retaining the remaining portion of the URL before redirecting the request.boolean
hasRedirectResponseCode()
The HTTP Status code to use for this RedirectAction.boolean
hasStripQuery()
If set to true, any accompanying query portion of the original URL is removed before redirecting the request.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
static HttpRedirectAction.Builder
newBuilder()
static HttpRedirectAction.Builder
newBuilder(HttpRedirectAction prototype)
HttpRedirectAction.Builder
newBuilderForType()
protected HttpRedirectAction.Builder
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
protected Object
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
static HttpRedirectAction
parseDelimitedFrom(InputStream input)
static HttpRedirectAction
parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static HttpRedirectAction
parseFrom(byte[] data)
static HttpRedirectAction
parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static HttpRedirectAction
parseFrom(com.google.protobuf.ByteString data)
static HttpRedirectAction
parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static HttpRedirectAction
parseFrom(com.google.protobuf.CodedInputStream input)
static HttpRedirectAction
parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static HttpRedirectAction
parseFrom(InputStream input)
static HttpRedirectAction
parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static HttpRedirectAction
parseFrom(ByteBuffer data)
static HttpRedirectAction
parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static com.google.protobuf.Parser<HttpRedirectAction>
parser()
HttpRedirectAction.Builder
toBuilder()
void
writeTo(com.google.protobuf.CodedOutputStream output)
-
Methods inherited from class com.google.protobuf.GeneratedMessageV3
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTag
-
Methods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
-
-
-
Field Detail
-
HOST_REDIRECT_FIELD_NUMBER
public static final int HOST_REDIRECT_FIELD_NUMBER
- See Also:
- Constant Field Values
-
HTTPS_REDIRECT_FIELD_NUMBER
public static final int HTTPS_REDIRECT_FIELD_NUMBER
- See Also:
- Constant Field Values
-
PATH_REDIRECT_FIELD_NUMBER
public static final int PATH_REDIRECT_FIELD_NUMBER
- See Also:
- Constant Field Values
-
PREFIX_REDIRECT_FIELD_NUMBER
public static final int PREFIX_REDIRECT_FIELD_NUMBER
- See Also:
- Constant Field Values
-
REDIRECT_RESPONSE_CODE_FIELD_NUMBER
public static final int REDIRECT_RESPONSE_CODE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
STRIP_QUERY_FIELD_NUMBER
public static final int STRIP_QUERY_FIELD_NUMBER
- See Also:
- Constant Field Values
-
-
Method Detail
-
newInstance
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
- Overrides:
newInstance
in classcom.google.protobuf.GeneratedMessageV3
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3
-
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:
hasHostRedirect
in interfaceHttpRedirectActionOrBuilder
- Returns:
- Whether the hostRedirect field is set.
-
getHostRedirect
public 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;
- Specified by:
getHostRedirect
in 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:
getHostRedirectBytes
in 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 in TargetHttpProxys. Setting this true for TargetHttpsProxy is not permitted. The default is set to false.
optional bool https_redirect = 170260656;
- Specified by:
hasHttpsRedirect
in 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 in TargetHttpProxys. Setting this true for TargetHttpsProxy is not permitted. The default is set to false.
optional bool https_redirect = 170260656;
- Specified by:
getHttpsRedirect
in 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 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;
- Specified by:
hasPathRedirect
in interfaceHttpRedirectActionOrBuilder
- Returns:
- Whether the pathRedirect field is set.
-
getPathRedirect
public 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;
- Specified by:
getPathRedirect
in 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 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;
- Specified by:
getPathRedirectBytes
in 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 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;
- Specified by:
hasPrefixRedirect
in interfaceHttpRedirectActionOrBuilder
- Returns:
- Whether the prefixRedirect field is set.
-
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 is used for the redirect. The value must be from 1 to 1024 characters.
optional string prefix_redirect = 446184169;
- Specified by:
getPrefixRedirect
in 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 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;
- Specified by:
getPrefixRedirectBytes
in 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:
hasRedirectResponseCode
in interfaceHttpRedirectActionOrBuilder
- Returns:
- Whether the redirectResponseCode field is set.
-
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 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:
getRedirectResponseCode
in 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:
getRedirectResponseCodeBytes
in 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:
hasStripQuery
in 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:
getStripQuery
in interfaceHttpRedirectActionOrBuilder
- Returns:
- The stripQuery.
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3
-
writeTo
public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
- Specified by:
writeTo
in interfacecom.google.protobuf.MessageLite
- Overrides:
writeTo
in classcom.google.protobuf.GeneratedMessageV3
- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()
- Specified by:
getSerializedSize
in interfacecom.google.protobuf.MessageLite
- Overrides:
getSerializedSize
in classcom.google.protobuf.GeneratedMessageV3
-
equals
public boolean equals(Object obj)
- Specified by:
equals
in interfacecom.google.protobuf.Message
- Overrides:
equals
in classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()
- Specified by:
hashCode
in interfacecom.google.protobuf.Message
- Overrides:
hashCode
in 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
public static HttpRedirectAction parseFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static HttpRedirectAction parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static HttpRedirectAction parseDelimitedFrom(InputStream input) throws IOException
- 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
public HttpRedirectAction.Builder newBuilderForType()
- Specified by:
newBuilderForType
in interfacecom.google.protobuf.Message
- Specified by:
newBuilderForType
in interfacecom.google.protobuf.MessageLite
-
newBuilder
public static HttpRedirectAction.Builder newBuilder()
-
newBuilder
public static HttpRedirectAction.Builder newBuilder(HttpRedirectAction prototype)
-
toBuilder
public HttpRedirectAction.Builder toBuilder()
- Specified by:
toBuilder
in interfacecom.google.protobuf.Message
- Specified by:
toBuilder
in interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected HttpRedirectAction.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
- Specified by:
newBuilderForType
in classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
public static HttpRedirectAction getDefaultInstance()
-
parser
public static com.google.protobuf.Parser<HttpRedirectAction> parser()
-
getParserForType
public com.google.protobuf.Parser<HttpRedirectAction> getParserForType()
- Specified by:
getParserForType
in interfacecom.google.protobuf.Message
- Specified by:
getParserForType
in interfacecom.google.protobuf.MessageLite
- Overrides:
getParserForType
in classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
public HttpRedirectAction getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
-