All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.google.appengine.v1.UrlMap Maven / Gradle / Ivy

There is a newer version: 2.54.0
Show newest version
/*
 * Copyright 2024 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     https://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: google/appengine/v1/app_yaml.proto

// Protobuf Java Version: 3.25.5
package com.google.appengine.v1;

/**
 *
 *
 * 
 * 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 {@code google.appengine.v1.UrlMap} */ public final class UrlMap extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.appengine.v1.UrlMap) UrlMapOrBuilder { private static final long serialVersionUID = 0L; // Use UrlMap.newBuilder() to construct. private UrlMap(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private UrlMap() { urlRegex_ = ""; securityLevel_ = 0; login_ = 0; authFailAction_ = 0; redirectHttpResponseCode_ = 0; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new UrlMap(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.appengine.v1.AppYamlProto .internal_static_google_appengine_v1_UrlMap_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.appengine.v1.AppYamlProto .internal_static_google_appengine_v1_UrlMap_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.appengine.v1.UrlMap.class, com.google.appengine.v1.UrlMap.Builder.class); } /** * * *
   * Redirect codes.
   * 
* * Protobuf enum {@code google.appengine.v1.UrlMap.RedirectHttpResponseCode} */ public enum RedirectHttpResponseCode implements com.google.protobuf.ProtocolMessageEnum { /** * * *
     * Not specified. `302` is assumed.
     * 
* * REDIRECT_HTTP_RESPONSE_CODE_UNSPECIFIED = 0; */ REDIRECT_HTTP_RESPONSE_CODE_UNSPECIFIED(0), /** * * *
     * `301 Moved Permanently` code.
     * 
* * REDIRECT_HTTP_RESPONSE_CODE_301 = 1; */ REDIRECT_HTTP_RESPONSE_CODE_301(1), /** * * *
     * `302 Moved Temporarily` code.
     * 
* * REDIRECT_HTTP_RESPONSE_CODE_302 = 2; */ REDIRECT_HTTP_RESPONSE_CODE_302(2), /** * * *
     * `303 See Other` code.
     * 
* * REDIRECT_HTTP_RESPONSE_CODE_303 = 3; */ REDIRECT_HTTP_RESPONSE_CODE_303(3), /** * * *
     * `307 Temporary Redirect` code.
     * 
* * REDIRECT_HTTP_RESPONSE_CODE_307 = 4; */ REDIRECT_HTTP_RESPONSE_CODE_307(4), UNRECOGNIZED(-1), ; /** * * *
     * Not specified. `302` is assumed.
     * 
* * REDIRECT_HTTP_RESPONSE_CODE_UNSPECIFIED = 0; */ public static final int REDIRECT_HTTP_RESPONSE_CODE_UNSPECIFIED_VALUE = 0; /** * * *
     * `301 Moved Permanently` code.
     * 
* * REDIRECT_HTTP_RESPONSE_CODE_301 = 1; */ public static final int REDIRECT_HTTP_RESPONSE_CODE_301_VALUE = 1; /** * * *
     * `302 Moved Temporarily` code.
     * 
* * REDIRECT_HTTP_RESPONSE_CODE_302 = 2; */ public static final int REDIRECT_HTTP_RESPONSE_CODE_302_VALUE = 2; /** * * *
     * `303 See Other` code.
     * 
* * REDIRECT_HTTP_RESPONSE_CODE_303 = 3; */ public static final int REDIRECT_HTTP_RESPONSE_CODE_303_VALUE = 3; /** * * *
     * `307 Temporary Redirect` code.
     * 
* * REDIRECT_HTTP_RESPONSE_CODE_307 = 4; */ public static final int REDIRECT_HTTP_RESPONSE_CODE_307_VALUE = 4; public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( "Can't get the number of an unknown enum value."); } return value; } /** * @param value The numeric wire value of the corresponding enum entry. * @return The enum associated with the given numeric wire value. * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static RedirectHttpResponseCode valueOf(int value) { return forNumber(value); } /** * @param value The numeric wire value of the corresponding enum entry. * @return The enum associated with the given numeric wire value. */ public static RedirectHttpResponseCode forNumber(int value) { switch (value) { case 0: return REDIRECT_HTTP_RESPONSE_CODE_UNSPECIFIED; case 1: return REDIRECT_HTTP_RESPONSE_CODE_301; case 2: return REDIRECT_HTTP_RESPONSE_CODE_302; case 3: return REDIRECT_HTTP_RESPONSE_CODE_303; case 4: return REDIRECT_HTTP_RESPONSE_CODE_307; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public RedirectHttpResponseCode findValueByNumber(int number) { return RedirectHttpResponseCode.forNumber(number); } }; public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return com.google.appengine.v1.UrlMap.getDescriptor().getEnumTypes().get(0); } private static final RedirectHttpResponseCode[] VALUES = values(); public static RedirectHttpResponseCode valueOf( com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; } return VALUES[desc.getIndex()]; } private final int value; private RedirectHttpResponseCode(int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:google.appengine.v1.UrlMap.RedirectHttpResponseCode) } private int handlerTypeCase_ = 0; @SuppressWarnings("serial") private java.lang.Object handlerType_; public enum HandlerTypeCase implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { STATIC_FILES(2), SCRIPT(3), API_ENDPOINT(4), HANDLERTYPE_NOT_SET(0); private final int value; private HandlerTypeCase(int value) { this.value = value; } /** * @param value The number of the enum to look for. * @return The enum associated with the given number. * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static HandlerTypeCase valueOf(int value) { return forNumber(value); } public static HandlerTypeCase forNumber(int value) { switch (value) { case 2: return STATIC_FILES; case 3: return SCRIPT; case 4: return API_ENDPOINT; case 0: return HANDLERTYPE_NOT_SET; default: return null; } } public int getNumber() { return this.value; } }; public HandlerTypeCase getHandlerTypeCase() { return HandlerTypeCase.forNumber(handlerTypeCase_); } public static final int URL_REGEX_FIELD_NUMBER = 1; @SuppressWarnings("serial") private volatile java.lang.Object urlRegex_ = ""; /** * * *
   * 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; * * @return The urlRegex. */ @java.lang.Override public java.lang.String getUrlRegex() { java.lang.Object ref = urlRegex_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); urlRegex_ = s; return s; } } /** * * *
   * 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; * * @return The bytes for urlRegex. */ @java.lang.Override public com.google.protobuf.ByteString getUrlRegexBytes() { java.lang.Object ref = urlRegex_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); urlRegex_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int STATIC_FILES_FIELD_NUMBER = 2; /** * * *
   * Returns the contents of a file, such as an image, as the response.
   * 
* * .google.appengine.v1.StaticFilesHandler static_files = 2; * * @return Whether the staticFiles field is set. */ @java.lang.Override public boolean hasStaticFiles() { return handlerTypeCase_ == 2; } /** * * *
   * Returns the contents of a file, such as an image, as the response.
   * 
* * .google.appengine.v1.StaticFilesHandler static_files = 2; * * @return The staticFiles. */ @java.lang.Override public com.google.appengine.v1.StaticFilesHandler getStaticFiles() { if (handlerTypeCase_ == 2) { return (com.google.appengine.v1.StaticFilesHandler) handlerType_; } return com.google.appengine.v1.StaticFilesHandler.getDefaultInstance(); } /** * * *
   * Returns the contents of a file, such as an image, as the response.
   * 
* * .google.appengine.v1.StaticFilesHandler static_files = 2; */ @java.lang.Override public com.google.appengine.v1.StaticFilesHandlerOrBuilder getStaticFilesOrBuilder() { if (handlerTypeCase_ == 2) { return (com.google.appengine.v1.StaticFilesHandler) handlerType_; } return com.google.appengine.v1.StaticFilesHandler.getDefaultInstance(); } public static final int SCRIPT_FIELD_NUMBER = 3; /** * * *
   * 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; * * @return Whether the script field is set. */ @java.lang.Override public boolean hasScript() { return handlerTypeCase_ == 3; } /** * * *
   * 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; * * @return The script. */ @java.lang.Override public com.google.appengine.v1.ScriptHandler getScript() { if (handlerTypeCase_ == 3) { return (com.google.appengine.v1.ScriptHandler) handlerType_; } return com.google.appengine.v1.ScriptHandler.getDefaultInstance(); } /** * * *
   * 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; */ @java.lang.Override public com.google.appengine.v1.ScriptHandlerOrBuilder getScriptOrBuilder() { if (handlerTypeCase_ == 3) { return (com.google.appengine.v1.ScriptHandler) handlerType_; } return com.google.appengine.v1.ScriptHandler.getDefaultInstance(); } public static final int API_ENDPOINT_FIELD_NUMBER = 4; /** * * *
   * Uses API Endpoints to handle requests.
   * 
* * .google.appengine.v1.ApiEndpointHandler api_endpoint = 4; * * @return Whether the apiEndpoint field is set. */ @java.lang.Override public boolean hasApiEndpoint() { return handlerTypeCase_ == 4; } /** * * *
   * Uses API Endpoints to handle requests.
   * 
* * .google.appengine.v1.ApiEndpointHandler api_endpoint = 4; * * @return The apiEndpoint. */ @java.lang.Override public com.google.appengine.v1.ApiEndpointHandler getApiEndpoint() { if (handlerTypeCase_ == 4) { return (com.google.appengine.v1.ApiEndpointHandler) handlerType_; } return com.google.appengine.v1.ApiEndpointHandler.getDefaultInstance(); } /** * * *
   * Uses API Endpoints to handle requests.
   * 
* * .google.appengine.v1.ApiEndpointHandler api_endpoint = 4; */ @java.lang.Override public com.google.appengine.v1.ApiEndpointHandlerOrBuilder getApiEndpointOrBuilder() { if (handlerTypeCase_ == 4) { return (com.google.appengine.v1.ApiEndpointHandler) handlerType_; } return com.google.appengine.v1.ApiEndpointHandler.getDefaultInstance(); } public static final int SECURITY_LEVEL_FIELD_NUMBER = 5; private int securityLevel_ = 0; /** * * *
   * Security (HTTPS) enforcement for this URL.
   * 
* * .google.appengine.v1.SecurityLevel security_level = 5; * * @return The enum numeric value on the wire for securityLevel. */ @java.lang.Override public int getSecurityLevelValue() { return securityLevel_; } /** * * *
   * Security (HTTPS) enforcement for this URL.
   * 
* * .google.appengine.v1.SecurityLevel security_level = 5; * * @return The securityLevel. */ @java.lang.Override public com.google.appengine.v1.SecurityLevel getSecurityLevel() { com.google.appengine.v1.SecurityLevel result = com.google.appengine.v1.SecurityLevel.forNumber(securityLevel_); return result == null ? com.google.appengine.v1.SecurityLevel.UNRECOGNIZED : result; } public static final int LOGIN_FIELD_NUMBER = 6; private int login_ = 0; /** * * *
   * 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; * * @return The enum numeric value on the wire for login. */ @java.lang.Override public int getLoginValue() { return login_; } /** * * *
   * 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; * * @return The login. */ @java.lang.Override public com.google.appengine.v1.LoginRequirement getLogin() { com.google.appengine.v1.LoginRequirement result = com.google.appengine.v1.LoginRequirement.forNumber(login_); return result == null ? com.google.appengine.v1.LoginRequirement.UNRECOGNIZED : result; } public static final int AUTH_FAIL_ACTION_FIELD_NUMBER = 7; private int authFailAction_ = 0; /** * * *
   * Action to take when users access resources that require
   * authentication. Defaults to `redirect`.
   * 
* * .google.appengine.v1.AuthFailAction auth_fail_action = 7; * * @return The enum numeric value on the wire for authFailAction. */ @java.lang.Override public int getAuthFailActionValue() { return authFailAction_; } /** * * *
   * Action to take when users access resources that require
   * authentication. Defaults to `redirect`.
   * 
* * .google.appengine.v1.AuthFailAction auth_fail_action = 7; * * @return The authFailAction. */ @java.lang.Override public com.google.appengine.v1.AuthFailAction getAuthFailAction() { com.google.appengine.v1.AuthFailAction result = com.google.appengine.v1.AuthFailAction.forNumber(authFailAction_); return result == null ? com.google.appengine.v1.AuthFailAction.UNRECOGNIZED : result; } public static final int REDIRECT_HTTP_RESPONSE_CODE_FIELD_NUMBER = 8; private int redirectHttpResponseCode_ = 0; /** * * *
   * `30x` code to use when performing redirects for the `secure` field.
   * Defaults to `302`.
   * 
* * .google.appengine.v1.UrlMap.RedirectHttpResponseCode redirect_http_response_code = 8; * * * @return The enum numeric value on the wire for redirectHttpResponseCode. */ @java.lang.Override public int getRedirectHttpResponseCodeValue() { return redirectHttpResponseCode_; } /** * * *
   * `30x` code to use when performing redirects for the `secure` field.
   * Defaults to `302`.
   * 
* * .google.appengine.v1.UrlMap.RedirectHttpResponseCode redirect_http_response_code = 8; * * * @return The redirectHttpResponseCode. */ @java.lang.Override public com.google.appengine.v1.UrlMap.RedirectHttpResponseCode getRedirectHttpResponseCode() { com.google.appengine.v1.UrlMap.RedirectHttpResponseCode result = com.google.appengine.v1.UrlMap.RedirectHttpResponseCode.forNumber( redirectHttpResponseCode_); return result == null ? com.google.appengine.v1.UrlMap.RedirectHttpResponseCode.UNRECOGNIZED : result; } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(urlRegex_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, urlRegex_); } if (handlerTypeCase_ == 2) { output.writeMessage(2, (com.google.appengine.v1.StaticFilesHandler) handlerType_); } if (handlerTypeCase_ == 3) { output.writeMessage(3, (com.google.appengine.v1.ScriptHandler) handlerType_); } if (handlerTypeCase_ == 4) { output.writeMessage(4, (com.google.appengine.v1.ApiEndpointHandler) handlerType_); } if (securityLevel_ != com.google.appengine.v1.SecurityLevel.SECURE_UNSPECIFIED.getNumber()) { output.writeEnum(5, securityLevel_); } if (login_ != com.google.appengine.v1.LoginRequirement.LOGIN_UNSPECIFIED.getNumber()) { output.writeEnum(6, login_); } if (authFailAction_ != com.google.appengine.v1.AuthFailAction.AUTH_FAIL_ACTION_UNSPECIFIED.getNumber()) { output.writeEnum(7, authFailAction_); } if (redirectHttpResponseCode_ != com.google.appengine.v1.UrlMap.RedirectHttpResponseCode .REDIRECT_HTTP_RESPONSE_CODE_UNSPECIFIED .getNumber()) { output.writeEnum(8, redirectHttpResponseCode_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(urlRegex_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, urlRegex_); } if (handlerTypeCase_ == 2) { size += com.google.protobuf.CodedOutputStream.computeMessageSize( 2, (com.google.appengine.v1.StaticFilesHandler) handlerType_); } if (handlerTypeCase_ == 3) { size += com.google.protobuf.CodedOutputStream.computeMessageSize( 3, (com.google.appengine.v1.ScriptHandler) handlerType_); } if (handlerTypeCase_ == 4) { size += com.google.protobuf.CodedOutputStream.computeMessageSize( 4, (com.google.appengine.v1.ApiEndpointHandler) handlerType_); } if (securityLevel_ != com.google.appengine.v1.SecurityLevel.SECURE_UNSPECIFIED.getNumber()) { size += com.google.protobuf.CodedOutputStream.computeEnumSize(5, securityLevel_); } if (login_ != com.google.appengine.v1.LoginRequirement.LOGIN_UNSPECIFIED.getNumber()) { size += com.google.protobuf.CodedOutputStream.computeEnumSize(6, login_); } if (authFailAction_ != com.google.appengine.v1.AuthFailAction.AUTH_FAIL_ACTION_UNSPECIFIED.getNumber()) { size += com.google.protobuf.CodedOutputStream.computeEnumSize(7, authFailAction_); } if (redirectHttpResponseCode_ != com.google.appengine.v1.UrlMap.RedirectHttpResponseCode .REDIRECT_HTTP_RESPONSE_CODE_UNSPECIFIED .getNumber()) { size += com.google.protobuf.CodedOutputStream.computeEnumSize(8, redirectHttpResponseCode_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.google.appengine.v1.UrlMap)) { return super.equals(obj); } com.google.appengine.v1.UrlMap other = (com.google.appengine.v1.UrlMap) obj; if (!getUrlRegex().equals(other.getUrlRegex())) return false; if (securityLevel_ != other.securityLevel_) return false; if (login_ != other.login_) return false; if (authFailAction_ != other.authFailAction_) return false; if (redirectHttpResponseCode_ != other.redirectHttpResponseCode_) return false; if (!getHandlerTypeCase().equals(other.getHandlerTypeCase())) return false; switch (handlerTypeCase_) { case 2: if (!getStaticFiles().equals(other.getStaticFiles())) return false; break; case 3: if (!getScript().equals(other.getScript())) return false; break; case 4: if (!getApiEndpoint().equals(other.getApiEndpoint())) return false; break; case 0: default: } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + URL_REGEX_FIELD_NUMBER; hash = (53 * hash) + getUrlRegex().hashCode(); hash = (37 * hash) + SECURITY_LEVEL_FIELD_NUMBER; hash = (53 * hash) + securityLevel_; hash = (37 * hash) + LOGIN_FIELD_NUMBER; hash = (53 * hash) + login_; hash = (37 * hash) + AUTH_FAIL_ACTION_FIELD_NUMBER; hash = (53 * hash) + authFailAction_; hash = (37 * hash) + REDIRECT_HTTP_RESPONSE_CODE_FIELD_NUMBER; hash = (53 * hash) + redirectHttpResponseCode_; switch (handlerTypeCase_) { case 2: hash = (37 * hash) + STATIC_FILES_FIELD_NUMBER; hash = (53 * hash) + getStaticFiles().hashCode(); break; case 3: hash = (37 * hash) + SCRIPT_FIELD_NUMBER; hash = (53 * hash) + getScript().hashCode(); break; case 4: hash = (37 * hash) + API_ENDPOINT_FIELD_NUMBER; hash = (53 * hash) + getApiEndpoint().hashCode(); break; case 0: default: } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.appengine.v1.UrlMap parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.appengine.v1.UrlMap parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.appengine.v1.UrlMap parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.appengine.v1.UrlMap parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.appengine.v1.UrlMap parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.appengine.v1.UrlMap parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.appengine.v1.UrlMap parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static com.google.appengine.v1.UrlMap parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException( PARSER, input, extensionRegistry); } public static com.google.appengine.v1.UrlMap parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.appengine.v1.UrlMap parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( PARSER, input, extensionRegistry); } public static com.google.appengine.v1.UrlMap parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static com.google.appengine.v1.UrlMap parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException( PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(com.google.appengine.v1.UrlMap prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * * *
   * 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 {@code google.appengine.v1.UrlMap} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.appengine.v1.UrlMap) com.google.appengine.v1.UrlMapOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.appengine.v1.AppYamlProto .internal_static_google_appengine_v1_UrlMap_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.appengine.v1.AppYamlProto .internal_static_google_appengine_v1_UrlMap_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.appengine.v1.UrlMap.class, com.google.appengine.v1.UrlMap.Builder.class); } // Construct using com.google.appengine.v1.UrlMap.newBuilder() private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; urlRegex_ = ""; if (staticFilesBuilder_ != null) { staticFilesBuilder_.clear(); } if (scriptBuilder_ != null) { scriptBuilder_.clear(); } if (apiEndpointBuilder_ != null) { apiEndpointBuilder_.clear(); } securityLevel_ = 0; login_ = 0; authFailAction_ = 0; redirectHttpResponseCode_ = 0; handlerTypeCase_ = 0; handlerType_ = null; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.appengine.v1.AppYamlProto .internal_static_google_appengine_v1_UrlMap_descriptor; } @java.lang.Override public com.google.appengine.v1.UrlMap getDefaultInstanceForType() { return com.google.appengine.v1.UrlMap.getDefaultInstance(); } @java.lang.Override public com.google.appengine.v1.UrlMap build() { com.google.appengine.v1.UrlMap result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.appengine.v1.UrlMap buildPartial() { com.google.appengine.v1.UrlMap result = new com.google.appengine.v1.UrlMap(this); if (bitField0_ != 0) { buildPartial0(result); } buildPartialOneofs(result); onBuilt(); return result; } private void buildPartial0(com.google.appengine.v1.UrlMap result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.urlRegex_ = urlRegex_; } if (((from_bitField0_ & 0x00000010) != 0)) { result.securityLevel_ = securityLevel_; } if (((from_bitField0_ & 0x00000020) != 0)) { result.login_ = login_; } if (((from_bitField0_ & 0x00000040) != 0)) { result.authFailAction_ = authFailAction_; } if (((from_bitField0_ & 0x00000080) != 0)) { result.redirectHttpResponseCode_ = redirectHttpResponseCode_; } } private void buildPartialOneofs(com.google.appengine.v1.UrlMap result) { result.handlerTypeCase_ = handlerTypeCase_; result.handlerType_ = this.handlerType_; if (handlerTypeCase_ == 2 && staticFilesBuilder_ != null) { result.handlerType_ = staticFilesBuilder_.build(); } if (handlerTypeCase_ == 3 && scriptBuilder_ != null) { result.handlerType_ = scriptBuilder_.build(); } if (handlerTypeCase_ == 4 && apiEndpointBuilder_ != null) { result.handlerType_ = apiEndpointBuilder_.build(); } } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.appengine.v1.UrlMap) { return mergeFrom((com.google.appengine.v1.UrlMap) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.appengine.v1.UrlMap other) { if (other == com.google.appengine.v1.UrlMap.getDefaultInstance()) return this; if (!other.getUrlRegex().isEmpty()) { urlRegex_ = other.urlRegex_; bitField0_ |= 0x00000001; onChanged(); } if (other.securityLevel_ != 0) { setSecurityLevelValue(other.getSecurityLevelValue()); } if (other.login_ != 0) { setLoginValue(other.getLoginValue()); } if (other.authFailAction_ != 0) { setAuthFailActionValue(other.getAuthFailActionValue()); } if (other.redirectHttpResponseCode_ != 0) { setRedirectHttpResponseCodeValue(other.getRedirectHttpResponseCodeValue()); } switch (other.getHandlerTypeCase()) { case STATIC_FILES: { mergeStaticFiles(other.getStaticFiles()); break; } case SCRIPT: { mergeScript(other.getScript()); break; } case API_ENDPOINT: { mergeApiEndpoint(other.getApiEndpoint()); break; } case HANDLERTYPE_NOT_SET: { break; } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { urlRegex_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000001; break; } // case 10 case 18: { input.readMessage(getStaticFilesFieldBuilder().getBuilder(), extensionRegistry); handlerTypeCase_ = 2; break; } // case 18 case 26: { input.readMessage(getScriptFieldBuilder().getBuilder(), extensionRegistry); handlerTypeCase_ = 3; break; } // case 26 case 34: { input.readMessage(getApiEndpointFieldBuilder().getBuilder(), extensionRegistry); handlerTypeCase_ = 4; break; } // case 34 case 40: { securityLevel_ = input.readEnum(); bitField0_ |= 0x00000010; break; } // case 40 case 48: { login_ = input.readEnum(); bitField0_ |= 0x00000020; break; } // case 48 case 56: { authFailAction_ = input.readEnum(); bitField0_ |= 0x00000040; break; } // case 56 case 64: { redirectHttpResponseCode_ = input.readEnum(); bitField0_ |= 0x00000080; break; } // case 64 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int handlerTypeCase_ = 0; private java.lang.Object handlerType_; public HandlerTypeCase getHandlerTypeCase() { return HandlerTypeCase.forNumber(handlerTypeCase_); } public Builder clearHandlerType() { handlerTypeCase_ = 0; handlerType_ = null; onChanged(); return this; } private int bitField0_; private java.lang.Object urlRegex_ = ""; /** * * *
     * 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; * * @return The urlRegex. */ public java.lang.String getUrlRegex() { java.lang.Object ref = urlRegex_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); urlRegex_ = s; return s; } else { return (java.lang.String) ref; } } /** * * *
     * 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; * * @return The bytes for urlRegex. */ public com.google.protobuf.ByteString getUrlRegexBytes() { java.lang.Object ref = urlRegex_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); urlRegex_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
     * 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; * * @param value The urlRegex to set. * @return This builder for chaining. */ public Builder setUrlRegex(java.lang.String value) { if (value == null) { throw new NullPointerException(); } urlRegex_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** * * *
     * 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; * * @return This builder for chaining. */ public Builder clearUrlRegex() { urlRegex_ = getDefaultInstance().getUrlRegex(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** * * *
     * 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; * * @param value The bytes for urlRegex to set. * @return This builder for chaining. */ public Builder setUrlRegexBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); urlRegex_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } private com.google.protobuf.SingleFieldBuilderV3< com.google.appengine.v1.StaticFilesHandler, com.google.appengine.v1.StaticFilesHandler.Builder, com.google.appengine.v1.StaticFilesHandlerOrBuilder> staticFilesBuilder_; /** * * *
     * Returns the contents of a file, such as an image, as the response.
     * 
* * .google.appengine.v1.StaticFilesHandler static_files = 2; * * @return Whether the staticFiles field is set. */ @java.lang.Override public boolean hasStaticFiles() { return handlerTypeCase_ == 2; } /** * * *
     * Returns the contents of a file, such as an image, as the response.
     * 
* * .google.appengine.v1.StaticFilesHandler static_files = 2; * * @return The staticFiles. */ @java.lang.Override public com.google.appengine.v1.StaticFilesHandler getStaticFiles() { if (staticFilesBuilder_ == null) { if (handlerTypeCase_ == 2) { return (com.google.appengine.v1.StaticFilesHandler) handlerType_; } return com.google.appengine.v1.StaticFilesHandler.getDefaultInstance(); } else { if (handlerTypeCase_ == 2) { return staticFilesBuilder_.getMessage(); } return com.google.appengine.v1.StaticFilesHandler.getDefaultInstance(); } } /** * * *
     * Returns the contents of a file, such as an image, as the response.
     * 
* * .google.appengine.v1.StaticFilesHandler static_files = 2; */ public Builder setStaticFiles(com.google.appengine.v1.StaticFilesHandler value) { if (staticFilesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } handlerType_ = value; onChanged(); } else { staticFilesBuilder_.setMessage(value); } handlerTypeCase_ = 2; return this; } /** * * *
     * Returns the contents of a file, such as an image, as the response.
     * 
* * .google.appengine.v1.StaticFilesHandler static_files = 2; */ public Builder setStaticFiles( com.google.appengine.v1.StaticFilesHandler.Builder builderForValue) { if (staticFilesBuilder_ == null) { handlerType_ = builderForValue.build(); onChanged(); } else { staticFilesBuilder_.setMessage(builderForValue.build()); } handlerTypeCase_ = 2; return this; } /** * * *
     * Returns the contents of a file, such as an image, as the response.
     * 
* * .google.appengine.v1.StaticFilesHandler static_files = 2; */ public Builder mergeStaticFiles(com.google.appengine.v1.StaticFilesHandler value) { if (staticFilesBuilder_ == null) { if (handlerTypeCase_ == 2 && handlerType_ != com.google.appengine.v1.StaticFilesHandler.getDefaultInstance()) { handlerType_ = com.google.appengine.v1.StaticFilesHandler.newBuilder( (com.google.appengine.v1.StaticFilesHandler) handlerType_) .mergeFrom(value) .buildPartial(); } else { handlerType_ = value; } onChanged(); } else { if (handlerTypeCase_ == 2) { staticFilesBuilder_.mergeFrom(value); } else { staticFilesBuilder_.setMessage(value); } } handlerTypeCase_ = 2; return this; } /** * * *
     * Returns the contents of a file, such as an image, as the response.
     * 
* * .google.appengine.v1.StaticFilesHandler static_files = 2; */ public Builder clearStaticFiles() { if (staticFilesBuilder_ == null) { if (handlerTypeCase_ == 2) { handlerTypeCase_ = 0; handlerType_ = null; onChanged(); } } else { if (handlerTypeCase_ == 2) { handlerTypeCase_ = 0; handlerType_ = null; } staticFilesBuilder_.clear(); } return this; } /** * * *
     * Returns the contents of a file, such as an image, as the response.
     * 
* * .google.appengine.v1.StaticFilesHandler static_files = 2; */ public com.google.appengine.v1.StaticFilesHandler.Builder getStaticFilesBuilder() { return getStaticFilesFieldBuilder().getBuilder(); } /** * * *
     * Returns the contents of a file, such as an image, as the response.
     * 
* * .google.appengine.v1.StaticFilesHandler static_files = 2; */ @java.lang.Override public com.google.appengine.v1.StaticFilesHandlerOrBuilder getStaticFilesOrBuilder() { if ((handlerTypeCase_ == 2) && (staticFilesBuilder_ != null)) { return staticFilesBuilder_.getMessageOrBuilder(); } else { if (handlerTypeCase_ == 2) { return (com.google.appengine.v1.StaticFilesHandler) handlerType_; } return com.google.appengine.v1.StaticFilesHandler.getDefaultInstance(); } } /** * * *
     * Returns the contents of a file, such as an image, as the response.
     * 
* * .google.appengine.v1.StaticFilesHandler static_files = 2; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.appengine.v1.StaticFilesHandler, com.google.appengine.v1.StaticFilesHandler.Builder, com.google.appengine.v1.StaticFilesHandlerOrBuilder> getStaticFilesFieldBuilder() { if (staticFilesBuilder_ == null) { if (!(handlerTypeCase_ == 2)) { handlerType_ = com.google.appengine.v1.StaticFilesHandler.getDefaultInstance(); } staticFilesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.appengine.v1.StaticFilesHandler, com.google.appengine.v1.StaticFilesHandler.Builder, com.google.appengine.v1.StaticFilesHandlerOrBuilder>( (com.google.appengine.v1.StaticFilesHandler) handlerType_, getParentForChildren(), isClean()); handlerType_ = null; } handlerTypeCase_ = 2; onChanged(); return staticFilesBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< com.google.appengine.v1.ScriptHandler, com.google.appengine.v1.ScriptHandler.Builder, com.google.appengine.v1.ScriptHandlerOrBuilder> scriptBuilder_; /** * * *
     * 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; * * @return Whether the script field is set. */ @java.lang.Override public boolean hasScript() { return handlerTypeCase_ == 3; } /** * * *
     * 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; * * @return The script. */ @java.lang.Override public com.google.appengine.v1.ScriptHandler getScript() { if (scriptBuilder_ == null) { if (handlerTypeCase_ == 3) { return (com.google.appengine.v1.ScriptHandler) handlerType_; } return com.google.appengine.v1.ScriptHandler.getDefaultInstance(); } else { if (handlerTypeCase_ == 3) { return scriptBuilder_.getMessage(); } return com.google.appengine.v1.ScriptHandler.getDefaultInstance(); } } /** * * *
     * 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; */ public Builder setScript(com.google.appengine.v1.ScriptHandler value) { if (scriptBuilder_ == null) { if (value == null) { throw new NullPointerException(); } handlerType_ = value; onChanged(); } else { scriptBuilder_.setMessage(value); } handlerTypeCase_ = 3; return this; } /** * * *
     * 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; */ public Builder setScript(com.google.appengine.v1.ScriptHandler.Builder builderForValue) { if (scriptBuilder_ == null) { handlerType_ = builderForValue.build(); onChanged(); } else { scriptBuilder_.setMessage(builderForValue.build()); } handlerTypeCase_ = 3; return this; } /** * * *
     * 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; */ public Builder mergeScript(com.google.appengine.v1.ScriptHandler value) { if (scriptBuilder_ == null) { if (handlerTypeCase_ == 3 && handlerType_ != com.google.appengine.v1.ScriptHandler.getDefaultInstance()) { handlerType_ = com.google.appengine.v1.ScriptHandler.newBuilder( (com.google.appengine.v1.ScriptHandler) handlerType_) .mergeFrom(value) .buildPartial(); } else { handlerType_ = value; } onChanged(); } else { if (handlerTypeCase_ == 3) { scriptBuilder_.mergeFrom(value); } else { scriptBuilder_.setMessage(value); } } handlerTypeCase_ = 3; return this; } /** * * *
     * 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; */ public Builder clearScript() { if (scriptBuilder_ == null) { if (handlerTypeCase_ == 3) { handlerTypeCase_ = 0; handlerType_ = null; onChanged(); } } else { if (handlerTypeCase_ == 3) { handlerTypeCase_ = 0; handlerType_ = null; } scriptBuilder_.clear(); } return this; } /** * * *
     * 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; */ public com.google.appengine.v1.ScriptHandler.Builder getScriptBuilder() { return getScriptFieldBuilder().getBuilder(); } /** * * *
     * 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; */ @java.lang.Override public com.google.appengine.v1.ScriptHandlerOrBuilder getScriptOrBuilder() { if ((handlerTypeCase_ == 3) && (scriptBuilder_ != null)) { return scriptBuilder_.getMessageOrBuilder(); } else { if (handlerTypeCase_ == 3) { return (com.google.appengine.v1.ScriptHandler) handlerType_; } return com.google.appengine.v1.ScriptHandler.getDefaultInstance(); } } /** * * *
     * 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; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.appengine.v1.ScriptHandler, com.google.appengine.v1.ScriptHandler.Builder, com.google.appengine.v1.ScriptHandlerOrBuilder> getScriptFieldBuilder() { if (scriptBuilder_ == null) { if (!(handlerTypeCase_ == 3)) { handlerType_ = com.google.appengine.v1.ScriptHandler.getDefaultInstance(); } scriptBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.appengine.v1.ScriptHandler, com.google.appengine.v1.ScriptHandler.Builder, com.google.appengine.v1.ScriptHandlerOrBuilder>( (com.google.appengine.v1.ScriptHandler) handlerType_, getParentForChildren(), isClean()); handlerType_ = null; } handlerTypeCase_ = 3; onChanged(); return scriptBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< com.google.appengine.v1.ApiEndpointHandler, com.google.appengine.v1.ApiEndpointHandler.Builder, com.google.appengine.v1.ApiEndpointHandlerOrBuilder> apiEndpointBuilder_; /** * * *
     * Uses API Endpoints to handle requests.
     * 
* * .google.appengine.v1.ApiEndpointHandler api_endpoint = 4; * * @return Whether the apiEndpoint field is set. */ @java.lang.Override public boolean hasApiEndpoint() { return handlerTypeCase_ == 4; } /** * * *
     * Uses API Endpoints to handle requests.
     * 
* * .google.appengine.v1.ApiEndpointHandler api_endpoint = 4; * * @return The apiEndpoint. */ @java.lang.Override public com.google.appengine.v1.ApiEndpointHandler getApiEndpoint() { if (apiEndpointBuilder_ == null) { if (handlerTypeCase_ == 4) { return (com.google.appengine.v1.ApiEndpointHandler) handlerType_; } return com.google.appengine.v1.ApiEndpointHandler.getDefaultInstance(); } else { if (handlerTypeCase_ == 4) { return apiEndpointBuilder_.getMessage(); } return com.google.appengine.v1.ApiEndpointHandler.getDefaultInstance(); } } /** * * *
     * Uses API Endpoints to handle requests.
     * 
* * .google.appengine.v1.ApiEndpointHandler api_endpoint = 4; */ public Builder setApiEndpoint(com.google.appengine.v1.ApiEndpointHandler value) { if (apiEndpointBuilder_ == null) { if (value == null) { throw new NullPointerException(); } handlerType_ = value; onChanged(); } else { apiEndpointBuilder_.setMessage(value); } handlerTypeCase_ = 4; return this; } /** * * *
     * Uses API Endpoints to handle requests.
     * 
* * .google.appengine.v1.ApiEndpointHandler api_endpoint = 4; */ public Builder setApiEndpoint( com.google.appengine.v1.ApiEndpointHandler.Builder builderForValue) { if (apiEndpointBuilder_ == null) { handlerType_ = builderForValue.build(); onChanged(); } else { apiEndpointBuilder_.setMessage(builderForValue.build()); } handlerTypeCase_ = 4; return this; } /** * * *
     * Uses API Endpoints to handle requests.
     * 
* * .google.appengine.v1.ApiEndpointHandler api_endpoint = 4; */ public Builder mergeApiEndpoint(com.google.appengine.v1.ApiEndpointHandler value) { if (apiEndpointBuilder_ == null) { if (handlerTypeCase_ == 4 && handlerType_ != com.google.appengine.v1.ApiEndpointHandler.getDefaultInstance()) { handlerType_ = com.google.appengine.v1.ApiEndpointHandler.newBuilder( (com.google.appengine.v1.ApiEndpointHandler) handlerType_) .mergeFrom(value) .buildPartial(); } else { handlerType_ = value; } onChanged(); } else { if (handlerTypeCase_ == 4) { apiEndpointBuilder_.mergeFrom(value); } else { apiEndpointBuilder_.setMessage(value); } } handlerTypeCase_ = 4; return this; } /** * * *
     * Uses API Endpoints to handle requests.
     * 
* * .google.appengine.v1.ApiEndpointHandler api_endpoint = 4; */ public Builder clearApiEndpoint() { if (apiEndpointBuilder_ == null) { if (handlerTypeCase_ == 4) { handlerTypeCase_ = 0; handlerType_ = null; onChanged(); } } else { if (handlerTypeCase_ == 4) { handlerTypeCase_ = 0; handlerType_ = null; } apiEndpointBuilder_.clear(); } return this; } /** * * *
     * Uses API Endpoints to handle requests.
     * 
* * .google.appengine.v1.ApiEndpointHandler api_endpoint = 4; */ public com.google.appengine.v1.ApiEndpointHandler.Builder getApiEndpointBuilder() { return getApiEndpointFieldBuilder().getBuilder(); } /** * * *
     * Uses API Endpoints to handle requests.
     * 
* * .google.appengine.v1.ApiEndpointHandler api_endpoint = 4; */ @java.lang.Override public com.google.appengine.v1.ApiEndpointHandlerOrBuilder getApiEndpointOrBuilder() { if ((handlerTypeCase_ == 4) && (apiEndpointBuilder_ != null)) { return apiEndpointBuilder_.getMessageOrBuilder(); } else { if (handlerTypeCase_ == 4) { return (com.google.appengine.v1.ApiEndpointHandler) handlerType_; } return com.google.appengine.v1.ApiEndpointHandler.getDefaultInstance(); } } /** * * *
     * Uses API Endpoints to handle requests.
     * 
* * .google.appengine.v1.ApiEndpointHandler api_endpoint = 4; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.appengine.v1.ApiEndpointHandler, com.google.appengine.v1.ApiEndpointHandler.Builder, com.google.appengine.v1.ApiEndpointHandlerOrBuilder> getApiEndpointFieldBuilder() { if (apiEndpointBuilder_ == null) { if (!(handlerTypeCase_ == 4)) { handlerType_ = com.google.appengine.v1.ApiEndpointHandler.getDefaultInstance(); } apiEndpointBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.appengine.v1.ApiEndpointHandler, com.google.appengine.v1.ApiEndpointHandler.Builder, com.google.appengine.v1.ApiEndpointHandlerOrBuilder>( (com.google.appengine.v1.ApiEndpointHandler) handlerType_, getParentForChildren(), isClean()); handlerType_ = null; } handlerTypeCase_ = 4; onChanged(); return apiEndpointBuilder_; } private int securityLevel_ = 0; /** * * *
     * Security (HTTPS) enforcement for this URL.
     * 
* * .google.appengine.v1.SecurityLevel security_level = 5; * * @return The enum numeric value on the wire for securityLevel. */ @java.lang.Override public int getSecurityLevelValue() { return securityLevel_; } /** * * *
     * Security (HTTPS) enforcement for this URL.
     * 
* * .google.appengine.v1.SecurityLevel security_level = 5; * * @param value The enum numeric value on the wire for securityLevel to set. * @return This builder for chaining. */ public Builder setSecurityLevelValue(int value) { securityLevel_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** * * *
     * Security (HTTPS) enforcement for this URL.
     * 
* * .google.appengine.v1.SecurityLevel security_level = 5; * * @return The securityLevel. */ @java.lang.Override public com.google.appengine.v1.SecurityLevel getSecurityLevel() { com.google.appengine.v1.SecurityLevel result = com.google.appengine.v1.SecurityLevel.forNumber(securityLevel_); return result == null ? com.google.appengine.v1.SecurityLevel.UNRECOGNIZED : result; } /** * * *
     * Security (HTTPS) enforcement for this URL.
     * 
* * .google.appengine.v1.SecurityLevel security_level = 5; * * @param value The securityLevel to set. * @return This builder for chaining. */ public Builder setSecurityLevel(com.google.appengine.v1.SecurityLevel value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000010; securityLevel_ = value.getNumber(); onChanged(); return this; } /** * * *
     * Security (HTTPS) enforcement for this URL.
     * 
* * .google.appengine.v1.SecurityLevel security_level = 5; * * @return This builder for chaining. */ public Builder clearSecurityLevel() { bitField0_ = (bitField0_ & ~0x00000010); securityLevel_ = 0; onChanged(); return this; } private int login_ = 0; /** * * *
     * 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; * * @return The enum numeric value on the wire for login. */ @java.lang.Override public int getLoginValue() { return login_; } /** * * *
     * 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; * * @param value The enum numeric value on the wire for login to set. * @return This builder for chaining. */ public Builder setLoginValue(int value) { login_ = value; bitField0_ |= 0x00000020; onChanged(); return this; } /** * * *
     * 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; * * @return The login. */ @java.lang.Override public com.google.appengine.v1.LoginRequirement getLogin() { com.google.appengine.v1.LoginRequirement result = com.google.appengine.v1.LoginRequirement.forNumber(login_); return result == null ? com.google.appengine.v1.LoginRequirement.UNRECOGNIZED : result; } /** * * *
     * 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; * * @param value The login to set. * @return This builder for chaining. */ public Builder setLogin(com.google.appengine.v1.LoginRequirement value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000020; login_ = value.getNumber(); onChanged(); return this; } /** * * *
     * 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; * * @return This builder for chaining. */ public Builder clearLogin() { bitField0_ = (bitField0_ & ~0x00000020); login_ = 0; onChanged(); return this; } private int authFailAction_ = 0; /** * * *
     * Action to take when users access resources that require
     * authentication. Defaults to `redirect`.
     * 
* * .google.appengine.v1.AuthFailAction auth_fail_action = 7; * * @return The enum numeric value on the wire for authFailAction. */ @java.lang.Override public int getAuthFailActionValue() { return authFailAction_; } /** * * *
     * Action to take when users access resources that require
     * authentication. Defaults to `redirect`.
     * 
* * .google.appengine.v1.AuthFailAction auth_fail_action = 7; * * @param value The enum numeric value on the wire for authFailAction to set. * @return This builder for chaining. */ public Builder setAuthFailActionValue(int value) { authFailAction_ = value; bitField0_ |= 0x00000040; onChanged(); return this; } /** * * *
     * Action to take when users access resources that require
     * authentication. Defaults to `redirect`.
     * 
* * .google.appengine.v1.AuthFailAction auth_fail_action = 7; * * @return The authFailAction. */ @java.lang.Override public com.google.appengine.v1.AuthFailAction getAuthFailAction() { com.google.appengine.v1.AuthFailAction result = com.google.appengine.v1.AuthFailAction.forNumber(authFailAction_); return result == null ? com.google.appengine.v1.AuthFailAction.UNRECOGNIZED : result; } /** * * *
     * Action to take when users access resources that require
     * authentication. Defaults to `redirect`.
     * 
* * .google.appengine.v1.AuthFailAction auth_fail_action = 7; * * @param value The authFailAction to set. * @return This builder for chaining. */ public Builder setAuthFailAction(com.google.appengine.v1.AuthFailAction value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000040; authFailAction_ = value.getNumber(); onChanged(); return this; } /** * * *
     * Action to take when users access resources that require
     * authentication. Defaults to `redirect`.
     * 
* * .google.appengine.v1.AuthFailAction auth_fail_action = 7; * * @return This builder for chaining. */ public Builder clearAuthFailAction() { bitField0_ = (bitField0_ & ~0x00000040); authFailAction_ = 0; onChanged(); return this; } private int redirectHttpResponseCode_ = 0; /** * * *
     * `30x` code to use when performing redirects for the `secure` field.
     * Defaults to `302`.
     * 
* * .google.appengine.v1.UrlMap.RedirectHttpResponseCode redirect_http_response_code = 8; * * * @return The enum numeric value on the wire for redirectHttpResponseCode. */ @java.lang.Override public int getRedirectHttpResponseCodeValue() { return redirectHttpResponseCode_; } /** * * *
     * `30x` code to use when performing redirects for the `secure` field.
     * Defaults to `302`.
     * 
* * .google.appengine.v1.UrlMap.RedirectHttpResponseCode redirect_http_response_code = 8; * * * @param value The enum numeric value on the wire for redirectHttpResponseCode to set. * @return This builder for chaining. */ public Builder setRedirectHttpResponseCodeValue(int value) { redirectHttpResponseCode_ = value; bitField0_ |= 0x00000080; onChanged(); return this; } /** * * *
     * `30x` code to use when performing redirects for the `secure` field.
     * Defaults to `302`.
     * 
* * .google.appengine.v1.UrlMap.RedirectHttpResponseCode redirect_http_response_code = 8; * * * @return The redirectHttpResponseCode. */ @java.lang.Override public com.google.appengine.v1.UrlMap.RedirectHttpResponseCode getRedirectHttpResponseCode() { com.google.appengine.v1.UrlMap.RedirectHttpResponseCode result = com.google.appengine.v1.UrlMap.RedirectHttpResponseCode.forNumber( redirectHttpResponseCode_); return result == null ? com.google.appengine.v1.UrlMap.RedirectHttpResponseCode.UNRECOGNIZED : result; } /** * * *
     * `30x` code to use when performing redirects for the `secure` field.
     * Defaults to `302`.
     * 
* * .google.appengine.v1.UrlMap.RedirectHttpResponseCode redirect_http_response_code = 8; * * * @param value The redirectHttpResponseCode to set. * @return This builder for chaining. */ public Builder setRedirectHttpResponseCode( com.google.appengine.v1.UrlMap.RedirectHttpResponseCode value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000080; redirectHttpResponseCode_ = value.getNumber(); onChanged(); return this; } /** * * *
     * `30x` code to use when performing redirects for the `secure` field.
     * Defaults to `302`.
     * 
* * .google.appengine.v1.UrlMap.RedirectHttpResponseCode redirect_http_response_code = 8; * * * @return This builder for chaining. */ public Builder clearRedirectHttpResponseCode() { bitField0_ = (bitField0_ & ~0x00000080); redirectHttpResponseCode_ = 0; onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:google.appengine.v1.UrlMap) } // @@protoc_insertion_point(class_scope:google.appengine.v1.UrlMap) private static final com.google.appengine.v1.UrlMap DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.appengine.v1.UrlMap(); } public static com.google.appengine.v1.UrlMap getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public UrlMap parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public com.google.appengine.v1.UrlMap getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy