com.salesforce.hyperdb.grpc.OutputFormat Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jdbc Show documentation
Show all versions of jdbc Show documentation
Salesforce Data Cloud JDBC Driver
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: hyper_service.proto
package com.salesforce.hyperdb.grpc;
/**
* Protobuf enum {@code salesforce.hyperdb.grpc.v1.OutputFormat}
*/
public enum OutputFormat
implements com.google.protobuf.ProtocolMessageEnum {
/**
* TEXT_DEBUG = 0;
*/
TEXT_DEBUG(0),
/**
* ARROW_LEGACY_V1 = 2;
*/
ARROW_LEGACY_V1(2),
/**
* JSON_LEGACY_V1 = 3;
*/
JSON_LEGACY_V1(3),
/**
* ARROW_LEGACY_V2 = 4;
*/
ARROW_LEGACY_V2(4),
/**
* ARROW_V3 = 5;
*/
ARROW_V3(5),
/**
* JSON_V2 = 6;
*/
JSON_V2(6),
UNRECOGNIZED(-1),
;
/**
* TEXT_DEBUG = 0;
*/
public static final int TEXT_DEBUG_VALUE = 0;
/**
* ARROW_LEGACY_V1 = 2;
*/
public static final int ARROW_LEGACY_V1_VALUE = 2;
/**
* JSON_LEGACY_V1 = 3;
*/
public static final int JSON_LEGACY_V1_VALUE = 3;
/**
* ARROW_LEGACY_V2 = 4;
*/
public static final int ARROW_LEGACY_V2_VALUE = 4;
/**
* ARROW_V3 = 5;
*/
public static final int ARROW_V3_VALUE = 5;
/**
* JSON_V2 = 6;
*/
public static final int JSON_V2_VALUE = 6;
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 OutputFormat 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 OutputFormat forNumber(int value) {
switch (value) {
case 0: return TEXT_DEBUG;
case 2: return ARROW_LEGACY_V1;
case 3: return JSON_LEGACY_V1;
case 4: return ARROW_LEGACY_V2;
case 5: return ARROW_V3;
case 6: return JSON_V2;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap<
OutputFormat> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap() {
public OutputFormat findValueByNumber(int number) {
return OutputFormat.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.salesforce.hyperdb.grpc.HyperDatabaseServiceProto.getDescriptor().getEnumTypes().get(0);
}
private static final OutputFormat[] VALUES = values();
public static OutputFormat 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 OutputFormat(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:salesforce.hyperdb.grpc.v1.OutputFormat)
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy