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

com.google.appengine.v1.ApiConfigHandler 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;

/**
 * 
 * [Google Cloud Endpoints](https://cloud.google.com/appengine/docs/python/endpoints/)
 * configuration for API handlers.
 * 
* * Protobuf type {@code google.appengine.v1.ApiConfigHandler} */ public final class ApiConfigHandler extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.appengine.v1.ApiConfigHandler) ApiConfigHandlerOrBuilder { private static final long serialVersionUID = 0L; // Use ApiConfigHandler.newBuilder() to construct. private ApiConfigHandler(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ApiConfigHandler() { authFailAction_ = 0; login_ = 0; script_ = ""; securityLevel_ = 0; url_ = ""; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private ApiConfigHandler( 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 8: { int rawValue = input.readEnum(); authFailAction_ = rawValue; break; } case 16: { int rawValue = input.readEnum(); login_ = rawValue; break; } case 26: { java.lang.String s = input.readStringRequireUtf8(); script_ = s; break; } case 32: { int rawValue = input.readEnum(); securityLevel_ = rawValue; break; } case 42: { java.lang.String s = input.readStringRequireUtf8(); url_ = s; 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_ApiConfigHandler_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.appengine.v1.AppYamlProto.internal_static_google_appengine_v1_ApiConfigHandler_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.appengine.v1.ApiConfigHandler.class, com.google.appengine.v1.ApiConfigHandler.Builder.class); } public static final int AUTH_FAIL_ACTION_FIELD_NUMBER = 1; private int authFailAction_; /** *
   * Action to take when users access resources that require
   * authentication. Defaults to `redirect`.
   * 
* * .google.appengine.v1.AuthFailAction auth_fail_action = 1; */ 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 = 1; */ 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 LOGIN_FIELD_NUMBER = 2; private int login_; /** *
   * Level of login required to access this resource. Defaults to
   * `optional`.
   * 
* * .google.appengine.v1.LoginRequirement login = 2; */ public int getLoginValue() { return login_; } /** *
   * Level of login required to access this resource. Defaults to
   * `optional`.
   * 
* * .google.appengine.v1.LoginRequirement login = 2; */ 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 SCRIPT_FIELD_NUMBER = 3; private volatile java.lang.Object script_; /** *
   * Path to the script from the application root directory.
   * 
* * string script = 3; */ public java.lang.String getScript() { java.lang.Object ref = script_; 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(); script_ = s; return s; } } /** *
   * Path to the script from the application root directory.
   * 
* * string script = 3; */ public com.google.protobuf.ByteString getScriptBytes() { java.lang.Object ref = script_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); script_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int SECURITY_LEVEL_FIELD_NUMBER = 4; private int securityLevel_; /** *
   * Security (HTTPS) enforcement for this URL.
   * 
* * .google.appengine.v1.SecurityLevel security_level = 4; */ public int getSecurityLevelValue() { return securityLevel_; } /** *
   * Security (HTTPS) enforcement for this URL.
   * 
* * .google.appengine.v1.SecurityLevel security_level = 4; */ 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 URL_FIELD_NUMBER = 5; private volatile java.lang.Object url_; /** *
   * URL to serve the endpoint at.
   * 
* * string url = 5; */ public java.lang.String getUrl() { java.lang.Object ref = url_; 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(); url_ = s; return s; } } /** *
   * URL to serve the endpoint at.
   * 
* * string url = 5; */ public com.google.protobuf.ByteString getUrlBytes() { java.lang.Object ref = url_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); url_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } 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 (authFailAction_ != com.google.appengine.v1.AuthFailAction.AUTH_FAIL_ACTION_UNSPECIFIED.getNumber()) { output.writeEnum(1, authFailAction_); } if (login_ != com.google.appengine.v1.LoginRequirement.LOGIN_UNSPECIFIED.getNumber()) { output.writeEnum(2, login_); } if (!getScriptBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, script_); } if (securityLevel_ != com.google.appengine.v1.SecurityLevel.SECURE_UNSPECIFIED.getNumber()) { output.writeEnum(4, securityLevel_); } if (!getUrlBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 5, url_); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (authFailAction_ != com.google.appengine.v1.AuthFailAction.AUTH_FAIL_ACTION_UNSPECIFIED.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(1, authFailAction_); } if (login_ != com.google.appengine.v1.LoginRequirement.LOGIN_UNSPECIFIED.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(2, login_); } if (!getScriptBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, script_); } if (securityLevel_ != com.google.appengine.v1.SecurityLevel.SECURE_UNSPECIFIED.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(4, securityLevel_); } if (!getUrlBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, url_); } 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.ApiConfigHandler)) { return super.equals(obj); } com.google.appengine.v1.ApiConfigHandler other = (com.google.appengine.v1.ApiConfigHandler) obj; boolean result = true; result = result && authFailAction_ == other.authFailAction_; result = result && login_ == other.login_; result = result && getScript() .equals(other.getScript()); result = result && securityLevel_ == other.securityLevel_; result = result && getUrl() .equals(other.getUrl()); 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) + AUTH_FAIL_ACTION_FIELD_NUMBER; hash = (53 * hash) + authFailAction_; hash = (37 * hash) + LOGIN_FIELD_NUMBER; hash = (53 * hash) + login_; hash = (37 * hash) + SCRIPT_FIELD_NUMBER; hash = (53 * hash) + getScript().hashCode(); hash = (37 * hash) + SECURITY_LEVEL_FIELD_NUMBER; hash = (53 * hash) + securityLevel_; hash = (37 * hash) + URL_FIELD_NUMBER; hash = (53 * hash) + getUrl().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.google.appengine.v1.ApiConfigHandler parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.appengine.v1.ApiConfigHandler 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.ApiConfigHandler parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.appengine.v1.ApiConfigHandler 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.ApiConfigHandler parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.appengine.v1.ApiConfigHandler parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.appengine.v1.ApiConfigHandler parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.appengine.v1.ApiConfigHandler 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.ApiConfigHandler parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.google.appengine.v1.ApiConfigHandler 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.ApiConfigHandler parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.appengine.v1.ApiConfigHandler 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.ApiConfigHandler 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; } /** *
   * [Google Cloud Endpoints](https://cloud.google.com/appengine/docs/python/endpoints/)
   * configuration for API handlers.
   * 
* * Protobuf type {@code google.appengine.v1.ApiConfigHandler} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.appengine.v1.ApiConfigHandler) com.google.appengine.v1.ApiConfigHandlerOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.appengine.v1.AppYamlProto.internal_static_google_appengine_v1_ApiConfigHandler_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.appengine.v1.AppYamlProto.internal_static_google_appengine_v1_ApiConfigHandler_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.appengine.v1.ApiConfigHandler.class, com.google.appengine.v1.ApiConfigHandler.Builder.class); } // Construct using com.google.appengine.v1.ApiConfigHandler.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(); authFailAction_ = 0; login_ = 0; script_ = ""; securityLevel_ = 0; url_ = ""; return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.appengine.v1.AppYamlProto.internal_static_google_appengine_v1_ApiConfigHandler_descriptor; } public com.google.appengine.v1.ApiConfigHandler getDefaultInstanceForType() { return com.google.appengine.v1.ApiConfigHandler.getDefaultInstance(); } public com.google.appengine.v1.ApiConfigHandler build() { com.google.appengine.v1.ApiConfigHandler result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public com.google.appengine.v1.ApiConfigHandler buildPartial() { com.google.appengine.v1.ApiConfigHandler result = new com.google.appengine.v1.ApiConfigHandler(this); result.authFailAction_ = authFailAction_; result.login_ = login_; result.script_ = script_; result.securityLevel_ = securityLevel_; result.url_ = url_; 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.ApiConfigHandler) { return mergeFrom((com.google.appengine.v1.ApiConfigHandler)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.appengine.v1.ApiConfigHandler other) { if (other == com.google.appengine.v1.ApiConfigHandler.getDefaultInstance()) return this; if (other.authFailAction_ != 0) { setAuthFailActionValue(other.getAuthFailActionValue()); } if (other.login_ != 0) { setLoginValue(other.getLoginValue()); } if (!other.getScript().isEmpty()) { script_ = other.script_; onChanged(); } if (other.securityLevel_ != 0) { setSecurityLevelValue(other.getSecurityLevelValue()); } if (!other.getUrl().isEmpty()) { url_ = other.url_; onChanged(); } 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.ApiConfigHandler parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.google.appengine.v1.ApiConfigHandler) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } 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 = 1; */ 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 = 1; */ 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 = 1; */ 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 = 1; */ 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 = 1; */ public Builder clearAuthFailAction() { authFailAction_ = 0; onChanged(); return this; } private int login_ = 0; /** *
     * Level of login required to access this resource. Defaults to
     * `optional`.
     * 
* * .google.appengine.v1.LoginRequirement login = 2; */ public int getLoginValue() { return login_; } /** *
     * Level of login required to access this resource. Defaults to
     * `optional`.
     * 
* * .google.appengine.v1.LoginRequirement login = 2; */ public Builder setLoginValue(int value) { login_ = value; onChanged(); return this; } /** *
     * Level of login required to access this resource. Defaults to
     * `optional`.
     * 
* * .google.appengine.v1.LoginRequirement login = 2; */ 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. Defaults to
     * `optional`.
     * 
* * .google.appengine.v1.LoginRequirement login = 2; */ 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. Defaults to
     * `optional`.
     * 
* * .google.appengine.v1.LoginRequirement login = 2; */ public Builder clearLogin() { login_ = 0; onChanged(); return this; } private java.lang.Object script_ = ""; /** *
     * Path to the script from the application root directory.
     * 
* * string script = 3; */ public java.lang.String getScript() { java.lang.Object ref = script_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); script_ = s; return s; } else { return (java.lang.String) ref; } } /** *
     * Path to the script from the application root directory.
     * 
* * string script = 3; */ public com.google.protobuf.ByteString getScriptBytes() { java.lang.Object ref = script_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); script_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     * Path to the script from the application root directory.
     * 
* * string script = 3; */ public Builder setScript( java.lang.String value) { if (value == null) { throw new NullPointerException(); } script_ = value; onChanged(); return this; } /** *
     * Path to the script from the application root directory.
     * 
* * string script = 3; */ public Builder clearScript() { script_ = getDefaultInstance().getScript(); onChanged(); return this; } /** *
     * Path to the script from the application root directory.
     * 
* * string script = 3; */ public Builder setScriptBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); script_ = value; onChanged(); return this; } private int securityLevel_ = 0; /** *
     * Security (HTTPS) enforcement for this URL.
     * 
* * .google.appengine.v1.SecurityLevel security_level = 4; */ public int getSecurityLevelValue() { return securityLevel_; } /** *
     * Security (HTTPS) enforcement for this URL.
     * 
* * .google.appengine.v1.SecurityLevel security_level = 4; */ public Builder setSecurityLevelValue(int value) { securityLevel_ = value; onChanged(); return this; } /** *
     * Security (HTTPS) enforcement for this URL.
     * 
* * .google.appengine.v1.SecurityLevel security_level = 4; */ 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 = 4; */ 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 = 4; */ public Builder clearSecurityLevel() { securityLevel_ = 0; onChanged(); return this; } private java.lang.Object url_ = ""; /** *
     * URL to serve the endpoint at.
     * 
* * string url = 5; */ public java.lang.String getUrl() { java.lang.Object ref = url_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); url_ = s; return s; } else { return (java.lang.String) ref; } } /** *
     * URL to serve the endpoint at.
     * 
* * string url = 5; */ public com.google.protobuf.ByteString getUrlBytes() { java.lang.Object ref = url_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); url_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     * URL to serve the endpoint at.
     * 
* * string url = 5; */ public Builder setUrl( java.lang.String value) { if (value == null) { throw new NullPointerException(); } url_ = value; onChanged(); return this; } /** *
     * URL to serve the endpoint at.
     * 
* * string url = 5; */ public Builder clearUrl() { url_ = getDefaultInstance().getUrl(); onChanged(); return this; } /** *
     * URL to serve the endpoint at.
     * 
* * string url = 5; */ public Builder setUrlBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); url_ = value; 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.ApiConfigHandler) } // @@protoc_insertion_point(class_scope:google.appengine.v1.ApiConfigHandler) private static final com.google.appengine.v1.ApiConfigHandler DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.appengine.v1.ApiConfigHandler(); } public static com.google.appengine.v1.ApiConfigHandler getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public ApiConfigHandler parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new ApiConfigHandler(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.ApiConfigHandler getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy