public final class UrlMap extends com.google.protobuf.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.
|
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| 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 |
| 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 com.google.protobuf.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.
|
com.google.protobuf.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.
|
com.google.protobuf.UnknownFieldSet |
getUnknownFields() |
java.lang.String |
getUrlRegex()
URL prefix.
|
com.google.protobuf.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 com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
static UrlMap.Builder |
newBuilder() |
static UrlMap.Builder |
newBuilder(UrlMap prototype) |
UrlMap.Builder |
newBuilderForType() |
protected UrlMap.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
static UrlMap |
parseDelimitedFrom(java.io.InputStream input) |
static UrlMap |
parseDelimitedFrom(java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static UrlMap |
parseFrom(byte[] data) |
static UrlMap |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static UrlMap |
parseFrom(java.nio.ByteBuffer data) |
static UrlMap |
parseFrom(java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static UrlMap |
parseFrom(com.google.protobuf.ByteString data) |
static UrlMap |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static UrlMap |
parseFrom(com.google.protobuf.CodedInputStream input) |
static UrlMap |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static UrlMap |
parseFrom(java.io.InputStream input) |
static UrlMap |
parseFrom(java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<UrlMap> |
parser() |
UrlMap.Builder |
toBuilder() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
computeStringSize, computeStringSizeNoTag, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, internalGetMapField, makeExtensionsImmutable, newBuilderForType, 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 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 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 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 com.google.protobuf.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 com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException
writeTo in interface com.google.protobuf.MessageLitewriteTo in class com.google.protobuf.GeneratedMessageV3java.io.IOExceptionpublic int getSerializedSize()
getSerializedSize in interface com.google.protobuf.MessageLitegetSerializedSize in class com.google.protobuf.GeneratedMessageV3public boolean equals(java.lang.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 UrlMap parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static UrlMap parseFrom(java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static UrlMap parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static UrlMap parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static UrlMap parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static UrlMap parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static UrlMap parseFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOExceptionpublic static UrlMap parseFrom(java.io.InputStream input, com.google.protobuf.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, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOExceptionpublic static UrlMap parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException
java.io.IOExceptionpublic static UrlMap parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOExceptionpublic UrlMap.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static UrlMap.Builder newBuilder()
public static UrlMap.Builder newBuilder(UrlMap prototype)
public UrlMap.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected UrlMap.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessageV3public static UrlMap getDefaultInstance()
public static com.google.protobuf.Parser<UrlMap> parser()
public com.google.protobuf.Parser<UrlMap> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessageV3public UrlMap getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder