com.hedera.hashgraph.sdk.proto.TokenKeyValidation Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of sdk-full Show documentation
Show all versions of sdk-full Show documentation
Hedera™ Hashgraph SDK for Java
The newest version!
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: basic_types.proto
// Protobuf Java Version: 3.25.3
package com.hedera.hashgraph.sdk.proto;
/**
*
**
* Types of validation strategies for token keys.
*
*
* Protobuf enum {@code proto.TokenKeyValidation}
*/
public enum TokenKeyValidation
implements com.google.protobuf.ProtocolMessageEnum {
/**
*
**
* Currently the default behaviour. It will perform all token key validations.
*
*
* FULL_VALIDATION = 0;
*/
FULL_VALIDATION(0),
/**
*
**
* Perform no validations at all for all passed token keys.
*
*
* NO_VALIDATION = 1;
*/
NO_VALIDATION(1),
UNRECOGNIZED(-1),
;
/**
*
**
* Currently the default behaviour. It will perform all token key validations.
*
*
* FULL_VALIDATION = 0;
*/
public static final int FULL_VALIDATION_VALUE = 0;
/**
*
**
* Perform no validations at all for all passed token keys.
*
*
* NO_VALIDATION = 1;
*/
public static final int NO_VALIDATION_VALUE = 1;
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 TokenKeyValidation 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 TokenKeyValidation forNumber(int value) {
switch (value) {
case 0: return FULL_VALIDATION;
case 1: return NO_VALIDATION;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap<
TokenKeyValidation> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap() {
public TokenKeyValidation findValueByNumber(int number) {
return TokenKeyValidation.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.hedera.hashgraph.sdk.proto.BasicTypes.getDescriptor().getEnumTypes().get(4);
}
private static final TokenKeyValidation[] VALUES = values();
public static TokenKeyValidation 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 TokenKeyValidation(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:proto.TokenKeyValidation)
}