/** Return the list of information about clients to be generated. */ private static ImmutableList<GapicInterfaceInput> createInterfaceInputsWithoutGapicConfig( Collection<Interface> protoInterfaces) { // Store info about each Interface in a GapicInterfaceInput object. ImmutableList.Builder<GapicInterfaceInput> interfaceInputs = ImmutableList.builder(); for (Interface apiInterface : protoInterfaces) { GapicInterfaceInput.Builder interfaceInput = GapicInterfaceInput.newBuilder() .setInterface(apiInterface) .setInterfaceConfigProto(InterfaceConfigProto.getDefaultInstance()) .setMethodsToGenerate(findMethodsToGenerateWithoutConfigYaml(apiInterface)); interfaceInputs.add(interfaceInput.build()); } return interfaceInputs.build(); }