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 import java.util.List; 11 12 /** 13 * Utility class that aids in properly manipulating list fields for either the lite or full runtime. 14 */ 15 @CheckReturnValue 16 interface ListFieldSchema { 17 mutableListAt(Object msg, long offset)18 <L> List<L> mutableListAt(Object msg, long offset); 19 makeImmutableListAt(Object msg, long offset)20 void makeImmutableListAt(Object msg, long offset); 21 mergeListsAt(Object msg, Object otherMsg, long offset)22 <L> void mergeListsAt(Object msg, Object otherMsg, long offset); 23 } 24