com.yelp.nrtsearch.server.grpc.TransferStatusCode Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of clientlib Show documentation
Show all versions of clientlib Show documentation
GRPC Clientlib for nrtSearch
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: yelp/nrtsearch/luceneserver.proto
// Protobuf Java Version: 3.25.3
package com.yelp.nrtsearch.server.grpc;
/**
* Protobuf enum {@code luceneserver.TransferStatusCode}
*/
public enum TransferStatusCode
implements com.google.protobuf.ProtocolMessageEnum {
/**
* Unknown = 0;
*/
Unknown(0),
/**
* Done = 1;
*/
Done(1),
/**
* Failed = 2;
*/
Failed(2),
/**
* Ongoing = 3;
*/
Ongoing(3),
UNRECOGNIZED(-1),
;
/**
* Unknown = 0;
*/
public static final int Unknown_VALUE = 0;
/**
* Done = 1;
*/
public static final int Done_VALUE = 1;
/**
* Failed = 2;
*/
public static final int Failed_VALUE = 2;
/**
* Ongoing = 3;
*/
public static final int Ongoing_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;
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static TransferStatusCode valueOf(int value) {
return forNumber(value);
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
*/
public static TransferStatusCode forNumber(int value) {
switch (value) {
case 0: return Unknown;
case 1: return Done;
case 2: return Failed;
case 3: return Ongoing;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap<
TransferStatusCode> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap() {
public TransferStatusCode findValueByNumber(int number) {
return TransferStatusCode.forNumber(number);
}
};
public final com.google.protobuf.Descriptors.EnumValueDescriptor
getValueDescriptor() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalStateException(
"Can't get the descriptor of an unrecognized enum value.");
}
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 com.yelp.nrtsearch.server.grpc.LuceneServerProto.getDescriptor().getEnumTypes().get(7);
}
private static final TransferStatusCode[] VALUES = values();
public static TransferStatusCode 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 TransferStatusCode(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:luceneserver.TransferStatusCode)
}