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

io.deephaven.kafka.protobuf.DescriptorMessageClass Maven / Gradle / Ivy

There is a newer version: 0.37.1
Show 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();
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy