Class UrlMap.Builder (2.28.0)

public static final class UrlMap.Builder extends GeneratedMessageV3.Builder<UrlMap.Builder> 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

Implements

UrlMapOrBuilder

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public UrlMap.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
UrlMap.Builder
Overrides

build()

public UrlMap build()
Returns
TypeDescription
UrlMap

buildPartial()

public UrlMap buildPartial()
Returns
TypeDescription
UrlMap

clear()

public UrlMap.Builder clear()
Returns
TypeDescription
UrlMap.Builder
Overrides

clearApiEndpoint()

public UrlMap.Builder clearApiEndpoint()

Uses API Endpoints to handle requests.

.google.appengine.v1.ApiEndpointHandler api_endpoint = 4;

Returns
TypeDescription
UrlMap.Builder

clearAuthFailAction()

public UrlMap.Builder clearAuthFailAction()

Action to take when users access resources that require authentication. Defaults to redirect.

.google.appengine.v1.AuthFailAction auth_fail_action = 7;

Returns
TypeDescription
UrlMap.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public UrlMap.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
UrlMap.Builder
Overrides

clearHandlerType()

public UrlMap.Builder clearHandlerType()
Returns
TypeDescription
UrlMap.Builder

clearLogin()

public UrlMap.Builder clearLogin()

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
TypeDescription
UrlMap.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public UrlMap.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
UrlMap.Builder
Overrides

clearRedirectHttpResponseCode()

public UrlMap.Builder clearRedirectHttpResponseCode()

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
TypeDescription
UrlMap.Builder

This builder for chaining.

clearScript()

public UrlMap.Builder clearScript()

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
TypeDescription
UrlMap.Builder

clearSecurityLevel()

public UrlMap.Builder clearSecurityLevel()

Security (HTTPS) enforcement for this URL.

.google.appengine.v1.SecurityLevel security_level = 5;

Returns
TypeDescription
UrlMap.Builder

This builder for chaining.

clearStaticFiles()

public UrlMap.Builder clearStaticFiles()

Returns the contents of a file, such as an image, as the response.

.google.appengine.v1.StaticFilesHandler static_files = 2;

Returns
TypeDescription
UrlMap.Builder

clearUrlRegex()

public UrlMap.Builder clearUrlRegex()

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
TypeDescription
UrlMap.Builder

This builder for chaining.

clone()

public UrlMap.Builder clone()
Returns
TypeDescription
UrlMap.Builder
Overrides

getApiEndpoint()

public ApiEndpointHandler getApiEndpoint()

Uses API Endpoints to handle requests.

.google.appengine.v1.ApiEndpointHandler api_endpoint = 4;

Returns
TypeDescription
ApiEndpointHandler

The apiEndpoint.

getApiEndpointBuilder()

public ApiEndpointHandler.Builder getApiEndpointBuilder()

Uses API Endpoints to handle requests.

.google.appengine.v1.ApiEndpointHandler api_endpoint = 4;

Returns
TypeDescription
ApiEndpointHandler.Builder

getApiEndpointOrBuilder()

public ApiEndpointHandlerOrBuilder getApiEndpointOrBuilder()

Uses API Endpoints to handle requests.

.google.appengine.v1.ApiEndpointHandler api_endpoint = 4;

Returns
TypeDescription
ApiEndpointHandlerOrBuilder

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;

Returns
TypeDescription
AuthFailAction

The authFailAction.

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
TypeDescription
int

The enum numeric value on the wire for authFailAction.

getDefaultInstanceForType()

public UrlMap getDefaultInstanceForType()
Returns
TypeDescription
UrlMap

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getHandlerTypeCase()

public UrlMap.HandlerTypeCase getHandlerTypeCase()
Returns
TypeDescription
UrlMap.HandlerTypeCase

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;

Returns
TypeDescription
LoginRequirement

The login.

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
TypeDescription
int

The enum numeric value on the wire for login.

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;

Returns
TypeDescription
UrlMap.RedirectHttpResponseCode

The redirectHttpResponseCode.

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
TypeDescription
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;

Returns
TypeDescription
ScriptHandler

The script.

getScriptBuilder()

public ScriptHandler.Builder getScriptBuilder()

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
TypeDescription
ScriptHandler.Builder

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;

Returns
TypeDescription
ScriptHandlerOrBuilder

getSecurityLevel()

public SecurityLevel getSecurityLevel()

Security (HTTPS) enforcement for this URL.

.google.appengine.v1.SecurityLevel security_level = 5;

Returns
TypeDescription
SecurityLevel

The securityLevel.

getSecurityLevelValue()

public int getSecurityLevelValue()

Security (HTTPS) enforcement for this URL.

.google.appengine.v1.SecurityLevel security_level = 5;

Returns
TypeDescription
int

The enum numeric value on the wire for securityLevel.

getStaticFiles()

public StaticFilesHandler getStaticFiles()

Returns the contents of a file, such as an image, as the response.

.google.appengine.v1.StaticFilesHandler static_files = 2;

Returns
TypeDescription
StaticFilesHandler

The staticFiles.

getStaticFilesBuilder()

public StaticFilesHandler.Builder getStaticFilesBuilder()

Returns the contents of a file, such as an image, as the response.

.google.appengine.v1.StaticFilesHandler static_files = 2;

Returns
TypeDescription
StaticFilesHandler.Builder

getStaticFilesOrBuilder()

public StaticFilesHandlerOrBuilder getStaticFilesOrBuilder()

Returns the contents of a file, such as an image, as the response.

.google.appengine.v1.StaticFilesHandler static_files = 2;

Returns
TypeDescription
StaticFilesHandlerOrBuilder

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
TypeDescription
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
TypeDescription
ByteString

The bytes for urlRegex.

hasApiEndpoint()

public boolean hasApiEndpoint()

Uses API Endpoints to handle requests.

.google.appengine.v1.ApiEndpointHandler api_endpoint = 4;

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
boolean

Whether the staticFiles field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeApiEndpoint(ApiEndpointHandler value)

public UrlMap.Builder mergeApiEndpoint(ApiEndpointHandler value)

Uses API Endpoints to handle requests.

.google.appengine.v1.ApiEndpointHandler api_endpoint = 4;

Parameter
NameDescription
valueApiEndpointHandler
Returns
TypeDescription
UrlMap.Builder

mergeFrom(UrlMap other)

public UrlMap.Builder mergeFrom(UrlMap other)
Parameter
NameDescription
otherUrlMap
Returns
TypeDescription
UrlMap.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public UrlMap.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
UrlMap.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public UrlMap.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
UrlMap.Builder
Overrides

mergeScript(ScriptHandler value)

public UrlMap.Builder mergeScript(ScriptHandler value)

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;

Parameter
NameDescription
valueScriptHandler
Returns
TypeDescription
UrlMap.Builder

mergeStaticFiles(StaticFilesHandler value)

public UrlMap.Builder mergeStaticFiles(StaticFilesHandler value)

Returns the contents of a file, such as an image, as the response.

.google.appengine.v1.StaticFilesHandler static_files = 2;

Parameter
NameDescription
valueStaticFilesHandler
Returns
TypeDescription
UrlMap.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final UrlMap.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
UrlMap.Builder
Overrides

setApiEndpoint(ApiEndpointHandler value)

public UrlMap.Builder setApiEndpoint(ApiEndpointHandler value)

Uses API Endpoints to handle requests.

.google.appengine.v1.ApiEndpointHandler api_endpoint = 4;

Parameter
NameDescription
valueApiEndpointHandler
Returns
TypeDescription
UrlMap.Builder

setApiEndpoint(ApiEndpointHandler.Builder builderForValue)

public UrlMap.Builder setApiEndpoint(ApiEndpointHandler.Builder builderForValue)

Uses API Endpoints to handle requests.

.google.appengine.v1.ApiEndpointHandler api_endpoint = 4;

Parameter
NameDescription
builderForValueApiEndpointHandler.Builder
Returns
TypeDescription
UrlMap.Builder

setAuthFailAction(AuthFailAction value)

public UrlMap.Builder setAuthFailAction(AuthFailAction value)

Action to take when users access resources that require authentication. Defaults to redirect.

.google.appengine.v1.AuthFailAction auth_fail_action = 7;

Parameter
NameDescription
valueAuthFailAction

The authFailAction to set.

Returns
TypeDescription
UrlMap.Builder

This builder for chaining.

setAuthFailActionValue(int value)

public UrlMap.Builder setAuthFailActionValue(int value)

Action to take when users access resources that require authentication. Defaults to redirect.

.google.appengine.v1.AuthFailAction auth_fail_action = 7;

Parameter
NameDescription
valueint

The enum numeric value on the wire for authFailAction to set.

Returns
TypeDescription
UrlMap.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public UrlMap.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
UrlMap.Builder
Overrides

setLogin(LoginRequirement value)

public UrlMap.Builder setLogin(LoginRequirement value)

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;

Parameter
NameDescription
valueLoginRequirement

The login to set.

Returns
TypeDescription
UrlMap.Builder

This builder for chaining.

setLoginValue(int value)

public UrlMap.Builder setLoginValue(int value)

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;

Parameter
NameDescription
valueint

The enum numeric value on the wire for login to set.

Returns
TypeDescription
UrlMap.Builder

This builder for chaining.

setRedirectHttpResponseCode(UrlMap.RedirectHttpResponseCode value)

public UrlMap.Builder setRedirectHttpResponseCode(UrlMap.RedirectHttpResponseCode value)

30x code to use when performing redirects for the secure field. Defaults to 302.

.google.appengine.v1.UrlMap.RedirectHttpResponseCode redirect_http_response_code = 8;

Parameter
NameDescription
valueUrlMap.RedirectHttpResponseCode

The redirectHttpResponseCode to set.

Returns
TypeDescription
UrlMap.Builder

This builder for chaining.

setRedirectHttpResponseCodeValue(int value)

public UrlMap.Builder setRedirectHttpResponseCodeValue(int value)

30x code to use when performing redirects for the secure field. Defaults to 302.

.google.appengine.v1.UrlMap.RedirectHttpResponseCode redirect_http_response_code = 8;

Parameter
NameDescription
valueint

The enum numeric value on the wire for redirectHttpResponseCode to set.

Returns
TypeDescription
UrlMap.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public UrlMap.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
UrlMap.Builder
Overrides

setScript(ScriptHandler value)

public UrlMap.Builder setScript(ScriptHandler value)

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;

Parameter
NameDescription
valueScriptHandler
Returns
TypeDescription
UrlMap.Builder

setScript(ScriptHandler.Builder builderForValue)

public UrlMap.Builder setScript(ScriptHandler.Builder builderForValue)

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;

Parameter
NameDescription
builderForValueScriptHandler.Builder
Returns
TypeDescription
UrlMap.Builder

setSecurityLevel(SecurityLevel value)

public UrlMap.Builder setSecurityLevel(SecurityLevel value)

Security (HTTPS) enforcement for this URL.

.google.appengine.v1.SecurityLevel security_level = 5;

Parameter
NameDescription
valueSecurityLevel

The securityLevel to set.

Returns
TypeDescription
UrlMap.Builder

This builder for chaining.

setSecurityLevelValue(int value)

public UrlMap.Builder setSecurityLevelValue(int value)

Security (HTTPS) enforcement for this URL.

.google.appengine.v1.SecurityLevel security_level = 5;

Parameter
NameDescription
valueint

The enum numeric value on the wire for securityLevel to set.

Returns
TypeDescription
UrlMap.Builder

This builder for chaining.

setStaticFiles(StaticFilesHandler value)

public UrlMap.Builder setStaticFiles(StaticFilesHandler value)

Returns the contents of a file, such as an image, as the response.

.google.appengine.v1.StaticFilesHandler static_files = 2;

Parameter
NameDescription
valueStaticFilesHandler
Returns
TypeDescription
UrlMap.Builder

setStaticFiles(StaticFilesHandler.Builder builderForValue)

public UrlMap.Builder setStaticFiles(StaticFilesHandler.Builder builderForValue)

Returns the contents of a file, such as an image, as the response.

.google.appengine.v1.StaticFilesHandler static_files = 2;

Parameter
NameDescription
builderForValueStaticFilesHandler.Builder
Returns
TypeDescription
UrlMap.Builder

setUnknownFields(UnknownFieldSet unknownFields)

public final UrlMap.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
UrlMap.Builder
Overrides

setUrlRegex(String value)

public UrlMap.Builder setUrlRegex(String value)

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;

Parameter
NameDescription
valueString

The urlRegex to set.

Returns
TypeDescription
UrlMap.Builder

This builder for chaining.

setUrlRegexBytes(ByteString value)

public UrlMap.Builder setUrlRegexBytes(ByteString value)

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;

Parameter
NameDescription
valueByteString

The bytes for urlRegex to set.

Returns
TypeDescription
UrlMap.Builder

This builder for chaining.