io.deephaven.kafka.protobuf.DescriptorMessageClass Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of deephaven-extensions-kafka Show documentation
Show all versions of deephaven-extensions-kafka Show documentation
Kafka: Integrating Engine tables with Kafka
The newest version!
//
// Copyright (c) 2016-2024 Deephaven Data Labs and Patent Pending
//
package io.deephaven.kafka.protobuf;
import com.google.protobuf.Message;
import io.deephaven.annotations.SimpleStyle;
import org.immutables.value.Value.Immutable;
import org.immutables.value.Value.Parameter;
/**
* A descriptor provider from a {@link #clazz() class} on the classpath.
*
* @param the message type
*/
@Immutable
@SimpleStyle
public abstract class DescriptorMessageClass implements DescriptorProvider {
public static DescriptorMessageClass of(Class clazz) {
return ImmutableDescriptorMessageClass.of(clazz);
}
/**
* The message class.
*
* @return the message class
*/
@Parameter
public abstract Class clazz();
}