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

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

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

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

/**
 *
 *
 * 
 * Readiness checking configuration for VM instances. Unhealthy instances
 * are removed from traffic rotation.
 * 
* * Protobuf type {@code google.appengine.v1.ReadinessCheck} */ public final class ReadinessCheck extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.appengine.v1.ReadinessCheck) ReadinessCheckOrBuilder { private static final long serialVersionUID = 0L; // Use ReadinessCheck.newBuilder() to construct. private ReadinessCheck(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ReadinessCheck() { path_ = ""; host_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ReadinessCheck(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.appengine.v1.AppYamlProto .internal_static_google_appengine_v1_ReadinessCheck_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.appengine.v1.AppYamlProto .internal_static_google_appengine_v1_ReadinessCheck_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.appengine.v1.ReadinessCheck.class, com.google.appengine.v1.ReadinessCheck.Builder.class); } private int bitField0_; public static final int PATH_FIELD_NUMBER = 1; @SuppressWarnings("serial") private volatile java.lang.Object path_ = ""; /** * * *
   * The request path.
   * 
* * string path = 1; * * @return The path. */ @java.lang.Override public java.lang.String getPath() { java.lang.Object ref = path_; 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(); path_ = s; return s; } } /** * * *
   * The request path.
   * 
* * string path = 1; * * @return The bytes for path. */ @java.lang.Override public com.google.protobuf.ByteString getPathBytes() { java.lang.Object ref = path_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); path_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int HOST_FIELD_NUMBER = 2; @SuppressWarnings("serial") private volatile java.lang.Object host_ = ""; /** * * *
   * Host header to send when performing a HTTP Readiness check.
   * Example: "myapp.appspot.com"
   * 
* * string host = 2; * * @return The host. */ @java.lang.Override public java.lang.String getHost() { java.lang.Object ref = host_; 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(); host_ = s; return s; } } /** * * *
   * Host header to send when performing a HTTP Readiness check.
   * Example: "myapp.appspot.com"
   * 
* * string host = 2; * * @return The bytes for host. */ @java.lang.Override public com.google.protobuf.ByteString getHostBytes() { java.lang.Object ref = host_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); host_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int FAILURE_THRESHOLD_FIELD_NUMBER = 3; private int failureThreshold_ = 0; /** * * *
   * Number of consecutive failed checks required before removing
   * traffic.
   * 
* * uint32 failure_threshold = 3; * * @return The failureThreshold. */ @java.lang.Override public int getFailureThreshold() { return failureThreshold_; } public static final int SUCCESS_THRESHOLD_FIELD_NUMBER = 4; private int successThreshold_ = 0; /** * * *
   * Number of consecutive successful checks required before receiving
   * traffic.
   * 
* * uint32 success_threshold = 4; * * @return The successThreshold. */ @java.lang.Override public int getSuccessThreshold() { return successThreshold_; } public static final int CHECK_INTERVAL_FIELD_NUMBER = 5; private com.google.protobuf.Duration checkInterval_; /** * * *
   * Interval between health checks.
   * 
* * .google.protobuf.Duration check_interval = 5; * * @return Whether the checkInterval field is set. */ @java.lang.Override public boolean hasCheckInterval() { return ((bitField0_ & 0x00000001) != 0); } /** * * *
   * Interval between health checks.
   * 
* * .google.protobuf.Duration check_interval = 5; * * @return The checkInterval. */ @java.lang.Override public com.google.protobuf.Duration getCheckInterval() { return checkInterval_ == null ? com.google.protobuf.Duration.getDefaultInstance() : checkInterval_; } /** * * *
   * Interval between health checks.
   * 
* * .google.protobuf.Duration check_interval = 5; */ @java.lang.Override public com.google.protobuf.DurationOrBuilder getCheckIntervalOrBuilder() { return checkInterval_ == null ? com.google.protobuf.Duration.getDefaultInstance() : checkInterval_; } public static final int TIMEOUT_FIELD_NUMBER = 6; private com.google.protobuf.Duration timeout_; /** * * *
   * Time before the check is considered failed.
   * 
* * .google.protobuf.Duration timeout = 6; * * @return Whether the timeout field is set. */ @java.lang.Override public boolean hasTimeout() { return ((bitField0_ & 0x00000002) != 0); } /** * * *
   * Time before the check is considered failed.
   * 
* * .google.protobuf.Duration timeout = 6; * * @return The timeout. */ @java.lang.Override public com.google.protobuf.Duration getTimeout() { return timeout_ == null ? com.google.protobuf.Duration.getDefaultInstance() : timeout_; } /** * * *
   * Time before the check is considered failed.
   * 
* * .google.protobuf.Duration timeout = 6; */ @java.lang.Override public com.google.protobuf.DurationOrBuilder getTimeoutOrBuilder() { return timeout_ == null ? com.google.protobuf.Duration.getDefaultInstance() : timeout_; } public static final int APP_START_TIMEOUT_FIELD_NUMBER = 7; private com.google.protobuf.Duration appStartTimeout_; /** * * *
   * A maximum time limit on application initialization, measured from moment
   * the application successfully replies to a healthcheck until it is ready to
   * serve traffic.
   * 
* * .google.protobuf.Duration app_start_timeout = 7; * * @return Whether the appStartTimeout field is set. */ @java.lang.Override public boolean hasAppStartTimeout() { return ((bitField0_ & 0x00000004) != 0); } /** * * *
   * A maximum time limit on application initialization, measured from moment
   * the application successfully replies to a healthcheck until it is ready to
   * serve traffic.
   * 
* * .google.protobuf.Duration app_start_timeout = 7; * * @return The appStartTimeout. */ @java.lang.Override public com.google.protobuf.Duration getAppStartTimeout() { return appStartTimeout_ == null ? com.google.protobuf.Duration.getDefaultInstance() : appStartTimeout_; } /** * * *
   * A maximum time limit on application initialization, measured from moment
   * the application successfully replies to a healthcheck until it is ready to
   * serve traffic.
   * 
* * .google.protobuf.Duration app_start_timeout = 7; */ @java.lang.Override public com.google.protobuf.DurationOrBuilder getAppStartTimeoutOrBuilder() { return appStartTimeout_ == null ? com.google.protobuf.Duration.getDefaultInstance() : appStartTimeout_; } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(path_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, path_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(host_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, host_); } if (failureThreshold_ != 0) { output.writeUInt32(3, failureThreshold_); } if (successThreshold_ != 0) { output.writeUInt32(4, successThreshold_); } if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(5, getCheckInterval()); } if (((bitField0_ & 0x00000002) != 0)) { output.writeMessage(6, getTimeout()); } if (((bitField0_ & 0x00000004) != 0)) { output.writeMessage(7, getAppStartTimeout()); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(path_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, path_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(host_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, host_); } if (failureThreshold_ != 0) { size += com.google.protobuf.CodedOutputStream.computeUInt32Size(3, failureThreshold_); } if (successThreshold_ != 0) { size += com.google.protobuf.CodedOutputStream.computeUInt32Size(4, successThreshold_); } if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getCheckInterval()); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getTimeout()); } if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getAppStartTimeout()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.google.appengine.v1.ReadinessCheck)) { return super.equals(obj); } com.google.appengine.v1.ReadinessCheck other = (com.google.appengine.v1.ReadinessCheck) obj; if (!getPath().equals(other.getPath())) return false; if (!getHost().equals(other.getHost())) return false; if (getFailureThreshold() != other.getFailureThreshold()) return false; if (getSuccessThreshold() != other.getSuccessThreshold()) return false; if (hasCheckInterval() != other.hasCheckInterval()) return false; if (hasCheckInterval()) { if (!getCheckInterval().equals(other.getCheckInterval())) return false; } if (hasTimeout() != other.hasTimeout()) return false; if (hasTimeout()) { if (!getTimeout().equals(other.getTimeout())) return false; } if (hasAppStartTimeout() != other.hasAppStartTimeout()) return false; if (hasAppStartTimeout()) { if (!getAppStartTimeout().equals(other.getAppStartTimeout())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + PATH_FIELD_NUMBER; hash = (53 * hash) + getPath().hashCode(); hash = (37 * hash) + HOST_FIELD_NUMBER; hash = (53 * hash) + getHost().hashCode(); hash = (37 * hash) + FAILURE_THRESHOLD_FIELD_NUMBER; hash = (53 * hash) + getFailureThreshold(); hash = (37 * hash) + SUCCESS_THRESHOLD_FIELD_NUMBER; hash = (53 * hash) + getSuccessThreshold(); if (hasCheckInterval()) { hash = (37 * hash) + CHECK_INTERVAL_FIELD_NUMBER; hash = (53 * hash) + getCheckInterval().hashCode(); } if (hasTimeout()) { hash = (37 * hash) + TIMEOUT_FIELD_NUMBER; hash = (53 * hash) + getTimeout().hashCode(); } if (hasAppStartTimeout()) { hash = (37 * hash) + APP_START_TIMEOUT_FIELD_NUMBER; hash = (53 * hash) + getAppStartTimeout().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.appengine.v1.ReadinessCheck parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.appengine.v1.ReadinessCheck 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.ReadinessCheck parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.appengine.v1.ReadinessCheck 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.ReadinessCheck parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.appengine.v1.ReadinessCheck parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.appengine.v1.ReadinessCheck parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static com.google.appengine.v1.ReadinessCheck 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.ReadinessCheck parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.appengine.v1.ReadinessCheck 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.ReadinessCheck parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static com.google.appengine.v1.ReadinessCheck parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException( PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(com.google.appengine.v1.ReadinessCheck prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * * *
   * Readiness checking configuration for VM instances. Unhealthy instances
   * are removed from traffic rotation.
   * 
* * Protobuf type {@code google.appengine.v1.ReadinessCheck} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.appengine.v1.ReadinessCheck) com.google.appengine.v1.ReadinessCheckOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.appengine.v1.AppYamlProto .internal_static_google_appengine_v1_ReadinessCheck_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.appengine.v1.AppYamlProto .internal_static_google_appengine_v1_ReadinessCheck_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.appengine.v1.ReadinessCheck.class, com.google.appengine.v1.ReadinessCheck.Builder.class); } // Construct using com.google.appengine.v1.ReadinessCheck.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getCheckIntervalFieldBuilder(); getTimeoutFieldBuilder(); getAppStartTimeoutFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; path_ = ""; host_ = ""; failureThreshold_ = 0; successThreshold_ = 0; checkInterval_ = null; if (checkIntervalBuilder_ != null) { checkIntervalBuilder_.dispose(); checkIntervalBuilder_ = null; } timeout_ = null; if (timeoutBuilder_ != null) { timeoutBuilder_.dispose(); timeoutBuilder_ = null; } appStartTimeout_ = null; if (appStartTimeoutBuilder_ != null) { appStartTimeoutBuilder_.dispose(); appStartTimeoutBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.appengine.v1.AppYamlProto .internal_static_google_appengine_v1_ReadinessCheck_descriptor; } @java.lang.Override public com.google.appengine.v1.ReadinessCheck getDefaultInstanceForType() { return com.google.appengine.v1.ReadinessCheck.getDefaultInstance(); } @java.lang.Override public com.google.appengine.v1.ReadinessCheck build() { com.google.appengine.v1.ReadinessCheck result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.appengine.v1.ReadinessCheck buildPartial() { com.google.appengine.v1.ReadinessCheck result = new com.google.appengine.v1.ReadinessCheck(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(com.google.appengine.v1.ReadinessCheck result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.path_ = path_; } if (((from_bitField0_ & 0x00000002) != 0)) { result.host_ = host_; } if (((from_bitField0_ & 0x00000004) != 0)) { result.failureThreshold_ = failureThreshold_; } if (((from_bitField0_ & 0x00000008) != 0)) { result.successThreshold_ = successThreshold_; } int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000010) != 0)) { result.checkInterval_ = checkIntervalBuilder_ == null ? checkInterval_ : checkIntervalBuilder_.build(); to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000020) != 0)) { result.timeout_ = timeoutBuilder_ == null ? timeout_ : timeoutBuilder_.build(); to_bitField0_ |= 0x00000002; } if (((from_bitField0_ & 0x00000040) != 0)) { result.appStartTimeout_ = appStartTimeoutBuilder_ == null ? appStartTimeout_ : appStartTimeoutBuilder_.build(); to_bitField0_ |= 0x00000004; } result.bitField0_ |= to_bitField0_; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.appengine.v1.ReadinessCheck) { return mergeFrom((com.google.appengine.v1.ReadinessCheck) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.appengine.v1.ReadinessCheck other) { if (other == com.google.appengine.v1.ReadinessCheck.getDefaultInstance()) return this; if (!other.getPath().isEmpty()) { path_ = other.path_; bitField0_ |= 0x00000001; onChanged(); } if (!other.getHost().isEmpty()) { host_ = other.host_; bitField0_ |= 0x00000002; onChanged(); } if (other.getFailureThreshold() != 0) { setFailureThreshold(other.getFailureThreshold()); } if (other.getSuccessThreshold() != 0) { setSuccessThreshold(other.getSuccessThreshold()); } if (other.hasCheckInterval()) { mergeCheckInterval(other.getCheckInterval()); } if (other.hasTimeout()) { mergeTimeout(other.getTimeout()); } if (other.hasAppStartTimeout()) { mergeAppStartTimeout(other.getAppStartTimeout()); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { path_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000001; break; } // case 10 case 18: { host_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000002; break; } // case 18 case 24: { failureThreshold_ = input.readUInt32(); bitField0_ |= 0x00000004; break; } // case 24 case 32: { successThreshold_ = input.readUInt32(); bitField0_ |= 0x00000008; break; } // case 32 case 42: { input.readMessage(getCheckIntervalFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000010; break; } // case 42 case 50: { input.readMessage(getTimeoutFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000020; break; } // case 50 case 58: { input.readMessage(getAppStartTimeoutFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000040; break; } // case 58 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private java.lang.Object path_ = ""; /** * * *
     * The request path.
     * 
* * string path = 1; * * @return The path. */ public java.lang.String getPath() { java.lang.Object ref = path_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); path_ = s; return s; } else { return (java.lang.String) ref; } } /** * * *
     * The request path.
     * 
* * string path = 1; * * @return The bytes for path. */ public com.google.protobuf.ByteString getPathBytes() { java.lang.Object ref = path_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); path_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
     * The request path.
     * 
* * string path = 1; * * @param value The path to set. * @return This builder for chaining. */ public Builder setPath(java.lang.String value) { if (value == null) { throw new NullPointerException(); } path_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** * * *
     * The request path.
     * 
* * string path = 1; * * @return This builder for chaining. */ public Builder clearPath() { path_ = getDefaultInstance().getPath(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** * * *
     * The request path.
     * 
* * string path = 1; * * @param value The bytes for path to set. * @return This builder for chaining. */ public Builder setPathBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); path_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } private java.lang.Object host_ = ""; /** * * *
     * Host header to send when performing a HTTP Readiness check.
     * Example: "myapp.appspot.com"
     * 
* * string host = 2; * * @return The host. */ public java.lang.String getHost() { java.lang.Object ref = host_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); host_ = s; return s; } else { return (java.lang.String) ref; } } /** * * *
     * Host header to send when performing a HTTP Readiness check.
     * Example: "myapp.appspot.com"
     * 
* * string host = 2; * * @return The bytes for host. */ public com.google.protobuf.ByteString getHostBytes() { java.lang.Object ref = host_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); host_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
     * Host header to send when performing a HTTP Readiness check.
     * Example: "myapp.appspot.com"
     * 
* * string host = 2; * * @param value The host to set. * @return This builder for chaining. */ public Builder setHost(java.lang.String value) { if (value == null) { throw new NullPointerException(); } host_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** * * *
     * Host header to send when performing a HTTP Readiness check.
     * Example: "myapp.appspot.com"
     * 
* * string host = 2; * * @return This builder for chaining. */ public Builder clearHost() { host_ = getDefaultInstance().getHost(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } /** * * *
     * Host header to send when performing a HTTP Readiness check.
     * Example: "myapp.appspot.com"
     * 
* * string host = 2; * * @param value The bytes for host to set. * @return This builder for chaining. */ public Builder setHostBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); host_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } private int failureThreshold_; /** * * *
     * Number of consecutive failed checks required before removing
     * traffic.
     * 
* * uint32 failure_threshold = 3; * * @return The failureThreshold. */ @java.lang.Override public int getFailureThreshold() { return failureThreshold_; } /** * * *
     * Number of consecutive failed checks required before removing
     * traffic.
     * 
* * uint32 failure_threshold = 3; * * @param value The failureThreshold to set. * @return This builder for chaining. */ public Builder setFailureThreshold(int value) { failureThreshold_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** * * *
     * Number of consecutive failed checks required before removing
     * traffic.
     * 
* * uint32 failure_threshold = 3; * * @return This builder for chaining. */ public Builder clearFailureThreshold() { bitField0_ = (bitField0_ & ~0x00000004); failureThreshold_ = 0; onChanged(); return this; } private int successThreshold_; /** * * *
     * Number of consecutive successful checks required before receiving
     * traffic.
     * 
* * uint32 success_threshold = 4; * * @return The successThreshold. */ @java.lang.Override public int getSuccessThreshold() { return successThreshold_; } /** * * *
     * Number of consecutive successful checks required before receiving
     * traffic.
     * 
* * uint32 success_threshold = 4; * * @param value The successThreshold to set. * @return This builder for chaining. */ public Builder setSuccessThreshold(int value) { successThreshold_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** * * *
     * Number of consecutive successful checks required before receiving
     * traffic.
     * 
* * uint32 success_threshold = 4; * * @return This builder for chaining. */ public Builder clearSuccessThreshold() { bitField0_ = (bitField0_ & ~0x00000008); successThreshold_ = 0; onChanged(); return this; } private com.google.protobuf.Duration checkInterval_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> checkIntervalBuilder_; /** * * *
     * Interval between health checks.
     * 
* * .google.protobuf.Duration check_interval = 5; * * @return Whether the checkInterval field is set. */ public boolean hasCheckInterval() { return ((bitField0_ & 0x00000010) != 0); } /** * * *
     * Interval between health checks.
     * 
* * .google.protobuf.Duration check_interval = 5; * * @return The checkInterval. */ public com.google.protobuf.Duration getCheckInterval() { if (checkIntervalBuilder_ == null) { return checkInterval_ == null ? com.google.protobuf.Duration.getDefaultInstance() : checkInterval_; } else { return checkIntervalBuilder_.getMessage(); } } /** * * *
     * Interval between health checks.
     * 
* * .google.protobuf.Duration check_interval = 5; */ public Builder setCheckInterval(com.google.protobuf.Duration value) { if (checkIntervalBuilder_ == null) { if (value == null) { throw new NullPointerException(); } checkInterval_ = value; } else { checkIntervalBuilder_.setMessage(value); } bitField0_ |= 0x00000010; onChanged(); return this; } /** * * *
     * Interval between health checks.
     * 
* * .google.protobuf.Duration check_interval = 5; */ public Builder setCheckInterval(com.google.protobuf.Duration.Builder builderForValue) { if (checkIntervalBuilder_ == null) { checkInterval_ = builderForValue.build(); } else { checkIntervalBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000010; onChanged(); return this; } /** * * *
     * Interval between health checks.
     * 
* * .google.protobuf.Duration check_interval = 5; */ public Builder mergeCheckInterval(com.google.protobuf.Duration value) { if (checkIntervalBuilder_ == null) { if (((bitField0_ & 0x00000010) != 0) && checkInterval_ != null && checkInterval_ != com.google.protobuf.Duration.getDefaultInstance()) { getCheckIntervalBuilder().mergeFrom(value); } else { checkInterval_ = value; } } else { checkIntervalBuilder_.mergeFrom(value); } if (checkInterval_ != null) { bitField0_ |= 0x00000010; onChanged(); } return this; } /** * * *
     * Interval between health checks.
     * 
* * .google.protobuf.Duration check_interval = 5; */ public Builder clearCheckInterval() { bitField0_ = (bitField0_ & ~0x00000010); checkInterval_ = null; if (checkIntervalBuilder_ != null) { checkIntervalBuilder_.dispose(); checkIntervalBuilder_ = null; } onChanged(); return this; } /** * * *
     * Interval between health checks.
     * 
* * .google.protobuf.Duration check_interval = 5; */ public com.google.protobuf.Duration.Builder getCheckIntervalBuilder() { bitField0_ |= 0x00000010; onChanged(); return getCheckIntervalFieldBuilder().getBuilder(); } /** * * *
     * Interval between health checks.
     * 
* * .google.protobuf.Duration check_interval = 5; */ public com.google.protobuf.DurationOrBuilder getCheckIntervalOrBuilder() { if (checkIntervalBuilder_ != null) { return checkIntervalBuilder_.getMessageOrBuilder(); } else { return checkInterval_ == null ? com.google.protobuf.Duration.getDefaultInstance() : checkInterval_; } } /** * * *
     * Interval between health checks.
     * 
* * .google.protobuf.Duration check_interval = 5; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> getCheckIntervalFieldBuilder() { if (checkIntervalBuilder_ == null) { checkIntervalBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>( getCheckInterval(), getParentForChildren(), isClean()); checkInterval_ = null; } return checkIntervalBuilder_; } private com.google.protobuf.Duration timeout_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> timeoutBuilder_; /** * * *
     * Time before the check is considered failed.
     * 
* * .google.protobuf.Duration timeout = 6; * * @return Whether the timeout field is set. */ public boolean hasTimeout() { return ((bitField0_ & 0x00000020) != 0); } /** * * *
     * Time before the check is considered failed.
     * 
* * .google.protobuf.Duration timeout = 6; * * @return The timeout. */ public com.google.protobuf.Duration getTimeout() { if (timeoutBuilder_ == null) { return timeout_ == null ? com.google.protobuf.Duration.getDefaultInstance() : timeout_; } else { return timeoutBuilder_.getMessage(); } } /** * * *
     * Time before the check is considered failed.
     * 
* * .google.protobuf.Duration timeout = 6; */ public Builder setTimeout(com.google.protobuf.Duration value) { if (timeoutBuilder_ == null) { if (value == null) { throw new NullPointerException(); } timeout_ = value; } else { timeoutBuilder_.setMessage(value); } bitField0_ |= 0x00000020; onChanged(); return this; } /** * * *
     * Time before the check is considered failed.
     * 
* * .google.protobuf.Duration timeout = 6; */ public Builder setTimeout(com.google.protobuf.Duration.Builder builderForValue) { if (timeoutBuilder_ == null) { timeout_ = builderForValue.build(); } else { timeoutBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000020; onChanged(); return this; } /** * * *
     * Time before the check is considered failed.
     * 
* * .google.protobuf.Duration timeout = 6; */ public Builder mergeTimeout(com.google.protobuf.Duration value) { if (timeoutBuilder_ == null) { if (((bitField0_ & 0x00000020) != 0) && timeout_ != null && timeout_ != com.google.protobuf.Duration.getDefaultInstance()) { getTimeoutBuilder().mergeFrom(value); } else { timeout_ = value; } } else { timeoutBuilder_.mergeFrom(value); } if (timeout_ != null) { bitField0_ |= 0x00000020; onChanged(); } return this; } /** * * *
     * Time before the check is considered failed.
     * 
* * .google.protobuf.Duration timeout = 6; */ public Builder clearTimeout() { bitField0_ = (bitField0_ & ~0x00000020); timeout_ = null; if (timeoutBuilder_ != null) { timeoutBuilder_.dispose(); timeoutBuilder_ = null; } onChanged(); return this; } /** * * *
     * Time before the check is considered failed.
     * 
* * .google.protobuf.Duration timeout = 6; */ public com.google.protobuf.Duration.Builder getTimeoutBuilder() { bitField0_ |= 0x00000020; onChanged(); return getTimeoutFieldBuilder().getBuilder(); } /** * * *
     * Time before the check is considered failed.
     * 
* * .google.protobuf.Duration timeout = 6; */ public com.google.protobuf.DurationOrBuilder getTimeoutOrBuilder() { if (timeoutBuilder_ != null) { return timeoutBuilder_.getMessageOrBuilder(); } else { return timeout_ == null ? com.google.protobuf.Duration.getDefaultInstance() : timeout_; } } /** * * *
     * Time before the check is considered failed.
     * 
* * .google.protobuf.Duration timeout = 6; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> getTimeoutFieldBuilder() { if (timeoutBuilder_ == null) { timeoutBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>( getTimeout(), getParentForChildren(), isClean()); timeout_ = null; } return timeoutBuilder_; } private com.google.protobuf.Duration appStartTimeout_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> appStartTimeoutBuilder_; /** * * *
     * A maximum time limit on application initialization, measured from moment
     * the application successfully replies to a healthcheck until it is ready to
     * serve traffic.
     * 
* * .google.protobuf.Duration app_start_timeout = 7; * * @return Whether the appStartTimeout field is set. */ public boolean hasAppStartTimeout() { return ((bitField0_ & 0x00000040) != 0); } /** * * *
     * A maximum time limit on application initialization, measured from moment
     * the application successfully replies to a healthcheck until it is ready to
     * serve traffic.
     * 
* * .google.protobuf.Duration app_start_timeout = 7; * * @return The appStartTimeout. */ public com.google.protobuf.Duration getAppStartTimeout() { if (appStartTimeoutBuilder_ == null) { return appStartTimeout_ == null ? com.google.protobuf.Duration.getDefaultInstance() : appStartTimeout_; } else { return appStartTimeoutBuilder_.getMessage(); } } /** * * *
     * A maximum time limit on application initialization, measured from moment
     * the application successfully replies to a healthcheck until it is ready to
     * serve traffic.
     * 
* * .google.protobuf.Duration app_start_timeout = 7; */ public Builder setAppStartTimeout(com.google.protobuf.Duration value) { if (appStartTimeoutBuilder_ == null) { if (value == null) { throw new NullPointerException(); } appStartTimeout_ = value; } else { appStartTimeoutBuilder_.setMessage(value); } bitField0_ |= 0x00000040; onChanged(); return this; } /** * * *
     * A maximum time limit on application initialization, measured from moment
     * the application successfully replies to a healthcheck until it is ready to
     * serve traffic.
     * 
* * .google.protobuf.Duration app_start_timeout = 7; */ public Builder setAppStartTimeout(com.google.protobuf.Duration.Builder builderForValue) { if (appStartTimeoutBuilder_ == null) { appStartTimeout_ = builderForValue.build(); } else { appStartTimeoutBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000040; onChanged(); return this; } /** * * *
     * A maximum time limit on application initialization, measured from moment
     * the application successfully replies to a healthcheck until it is ready to
     * serve traffic.
     * 
* * .google.protobuf.Duration app_start_timeout = 7; */ public Builder mergeAppStartTimeout(com.google.protobuf.Duration value) { if (appStartTimeoutBuilder_ == null) { if (((bitField0_ & 0x00000040) != 0) && appStartTimeout_ != null && appStartTimeout_ != com.google.protobuf.Duration.getDefaultInstance()) { getAppStartTimeoutBuilder().mergeFrom(value); } else { appStartTimeout_ = value; } } else { appStartTimeoutBuilder_.mergeFrom(value); } if (appStartTimeout_ != null) { bitField0_ |= 0x00000040; onChanged(); } return this; } /** * * *
     * A maximum time limit on application initialization, measured from moment
     * the application successfully replies to a healthcheck until it is ready to
     * serve traffic.
     * 
* * .google.protobuf.Duration app_start_timeout = 7; */ public Builder clearAppStartTimeout() { bitField0_ = (bitField0_ & ~0x00000040); appStartTimeout_ = null; if (appStartTimeoutBuilder_ != null) { appStartTimeoutBuilder_.dispose(); appStartTimeoutBuilder_ = null; } onChanged(); return this; } /** * * *
     * A maximum time limit on application initialization, measured from moment
     * the application successfully replies to a healthcheck until it is ready to
     * serve traffic.
     * 
* * .google.protobuf.Duration app_start_timeout = 7; */ public com.google.protobuf.Duration.Builder getAppStartTimeoutBuilder() { bitField0_ |= 0x00000040; onChanged(); return getAppStartTimeoutFieldBuilder().getBuilder(); } /** * * *
     * A maximum time limit on application initialization, measured from moment
     * the application successfully replies to a healthcheck until it is ready to
     * serve traffic.
     * 
* * .google.protobuf.Duration app_start_timeout = 7; */ public com.google.protobuf.DurationOrBuilder getAppStartTimeoutOrBuilder() { if (appStartTimeoutBuilder_ != null) { return appStartTimeoutBuilder_.getMessageOrBuilder(); } else { return appStartTimeout_ == null ? com.google.protobuf.Duration.getDefaultInstance() : appStartTimeout_; } } /** * * *
     * A maximum time limit on application initialization, measured from moment
     * the application successfully replies to a healthcheck until it is ready to
     * serve traffic.
     * 
* * .google.protobuf.Duration app_start_timeout = 7; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> getAppStartTimeoutFieldBuilder() { if (appStartTimeoutBuilder_ == null) { appStartTimeoutBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>( getAppStartTimeout(), getParentForChildren(), isClean()); appStartTimeout_ = null; } return appStartTimeoutBuilder_; } @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:google.appengine.v1.ReadinessCheck) } // @@protoc_insertion_point(class_scope:google.appengine.v1.ReadinessCheck) private static final com.google.appengine.v1.ReadinessCheck DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.appengine.v1.ReadinessCheck(); } public static com.google.appengine.v1.ReadinessCheck getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public ReadinessCheck parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public com.google.appengine.v1.ReadinessCheck getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy