1 // Protocol Buffers - Google's data interchange format 2 // Copyright 2008 Google Inc. All rights reserved. 3 // 4 // Use of this source code is governed by a BSD-style 5 // license that can be found in the LICENSE file or at 6 // https://developers.google.com/open-source/licenses/bsd 7 8 package com.google.protobuf; 9 10 /** A factory that creates {@link MessageInfo} instances for message types. */ 11 @ExperimentalApi 12 @CheckReturnValue 13 interface MessageInfoFactory { 14 /** Whether the message class is supported by this factory. */ isSupported(Class<?> clazz)15 boolean isSupported(Class<?> clazz); 16 17 /** Returns a information of the message class. */ messageInfoFor(Class<?> clazz)18 MessageInfo messageInfoFor(Class<?> clazz); 19 } 20