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: 0.12.0
Show newest version
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: google/appengine/v1/app_yaml.proto

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 public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private UrlMap( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 10: { java.lang.String s = input.readStringRequireUtf8(); urlRegex_ = s; break; } case 18: { com.google.appengine.v1.StaticFilesHandler.Builder subBuilder = null; if (handlerTypeCase_ == 2) { subBuilder = ((com.google.appengine.v1.StaticFilesHandler) handlerType_).toBuilder(); } handlerType_ = input.readMessage(com.google.appengine.v1.StaticFilesHandler.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((com.google.appengine.v1.StaticFilesHandler) handlerType_); handlerType_ = subBuilder.buildPartial(); } handlerTypeCase_ = 2; break; } case 26: { com.google.appengine.v1.ScriptHandler.Builder subBuilder = null; if (handlerTypeCase_ == 3) { subBuilder = ((com.google.appengine.v1.ScriptHandler) handlerType_).toBuilder(); } handlerType_ = input.readMessage(com.google.appengine.v1.ScriptHandler.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((com.google.appengine.v1.ScriptHandler) handlerType_); handlerType_ = subBuilder.buildPartial(); } handlerTypeCase_ = 3; break; } case 34: { com.google.appengine.v1.ApiEndpointHandler.Builder subBuilder = null; if (handlerTypeCase_ == 4) { subBuilder = ((com.google.appengine.v1.ApiEndpointHandler) handlerType_).toBuilder(); } handlerType_ = input.readMessage(com.google.appengine.v1.ApiEndpointHandler.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((com.google.appengine.v1.ApiEndpointHandler) handlerType_); handlerType_ = subBuilder.buildPartial(); } handlerTypeCase_ = 4; break; } case 40: { int rawValue = input.readEnum(); securityLevel_ = rawValue; break; } case 48: { int rawValue = input.readEnum(); login_ = rawValue; break; } case 56: { int rawValue = input.readEnum(); authFailAction_ = rawValue; break; } case 64: { int rawValue = input.readEnum(); redirectHttpResponseCode_ = rawValue; break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.appengine.v1.AppYamlProto.internal_static_google_appengine_v1_UrlMap_descriptor; } 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; } /** * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static RedirectHttpResponseCode valueOf(int value) { return forNumber(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< RedirectHttpResponseCode> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public RedirectHttpResponseCode findValueByNumber(int number) { return RedirectHttpResponseCode.forNumber(number); } }; public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { 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; private java.lang.Object handlerType_; public enum HandlerTypeCase implements com.google.protobuf.Internal.EnumLite { STATIC_FILES(2), SCRIPT(3), API_ENDPOINT(4), HANDLERTYPE_NOT_SET(0); private final int value; private HandlerTypeCase(int value) { this.value = value; } /** * @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; 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; */ 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; */ 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; */ 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; */ 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; */ 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 request that matches this URL
   * pattern.
   * 
* * .google.appengine.v1.ScriptHandler script = 3; */ public boolean hasScript() { return handlerTypeCase_ == 3; } /** *
   * Executes a script to handle the request that matches this URL
   * pattern.
   * 
* * .google.appengine.v1.ScriptHandler script = 3; */ 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 request that matches this URL
   * pattern.
   * 
* * .google.appengine.v1.ScriptHandler script = 3; */ 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; */ public boolean hasApiEndpoint() { return handlerTypeCase_ == 4; } /** *
   * Uses API Endpoints to handle requests.
   * 
* * .google.appengine.v1.ApiEndpointHandler api_endpoint = 4; */ 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; */ 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_; /** *
   * Security (HTTPS) enforcement for this URL.
   * 
* * .google.appengine.v1.SecurityLevel security_level = 5; */ public int getSecurityLevelValue() { return securityLevel_; } /** *
   * Security (HTTPS) enforcement for this URL.
   * 
* * .google.appengine.v1.SecurityLevel security_level = 5; */ public com.google.appengine.v1.SecurityLevel getSecurityLevel() { com.google.appengine.v1.SecurityLevel result = com.google.appengine.v1.SecurityLevel.valueOf(securityLevel_); return result == null ? com.google.appengine.v1.SecurityLevel.UNRECOGNIZED : result; } public static final int LOGIN_FIELD_NUMBER = 6; private int login_; /** *
   * Level of login required to access this resource.
   * 
* * .google.appengine.v1.LoginRequirement login = 6; */ public int getLoginValue() { return login_; } /** *
   * Level of login required to access this resource.
   * 
* * .google.appengine.v1.LoginRequirement login = 6; */ public com.google.appengine.v1.LoginRequirement getLogin() { com.google.appengine.v1.LoginRequirement result = com.google.appengine.v1.LoginRequirement.valueOf(login_); return result == null ? com.google.appengine.v1.LoginRequirement.UNRECOGNIZED : result; } public static final int AUTH_FAIL_ACTION_FIELD_NUMBER = 7; private int authFailAction_; /** *
   * Action to take when users access resources that require
   * authentication. Defaults to `redirect`.
   * 
* * .google.appengine.v1.AuthFailAction auth_fail_action = 7; */ 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; */ public com.google.appengine.v1.AuthFailAction getAuthFailAction() { com.google.appengine.v1.AuthFailAction result = com.google.appengine.v1.AuthFailAction.valueOf(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_; /** *
   * `30x` code to use when performing redirects for the `secure` field.
   * Defaults to `302`.
   * 
* * .google.appengine.v1.UrlMap.RedirectHttpResponseCode redirect_http_response_code = 8; */ 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; */ public com.google.appengine.v1.UrlMap.RedirectHttpResponseCode getRedirectHttpResponseCode() { com.google.appengine.v1.UrlMap.RedirectHttpResponseCode result = com.google.appengine.v1.UrlMap.RedirectHttpResponseCode.valueOf(redirectHttpResponseCode_); return result == null ? com.google.appengine.v1.UrlMap.RedirectHttpResponseCode.UNRECOGNIZED : result; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!getUrlRegexBytes().isEmpty()) { 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_); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!getUrlRegexBytes().isEmpty()) { 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 += unknownFields.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; boolean result = true; result = result && getUrlRegex() .equals(other.getUrlRegex()); result = result && securityLevel_ == other.securityLevel_; result = result && login_ == other.login_; result = result && authFailAction_ == other.authFailAction_; result = result && redirectHttpResponseCode_ == other.redirectHttpResponseCode_; result = result && getHandlerTypeCase().equals( other.getHandlerTypeCase()); if (!result) return false; switch (handlerTypeCase_) { case 2: result = result && getStaticFiles() .equals(other.getStaticFiles()); break; case 3: result = result && getScript() .equals(other.getScript()); break; case 4: result = result && getApiEndpoint() .equals(other.getApiEndpoint()); break; case 0: default: } result = result && unknownFields.equals(other.unknownFields); return result; } @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) + unknownFields.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); } 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); } 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; } 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() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } public Builder clear() { super.clear(); urlRegex_ = ""; securityLevel_ = 0; login_ = 0; authFailAction_ = 0; redirectHttpResponseCode_ = 0; handlerTypeCase_ = 0; handlerType_ = null; return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.appengine.v1.AppYamlProto.internal_static_google_appengine_v1_UrlMap_descriptor; } public com.google.appengine.v1.UrlMap getDefaultInstanceForType() { return com.google.appengine.v1.UrlMap.getDefaultInstance(); } public com.google.appengine.v1.UrlMap build() { com.google.appengine.v1.UrlMap result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public com.google.appengine.v1.UrlMap buildPartial() { com.google.appengine.v1.UrlMap result = new com.google.appengine.v1.UrlMap(this); result.urlRegex_ = urlRegex_; if (handlerTypeCase_ == 2) { if (staticFilesBuilder_ == null) { result.handlerType_ = handlerType_; } else { result.handlerType_ = staticFilesBuilder_.build(); } } if (handlerTypeCase_ == 3) { if (scriptBuilder_ == null) { result.handlerType_ = handlerType_; } else { result.handlerType_ = scriptBuilder_.build(); } } if (handlerTypeCase_ == 4) { if (apiEndpointBuilder_ == null) { result.handlerType_ = handlerType_; } else { result.handlerType_ = apiEndpointBuilder_.build(); } } result.securityLevel_ = securityLevel_; result.login_ = login_; result.authFailAction_ = authFailAction_; result.redirectHttpResponseCode_ = redirectHttpResponseCode_; result.handlerTypeCase_ = handlerTypeCase_; onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } 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_; 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.unknownFields); onChanged(); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { com.google.appengine.v1.UrlMap parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.google.appengine.v1.UrlMap) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } 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 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; */ 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; */ 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; */ public Builder setUrlRegex( java.lang.String value) { if (value == null) { throw new NullPointerException(); } urlRegex_ = value; 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; */ public Builder clearUrlRegex() { urlRegex_ = getDefaultInstance().getUrlRegex(); 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; */ public Builder setUrlRegexBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); urlRegex_ = value; 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; */ 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; */ 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); } 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; */ 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 request that matches this URL
     * pattern.
     * 
* * .google.appengine.v1.ScriptHandler script = 3; */ public boolean hasScript() { return handlerTypeCase_ == 3; } /** *
     * Executes a script to handle the request that matches this URL
     * pattern.
     * 
* * .google.appengine.v1.ScriptHandler script = 3; */ 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 request that matches this URL
     * pattern.
     * 
* * .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 request that matches this URL
     * pattern.
     * 
* * .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 request that matches this URL
     * pattern.
     * 
* * .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); } scriptBuilder_.setMessage(value); } handlerTypeCase_ = 3; return this; } /** *
     * Executes a script to handle the request that matches this URL
     * pattern.
     * 
* * .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 request that matches this URL
     * pattern.
     * 
* * .google.appengine.v1.ScriptHandler script = 3; */ public com.google.appengine.v1.ScriptHandler.Builder getScriptBuilder() { return getScriptFieldBuilder().getBuilder(); } /** *
     * Executes a script to handle the request that matches this URL
     * pattern.
     * 
* * .google.appengine.v1.ScriptHandler script = 3; */ 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 request that matches this URL
     * pattern.
     * 
* * .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; */ public boolean hasApiEndpoint() { return handlerTypeCase_ == 4; } /** *
     * Uses API Endpoints to handle requests.
     * 
* * .google.appengine.v1.ApiEndpointHandler api_endpoint = 4; */ 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); } 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; */ 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; */ public int getSecurityLevelValue() { return securityLevel_; } /** *
     * Security (HTTPS) enforcement for this URL.
     * 
* * .google.appengine.v1.SecurityLevel security_level = 5; */ public Builder setSecurityLevelValue(int value) { securityLevel_ = value; onChanged(); return this; } /** *
     * Security (HTTPS) enforcement for this URL.
     * 
* * .google.appengine.v1.SecurityLevel security_level = 5; */ public com.google.appengine.v1.SecurityLevel getSecurityLevel() { com.google.appengine.v1.SecurityLevel result = com.google.appengine.v1.SecurityLevel.valueOf(securityLevel_); return result == null ? com.google.appengine.v1.SecurityLevel.UNRECOGNIZED : result; } /** *
     * Security (HTTPS) enforcement for this URL.
     * 
* * .google.appengine.v1.SecurityLevel security_level = 5; */ public Builder setSecurityLevel(com.google.appengine.v1.SecurityLevel value) { if (value == null) { throw new NullPointerException(); } securityLevel_ = value.getNumber(); onChanged(); return this; } /** *
     * Security (HTTPS) enforcement for this URL.
     * 
* * .google.appengine.v1.SecurityLevel security_level = 5; */ public Builder clearSecurityLevel() { securityLevel_ = 0; onChanged(); return this; } private int login_ = 0; /** *
     * Level of login required to access this resource.
     * 
* * .google.appengine.v1.LoginRequirement login = 6; */ public int getLoginValue() { return login_; } /** *
     * Level of login required to access this resource.
     * 
* * .google.appengine.v1.LoginRequirement login = 6; */ public Builder setLoginValue(int value) { login_ = value; onChanged(); return this; } /** *
     * Level of login required to access this resource.
     * 
* * .google.appengine.v1.LoginRequirement login = 6; */ public com.google.appengine.v1.LoginRequirement getLogin() { com.google.appengine.v1.LoginRequirement result = com.google.appengine.v1.LoginRequirement.valueOf(login_); return result == null ? com.google.appengine.v1.LoginRequirement.UNRECOGNIZED : result; } /** *
     * Level of login required to access this resource.
     * 
* * .google.appengine.v1.LoginRequirement login = 6; */ public Builder setLogin(com.google.appengine.v1.LoginRequirement value) { if (value == null) { throw new NullPointerException(); } login_ = value.getNumber(); onChanged(); return this; } /** *
     * Level of login required to access this resource.
     * 
* * .google.appengine.v1.LoginRequirement login = 6; */ public Builder clearLogin() { 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; */ 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; */ public Builder setAuthFailActionValue(int value) { authFailAction_ = value; onChanged(); return this; } /** *
     * Action to take when users access resources that require
     * authentication. Defaults to `redirect`.
     * 
* * .google.appengine.v1.AuthFailAction auth_fail_action = 7; */ public com.google.appengine.v1.AuthFailAction getAuthFailAction() { com.google.appengine.v1.AuthFailAction result = com.google.appengine.v1.AuthFailAction.valueOf(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; */ public Builder setAuthFailAction(com.google.appengine.v1.AuthFailAction value) { if (value == null) { throw new NullPointerException(); } 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; */ public Builder clearAuthFailAction() { 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; */ 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; */ public Builder setRedirectHttpResponseCodeValue(int value) { redirectHttpResponseCode_ = value; 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; */ public com.google.appengine.v1.UrlMap.RedirectHttpResponseCode getRedirectHttpResponseCode() { com.google.appengine.v1.UrlMap.RedirectHttpResponseCode result = com.google.appengine.v1.UrlMap.RedirectHttpResponseCode.valueOf(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; */ public Builder setRedirectHttpResponseCode(com.google.appengine.v1.UrlMap.RedirectHttpResponseCode value) { if (value == null) { throw new NullPointerException(); } 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; */ public Builder clearRedirectHttpResponseCode() { redirectHttpResponseCode_ = 0; onChanged(); return this; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } 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() { public UrlMap parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new UrlMap(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public com.google.appengine.v1.UrlMap getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy