• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1<?php
2// GENERATED CODE -- DO NOT EDIT!
3
4// Original file comments:
5// Copyright 2016 gRPC authors.
6//
7// Licensed under the Apache License, Version 2.0 (the "License");
8// you may not use this file except in compliance with the License.
9// You may obtain a copy of the License at
10//
11//     http://www.apache.org/licenses/LICENSE-2.0
12//
13// Unless required by applicable law or agreed to in writing, software
14// distributed under the License is distributed on an "AS IS" BASIS,
15// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16// See the License for the specific language governing permissions and
17// limitations under the License.
18//
19// File detached comment 1
20//
21// File detached comment 2
22//
23// File leading comment 1
24namespace Grpc\Testing;
25
26/**
27 * ServiceA detached comment 1
28 *
29 * ServiceA detached comment 2
30 *
31 * ServiceA leading comment 1
32 */
33class ServiceAClient extends \Grpc\BaseStub {
34
35    /**
36     * @param string $hostname hostname
37     * @param array $opts channel options
38     * @param \Grpc\Channel $channel (optional) re-use channel object
39     */
40    public function __construct($hostname, $opts, $channel = null) {
41        parent::__construct($hostname, $opts, $channel);
42    }
43
44    /**
45     * MethodA1 leading comment 1
46     * @param \Grpc\Testing\Request $argument input argument
47     * @param array $metadata metadata
48     * @param array $options call options
49     * @return \Grpc\Testing\Response
50     */
51    public function MethodA1(\Grpc\Testing\Request $argument,
52      $metadata = [], $options = []) {
53        return $this->_simpleRequest('/grpc.testing.ServiceA/MethodA1',
54        $argument,
55        ['\Grpc\Testing\Response', 'decode'],
56        $metadata, $options);
57    }
58
59    /**
60     * MethodA2 detached leading comment 1
61     *
62     * Method A2 leading comment 1
63     * Method A2 leading comment 2
64     * @param array $metadata metadata
65     * @param array $options call options
66     * @return \Grpc\Testing\Response
67     */
68    public function MethodA2($metadata = [], $options = []) {
69        return $this->_clientStreamRequest('/grpc.testing.ServiceA/MethodA2',
70        ['\Grpc\Testing\Response','decode'],
71        $metadata, $options);
72    }
73
74    /**
75     * Method A3 leading comment 1
76     * @param \Grpc\Testing\Request $argument input argument
77     * @param array $metadata metadata
78     * @param array $options call options
79     * @return \Grpc\Testing\Response
80     */
81    public function MethodA3(\Grpc\Testing\Request $argument,
82      $metadata = [], $options = []) {
83        return $this->_serverStreamRequest('/grpc.testing.ServiceA/MethodA3',
84        $argument,
85        ['\Grpc\Testing\Response', 'decode'],
86        $metadata, $options);
87    }
88
89    /**
90     * Method A4 leading comment 1
91     * @param array $metadata metadata
92     * @param array $options call options
93     * @return \Grpc\Testing\Response
94     */
95    public function MethodA4($metadata = [], $options = []) {
96        return $this->_bidiRequest('/grpc.testing.ServiceA/MethodA4',
97        ['\Grpc\Testing\Response','decode'],
98        $metadata, $options);
99    }
100
101}
102