
io.bloombox.schema.services.ServiceStatus Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of java-client Show documentation
Show all versions of java-client Show documentation
Java RPCAPI client for the Bloombox Cloud.
The newest version!
/*
* Copyright 2019, Momentum Ideas, Co. All rights reserved.
*
* Source and object computer code contained herein is the private intellectual
* property of Momentum Ideas Co., a Delaware Corporation. Use of this
* code in source form requires permission in writing before use or the
* assembly, distribution, or publishing of derivative works, for commercial
* purposes or any other purpose, from a duly authorized officer of Momentum
* Ideas Co.
*
* 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: services/ServiceStatus.proto
package io.bloombox.schema.services;
/**
*
* Specifies the status of this service in PING responses.
*
*
* Protobuf enum {@code bloombox.services.ServiceStatus}
*/
public enum ServiceStatus
implements com.google.protobuf.ProtocolMessageEnum {
/**
*
* The state of the service is not known.
*
*
* UNKNOWN = 0;
*/
UNKNOWN(0),
/**
*
* The service is up and functioning normally.
*
*
* UP = 1;
*/
UP(1),
/**
*
* The service is down.
*
*
* DOWN = 2;
*/
DOWN(2),
/**
*
* The service is under maintenance.
*
*
* MAINTENANCE = 3;
*/
MAINTENANCE(3),
UNRECOGNIZED(-1),
;
/**
*
* The state of the service is not known.
*
*
* UNKNOWN = 0;
*/
public static final int UNKNOWN_VALUE = 0;
/**
*
* The service is up and functioning normally.
*
*
* UP = 1;
*/
public static final int UP_VALUE = 1;
/**
*
* The service is down.
*
*
* DOWN = 2;
*/
public static final int DOWN_VALUE = 2;
/**
*
* The service is under maintenance.
*
*
* MAINTENANCE = 3;
*/
public static final int MAINTENANCE_VALUE = 3;
public final int getNumber() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalArgumentException(
"Can't get the number of an unknown enum value.");
}
return value;
}
/**
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static ServiceStatus valueOf(int value) {
return forNumber(value);
}
public static ServiceStatus forNumber(int value) {
switch (value) {
case 0: return UNKNOWN;
case 1: return UP;
case 2: return DOWN;
case 3: return MAINTENANCE;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap<
ServiceStatus> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap() {
public ServiceStatus findValueByNumber(int number) {
return ServiceStatus.forNumber(number);
}
};
public final com.google.protobuf.Descriptors.EnumValueDescriptor
getValueDescriptor() {
return getDescriptor().getValues().get(ordinal());
}
public final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptorForType() {
return getDescriptor();
}
public static final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptor() {
return io.bloombox.schema.services.ServiceStatusOuterClass.getDescriptor().getEnumTypes().get(0);
}
private static final ServiceStatus[] VALUES = values();
public static ServiceStatus valueOf(
com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
if (desc.getType() != getDescriptor()) {
throw new java.lang.IllegalArgumentException(
"EnumValueDescriptor is not for this type.");
}
if (desc.getIndex() == -1) {
return UNRECOGNIZED;
}
return VALUES[desc.getIndex()];
}
private final int value;
private ServiceStatus(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:bloombox.services.ServiceStatus)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy