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

com.google.appengine.v1.Application 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/application.proto

package com.google.appengine.v1;

/**
 * 
 * An Application resource contains the top-level configuration of an App
 * Engine application.
 * 
* * Protobuf type {@code google.appengine.v1.Application} */ public final class Application extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.appengine.v1.Application) ApplicationOrBuilder { private static final long serialVersionUID = 0L; // Use Application.newBuilder() to construct. private Application(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Application() { name_ = ""; id_ = ""; dispatchRules_ = java.util.Collections.emptyList(); authDomain_ = ""; locationId_ = ""; codeBucket_ = ""; defaultHostname_ = ""; defaultBucket_ = ""; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private Application( 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(); name_ = s; break; } case 18: { java.lang.String s = input.readStringRequireUtf8(); id_ = s; break; } case 26: { if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) { dispatchRules_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000004; } dispatchRules_.add( input.readMessage(com.google.appengine.v1.UrlDispatchRule.parser(), extensionRegistry)); break; } case 50: { java.lang.String s = input.readStringRequireUtf8(); authDomain_ = s; break; } case 58: { java.lang.String s = input.readStringRequireUtf8(); locationId_ = s; break; } case 66: { java.lang.String s = input.readStringRequireUtf8(); codeBucket_ = s; break; } case 74: { com.google.protobuf.Duration.Builder subBuilder = null; if (defaultCookieExpiration_ != null) { subBuilder = defaultCookieExpiration_.toBuilder(); } defaultCookieExpiration_ = input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(defaultCookieExpiration_); defaultCookieExpiration_ = subBuilder.buildPartial(); } break; } case 90: { java.lang.String s = input.readStringRequireUtf8(); defaultHostname_ = s; break; } case 98: { java.lang.String s = input.readStringRequireUtf8(); defaultBucket_ = 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 { if (((mutable_bitField0_ & 0x00000004) == 0x00000004)) { dispatchRules_ = java.util.Collections.unmodifiableList(dispatchRules_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.appengine.v1.ApplicationProto.internal_static_google_appengine_v1_Application_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.appengine.v1.ApplicationProto.internal_static_google_appengine_v1_Application_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.appengine.v1.Application.class, com.google.appengine.v1.Application.Builder.class); } private int bitField0_; public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** *
   * Full path to the Application resource in the API.
   * Example: `apps/myapp`.
   * @OutputOnly
   * 
* * string name = 1; */ public java.lang.String getName() { java.lang.Object ref = name_; 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(); name_ = s; return s; } } /** *
   * Full path to the Application resource in the API.
   * Example: `apps/myapp`.
   * @OutputOnly
   * 
* * string name = 1; */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); name_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int ID_FIELD_NUMBER = 2; private volatile java.lang.Object id_; /** *
   * Identifier of the Application resource. This identifier is equivalent
   * to the project ID of the Google Cloud Platform project where you want to
   * deploy your application.
   * Example: `myapp`.
   * 
* * string id = 2; */ public java.lang.String getId() { java.lang.Object ref = id_; 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(); id_ = s; return s; } } /** *
   * Identifier of the Application resource. This identifier is equivalent
   * to the project ID of the Google Cloud Platform project where you want to
   * deploy your application.
   * Example: `myapp`.
   * 
* * string id = 2; */ public com.google.protobuf.ByteString getIdBytes() { java.lang.Object ref = id_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); id_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int DISPATCH_RULES_FIELD_NUMBER = 3; private java.util.List dispatchRules_; /** *
   * HTTP path dispatch rules for requests to the application that do not
   * explicitly target a service or version. Rules are order-dependent.
   * @OutputOnly
   * 
* * repeated .google.appengine.v1.UrlDispatchRule dispatch_rules = 3; */ public java.util.List getDispatchRulesList() { return dispatchRules_; } /** *
   * HTTP path dispatch rules for requests to the application that do not
   * explicitly target a service or version. Rules are order-dependent.
   * @OutputOnly
   * 
* * repeated .google.appengine.v1.UrlDispatchRule dispatch_rules = 3; */ public java.util.List getDispatchRulesOrBuilderList() { return dispatchRules_; } /** *
   * HTTP path dispatch rules for requests to the application that do not
   * explicitly target a service or version. Rules are order-dependent.
   * @OutputOnly
   * 
* * repeated .google.appengine.v1.UrlDispatchRule dispatch_rules = 3; */ public int getDispatchRulesCount() { return dispatchRules_.size(); } /** *
   * HTTP path dispatch rules for requests to the application that do not
   * explicitly target a service or version. Rules are order-dependent.
   * @OutputOnly
   * 
* * repeated .google.appengine.v1.UrlDispatchRule dispatch_rules = 3; */ public com.google.appengine.v1.UrlDispatchRule getDispatchRules(int index) { return dispatchRules_.get(index); } /** *
   * HTTP path dispatch rules for requests to the application that do not
   * explicitly target a service or version. Rules are order-dependent.
   * @OutputOnly
   * 
* * repeated .google.appengine.v1.UrlDispatchRule dispatch_rules = 3; */ public com.google.appengine.v1.UrlDispatchRuleOrBuilder getDispatchRulesOrBuilder( int index) { return dispatchRules_.get(index); } public static final int AUTH_DOMAIN_FIELD_NUMBER = 6; private volatile java.lang.Object authDomain_; /** *
   * Google Apps authentication domain that controls which users can access
   * this application.
   * Defaults to open access for any Google Account.
   * 
* * string auth_domain = 6; */ public java.lang.String getAuthDomain() { java.lang.Object ref = authDomain_; 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(); authDomain_ = s; return s; } } /** *
   * Google Apps authentication domain that controls which users can access
   * this application.
   * Defaults to open access for any Google Account.
   * 
* * string auth_domain = 6; */ public com.google.protobuf.ByteString getAuthDomainBytes() { java.lang.Object ref = authDomain_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); authDomain_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int LOCATION_ID_FIELD_NUMBER = 7; private volatile java.lang.Object locationId_; /** *
   * Location from which this application will be run. Application instances
   * will run out of data centers in the chosen location, which is also where
   * all of the application's end user content is stored.
   * Defaults to `us-central`.
   * Options are:
   * `us-central` - Central US
   * `europe-west` - Western Europe
   * `us-east1` - Eastern US
   * 
* * string location_id = 7; */ public java.lang.String getLocationId() { java.lang.Object ref = locationId_; 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(); locationId_ = s; return s; } } /** *
   * Location from which this application will be run. Application instances
   * will run out of data centers in the chosen location, which is also where
   * all of the application's end user content is stored.
   * Defaults to `us-central`.
   * Options are:
   * `us-central` - Central US
   * `europe-west` - Western Europe
   * `us-east1` - Eastern US
   * 
* * string location_id = 7; */ public com.google.protobuf.ByteString getLocationIdBytes() { java.lang.Object ref = locationId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); locationId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int CODE_BUCKET_FIELD_NUMBER = 8; private volatile java.lang.Object codeBucket_; /** *
   * Google Cloud Storage bucket that can be used for storing files
   * associated with this application. This bucket is associated with the
   * application and can be used by the gcloud deployment commands.
   * @OutputOnly
   * 
* * string code_bucket = 8; */ public java.lang.String getCodeBucket() { java.lang.Object ref = codeBucket_; 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(); codeBucket_ = s; return s; } } /** *
   * Google Cloud Storage bucket that can be used for storing files
   * associated with this application. This bucket is associated with the
   * application and can be used by the gcloud deployment commands.
   * @OutputOnly
   * 
* * string code_bucket = 8; */ public com.google.protobuf.ByteString getCodeBucketBytes() { java.lang.Object ref = codeBucket_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); codeBucket_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int DEFAULT_COOKIE_EXPIRATION_FIELD_NUMBER = 9; private com.google.protobuf.Duration defaultCookieExpiration_; /** *
   * Cookie expiration policy for this application.
   * @OutputOnly
   * 
* * .google.protobuf.Duration default_cookie_expiration = 9; */ public boolean hasDefaultCookieExpiration() { return defaultCookieExpiration_ != null; } /** *
   * Cookie expiration policy for this application.
   * @OutputOnly
   * 
* * .google.protobuf.Duration default_cookie_expiration = 9; */ public com.google.protobuf.Duration getDefaultCookieExpiration() { return defaultCookieExpiration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : defaultCookieExpiration_; } /** *
   * Cookie expiration policy for this application.
   * @OutputOnly
   * 
* * .google.protobuf.Duration default_cookie_expiration = 9; */ public com.google.protobuf.DurationOrBuilder getDefaultCookieExpirationOrBuilder() { return getDefaultCookieExpiration(); } public static final int DEFAULT_HOSTNAME_FIELD_NUMBER = 11; private volatile java.lang.Object defaultHostname_; /** *
   * Hostname used to reach this application, as resolved by App Engine.
   * @OutputOnly
   * 
* * string default_hostname = 11; */ public java.lang.String getDefaultHostname() { java.lang.Object ref = defaultHostname_; 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(); defaultHostname_ = s; return s; } } /** *
   * Hostname used to reach this application, as resolved by App Engine.
   * @OutputOnly
   * 
* * string default_hostname = 11; */ public com.google.protobuf.ByteString getDefaultHostnameBytes() { java.lang.Object ref = defaultHostname_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); defaultHostname_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int DEFAULT_BUCKET_FIELD_NUMBER = 12; private volatile java.lang.Object defaultBucket_; /** *
   * Google Cloud Storage bucket that can be used by this application to store
   * content.
   * @OutputOnly
   * 
* * string default_bucket = 12; */ public java.lang.String getDefaultBucket() { java.lang.Object ref = defaultBucket_; 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(); defaultBucket_ = s; return s; } } /** *
   * Google Cloud Storage bucket that can be used by this application to store
   * content.
   * @OutputOnly
   * 
* * string default_bucket = 12; */ public com.google.protobuf.ByteString getDefaultBucketBytes() { java.lang.Object ref = defaultBucket_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); defaultBucket_ = 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 (!getNameBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } if (!getIdBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, id_); } for (int i = 0; i < dispatchRules_.size(); i++) { output.writeMessage(3, dispatchRules_.get(i)); } if (!getAuthDomainBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 6, authDomain_); } if (!getLocationIdBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 7, locationId_); } if (!getCodeBucketBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 8, codeBucket_); } if (defaultCookieExpiration_ != null) { output.writeMessage(9, getDefaultCookieExpiration()); } if (!getDefaultHostnameBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 11, defaultHostname_); } if (!getDefaultBucketBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 12, defaultBucket_); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!getNameBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (!getIdBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, id_); } for (int i = 0; i < dispatchRules_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, dispatchRules_.get(i)); } if (!getAuthDomainBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, authDomain_); } if (!getLocationIdBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, locationId_); } if (!getCodeBucketBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, codeBucket_); } if (defaultCookieExpiration_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(9, getDefaultCookieExpiration()); } if (!getDefaultHostnameBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(11, defaultHostname_); } if (!getDefaultBucketBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(12, defaultBucket_); } 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.Application)) { return super.equals(obj); } com.google.appengine.v1.Application other = (com.google.appengine.v1.Application) obj; boolean result = true; result = result && getName() .equals(other.getName()); result = result && getId() .equals(other.getId()); result = result && getDispatchRulesList() .equals(other.getDispatchRulesList()); result = result && getAuthDomain() .equals(other.getAuthDomain()); result = result && getLocationId() .equals(other.getLocationId()); result = result && getCodeBucket() .equals(other.getCodeBucket()); result = result && (hasDefaultCookieExpiration() == other.hasDefaultCookieExpiration()); if (hasDefaultCookieExpiration()) { result = result && getDefaultCookieExpiration() .equals(other.getDefaultCookieExpiration()); } result = result && getDefaultHostname() .equals(other.getDefaultHostname()); result = result && getDefaultBucket() .equals(other.getDefaultBucket()); 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) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); hash = (37 * hash) + ID_FIELD_NUMBER; hash = (53 * hash) + getId().hashCode(); if (getDispatchRulesCount() > 0) { hash = (37 * hash) + DISPATCH_RULES_FIELD_NUMBER; hash = (53 * hash) + getDispatchRulesList().hashCode(); } hash = (37 * hash) + AUTH_DOMAIN_FIELD_NUMBER; hash = (53 * hash) + getAuthDomain().hashCode(); hash = (37 * hash) + LOCATION_ID_FIELD_NUMBER; hash = (53 * hash) + getLocationId().hashCode(); hash = (37 * hash) + CODE_BUCKET_FIELD_NUMBER; hash = (53 * hash) + getCodeBucket().hashCode(); if (hasDefaultCookieExpiration()) { hash = (37 * hash) + DEFAULT_COOKIE_EXPIRATION_FIELD_NUMBER; hash = (53 * hash) + getDefaultCookieExpiration().hashCode(); } hash = (37 * hash) + DEFAULT_HOSTNAME_FIELD_NUMBER; hash = (53 * hash) + getDefaultHostname().hashCode(); hash = (37 * hash) + DEFAULT_BUCKET_FIELD_NUMBER; hash = (53 * hash) + getDefaultBucket().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.google.appengine.v1.Application parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.appengine.v1.Application 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.Application parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.appengine.v1.Application 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.Application parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.appengine.v1.Application parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.appengine.v1.Application parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.appengine.v1.Application 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.Application parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.google.appengine.v1.Application 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.Application parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.appengine.v1.Application 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.Application 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; } /** *
   * An Application resource contains the top-level configuration of an App
   * Engine application.
   * 
* * Protobuf type {@code google.appengine.v1.Application} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.appengine.v1.Application) com.google.appengine.v1.ApplicationOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.appengine.v1.ApplicationProto.internal_static_google_appengine_v1_Application_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.appengine.v1.ApplicationProto.internal_static_google_appengine_v1_Application_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.appengine.v1.Application.class, com.google.appengine.v1.Application.Builder.class); } // Construct using com.google.appengine.v1.Application.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getDispatchRulesFieldBuilder(); } } public Builder clear() { super.clear(); name_ = ""; id_ = ""; if (dispatchRulesBuilder_ == null) { dispatchRules_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000004); } else { dispatchRulesBuilder_.clear(); } authDomain_ = ""; locationId_ = ""; codeBucket_ = ""; if (defaultCookieExpirationBuilder_ == null) { defaultCookieExpiration_ = null; } else { defaultCookieExpiration_ = null; defaultCookieExpirationBuilder_ = null; } defaultHostname_ = ""; defaultBucket_ = ""; return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.appengine.v1.ApplicationProto.internal_static_google_appengine_v1_Application_descriptor; } public com.google.appengine.v1.Application getDefaultInstanceForType() { return com.google.appengine.v1.Application.getDefaultInstance(); } public com.google.appengine.v1.Application build() { com.google.appengine.v1.Application result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public com.google.appengine.v1.Application buildPartial() { com.google.appengine.v1.Application result = new com.google.appengine.v1.Application(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; result.name_ = name_; result.id_ = id_; if (dispatchRulesBuilder_ == null) { if (((bitField0_ & 0x00000004) == 0x00000004)) { dispatchRules_ = java.util.Collections.unmodifiableList(dispatchRules_); bitField0_ = (bitField0_ & ~0x00000004); } result.dispatchRules_ = dispatchRules_; } else { result.dispatchRules_ = dispatchRulesBuilder_.build(); } result.authDomain_ = authDomain_; result.locationId_ = locationId_; result.codeBucket_ = codeBucket_; if (defaultCookieExpirationBuilder_ == null) { result.defaultCookieExpiration_ = defaultCookieExpiration_; } else { result.defaultCookieExpiration_ = defaultCookieExpirationBuilder_.build(); } result.defaultHostname_ = defaultHostname_; result.defaultBucket_ = defaultBucket_; result.bitField0_ = to_bitField0_; 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.Application) { return mergeFrom((com.google.appengine.v1.Application)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.appengine.v1.Application other) { if (other == com.google.appengine.v1.Application.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); } if (!other.getId().isEmpty()) { id_ = other.id_; onChanged(); } if (dispatchRulesBuilder_ == null) { if (!other.dispatchRules_.isEmpty()) { if (dispatchRules_.isEmpty()) { dispatchRules_ = other.dispatchRules_; bitField0_ = (bitField0_ & ~0x00000004); } else { ensureDispatchRulesIsMutable(); dispatchRules_.addAll(other.dispatchRules_); } onChanged(); } } else { if (!other.dispatchRules_.isEmpty()) { if (dispatchRulesBuilder_.isEmpty()) { dispatchRulesBuilder_.dispose(); dispatchRulesBuilder_ = null; dispatchRules_ = other.dispatchRules_; bitField0_ = (bitField0_ & ~0x00000004); dispatchRulesBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getDispatchRulesFieldBuilder() : null; } else { dispatchRulesBuilder_.addAllMessages(other.dispatchRules_); } } } if (!other.getAuthDomain().isEmpty()) { authDomain_ = other.authDomain_; onChanged(); } if (!other.getLocationId().isEmpty()) { locationId_ = other.locationId_; onChanged(); } if (!other.getCodeBucket().isEmpty()) { codeBucket_ = other.codeBucket_; onChanged(); } if (other.hasDefaultCookieExpiration()) { mergeDefaultCookieExpiration(other.getDefaultCookieExpiration()); } if (!other.getDefaultHostname().isEmpty()) { defaultHostname_ = other.defaultHostname_; onChanged(); } if (!other.getDefaultBucket().isEmpty()) { defaultBucket_ = other.defaultBucket_; 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.Application parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.google.appengine.v1.Application) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.lang.Object name_ = ""; /** *
     * Full path to the Application resource in the API.
     * Example: `apps/myapp`.
     * @OutputOnly
     * 
* * string name = 1; */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } else { return (java.lang.String) ref; } } /** *
     * Full path to the Application resource in the API.
     * Example: `apps/myapp`.
     * @OutputOnly
     * 
* * string name = 1; */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); name_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     * Full path to the Application resource in the API.
     * Example: `apps/myapp`.
     * @OutputOnly
     * 
* * string name = 1; */ public Builder setName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } name_ = value; onChanged(); return this; } /** *
     * Full path to the Application resource in the API.
     * Example: `apps/myapp`.
     * @OutputOnly
     * 
* * string name = 1; */ public Builder clearName() { name_ = getDefaultInstance().getName(); onChanged(); return this; } /** *
     * Full path to the Application resource in the API.
     * Example: `apps/myapp`.
     * @OutputOnly
     * 
* * string name = 1; */ public Builder setNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; onChanged(); return this; } private java.lang.Object id_ = ""; /** *
     * Identifier of the Application resource. This identifier is equivalent
     * to the project ID of the Google Cloud Platform project where you want to
     * deploy your application.
     * Example: `myapp`.
     * 
* * string id = 2; */ public java.lang.String getId() { java.lang.Object ref = id_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); id_ = s; return s; } else { return (java.lang.String) ref; } } /** *
     * Identifier of the Application resource. This identifier is equivalent
     * to the project ID of the Google Cloud Platform project where you want to
     * deploy your application.
     * Example: `myapp`.
     * 
* * string id = 2; */ public com.google.protobuf.ByteString getIdBytes() { java.lang.Object ref = id_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); id_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     * Identifier of the Application resource. This identifier is equivalent
     * to the project ID of the Google Cloud Platform project where you want to
     * deploy your application.
     * Example: `myapp`.
     * 
* * string id = 2; */ public Builder setId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } id_ = value; onChanged(); return this; } /** *
     * Identifier of the Application resource. This identifier is equivalent
     * to the project ID of the Google Cloud Platform project where you want to
     * deploy your application.
     * Example: `myapp`.
     * 
* * string id = 2; */ public Builder clearId() { id_ = getDefaultInstance().getId(); onChanged(); return this; } /** *
     * Identifier of the Application resource. This identifier is equivalent
     * to the project ID of the Google Cloud Platform project where you want to
     * deploy your application.
     * Example: `myapp`.
     * 
* * string id = 2; */ public Builder setIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); id_ = value; onChanged(); return this; } private java.util.List dispatchRules_ = java.util.Collections.emptyList(); private void ensureDispatchRulesIsMutable() { if (!((bitField0_ & 0x00000004) == 0x00000004)) { dispatchRules_ = new java.util.ArrayList(dispatchRules_); bitField0_ |= 0x00000004; } } private com.google.protobuf.RepeatedFieldBuilderV3< com.google.appengine.v1.UrlDispatchRule, com.google.appengine.v1.UrlDispatchRule.Builder, com.google.appengine.v1.UrlDispatchRuleOrBuilder> dispatchRulesBuilder_; /** *
     * HTTP path dispatch rules for requests to the application that do not
     * explicitly target a service or version. Rules are order-dependent.
     * @OutputOnly
     * 
* * repeated .google.appengine.v1.UrlDispatchRule dispatch_rules = 3; */ public java.util.List getDispatchRulesList() { if (dispatchRulesBuilder_ == null) { return java.util.Collections.unmodifiableList(dispatchRules_); } else { return dispatchRulesBuilder_.getMessageList(); } } /** *
     * HTTP path dispatch rules for requests to the application that do not
     * explicitly target a service or version. Rules are order-dependent.
     * @OutputOnly
     * 
* * repeated .google.appengine.v1.UrlDispatchRule dispatch_rules = 3; */ public int getDispatchRulesCount() { if (dispatchRulesBuilder_ == null) { return dispatchRules_.size(); } else { return dispatchRulesBuilder_.getCount(); } } /** *
     * HTTP path dispatch rules for requests to the application that do not
     * explicitly target a service or version. Rules are order-dependent.
     * @OutputOnly
     * 
* * repeated .google.appengine.v1.UrlDispatchRule dispatch_rules = 3; */ public com.google.appengine.v1.UrlDispatchRule getDispatchRules(int index) { if (dispatchRulesBuilder_ == null) { return dispatchRules_.get(index); } else { return dispatchRulesBuilder_.getMessage(index); } } /** *
     * HTTP path dispatch rules for requests to the application that do not
     * explicitly target a service or version. Rules are order-dependent.
     * @OutputOnly
     * 
* * repeated .google.appengine.v1.UrlDispatchRule dispatch_rules = 3; */ public Builder setDispatchRules( int index, com.google.appengine.v1.UrlDispatchRule value) { if (dispatchRulesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureDispatchRulesIsMutable(); dispatchRules_.set(index, value); onChanged(); } else { dispatchRulesBuilder_.setMessage(index, value); } return this; } /** *
     * HTTP path dispatch rules for requests to the application that do not
     * explicitly target a service or version. Rules are order-dependent.
     * @OutputOnly
     * 
* * repeated .google.appengine.v1.UrlDispatchRule dispatch_rules = 3; */ public Builder setDispatchRules( int index, com.google.appengine.v1.UrlDispatchRule.Builder builderForValue) { if (dispatchRulesBuilder_ == null) { ensureDispatchRulesIsMutable(); dispatchRules_.set(index, builderForValue.build()); onChanged(); } else { dispatchRulesBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
     * HTTP path dispatch rules for requests to the application that do not
     * explicitly target a service or version. Rules are order-dependent.
     * @OutputOnly
     * 
* * repeated .google.appengine.v1.UrlDispatchRule dispatch_rules = 3; */ public Builder addDispatchRules(com.google.appengine.v1.UrlDispatchRule value) { if (dispatchRulesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureDispatchRulesIsMutable(); dispatchRules_.add(value); onChanged(); } else { dispatchRulesBuilder_.addMessage(value); } return this; } /** *
     * HTTP path dispatch rules for requests to the application that do not
     * explicitly target a service or version. Rules are order-dependent.
     * @OutputOnly
     * 
* * repeated .google.appengine.v1.UrlDispatchRule dispatch_rules = 3; */ public Builder addDispatchRules( int index, com.google.appengine.v1.UrlDispatchRule value) { if (dispatchRulesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureDispatchRulesIsMutable(); dispatchRules_.add(index, value); onChanged(); } else { dispatchRulesBuilder_.addMessage(index, value); } return this; } /** *
     * HTTP path dispatch rules for requests to the application that do not
     * explicitly target a service or version. Rules are order-dependent.
     * @OutputOnly
     * 
* * repeated .google.appengine.v1.UrlDispatchRule dispatch_rules = 3; */ public Builder addDispatchRules( com.google.appengine.v1.UrlDispatchRule.Builder builderForValue) { if (dispatchRulesBuilder_ == null) { ensureDispatchRulesIsMutable(); dispatchRules_.add(builderForValue.build()); onChanged(); } else { dispatchRulesBuilder_.addMessage(builderForValue.build()); } return this; } /** *
     * HTTP path dispatch rules for requests to the application that do not
     * explicitly target a service or version. Rules are order-dependent.
     * @OutputOnly
     * 
* * repeated .google.appengine.v1.UrlDispatchRule dispatch_rules = 3; */ public Builder addDispatchRules( int index, com.google.appengine.v1.UrlDispatchRule.Builder builderForValue) { if (dispatchRulesBuilder_ == null) { ensureDispatchRulesIsMutable(); dispatchRules_.add(index, builderForValue.build()); onChanged(); } else { dispatchRulesBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
     * HTTP path dispatch rules for requests to the application that do not
     * explicitly target a service or version. Rules are order-dependent.
     * @OutputOnly
     * 
* * repeated .google.appengine.v1.UrlDispatchRule dispatch_rules = 3; */ public Builder addAllDispatchRules( java.lang.Iterable values) { if (dispatchRulesBuilder_ == null) { ensureDispatchRulesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, dispatchRules_); onChanged(); } else { dispatchRulesBuilder_.addAllMessages(values); } return this; } /** *
     * HTTP path dispatch rules for requests to the application that do not
     * explicitly target a service or version. Rules are order-dependent.
     * @OutputOnly
     * 
* * repeated .google.appengine.v1.UrlDispatchRule dispatch_rules = 3; */ public Builder clearDispatchRules() { if (dispatchRulesBuilder_ == null) { dispatchRules_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000004); onChanged(); } else { dispatchRulesBuilder_.clear(); } return this; } /** *
     * HTTP path dispatch rules for requests to the application that do not
     * explicitly target a service or version. Rules are order-dependent.
     * @OutputOnly
     * 
* * repeated .google.appengine.v1.UrlDispatchRule dispatch_rules = 3; */ public Builder removeDispatchRules(int index) { if (dispatchRulesBuilder_ == null) { ensureDispatchRulesIsMutable(); dispatchRules_.remove(index); onChanged(); } else { dispatchRulesBuilder_.remove(index); } return this; } /** *
     * HTTP path dispatch rules for requests to the application that do not
     * explicitly target a service or version. Rules are order-dependent.
     * @OutputOnly
     * 
* * repeated .google.appengine.v1.UrlDispatchRule dispatch_rules = 3; */ public com.google.appengine.v1.UrlDispatchRule.Builder getDispatchRulesBuilder( int index) { return getDispatchRulesFieldBuilder().getBuilder(index); } /** *
     * HTTP path dispatch rules for requests to the application that do not
     * explicitly target a service or version. Rules are order-dependent.
     * @OutputOnly
     * 
* * repeated .google.appengine.v1.UrlDispatchRule dispatch_rules = 3; */ public com.google.appengine.v1.UrlDispatchRuleOrBuilder getDispatchRulesOrBuilder( int index) { if (dispatchRulesBuilder_ == null) { return dispatchRules_.get(index); } else { return dispatchRulesBuilder_.getMessageOrBuilder(index); } } /** *
     * HTTP path dispatch rules for requests to the application that do not
     * explicitly target a service or version. Rules are order-dependent.
     * @OutputOnly
     * 
* * repeated .google.appengine.v1.UrlDispatchRule dispatch_rules = 3; */ public java.util.List getDispatchRulesOrBuilderList() { if (dispatchRulesBuilder_ != null) { return dispatchRulesBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(dispatchRules_); } } /** *
     * HTTP path dispatch rules for requests to the application that do not
     * explicitly target a service or version. Rules are order-dependent.
     * @OutputOnly
     * 
* * repeated .google.appengine.v1.UrlDispatchRule dispatch_rules = 3; */ public com.google.appengine.v1.UrlDispatchRule.Builder addDispatchRulesBuilder() { return getDispatchRulesFieldBuilder().addBuilder( com.google.appengine.v1.UrlDispatchRule.getDefaultInstance()); } /** *
     * HTTP path dispatch rules for requests to the application that do not
     * explicitly target a service or version. Rules are order-dependent.
     * @OutputOnly
     * 
* * repeated .google.appengine.v1.UrlDispatchRule dispatch_rules = 3; */ public com.google.appengine.v1.UrlDispatchRule.Builder addDispatchRulesBuilder( int index) { return getDispatchRulesFieldBuilder().addBuilder( index, com.google.appengine.v1.UrlDispatchRule.getDefaultInstance()); } /** *
     * HTTP path dispatch rules for requests to the application that do not
     * explicitly target a service or version. Rules are order-dependent.
     * @OutputOnly
     * 
* * repeated .google.appengine.v1.UrlDispatchRule dispatch_rules = 3; */ public java.util.List getDispatchRulesBuilderList() { return getDispatchRulesFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.google.appengine.v1.UrlDispatchRule, com.google.appengine.v1.UrlDispatchRule.Builder, com.google.appengine.v1.UrlDispatchRuleOrBuilder> getDispatchRulesFieldBuilder() { if (dispatchRulesBuilder_ == null) { dispatchRulesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.google.appengine.v1.UrlDispatchRule, com.google.appengine.v1.UrlDispatchRule.Builder, com.google.appengine.v1.UrlDispatchRuleOrBuilder>( dispatchRules_, ((bitField0_ & 0x00000004) == 0x00000004), getParentForChildren(), isClean()); dispatchRules_ = null; } return dispatchRulesBuilder_; } private java.lang.Object authDomain_ = ""; /** *
     * Google Apps authentication domain that controls which users can access
     * this application.
     * Defaults to open access for any Google Account.
     * 
* * string auth_domain = 6; */ public java.lang.String getAuthDomain() { java.lang.Object ref = authDomain_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); authDomain_ = s; return s; } else { return (java.lang.String) ref; } } /** *
     * Google Apps authentication domain that controls which users can access
     * this application.
     * Defaults to open access for any Google Account.
     * 
* * string auth_domain = 6; */ public com.google.protobuf.ByteString getAuthDomainBytes() { java.lang.Object ref = authDomain_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); authDomain_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     * Google Apps authentication domain that controls which users can access
     * this application.
     * Defaults to open access for any Google Account.
     * 
* * string auth_domain = 6; */ public Builder setAuthDomain( java.lang.String value) { if (value == null) { throw new NullPointerException(); } authDomain_ = value; onChanged(); return this; } /** *
     * Google Apps authentication domain that controls which users can access
     * this application.
     * Defaults to open access for any Google Account.
     * 
* * string auth_domain = 6; */ public Builder clearAuthDomain() { authDomain_ = getDefaultInstance().getAuthDomain(); onChanged(); return this; } /** *
     * Google Apps authentication domain that controls which users can access
     * this application.
     * Defaults to open access for any Google Account.
     * 
* * string auth_domain = 6; */ public Builder setAuthDomainBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); authDomain_ = value; onChanged(); return this; } private java.lang.Object locationId_ = ""; /** *
     * Location from which this application will be run. Application instances
     * will run out of data centers in the chosen location, which is also where
     * all of the application's end user content is stored.
     * Defaults to `us-central`.
     * Options are:
     * `us-central` - Central US
     * `europe-west` - Western Europe
     * `us-east1` - Eastern US
     * 
* * string location_id = 7; */ public java.lang.String getLocationId() { java.lang.Object ref = locationId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); locationId_ = s; return s; } else { return (java.lang.String) ref; } } /** *
     * Location from which this application will be run. Application instances
     * will run out of data centers in the chosen location, which is also where
     * all of the application's end user content is stored.
     * Defaults to `us-central`.
     * Options are:
     * `us-central` - Central US
     * `europe-west` - Western Europe
     * `us-east1` - Eastern US
     * 
* * string location_id = 7; */ public com.google.protobuf.ByteString getLocationIdBytes() { java.lang.Object ref = locationId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); locationId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     * Location from which this application will be run. Application instances
     * will run out of data centers in the chosen location, which is also where
     * all of the application's end user content is stored.
     * Defaults to `us-central`.
     * Options are:
     * `us-central` - Central US
     * `europe-west` - Western Europe
     * `us-east1` - Eastern US
     * 
* * string location_id = 7; */ public Builder setLocationId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } locationId_ = value; onChanged(); return this; } /** *
     * Location from which this application will be run. Application instances
     * will run out of data centers in the chosen location, which is also where
     * all of the application's end user content is stored.
     * Defaults to `us-central`.
     * Options are:
     * `us-central` - Central US
     * `europe-west` - Western Europe
     * `us-east1` - Eastern US
     * 
* * string location_id = 7; */ public Builder clearLocationId() { locationId_ = getDefaultInstance().getLocationId(); onChanged(); return this; } /** *
     * Location from which this application will be run. Application instances
     * will run out of data centers in the chosen location, which is also where
     * all of the application's end user content is stored.
     * Defaults to `us-central`.
     * Options are:
     * `us-central` - Central US
     * `europe-west` - Western Europe
     * `us-east1` - Eastern US
     * 
* * string location_id = 7; */ public Builder setLocationIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); locationId_ = value; onChanged(); return this; } private java.lang.Object codeBucket_ = ""; /** *
     * Google Cloud Storage bucket that can be used for storing files
     * associated with this application. This bucket is associated with the
     * application and can be used by the gcloud deployment commands.
     * @OutputOnly
     * 
* * string code_bucket = 8; */ public java.lang.String getCodeBucket() { java.lang.Object ref = codeBucket_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); codeBucket_ = s; return s; } else { return (java.lang.String) ref; } } /** *
     * Google Cloud Storage bucket that can be used for storing files
     * associated with this application. This bucket is associated with the
     * application and can be used by the gcloud deployment commands.
     * @OutputOnly
     * 
* * string code_bucket = 8; */ public com.google.protobuf.ByteString getCodeBucketBytes() { java.lang.Object ref = codeBucket_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); codeBucket_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     * Google Cloud Storage bucket that can be used for storing files
     * associated with this application. This bucket is associated with the
     * application and can be used by the gcloud deployment commands.
     * @OutputOnly
     * 
* * string code_bucket = 8; */ public Builder setCodeBucket( java.lang.String value) { if (value == null) { throw new NullPointerException(); } codeBucket_ = value; onChanged(); return this; } /** *
     * Google Cloud Storage bucket that can be used for storing files
     * associated with this application. This bucket is associated with the
     * application and can be used by the gcloud deployment commands.
     * @OutputOnly
     * 
* * string code_bucket = 8; */ public Builder clearCodeBucket() { codeBucket_ = getDefaultInstance().getCodeBucket(); onChanged(); return this; } /** *
     * Google Cloud Storage bucket that can be used for storing files
     * associated with this application. This bucket is associated with the
     * application and can be used by the gcloud deployment commands.
     * @OutputOnly
     * 
* * string code_bucket = 8; */ public Builder setCodeBucketBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); codeBucket_ = value; onChanged(); return this; } private com.google.protobuf.Duration defaultCookieExpiration_ = null; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> defaultCookieExpirationBuilder_; /** *
     * Cookie expiration policy for this application.
     * @OutputOnly
     * 
* * .google.protobuf.Duration default_cookie_expiration = 9; */ public boolean hasDefaultCookieExpiration() { return defaultCookieExpirationBuilder_ != null || defaultCookieExpiration_ != null; } /** *
     * Cookie expiration policy for this application.
     * @OutputOnly
     * 
* * .google.protobuf.Duration default_cookie_expiration = 9; */ public com.google.protobuf.Duration getDefaultCookieExpiration() { if (defaultCookieExpirationBuilder_ == null) { return defaultCookieExpiration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : defaultCookieExpiration_; } else { return defaultCookieExpirationBuilder_.getMessage(); } } /** *
     * Cookie expiration policy for this application.
     * @OutputOnly
     * 
* * .google.protobuf.Duration default_cookie_expiration = 9; */ public Builder setDefaultCookieExpiration(com.google.protobuf.Duration value) { if (defaultCookieExpirationBuilder_ == null) { if (value == null) { throw new NullPointerException(); } defaultCookieExpiration_ = value; onChanged(); } else { defaultCookieExpirationBuilder_.setMessage(value); } return this; } /** *
     * Cookie expiration policy for this application.
     * @OutputOnly
     * 
* * .google.protobuf.Duration default_cookie_expiration = 9; */ public Builder setDefaultCookieExpiration( com.google.protobuf.Duration.Builder builderForValue) { if (defaultCookieExpirationBuilder_ == null) { defaultCookieExpiration_ = builderForValue.build(); onChanged(); } else { defaultCookieExpirationBuilder_.setMessage(builderForValue.build()); } return this; } /** *
     * Cookie expiration policy for this application.
     * @OutputOnly
     * 
* * .google.protobuf.Duration default_cookie_expiration = 9; */ public Builder mergeDefaultCookieExpiration(com.google.protobuf.Duration value) { if (defaultCookieExpirationBuilder_ == null) { if (defaultCookieExpiration_ != null) { defaultCookieExpiration_ = com.google.protobuf.Duration.newBuilder(defaultCookieExpiration_).mergeFrom(value).buildPartial(); } else { defaultCookieExpiration_ = value; } onChanged(); } else { defaultCookieExpirationBuilder_.mergeFrom(value); } return this; } /** *
     * Cookie expiration policy for this application.
     * @OutputOnly
     * 
* * .google.protobuf.Duration default_cookie_expiration = 9; */ public Builder clearDefaultCookieExpiration() { if (defaultCookieExpirationBuilder_ == null) { defaultCookieExpiration_ = null; onChanged(); } else { defaultCookieExpiration_ = null; defaultCookieExpirationBuilder_ = null; } return this; } /** *
     * Cookie expiration policy for this application.
     * @OutputOnly
     * 
* * .google.protobuf.Duration default_cookie_expiration = 9; */ public com.google.protobuf.Duration.Builder getDefaultCookieExpirationBuilder() { onChanged(); return getDefaultCookieExpirationFieldBuilder().getBuilder(); } /** *
     * Cookie expiration policy for this application.
     * @OutputOnly
     * 
* * .google.protobuf.Duration default_cookie_expiration = 9; */ public com.google.protobuf.DurationOrBuilder getDefaultCookieExpirationOrBuilder() { if (defaultCookieExpirationBuilder_ != null) { return defaultCookieExpirationBuilder_.getMessageOrBuilder(); } else { return defaultCookieExpiration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : defaultCookieExpiration_; } } /** *
     * Cookie expiration policy for this application.
     * @OutputOnly
     * 
* * .google.protobuf.Duration default_cookie_expiration = 9; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> getDefaultCookieExpirationFieldBuilder() { if (defaultCookieExpirationBuilder_ == null) { defaultCookieExpirationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>( getDefaultCookieExpiration(), getParentForChildren(), isClean()); defaultCookieExpiration_ = null; } return defaultCookieExpirationBuilder_; } private java.lang.Object defaultHostname_ = ""; /** *
     * Hostname used to reach this application, as resolved by App Engine.
     * @OutputOnly
     * 
* * string default_hostname = 11; */ public java.lang.String getDefaultHostname() { java.lang.Object ref = defaultHostname_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); defaultHostname_ = s; return s; } else { return (java.lang.String) ref; } } /** *
     * Hostname used to reach this application, as resolved by App Engine.
     * @OutputOnly
     * 
* * string default_hostname = 11; */ public com.google.protobuf.ByteString getDefaultHostnameBytes() { java.lang.Object ref = defaultHostname_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); defaultHostname_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     * Hostname used to reach this application, as resolved by App Engine.
     * @OutputOnly
     * 
* * string default_hostname = 11; */ public Builder setDefaultHostname( java.lang.String value) { if (value == null) { throw new NullPointerException(); } defaultHostname_ = value; onChanged(); return this; } /** *
     * Hostname used to reach this application, as resolved by App Engine.
     * @OutputOnly
     * 
* * string default_hostname = 11; */ public Builder clearDefaultHostname() { defaultHostname_ = getDefaultInstance().getDefaultHostname(); onChanged(); return this; } /** *
     * Hostname used to reach this application, as resolved by App Engine.
     * @OutputOnly
     * 
* * string default_hostname = 11; */ public Builder setDefaultHostnameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); defaultHostname_ = value; onChanged(); return this; } private java.lang.Object defaultBucket_ = ""; /** *
     * Google Cloud Storage bucket that can be used by this application to store
     * content.
     * @OutputOnly
     * 
* * string default_bucket = 12; */ public java.lang.String getDefaultBucket() { java.lang.Object ref = defaultBucket_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); defaultBucket_ = s; return s; } else { return (java.lang.String) ref; } } /** *
     * Google Cloud Storage bucket that can be used by this application to store
     * content.
     * @OutputOnly
     * 
* * string default_bucket = 12; */ public com.google.protobuf.ByteString getDefaultBucketBytes() { java.lang.Object ref = defaultBucket_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); defaultBucket_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     * Google Cloud Storage bucket that can be used by this application to store
     * content.
     * @OutputOnly
     * 
* * string default_bucket = 12; */ public Builder setDefaultBucket( java.lang.String value) { if (value == null) { throw new NullPointerException(); } defaultBucket_ = value; onChanged(); return this; } /** *
     * Google Cloud Storage bucket that can be used by this application to store
     * content.
     * @OutputOnly
     * 
* * string default_bucket = 12; */ public Builder clearDefaultBucket() { defaultBucket_ = getDefaultInstance().getDefaultBucket(); onChanged(); return this; } /** *
     * Google Cloud Storage bucket that can be used by this application to store
     * content.
     * @OutputOnly
     * 
* * string default_bucket = 12; */ public Builder setDefaultBucketBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); defaultBucket_ = 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.Application) } // @@protoc_insertion_point(class_scope:google.appengine.v1.Application) private static final com.google.appengine.v1.Application DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.appengine.v1.Application(); } public static com.google.appengine.v1.Application getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public Application parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Application(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.Application getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy