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

io.provenance.marker.v1.Access Maven / Gradle / Ivy

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

package io.provenance.marker.v1;

/**
 * 
 * Access defines the different types of permissions that a marker supports granting to an address.
 * 
* * Protobuf enum {@code provenance.marker.v1.Access} */ public enum Access implements com.google.protobuf.ProtocolMessageEnum { /** *
   * ACCESS_UNSPECIFIED defines a no-op vote option.
   * 
* * ACCESS_UNSPECIFIED = 0 [(.gogoproto.enumvalue_customname) = "Unknown"]; */ ACCESS_UNSPECIFIED(0), /** *
   * ACCESS_MINT is the ability to increase the supply of a marker
   * 
* * ACCESS_MINT = 1 [(.gogoproto.enumvalue_customname) = "Mint"]; */ ACCESS_MINT(1), /** *
   * ACCESS_BURN is the ability to decrease the supply of the marker using coin held by the marker.
   * 
* * ACCESS_BURN = 2 [(.gogoproto.enumvalue_customname) = "Burn"]; */ ACCESS_BURN(2), /** *
   * ACCESS_DEPOSIT is the ability to set a marker reference to this marker in the metadata/scopes module
   * 
* * ACCESS_DEPOSIT = 3 [(.gogoproto.enumvalue_customname) = "Deposit"]; */ ACCESS_DEPOSIT(3), /** *
   * ACCESS_WITHDRAW is the ability to remove marker references to this marker in from metadata/scopes or
   * transfer coin from this marker account to another account.
   * 
* * ACCESS_WITHDRAW = 4 [(.gogoproto.enumvalue_customname) = "Withdraw"]; */ ACCESS_WITHDRAW(4), /** *
   * ACCESS_DELETE is the ability to move a proposed, finalized or active marker into the cancelled state. This
   * access also allows cancelled markers to be marked for deletion
   * 
* * ACCESS_DELETE = 5 [(.gogoproto.enumvalue_customname) = "Delete"]; */ ACCESS_DELETE(5), /** *
   * ACCESS_ADMIN is the ability to add access grants for accounts to the list of marker permissions.
   * 
* * ACCESS_ADMIN = 6 [(.gogoproto.enumvalue_customname) = "Admin"]; */ ACCESS_ADMIN(6), /** *
   * ACCESS_TRANSFER is the ability to invoke a send operation using the marker module to facilitate exchange.
   * This capability is useful when the marker denomination has "send enabled = false" preventing normal bank transfer
   * 
* * ACCESS_TRANSFER = 7 [(.gogoproto.enumvalue_customname) = "Transfer"]; */ ACCESS_TRANSFER(7), UNRECOGNIZED(-1), ; /** *
   * ACCESS_UNSPECIFIED defines a no-op vote option.
   * 
* * ACCESS_UNSPECIFIED = 0 [(.gogoproto.enumvalue_customname) = "Unknown"]; */ public static final int ACCESS_UNSPECIFIED_VALUE = 0; /** *
   * ACCESS_MINT is the ability to increase the supply of a marker
   * 
* * ACCESS_MINT = 1 [(.gogoproto.enumvalue_customname) = "Mint"]; */ public static final int ACCESS_MINT_VALUE = 1; /** *
   * ACCESS_BURN is the ability to decrease the supply of the marker using coin held by the marker.
   * 
* * ACCESS_BURN = 2 [(.gogoproto.enumvalue_customname) = "Burn"]; */ public static final int ACCESS_BURN_VALUE = 2; /** *
   * ACCESS_DEPOSIT is the ability to set a marker reference to this marker in the metadata/scopes module
   * 
* * ACCESS_DEPOSIT = 3 [(.gogoproto.enumvalue_customname) = "Deposit"]; */ public static final int ACCESS_DEPOSIT_VALUE = 3; /** *
   * ACCESS_WITHDRAW is the ability to remove marker references to this marker in from metadata/scopes or
   * transfer coin from this marker account to another account.
   * 
* * ACCESS_WITHDRAW = 4 [(.gogoproto.enumvalue_customname) = "Withdraw"]; */ public static final int ACCESS_WITHDRAW_VALUE = 4; /** *
   * ACCESS_DELETE is the ability to move a proposed, finalized or active marker into the cancelled state. This
   * access also allows cancelled markers to be marked for deletion
   * 
* * ACCESS_DELETE = 5 [(.gogoproto.enumvalue_customname) = "Delete"]; */ public static final int ACCESS_DELETE_VALUE = 5; /** *
   * ACCESS_ADMIN is the ability to add access grants for accounts to the list of marker permissions.
   * 
* * ACCESS_ADMIN = 6 [(.gogoproto.enumvalue_customname) = "Admin"]; */ public static final int ACCESS_ADMIN_VALUE = 6; /** *
   * ACCESS_TRANSFER is the ability to invoke a send operation using the marker module to facilitate exchange.
   * This capability is useful when the marker denomination has "send enabled = false" preventing normal bank transfer
   * 
* * ACCESS_TRANSFER = 7 [(.gogoproto.enumvalue_customname) = "Transfer"]; */ public static final int ACCESS_TRANSFER_VALUE = 7; 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 Access valueOf(int value) { return forNumber(value); } public static Access forNumber(int value) { switch (value) { case 0: return ACCESS_UNSPECIFIED; case 1: return ACCESS_MINT; case 2: return ACCESS_BURN; case 3: return ACCESS_DEPOSIT; case 4: return ACCESS_WITHDRAW; case 5: return ACCESS_DELETE; case 6: return ACCESS_ADMIN; case 7: return ACCESS_TRANSFER; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } private static final com.google.protobuf.Internal.EnumLiteMap< Access> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public Access findValueByNumber(int number) { return Access.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.marker.v1.AccessGrantProto.getDescriptor().getEnumTypes().get(0); } private static final Access[] VALUES = values(); public static Access 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 Access(int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:provenance.marker.v1.Access) }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy