chore: add default_host and oauth_scopes annotations to support new client library generators.
PiperOrigin-RevId: 312781839
This commit is contained in:
parent
dec3204175
commit
acdadb2d16
|
|
@ -18,6 +18,7 @@ proto_library(
|
|||
],
|
||||
deps = [
|
||||
"//google/api:annotations_proto",
|
||||
"//google/api:client_proto",
|
||||
"//google/rpc:status_proto",
|
||||
"//google/type:latlng_proto",
|
||||
"@com_google_protobuf//:empty_proto",
|
||||
|
|
@ -113,35 +114,33 @@ go_proto_library(
|
|||
],
|
||||
)
|
||||
|
||||
#go_gapic_library(
|
||||
# name = "publish_go_gapic",
|
||||
# src = ":publish_proto_with_info",
|
||||
# gapic_yaml = "//google/streetview/publish:streetview_publish_gapic.yaml",
|
||||
# importpath = "google.golang.org/api/streetviewpublish/v1",
|
||||
# package = "google.streetview.publish.v1",
|
||||
# service_yaml = "//google/streetview/publish:streetview_publish.yaml",
|
||||
# deps = [
|
||||
# ":publish_go_proto",
|
||||
# ],
|
||||
#)
|
||||
#
|
||||
#go_test(
|
||||
# name = "publish_go_gapic_test",
|
||||
# srcs = [":publish_go_gapic_srcjar_test"],
|
||||
# embed = [":publish_go_gapic"],
|
||||
# importpath = "google.golang.org/api/streetviewpublish/v1",
|
||||
#)
|
||||
#
|
||||
go_gapic_library(
|
||||
name = "publish_go_gapic",
|
||||
srcs = [":publish_proto_with_info"],
|
||||
gapic_yaml = "//google/streetview/publish:streetview_publish_gapic.yaml",
|
||||
importpath = "google.golang.org/api/streetviewpublish/apiv1;streetviewpublish",
|
||||
service_yaml = "//google/streetview/publish:streetview_publish.yaml",
|
||||
deps = [
|
||||
":publish_go_proto",
|
||||
],
|
||||
)
|
||||
|
||||
go_test(
|
||||
name = "publish_go_gapic_test",
|
||||
srcs = [":publish_go_gapic_srcjar_test"],
|
||||
embed = [":publish_go_gapic"],
|
||||
importpath = "google.golang.org/api/streetviewpublish/apiv1",
|
||||
)
|
||||
|
||||
## Open Source Packages
|
||||
#go_gapic_assembly_pkg(
|
||||
# name = "gapi-cloud-streetview-publish-v1-go",
|
||||
# deps = [
|
||||
# ":publish_go_gapic",
|
||||
# ":publish_go_gapic_srcjar-smoke-test.srcjar",
|
||||
# ":publish_go_gapic_srcjar-test.srcjar",
|
||||
# ":publish_go_proto",
|
||||
# ],
|
||||
#)
|
||||
go_gapic_assembly_pkg(
|
||||
name = "gapi-cloud-streetview-publish-v1-go",
|
||||
deps = [
|
||||
":publish_go_gapic",
|
||||
":publish_go_gapic_srcjar-test.srcjar",
|
||||
":publish_go_proto",
|
||||
],
|
||||
)
|
||||
|
||||
##############################################################################
|
||||
# Python
|
||||
|
|
@ -160,6 +159,7 @@ moved_proto_library(
|
|||
srcs = [":publish_proto"],
|
||||
deps = [
|
||||
"//google/api:annotations_proto",
|
||||
"//google/api:client_proto",
|
||||
"//google/rpc:status_proto",
|
||||
"//google/type:latlng_proto",
|
||||
"@com_google_protobuf//:empty_proto",
|
||||
|
|
|
|||
|
|
@ -17,6 +17,7 @@ syntax = "proto3";
|
|||
package google.streetview.publish.v1;
|
||||
|
||||
import "google/api/annotations.proto";
|
||||
import "google/api/client.proto";
|
||||
import "google/protobuf/empty.proto";
|
||||
import "google/streetview/publish/v1/resources.proto";
|
||||
import "google/streetview/publish/v1/rpcmessages.proto";
|
||||
|
|
@ -29,6 +30,9 @@ option java_package = "com.google.geo.ugc.streetview.publish.v1";
|
|||
|
||||
// Publishes and connects user-contributed photos on Street View.
|
||||
service StreetViewPublishService {
|
||||
option (google.api.default_host) = "streetviewpublish.googleapis.com";
|
||||
option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/streetviewpublish";
|
||||
|
||||
// Creates an upload session to start uploading photo bytes. The method uses
|
||||
// the upload URL of the returned
|
||||
// [UploadRef][google.streetview.publish.v1.UploadRef] to upload the bytes for
|
||||
|
|
|
|||
Loading…
Reference in New Issue