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, unknownFields
memoizedSize
memoizedHashCode
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, writeStringNoTag
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof
toByteArray, toByteString, writeDelimitedTo, writeTo
public 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 MessageOrBuilder
getUnknownFields
in class GeneratedMessageV3
public static final Descriptors.Descriptor getDescriptor()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class GeneratedMessageV3
public UrlMap.HandlerTypeCase getHandlerTypeCase()
getHandlerTypeCase
in interface UrlMapOrBuilder
public 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 UrlMapOrBuilder
public 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 UrlMapOrBuilder
public 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 UrlMapOrBuilder
public 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 UrlMapOrBuilder
public 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 UrlMapOrBuilder
public boolean hasScript()
Executes a script to handle the request that matches this URL pattern.
.google.appengine.v1.ScriptHandler script = 3;
hasScript
in interface UrlMapOrBuilder
public ScriptHandler getScript()
Executes a script to handle the request that matches this URL pattern.
.google.appengine.v1.ScriptHandler script = 3;
getScript
in interface UrlMapOrBuilder
public ScriptHandlerOrBuilder getScriptOrBuilder()
Executes a script to handle the request that matches this URL pattern.
.google.appengine.v1.ScriptHandler script = 3;
getScriptOrBuilder
in interface UrlMapOrBuilder
public boolean hasApiEndpoint()
Uses API Endpoints to handle requests.
.google.appengine.v1.ApiEndpointHandler api_endpoint = 4;
hasApiEndpoint
in interface UrlMapOrBuilder
public ApiEndpointHandler getApiEndpoint()
Uses API Endpoints to handle requests.
.google.appengine.v1.ApiEndpointHandler api_endpoint = 4;
getApiEndpoint
in interface UrlMapOrBuilder
public ApiEndpointHandlerOrBuilder getApiEndpointOrBuilder()
Uses API Endpoints to handle requests.
.google.appengine.v1.ApiEndpointHandler api_endpoint = 4;
getApiEndpointOrBuilder
in interface UrlMapOrBuilder
public int getSecurityLevelValue()
Security (HTTPS) enforcement for this URL.
.google.appengine.v1.SecurityLevel security_level = 5;
getSecurityLevelValue
in interface UrlMapOrBuilder
public SecurityLevel getSecurityLevel()
Security (HTTPS) enforcement for this URL.
.google.appengine.v1.SecurityLevel security_level = 5;
getSecurityLevel
in interface UrlMapOrBuilder
public int getLoginValue()
Level of login required to access this resource.
.google.appengine.v1.LoginRequirement login = 6;
getLoginValue
in interface UrlMapOrBuilder
public LoginRequirement getLogin()
Level of login required to access this resource.
.google.appengine.v1.LoginRequirement login = 6;
getLogin
in interface UrlMapOrBuilder
public 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 UrlMapOrBuilder
public 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 UrlMapOrBuilder
public 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 UrlMapOrBuilder
public 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 UrlMapOrBuilder
public final boolean isInitialized()
isInitialized
in interface MessageLiteOrBuilder
isInitialized
in class GeneratedMessageV3
public void writeTo(CodedOutputStream output) throws java.io.IOException
writeTo
in interface MessageLite
writeTo
in class GeneratedMessageV3
java.io.IOException
public int getSerializedSize()
getSerializedSize
in interface MessageLite
getSerializedSize
in class GeneratedMessageV3
public boolean equals(java.lang.Object obj)
equals
in interface Message
equals
in class AbstractMessage
public int hashCode()
hashCode
in interface Message
hashCode
in class AbstractMessage
public static UrlMap parseFrom(java.nio.ByteBuffer data) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static UrlMap parseFrom(java.nio.ByteBuffer data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static UrlMap parseFrom(ByteString data) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static UrlMap parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static UrlMap parseFrom(byte[] data) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static UrlMap parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static UrlMap parseFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOException
public static UrlMap parseFrom(java.io.InputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOException
public static UrlMap parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOException
public static UrlMap parseDelimitedFrom(java.io.InputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOException
public static UrlMap parseFrom(CodedInputStream input) throws java.io.IOException
java.io.IOException
public static UrlMap parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOException
public UrlMap.Builder newBuilderForType()
newBuilderForType
in interface Message
newBuilderForType
in interface MessageLite
public static UrlMap.Builder newBuilder()
public static UrlMap.Builder newBuilder(UrlMap prototype)
public UrlMap.Builder toBuilder()
toBuilder
in interface Message
toBuilder
in interface MessageLite
protected UrlMap.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
newBuilderForType
in class GeneratedMessageV3
public static UrlMap getDefaultInstance()
public Parser<UrlMap> getParserForType()
getParserForType
in interface Message
getParserForType
in interface MessageLite
getParserForType
in class GeneratedMessageV3
public UrlMap getDefaultInstanceForType()
getDefaultInstanceForType
in interface MessageLiteOrBuilder
getDefaultInstanceForType
in interface MessageOrBuilder