Skip to content

Removing ServiceRpcT parameterization#1759

Merged
garrettjonesgoogle merged 14 commits intogoogleapis:masterfrom
garrettjonesgoogle:master
Mar 17, 2017
Merged

Removing ServiceRpcT parameterization#1759
garrettjonesgoogle merged 14 commits intogoogleapis:masterfrom
garrettjonesgoogle:master

Conversation

@garrettjonesgoogle
Copy link
Copy Markdown
Contributor

Fixes #1601

Also:

  • Moving spi/*Rpc classes to spi/{MAJOR_VERSION}/*Rpc
  • Renaming DefaultRpc classes to HttpRpc/Grpc*Rpc as appropriate

Note: There are references in google-cloud-examples to Rpc-specific stuff (Only Tuples I think); I will file a separate issue to remove those.

@googlebot googlebot added the cla: yes This human has signed the Contributor License Agreement. label Mar 16, 2017
@michaelbausor
Copy link
Copy Markdown
Contributor

I re-read the issue, but I am still not sure why we need to remove the ServiceRpcT parameterization. As an example, currently BigQueryOptions extends ServiceOptions<BigQuery, BigQueryRpc, BigQueryOptions>. The BigQueryRpc interface is independent of http/grpc, even if DefaultBigQueryRpc (now HttpBigQueryRpc) is not.

*/

package com.google.cloud.bigquery.spi;
package com.google.cloud.bigquery.spi.v2;

This comment was marked as spam.

This comment was marked as spam.

@garrettjonesgoogle
Copy link
Copy Markdown
Contributor Author

@michaelbausor , The Rpc interface (e.g. BigQueryRpc) is tied to old-platform vs proto and also the specific major version. When the Rpc class is old-platform, only http 1 is available. My understanding is that the design of using a fully wrapped surface means that old-platform vs proto and major versions shouldn't be exposed.

@coveralls
Copy link
Copy Markdown

Coverage Status

Changes Unknown when pulling 2461921 on garrettjonesgoogle:master into ** on GoogleCloudPlatform:master**.


/** Factory to create instances of {@code SpannerRpc}. */
public interface SpannerRpcFactory extends ServiceRpcFactory<SpannerRpc, SpannerOptions> {}
public interface SpannerRpcFactory extends ServiceRpcFactory<SpannerOptions> {} No newline at end of file

This comment was marked as spam.

import com.google.cloud.HttpTransportOptions;
import com.google.cloud.compute.ComputeException;
import com.google.cloud.compute.ComputeOptions;
import com.google.cloud.compute.spi.v1.ComputeRpc;

This comment was marked as spam.

import static org.mockito.Mockito.verify;
import static org.mockito.Mockito.when;

import com.google.cloud.spanner.spi.v1.WatchdogInterceptor;

This comment was marked as spam.


@Override
public ComputeRpc create(ComputeOptions options) {
public ServiceRpc create(ComputeOptions options) {

This comment was marked as spam.

This comment was marked as spam.

This comment was marked as spam.

}

protected BigQueryRpc getBigQueryRpc() {
protected BigQueryRpc getBigQueryRpcV2() {

This comment was marked as spam.

This comment was marked as spam.

This comment was marked as spam.

Copy link
Copy Markdown
Contributor

@michaelbausor michaelbausor left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, your choice of what to do about nits.

@garrettjonesgoogle garrettjonesgoogle merged commit e2edc3c into googleapis:master Mar 17, 2017
chingor13 pushed a commit that referenced this pull request Jan 22, 2026
chingor13 pushed a commit that referenced this pull request Feb 24, 2026
Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com>
chingor13 pushed a commit that referenced this pull request Mar 12, 2026
Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com>
lqiu96 pushed a commit that referenced this pull request Mar 20, 2026
suztomo pushed a commit to suztomo/google-cloud-java that referenced this pull request Mar 23, 2026
suztomo pushed a commit that referenced this pull request Mar 30, 2026
Also:

* Moving spi/*Rpc classes to spi/{MAJOR_VERSION}/*Rpc
* Renaming DefaultRpc classes to HttpRpc/Grpc*Rpc as appropriate
lqiu96 pushed a commit that referenced this pull request Apr 1, 2026
Also:

* Moving spi/*Rpc classes to spi/{MAJOR_VERSION}/*Rpc
* Renaming DefaultRpc classes to HttpRpc/Grpc*Rpc as appropriate
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cla: yes This human has signed the Contributor License Agreement.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants