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 manufactures {@link Schema} instances for protobuf messages. */ 11 @ExperimentalApi 12 @CheckReturnValue 13 interface SchemaFactory { 14 /** Creates a schema instance for the given protobuf message type. */ createSchema(Class<T> messageType)15 <T> Schema<T> createSchema(Class<T> messageType); 16 } 17