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

com.google.protobuf.OnlyForUseByGeneratedProtoCode.kt Maven / Gradle / Ivy

package com.google.protobuf.kotlin

/**
 * Opt-in annotation to make it difficult to accidentally use APIs only intended for use by proto
 * generated code.  See https://kotlinlang.org/docs/reference/opt-in-requirements.html for details
 * on how this API works.
 */
@RequiresOptIn(
  message =
    """
    This API is only intended for use by generated protobuf code, the code generator, and their own
    tests.  If this does not describe your code, you should not be using this API.
  """,
  level = RequiresOptIn.Level.ERROR
)
@Retention(AnnotationRetention.BINARY)
@Target(AnnotationTarget.CONSTRUCTOR, AnnotationTarget.ANNOTATION_CLASS)
annotation class OnlyForUseByGeneratedProtoCode




© 2015 - 2025 Weber Informatics LLC | Privacy Policy