OkHttpClientStream extends Http2ClientStream { public MethodDescriptor.MethodType getType() { return method.getType(); } OkHttpClientStream(
      MethodDescriptor<?, ?> method,
      Metadata headers,
      AsyncFrameWriter frameWriter,
      OkHttpClientTransport transport,
      OutboundFlowController outboundFlow,
      Object lock,
      int maxMessageSize,
      String authority); MethodDescriptor.MethodType getType(); @Override void request(final int numMessages); @Override @Nullable Integer id(); @Override void setAuthority(String authority); @Override void start(ClientStreamListener listener); @GuardedBy("lock") void start(Integer id); void allocated(); @GuardedBy("lock") void transportHeadersReceived(List<Header> headers, boolean endOfStream); @GuardedBy("lock") void transportDataReceived(okio.Buffer frame, boolean endOfStream); @Override void remoteEndClosed();  }
@Test public void getType() { assertEquals(MethodType.UNARY, stream.getType()); }