Annotation Interface WithDefaultInstance


@Target(TYPE_USE) @Retention(RUNTIME) public @interface WithDefaultInstance
Provides a default instance to use as the base for mutations of the annotated Message or DynamicMessage.Builder.
  • Required Element Summary

    Required Elements
    Modifier and Type
    Required Element
    Description
    The fully qualified name of a static method (e.g.
  • Element Details

    • value

      String value
      The fully qualified name of a static method (e.g. com.example.MyClass#getDefaultInstance) with return type assignable to Message, which returns a default instance that mutations should be based on.