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

yandex.cloud.api.mdb.kafka.v1.Common Maven / Gradle / Ivy

// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: yandex/cloud/mdb/kafka/v1/common.proto

package yandex.cloud.api.mdb.kafka.v1;

public final class Common {
  private Common() {}
  public static void registerAllExtensions(
      com.google.protobuf.ExtensionRegistryLite registry) {
  }

  public static void registerAllExtensions(
      com.google.protobuf.ExtensionRegistry registry) {
    registerAllExtensions(
        (com.google.protobuf.ExtensionRegistryLite) registry);
  }
  /**
   * Protobuf enum {@code yandex.cloud.mdb.kafka.v1.CompressionType}
   */
  public enum CompressionType
      implements com.google.protobuf.ProtocolMessageEnum {
    /**
     * COMPRESSION_TYPE_UNSPECIFIED = 0;
     */
    COMPRESSION_TYPE_UNSPECIFIED(0),
    /**
     * 
     * no codec (uncompressed).
     * 
* * COMPRESSION_TYPE_UNCOMPRESSED = 1; */ COMPRESSION_TYPE_UNCOMPRESSED(1), /** *
     * Zstandard codec.
     * 
* * COMPRESSION_TYPE_ZSTD = 2; */ COMPRESSION_TYPE_ZSTD(2), /** *
     * LZ4 codec.
     * 
* * COMPRESSION_TYPE_LZ4 = 3; */ COMPRESSION_TYPE_LZ4(3), /** *
     * Snappy codec.
     * 
* * COMPRESSION_TYPE_SNAPPY = 4; */ COMPRESSION_TYPE_SNAPPY(4), /** *
     * GZip codec.
     * 
* * COMPRESSION_TYPE_GZIP = 5; */ COMPRESSION_TYPE_GZIP(5), /** *
     * the codec to use is set by a producer (can be any of `ZSTD`, `LZ4`, `GZIP` or `SNAPPY` codecs).
     * 
* * COMPRESSION_TYPE_PRODUCER = 6; */ COMPRESSION_TYPE_PRODUCER(6), UNRECOGNIZED(-1), ; /** * COMPRESSION_TYPE_UNSPECIFIED = 0; */ public static final int COMPRESSION_TYPE_UNSPECIFIED_VALUE = 0; /** *
     * no codec (uncompressed).
     * 
* * COMPRESSION_TYPE_UNCOMPRESSED = 1; */ public static final int COMPRESSION_TYPE_UNCOMPRESSED_VALUE = 1; /** *
     * Zstandard codec.
     * 
* * COMPRESSION_TYPE_ZSTD = 2; */ public static final int COMPRESSION_TYPE_ZSTD_VALUE = 2; /** *
     * LZ4 codec.
     * 
* * COMPRESSION_TYPE_LZ4 = 3; */ public static final int COMPRESSION_TYPE_LZ4_VALUE = 3; /** *
     * Snappy codec.
     * 
* * COMPRESSION_TYPE_SNAPPY = 4; */ public static final int COMPRESSION_TYPE_SNAPPY_VALUE = 4; /** *
     * GZip codec.
     * 
* * COMPRESSION_TYPE_GZIP = 5; */ public static final int COMPRESSION_TYPE_GZIP_VALUE = 5; /** *
     * the codec to use is set by a producer (can be any of `ZSTD`, `LZ4`, `GZIP` or `SNAPPY` codecs).
     * 
* * COMPRESSION_TYPE_PRODUCER = 6; */ public static final int COMPRESSION_TYPE_PRODUCER_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 CompressionType 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 CompressionType forNumber(int value) { switch (value) { case 0: return COMPRESSION_TYPE_UNSPECIFIED; case 1: return COMPRESSION_TYPE_UNCOMPRESSED; case 2: return COMPRESSION_TYPE_ZSTD; case 3: return COMPRESSION_TYPE_LZ4; case 4: return COMPRESSION_TYPE_SNAPPY; case 5: return COMPRESSION_TYPE_GZIP; case 6: return COMPRESSION_TYPE_PRODUCER; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } private static final com.google.protobuf.Internal.EnumLiteMap< CompressionType> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public CompressionType findValueByNumber(int number) { return CompressionType.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 yandex.cloud.api.mdb.kafka.v1.Common.getDescriptor().getEnumTypes().get(0); } private static final CompressionType[] VALUES = values(); public static CompressionType 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 CompressionType(int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:yandex.cloud.mdb.kafka.v1.CompressionType) } /** * Protobuf enum {@code yandex.cloud.mdb.kafka.v1.SaslMechanism} */ public enum SaslMechanism implements com.google.protobuf.ProtocolMessageEnum { /** * SASL_MECHANISM_UNSPECIFIED = 0; */ SASL_MECHANISM_UNSPECIFIED(0), /** * SASL_MECHANISM_SCRAM_SHA_256 = 1; */ SASL_MECHANISM_SCRAM_SHA_256(1), /** * SASL_MECHANISM_SCRAM_SHA_512 = 2; */ SASL_MECHANISM_SCRAM_SHA_512(2), UNRECOGNIZED(-1), ; /** * SASL_MECHANISM_UNSPECIFIED = 0; */ public static final int SASL_MECHANISM_UNSPECIFIED_VALUE = 0; /** * SASL_MECHANISM_SCRAM_SHA_256 = 1; */ public static final int SASL_MECHANISM_SCRAM_SHA_256_VALUE = 1; /** * SASL_MECHANISM_SCRAM_SHA_512 = 2; */ public static final int SASL_MECHANISM_SCRAM_SHA_512_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; } /** * @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 SaslMechanism 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 SaslMechanism forNumber(int value) { switch (value) { case 0: return SASL_MECHANISM_UNSPECIFIED; case 1: return SASL_MECHANISM_SCRAM_SHA_256; case 2: return SASL_MECHANISM_SCRAM_SHA_512; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } private static final com.google.protobuf.Internal.EnumLiteMap< SaslMechanism> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public SaslMechanism findValueByNumber(int number) { return SaslMechanism.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 yandex.cloud.api.mdb.kafka.v1.Common.getDescriptor().getEnumTypes().get(1); } private static final SaslMechanism[] VALUES = values(); public static SaslMechanism 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 SaslMechanism(int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:yandex.cloud.mdb.kafka.v1.SaslMechanism) } public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; } private static com.google.protobuf.Descriptors.FileDescriptor descriptor; static { java.lang.String[] descriptorData = { "\n&yandex/cloud/mdb/kafka/v1/common.proto" + "\022\031yandex.cloud.mdb.kafka.v1*\342\001\n\017Compress" + "ionType\022 \n\034COMPRESSION_TYPE_UNSPECIFIED\020" + "\000\022!\n\035COMPRESSION_TYPE_UNCOMPRESSED\020\001\022\031\n\025" + "COMPRESSION_TYPE_ZSTD\020\002\022\030\n\024COMPRESSION_T" + "YPE_LZ4\020\003\022\033\n\027COMPRESSION_TYPE_SNAPPY\020\004\022\031" + "\n\025COMPRESSION_TYPE_GZIP\020\005\022\035\n\031COMPRESSION" + "_TYPE_PRODUCER\020\006*s\n\rSaslMechanism\022\036\n\032SAS" + "L_MECHANISM_UNSPECIFIED\020\000\022 \n\034SASL_MECHAN" + "ISM_SCRAM_SHA_256\020\001\022 \n\034SASL_MECHANISM_SC" + "RAM_SHA_512\020\002Bd\n\035yandex.cloud.api.mdb.ka" + "fka.v1ZCgithub.com/yandex-cloud/go-genpr" + "oto/yandex/cloud/mdb/kafka/v1;kafkab\006pro" + "to3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { }); } // @@protoc_insertion_point(outer_class_scope) }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy