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

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

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

package io.provenance.metadata.v1;

/**
 * 
 * A set of types for inputs on a record (of fact)
 * 
* * Protobuf enum {@code provenance.metadata.v1.RecordInputStatus} */ public enum RecordInputStatus implements com.google.protobuf.ProtocolMessageEnum { /** *
   * RECORD_INPUT_STATUS_UNSPECIFIED indicates an invalid/unknown input type
   * 
* * RECORD_INPUT_STATUS_UNSPECIFIED = 0 [(.gogoproto.enumvalue_customname) = "Unknown"]; */ RECORD_INPUT_STATUS_UNSPECIFIED(0), /** *
   * RECORD_INPUT_STATUS_PROPOSED indicates this input was an arbitrary piece of data that was hashed
   * 
* * RECORD_INPUT_STATUS_PROPOSED = 1 [(.gogoproto.enumvalue_customname) = "Proposed"]; */ RECORD_INPUT_STATUS_PROPOSED(1), /** *
   * RECORD_INPUT_STATUS_RECORD indicates this input is a reference to a previously recorded fact on blockchain
   * 
* * RECORD_INPUT_STATUS_RECORD = 2 [(.gogoproto.enumvalue_customname) = "Record"]; */ RECORD_INPUT_STATUS_RECORD(2), UNRECOGNIZED(-1), ; /** *
   * RECORD_INPUT_STATUS_UNSPECIFIED indicates an invalid/unknown input type
   * 
* * RECORD_INPUT_STATUS_UNSPECIFIED = 0 [(.gogoproto.enumvalue_customname) = "Unknown"]; */ public static final int RECORD_INPUT_STATUS_UNSPECIFIED_VALUE = 0; /** *
   * RECORD_INPUT_STATUS_PROPOSED indicates this input was an arbitrary piece of data that was hashed
   * 
* * RECORD_INPUT_STATUS_PROPOSED = 1 [(.gogoproto.enumvalue_customname) = "Proposed"]; */ public static final int RECORD_INPUT_STATUS_PROPOSED_VALUE = 1; /** *
   * RECORD_INPUT_STATUS_RECORD indicates this input is a reference to a previously recorded fact on blockchain
   * 
* * RECORD_INPUT_STATUS_RECORD = 2 [(.gogoproto.enumvalue_customname) = "Record"]; */ public static final int RECORD_INPUT_STATUS_RECORD_VALUE = 2; 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 RecordInputStatus valueOf(int value) { return forNumber(value); } public static RecordInputStatus forNumber(int value) { switch (value) { case 0: return RECORD_INPUT_STATUS_UNSPECIFIED; case 1: return RECORD_INPUT_STATUS_PROPOSED; case 2: return RECORD_INPUT_STATUS_RECORD; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } private static final com.google.protobuf.Internal.EnumLiteMap< RecordInputStatus> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public RecordInputStatus findValueByNumber(int number) { return RecordInputStatus.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(0); } private static final RecordInputStatus[] VALUES = values(); public static RecordInputStatus 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 RecordInputStatus(int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:provenance.metadata.v1.RecordInputStatus) }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy