io.bloombox.schema.services.telemetry.v1beta2.OperationStatus 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.
/*
* Copyright 2017, Bloombox, LLC. All rights reserved.
*
* Source and object computer code contained herein is the private intellectual property
* of Bloombox, a California Limited Liability Corporation. Use of this code in source form
* requires permission in writing before use or the 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: telemetry/v1beta2/TelemetryService_Beta2.proto
package io.bloombox.schema.services.telemetry.v1beta2;
/**
*
* Specifies status codes that a response may provide.
*
*
* Protobuf enum {@code services.telemetry.v1beta2.OperationStatus}
*/
public enum OperationStatus
implements com.google.protobuf.ProtocolMessageEnum {
/**
*
* Everything went well.
*
*
* OK = 0;
*/
OK(0),
/**
*
* An error of some kind occurred.
*
*
* ERROR = 1;
*/
ERROR(1),
UNRECOGNIZED(-1),
;
/**
*
* Everything went well.
*
*
* OK = 0;
*/
public static final int OK_VALUE = 0;
/**
*
* An error of some kind occurred.
*
*
* ERROR = 1;
*/
public static final int ERROR_VALUE = 1;
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 OperationStatus valueOf(int value) {
return forNumber(value);
}
public static OperationStatus forNumber(int value) {
switch (value) {
case 0: return OK;
case 1: return ERROR;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap<
OperationStatus> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap() {
public OperationStatus findValueByNumber(int number) {
return OperationStatus.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.telemetry.v1beta2.TelemetryServiceBeta2.getDescriptor().getEnumTypes().get(0);
}
private static final OperationStatus[] VALUES = values();
public static OperationStatus 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 OperationStatus(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:services.telemetry.v1beta2.OperationStatus)
}