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
Inherited Members
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT)
Static Fields
API_ENDPOINT_FIELD_NUMBER
public static final int API_ENDPOINT_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
AUTH_FAIL_ACTION_FIELD_NUMBER
public static final int AUTH_FAIL_ACTION_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
LOGIN_FIELD_NUMBER
public static final int LOGIN_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
REDIRECT_HTTP_RESPONSE_CODE_FIELD_NUMBER
public static final int REDIRECT_HTTP_RESPONSE_CODE_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
SCRIPT_FIELD_NUMBER
public static final int SCRIPT_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
SECURITY_LEVEL_FIELD_NUMBER
public static final int SECURITY_LEVEL_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
STATIC_FILES_FIELD_NUMBER
public static final int STATIC_FILES_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
URL_REGEX_FIELD_NUMBER
public static final int URL_REGEX_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
Static Methods
getDefaultInstance()
public static UrlMap getDefaultInstance()
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
newBuilder()
public static UrlMap.Builder newBuilder()
newBuilder(UrlMap prototype)
public static UrlMap.Builder newBuilder(UrlMap prototype)
Parameter |
---|
Name | Description |
prototype | UrlMap
|
public static UrlMap parseDelimitedFrom(InputStream input)
public static UrlMap parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(byte[] data)
public static UrlMap parseFrom(byte[] data)
Parameter |
---|
Name | Description |
data | byte[]
|
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static UrlMap parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteString data)
public static UrlMap parseFrom(ByteString data)
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static UrlMap parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static UrlMap parseFrom(CodedInputStream input)
public static UrlMap parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static UrlMap parseFrom(InputStream input)
public static UrlMap parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteBuffer data)
public static UrlMap parseFrom(ByteBuffer data)
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static UrlMap parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
parser()
public static Parser<UrlMap> parser()
Methods
equals(Object obj)
public boolean equals(Object obj)
Parameter |
---|
Name | Description |
obj | Object
|
Overrides
getApiEndpoint()
public ApiEndpointHandler getApiEndpoint()
Uses API Endpoints to handle requests.
.google.appengine.v1.ApiEndpointHandler api_endpoint = 4;
getApiEndpointOrBuilder()
public ApiEndpointHandlerOrBuilder getApiEndpointOrBuilder()
Uses API Endpoints to handle requests.
.google.appengine.v1.ApiEndpointHandler api_endpoint = 4;
getAuthFailAction()
public AuthFailAction getAuthFailAction()
Action to take when users access resources that require
authentication. Defaults to redirect
.
.google.appengine.v1.AuthFailAction auth_fail_action = 7;
getAuthFailActionValue()
public int getAuthFailActionValue()
Action to take when users access resources that require
authentication. Defaults to redirect
.
.google.appengine.v1.AuthFailAction auth_fail_action = 7;
Returns |
---|
Type | Description |
int | The enum numeric value on the wire for authFailAction.
|
getDefaultInstanceForType()
public UrlMap getDefaultInstanceForType()
getHandlerTypeCase()
public UrlMap.HandlerTypeCase getHandlerTypeCase()
getLogin()
public LoginRequirement getLogin()
Level of login required to access this resource. Not supported for Node.js
in the App Engine standard environment.
.google.appengine.v1.LoginRequirement login = 6;
getLoginValue()
public int getLoginValue()
Level of login required to access this resource. Not supported for Node.js
in the App Engine standard environment.
.google.appengine.v1.LoginRequirement login = 6;
Returns |
---|
Type | Description |
int | The enum numeric value on the wire for login.
|
getParserForType()
public Parser<UrlMap> getParserForType()
Overrides
getRedirectHttpResponseCode()
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;
getRedirectHttpResponseCodeValue()
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;
Returns |
---|
Type | Description |
int | The enum numeric value on the wire for redirectHttpResponseCode.
|
getScript()
public ScriptHandler getScript()
Executes a script to handle the requests that match this URL
pattern. Only the auto
value is supported for Node.js in the
App Engine standard environment, for example "script": "auto"
.
.google.appengine.v1.ScriptHandler script = 3;
getScriptOrBuilder()
public ScriptHandlerOrBuilder getScriptOrBuilder()
Executes a script to handle the requests that match this URL
pattern. Only the auto
value is supported for Node.js in the
App Engine standard environment, for example "script": "auto"
.
.google.appengine.v1.ScriptHandler script = 3;
getSecurityLevel()
public SecurityLevel getSecurityLevel()
Security (HTTPS) enforcement for this URL.
.google.appengine.v1.SecurityLevel security_level = 5;
getSecurityLevelValue()
public int getSecurityLevelValue()
Security (HTTPS) enforcement for this URL.
.google.appengine.v1.SecurityLevel security_level = 5;
Returns |
---|
Type | Description |
int | The enum numeric value on the wire for securityLevel.
|
getSerializedSize()
public int getSerializedSize()
Returns |
---|
Type | Description |
int | |
Overrides
getStaticFiles()
public StaticFilesHandler getStaticFiles()
Returns the contents of a file, such as an image, as the response.
.google.appengine.v1.StaticFilesHandler static_files = 2;
getStaticFilesOrBuilder()
public StaticFilesHandlerOrBuilder getStaticFilesOrBuilder()
Returns the contents of a file, such as an image, as the response.
.google.appengine.v1.StaticFilesHandler static_files = 2;
getUnknownFields()
public final UnknownFieldSet getUnknownFields()
Overrides
getUrlRegex()
public 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;
Returns |
---|
Type | Description |
String | The urlRegex.
|
getUrlRegexBytes()
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;
Returns |
---|
Type | Description |
ByteString | The bytes for urlRegex.
|
hasApiEndpoint()
public boolean hasApiEndpoint()
Uses API Endpoints to handle requests.
.google.appengine.v1.ApiEndpointHandler api_endpoint = 4;
Returns |
---|
Type | Description |
boolean | Whether the apiEndpoint field is set.
|
hasScript()
public boolean hasScript()
Executes a script to handle the requests that match this URL
pattern. Only the auto
value is supported for Node.js in the
App Engine standard environment, for example "script": "auto"
.
.google.appengine.v1.ScriptHandler script = 3;
Returns |
---|
Type | Description |
boolean | Whether the script field is set.
|
hasStaticFiles()
public boolean hasStaticFiles()
Returns the contents of a file, such as an image, as the response.
.google.appengine.v1.StaticFilesHandler static_files = 2;
Returns |
---|
Type | Description |
boolean | Whether the staticFiles field is set.
|
hashCode()
Returns |
---|
Type | Description |
int | |
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
newBuilderForType()
public UrlMap.Builder newBuilderForType()
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected UrlMap.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Overrides
toBuilder()
public UrlMap.Builder toBuilder()
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Overrides