public final class HttpRedirectAction extends com.google.protobuf.GeneratedMessageV3 implements HttpRedirectActionOrBuilder
Specifies settings for an HTTP redirect.Protobuf type
google.cloud.compute.v1.HttpRedirectAction| Modifier and Type | Class and Description |
|---|---|
static class |
HttpRedirectAction.Builder
Specifies settings for an HTTP redirect.
|
static class |
HttpRedirectAction.RedirectResponseCode
The HTTP Status code to use for this RedirectAction.
|
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage,BuilderType extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter| Modifier and Type | Field and 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 |
| Modifier and Type | Method and 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.
|
com.google.protobuf.UnknownFieldSet |
getUnknownFields() |
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(ByteBuffer data) |
static HttpRedirectAction |
parseFrom(ByteBuffer 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 com.google.protobuf.Parser<HttpRedirectAction> |
parser() |
HttpRedirectAction.Builder |
toBuilder() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, internalGetMapField, isStringEmpty, makeExtensionsImmutable, 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, writeStringNoTagfindInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringaddAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToclone, finalize, getClass, notify, notifyAll, wait, wait, waitpublic static final int HOST_REDIRECT_FIELD_NUMBER
public static final int HTTPS_REDIRECT_FIELD_NUMBER
public static final int PATH_REDIRECT_FIELD_NUMBER
public static final int PREFIX_REDIRECT_FIELD_NUMBER
public static final int REDIRECT_RESPONSE_CODE_FIELD_NUMBER
public static final int STRIP_QUERY_FIELD_NUMBER
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
newInstance in class com.google.protobuf.GeneratedMessageV3public final com.google.protobuf.UnknownFieldSet getUnknownFields()
getUnknownFields in interface com.google.protobuf.MessageOrBuildergetUnknownFields in class com.google.protobuf.GeneratedMessageV3public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3public 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;hasHostRedirect in interface HttpRedirectActionOrBuilderpublic 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;getHostRedirect in interface HttpRedirectActionOrBuilderpublic 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;getHostRedirectBytes in interface HttpRedirectActionOrBuilderpublic 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;hasHttpsRedirect in interface HttpRedirectActionOrBuilderpublic 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;getHttpsRedirect in interface HttpRedirectActionOrBuilderpublic 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;hasPathRedirect in interface HttpRedirectActionOrBuilderpublic 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;getPathRedirect in interface HttpRedirectActionOrBuilderpublic 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;getPathRedirectBytes in interface HttpRedirectActionOrBuilderpublic 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;hasPrefixRedirect in interface HttpRedirectActionOrBuilderpublic 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;getPrefixRedirect in interface HttpRedirectActionOrBuilderpublic 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;getPrefixRedirectBytes in interface HttpRedirectActionOrBuilderpublic 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;hasRedirectResponseCode in interface HttpRedirectActionOrBuilderpublic 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;getRedirectResponseCode in interface HttpRedirectActionOrBuilderpublic 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;getRedirectResponseCodeBytes in interface HttpRedirectActionOrBuilderpublic 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;hasStripQuery in interface HttpRedirectActionOrBuilderpublic 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;getStripQuery in interface HttpRedirectActionOrBuilderpublic final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3public void writeTo(com.google.protobuf.CodedOutputStream output)
throws IOException
writeTo in interface com.google.protobuf.MessageLitewriteTo in class com.google.protobuf.GeneratedMessageV3IOExceptionpublic int getSerializedSize()
getSerializedSize in interface com.google.protobuf.MessageLitegetSerializedSize in class com.google.protobuf.GeneratedMessageV3public boolean equals(Object obj)
equals in interface com.google.protobuf.Messageequals in class com.google.protobuf.AbstractMessagepublic int hashCode()
hashCode in interface com.google.protobuf.MessagehashCode in class com.google.protobuf.AbstractMessagepublic static HttpRedirectAction parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static HttpRedirectAction parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static HttpRedirectAction parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static HttpRedirectAction parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static HttpRedirectAction parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static HttpRedirectAction parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static HttpRedirectAction parseFrom(InputStream input) throws IOException
IOExceptionpublic static HttpRedirectAction parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static HttpRedirectAction parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static HttpRedirectAction parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static HttpRedirectAction parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOExceptionpublic static HttpRedirectAction parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic HttpRedirectAction.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static HttpRedirectAction.Builder newBuilder()
public static HttpRedirectAction.Builder newBuilder(HttpRedirectAction prototype)
public HttpRedirectAction.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected HttpRedirectAction.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessageV3public static HttpRedirectAction getDefaultInstance()
public static com.google.protobuf.Parser<HttpRedirectAction> parser()
public com.google.protobuf.Parser<HttpRedirectAction> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessageV3public HttpRedirectAction getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderCopyright © 2023 Google LLC. All rights reserved.