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

io.provenance.metadata.v1.ResultStatus Maven / Gradle / Ivy

// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: provenance/metadata/v1/scope.proto

package io.provenance.metadata.v1;

/**
 * 
 * ResultStatus indicates the various states of execution of a record
 * 
* * Protobuf enum {@code provenance.metadata.v1.ResultStatus} */ public enum ResultStatus implements com.google.protobuf.ProtocolMessageEnum { /** *
   * RESULT_STATUS_UNSPECIFIED indicates an unset condition
   * 
* * RESULT_STATUS_UNSPECIFIED = 0; */ RESULT_STATUS_UNSPECIFIED(0), /** *
   * RESULT_STATUS_PASS indicates the execution was successfult
   * 
* * RESULT_STATUS_PASS = 1; */ RESULT_STATUS_PASS(1), /** *
   * RESULT_STATUS_SKIP indicates condition/consideration was skipped due to missing inputs or delayed execution
   * 
* * RESULT_STATUS_SKIP = 2; */ RESULT_STATUS_SKIP(2), /** *
   * RESULT_STATUS_FAIL indicates the execution of the condition/consideration failed.
   * 
* * RESULT_STATUS_FAIL = 3; */ RESULT_STATUS_FAIL(3), UNRECOGNIZED(-1), ; /** *
   * RESULT_STATUS_UNSPECIFIED indicates an unset condition
   * 
* * RESULT_STATUS_UNSPECIFIED = 0; */ public static final int RESULT_STATUS_UNSPECIFIED_VALUE = 0; /** *
   * RESULT_STATUS_PASS indicates the execution was successfult
   * 
* * RESULT_STATUS_PASS = 1; */ public static final int RESULT_STATUS_PASS_VALUE = 1; /** *
   * RESULT_STATUS_SKIP indicates condition/consideration was skipped due to missing inputs or delayed execution
   * 
* * RESULT_STATUS_SKIP = 2; */ public static final int RESULT_STATUS_SKIP_VALUE = 2; /** *
   * RESULT_STATUS_FAIL indicates the execution of the condition/consideration failed.
   * 
* * RESULT_STATUS_FAIL = 3; */ public static final int RESULT_STATUS_FAIL_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 ResultStatus valueOf(int value) { return forNumber(value); } public static ResultStatus forNumber(int value) { switch (value) { case 0: return RESULT_STATUS_UNSPECIFIED; case 1: return RESULT_STATUS_PASS; case 2: return RESULT_STATUS_SKIP; case 3: return RESULT_STATUS_FAIL; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } private static final com.google.protobuf.Internal.EnumLiteMap< ResultStatus> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public ResultStatus findValueByNumber(int number) { return ResultStatus.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.provenance.metadata.v1.ScopeOuterClass.getDescriptor().getEnumTypes().get(1); } private static final ResultStatus[] VALUES = values(); public static ResultStatus 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 ResultStatus(int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:provenance.metadata.v1.ResultStatus) }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy