@Test public void setAndGet() throws Exception { RpcProtocolVersions rpcVersions = RpcProtocolVersions.newBuilder() .setMaxRpcVersion( RpcProtocolVersions.Version.newBuilder().setMajor(2).setMinor(1).build()) .setMinRpcVersion( RpcProtocolVersions.Version.newBuilder().setMajor(2).setMinor(1).build()) .build(); AltsHandshakerOptions options = new AltsHandshakerOptions(rpcVersions); assertThat(options.getRpcProtocolVersions()).isEqualTo(rpcVersions); }
public RpcProtocolVersions getRpcProtocolVersions() { return rpcProtocolVersions; }
AltsHandshakerOptions { public RpcProtocolVersions getRpcProtocolVersions() { return rpcProtocolVersions; } }
AltsHandshakerOptions { public RpcProtocolVersions getRpcProtocolVersions() { return rpcProtocolVersions; } AltsHandshakerOptions(RpcProtocolVersions rpcProtocolVersions); }
AltsHandshakerOptions { public RpcProtocolVersions getRpcProtocolVersions() { return rpcProtocolVersions; } AltsHandshakerOptions(RpcProtocolVersions rpcProtocolVersions); RpcProtocolVersions getRpcProtocolVersions(); }
AltsHandshakerOptions { public RpcProtocolVersions getRpcProtocolVersions() { return rpcProtocolVersions; } AltsHandshakerOptions(RpcProtocolVersions rpcProtocolVersions); RpcProtocolVersions getRpcProtocolVersions();  }