public final class UrlMap extends GeneratedMessageV3 implements UrlMapOrBuilder
URL pattern and description of how the URL should be handled. App Engine can handle URLs by executing application code or by serving static files uploaded with the version, such as images, CSS, or JavaScript.Protobuf type
google.appengine.v1.UrlMap| Modifier and Type | Class and Description |
|---|---|
static class |
UrlMap.Builder
URL pattern and description of how the URL should be handled.
|
static class |
UrlMap.HandlerTypeCase |
static class |
UrlMap.RedirectHttpResponseCode
Redirect codes.
|
GeneratedMessageV3.BuilderParent, GeneratedMessageV3.ExtendableBuilder<MessageType extends GeneratedMessageV3.ExtendableMessage,BuilderType extends GeneratedMessageV3.ExtendableBuilder<MessageType,BuilderType>>, GeneratedMessageV3.ExtendableMessage<MessageType extends GeneratedMessageV3.ExtendableMessage>, GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends GeneratedMessageV3.ExtendableMessage>, GeneratedMessageV3.FieldAccessorTable| Modifier and Type | Field and Description |
|---|---|
static int |
API_ENDPOINT_FIELD_NUMBER |
static int |
AUTH_FAIL_ACTION_FIELD_NUMBER |
static int |
LOGIN_FIELD_NUMBER |
static int |
REDIRECT_HTTP_RESPONSE_CODE_FIELD_NUMBER |
static int |
SCRIPT_FIELD_NUMBER |
static int |
SECURITY_LEVEL_FIELD_NUMBER |
static int |
STATIC_FILES_FIELD_NUMBER |
static int |
URL_REGEX_FIELD_NUMBER |
alwaysUseFieldBuilders, unknownFieldsmemoizedSizememoizedHashCode| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
ApiEndpointHandler |
getApiEndpoint()
Uses API Endpoints to handle requests.
|
ApiEndpointHandlerOrBuilder |
getApiEndpointOrBuilder()
Uses API Endpoints to handle requests.
|
AuthFailAction |
getAuthFailAction()
Action to take when users access resources that require
authentication.
|
int |
getAuthFailActionValue()
Action to take when users access resources that require
authentication.
|
static UrlMap |
getDefaultInstance() |
UrlMap |
getDefaultInstanceForType() |
static Descriptors.Descriptor |
getDescriptor() |
UrlMap.HandlerTypeCase |
getHandlerTypeCase() |
LoginRequirement |
getLogin()
Level of login required to access this resource.
|
int |
getLoginValue()
Level of login required to access this resource.
|
Parser<UrlMap> |
getParserForType() |
UrlMap.RedirectHttpResponseCode |
getRedirectHttpResponseCode()
`30x` code to use when performing redirects for the `secure` field.
|
int |
getRedirectHttpResponseCodeValue()
`30x` code to use when performing redirects for the `secure` field.
|
ScriptHandler |
getScript()
Executes a script to handle the request that matches this URL
pattern.
|
ScriptHandlerOrBuilder |
getScriptOrBuilder()
Executes a script to handle the request that matches this URL
pattern.
|
SecurityLevel |
getSecurityLevel()
Security (HTTPS) enforcement for this URL.
|
int |
getSecurityLevelValue()
Security (HTTPS) enforcement for this URL.
|
int |
getSerializedSize() |
StaticFilesHandler |
getStaticFiles()
Returns the contents of a file, such as an image, as the response.
|
StaticFilesHandlerOrBuilder |
getStaticFilesOrBuilder()
Returns the contents of a file, such as an image, as the response.
|
UnknownFieldSet |
getUnknownFields() |
java.lang.String |
getUrlRegex()
URL prefix.
|
ByteString |
getUrlRegexBytes()
URL prefix.
|
boolean |
hasApiEndpoint()
Uses API Endpoints to handle requests.
|
int |
hashCode() |
boolean |
hasScript()
Executes a script to handle the request that matches this URL
pattern.
|
boolean |
hasStaticFiles()
Returns the contents of a file, such as an image, as the response.
|
protected GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
static UrlMap.Builder |
newBuilder() |
static UrlMap.Builder |
newBuilder(UrlMap prototype) |
UrlMap.Builder |
newBuilderForType() |
protected UrlMap.Builder |
newBuilderForType(GeneratedMessageV3.BuilderParent parent) |
static UrlMap |
parseDelimitedFrom(java.io.InputStream input) |
static UrlMap |
parseDelimitedFrom(java.io.InputStream input,
ExtensionRegistryLite extensionRegistry) |
static UrlMap |
parseFrom(byte[] data) |
static UrlMap |
parseFrom(byte[] data,
ExtensionRegistryLite extensionRegistry) |
static UrlMap |
parseFrom(java.nio.ByteBuffer data) |
static UrlMap |
parseFrom(java.nio.ByteBuffer data,
ExtensionRegistryLite extensionRegistry) |
static UrlMap |
parseFrom(ByteString data) |
static UrlMap |
parseFrom(ByteString data,
ExtensionRegistryLite extensionRegistry) |
static UrlMap |
parseFrom(CodedInputStream input) |
static UrlMap |
parseFrom(CodedInputStream input,
ExtensionRegistryLite extensionRegistry) |
static UrlMap |
parseFrom(java.io.InputStream input) |
static UrlMap |
parseFrom(java.io.InputStream input,
ExtensionRegistryLite extensionRegistry) |
static Parser<UrlMap> |
parser() |
UrlMap.Builder |
toBuilder() |
void |
writeTo(CodedOutputStream output) |
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, internalGetMapField, makeExtensionsImmutable, 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, waitfindInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneoftoByteArray, toByteString, writeDelimitedTo, writeTopublic static final int URL_REGEX_FIELD_NUMBER
public static final int STATIC_FILES_FIELD_NUMBER
public static final int SCRIPT_FIELD_NUMBER
public static final int API_ENDPOINT_FIELD_NUMBER
public static final int SECURITY_LEVEL_FIELD_NUMBER
public static final int LOGIN_FIELD_NUMBER
public static final int AUTH_FAIL_ACTION_FIELD_NUMBER
public static final int REDIRECT_HTTP_RESPONSE_CODE_FIELD_NUMBER
public final UnknownFieldSet getUnknownFields()
getUnknownFields in interface MessageOrBuildergetUnknownFields in class GeneratedMessageV3public static final Descriptors.Descriptor getDescriptor()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class GeneratedMessageV3public UrlMap.HandlerTypeCase getHandlerTypeCase()
getHandlerTypeCase in interface UrlMapOrBuilderpublic java.lang.String getUrlRegex()
URL prefix. Uses regular expression syntax, which means regexp special characters must be escaped, but should not contain groupings. All URLs that begin with this prefix are handled by this handler, using the portion of the URL after the prefix as part of the file path.
string url_regex = 1;getUrlRegex in interface UrlMapOrBuilderpublic ByteString getUrlRegexBytes()
URL prefix. Uses regular expression syntax, which means regexp special characters must be escaped, but should not contain groupings. All URLs that begin with this prefix are handled by this handler, using the portion of the URL after the prefix as part of the file path.
string url_regex = 1;getUrlRegexBytes in interface UrlMapOrBuilderpublic boolean hasStaticFiles()
Returns the contents of a file, such as an image, as the response.
.google.appengine.v1.StaticFilesHandler static_files = 2;hasStaticFiles in interface UrlMapOrBuilderpublic StaticFilesHandler getStaticFiles()
Returns the contents of a file, such as an image, as the response.
.google.appengine.v1.StaticFilesHandler static_files = 2;getStaticFiles in interface UrlMapOrBuilderpublic StaticFilesHandlerOrBuilder getStaticFilesOrBuilder()
Returns the contents of a file, such as an image, as the response.
.google.appengine.v1.StaticFilesHandler static_files = 2;getStaticFilesOrBuilder in interface UrlMapOrBuilderpublic boolean hasScript()
Executes a script to handle the request that matches this URL pattern.
.google.appengine.v1.ScriptHandler script = 3;hasScript in interface UrlMapOrBuilderpublic ScriptHandler getScript()
Executes a script to handle the request that matches this URL pattern.
.google.appengine.v1.ScriptHandler script = 3;getScript in interface UrlMapOrBuilderpublic ScriptHandlerOrBuilder getScriptOrBuilder()
Executes a script to handle the request that matches this URL pattern.
.google.appengine.v1.ScriptHandler script = 3;getScriptOrBuilder in interface UrlMapOrBuilderpublic boolean hasApiEndpoint()
Uses API Endpoints to handle requests.
.google.appengine.v1.ApiEndpointHandler api_endpoint = 4;hasApiEndpoint in interface UrlMapOrBuilderpublic ApiEndpointHandler getApiEndpoint()
Uses API Endpoints to handle requests.
.google.appengine.v1.ApiEndpointHandler api_endpoint = 4;getApiEndpoint in interface UrlMapOrBuilderpublic ApiEndpointHandlerOrBuilder getApiEndpointOrBuilder()
Uses API Endpoints to handle requests.
.google.appengine.v1.ApiEndpointHandler api_endpoint = 4;getApiEndpointOrBuilder in interface UrlMapOrBuilderpublic int getSecurityLevelValue()
Security (HTTPS) enforcement for this URL.
.google.appengine.v1.SecurityLevel security_level = 5;getSecurityLevelValue in interface UrlMapOrBuilderpublic SecurityLevel getSecurityLevel()
Security (HTTPS) enforcement for this URL.
.google.appengine.v1.SecurityLevel security_level = 5;getSecurityLevel in interface UrlMapOrBuilderpublic int getLoginValue()
Level of login required to access this resource.
.google.appengine.v1.LoginRequirement login = 6;getLoginValue in interface UrlMapOrBuilderpublic LoginRequirement getLogin()
Level of login required to access this resource.
.google.appengine.v1.LoginRequirement login = 6;getLogin in interface UrlMapOrBuilderpublic int getAuthFailActionValue()
Action to take when users access resources that require authentication. Defaults to `redirect`.
.google.appengine.v1.AuthFailAction auth_fail_action = 7;getAuthFailActionValue in interface UrlMapOrBuilderpublic AuthFailAction getAuthFailAction()
Action to take when users access resources that require authentication. Defaults to `redirect`.
.google.appengine.v1.AuthFailAction auth_fail_action = 7;getAuthFailAction in interface UrlMapOrBuilderpublic int getRedirectHttpResponseCodeValue()
`30x` code to use when performing redirects for the `secure` field. Defaults to `302`.
.google.appengine.v1.UrlMap.RedirectHttpResponseCode redirect_http_response_code = 8;getRedirectHttpResponseCodeValue in interface UrlMapOrBuilderpublic UrlMap.RedirectHttpResponseCode getRedirectHttpResponseCode()
`30x` code to use when performing redirects for the `secure` field. Defaults to `302`.
.google.appengine.v1.UrlMap.RedirectHttpResponseCode redirect_http_response_code = 8;getRedirectHttpResponseCode in interface UrlMapOrBuilderpublic final boolean isInitialized()
isInitialized in interface MessageLiteOrBuilderisInitialized in class GeneratedMessageV3public void writeTo(CodedOutputStream output) throws java.io.IOException
writeTo in interface MessageLitewriteTo in class GeneratedMessageV3java.io.IOExceptionpublic int getSerializedSize()
getSerializedSize in interface MessageLitegetSerializedSize in class GeneratedMessageV3public boolean equals(java.lang.Object obj)
equals in interface Messageequals in class AbstractMessagepublic int hashCode()
hashCode in interface MessagehashCode in class AbstractMessagepublic static UrlMap parseFrom(java.nio.ByteBuffer data) throws InvalidProtocolBufferException
InvalidProtocolBufferExceptionpublic static UrlMap parseFrom(java.nio.ByteBuffer data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferExceptionpublic static UrlMap parseFrom(ByteString data) throws InvalidProtocolBufferException
InvalidProtocolBufferExceptionpublic static UrlMap parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferExceptionpublic static UrlMap parseFrom(byte[] data) throws InvalidProtocolBufferException
InvalidProtocolBufferExceptionpublic static UrlMap parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferExceptionpublic static UrlMap parseFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOExceptionpublic static UrlMap parseFrom(java.io.InputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOExceptionpublic static UrlMap parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOExceptionpublic static UrlMap parseDelimitedFrom(java.io.InputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOExceptionpublic static UrlMap parseFrom(CodedInputStream input) throws java.io.IOException
java.io.IOExceptionpublic static UrlMap parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOExceptionpublic UrlMap.Builder newBuilderForType()
newBuilderForType in interface MessagenewBuilderForType in interface MessageLitepublic static UrlMap.Builder newBuilder()
public static UrlMap.Builder newBuilder(UrlMap prototype)
public UrlMap.Builder toBuilder()
toBuilder in interface MessagetoBuilder in interface MessageLiteprotected UrlMap.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class GeneratedMessageV3public static UrlMap getDefaultInstance()
public Parser<UrlMap> getParserForType()
getParserForType in interface MessagegetParserForType in interface MessageLitegetParserForType in class GeneratedMessageV3public UrlMap getDefaultInstanceForType()
getDefaultInstanceForType in interface MessageLiteOrBuildergetDefaultInstanceForType in interface MessageOrBuilder