/* * Copyright (c) Meta Platforms, Inc. and affiliates. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ namespace java.swift test.fixtures.stream safe server exception FooStreamEx {} safe server exception FooEx {} safe server exception FooEx2 {} service PubSubStreamingService { stream returnstream(1: i32 i32_from, 2: i32 i32_to); stream streamthrows(1: i32 foo); stream servicethrows(1: i32 foo) throws (1: FooEx e); stream servicethrows2(1: i32 foo) throws (1: FooEx e1, 2: FooEx2 e2); stream boththrows(1: i32 foo) throws ( 1: FooEx e, ); i32, stream responseandstreamstreamthrows( 1: i32 foo, ); i32, stream responseandstreamservicethrows(1: i32 foo) throws ( 1: FooEx e, ); i32, stream responseandstreamboththrows( 1: i32 foo, ) throws (1: FooEx e); stream returnstreamFast(1: i32 i32_from, 2: i32 i32_to) (thread = 'eb'); }