Skip to content

Commit

Permalink
feat: Add location methods
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 499272288

Source-Link: googleapis/googleapis@62c5867

Source-Link: googleapis/googleapis-gen@d1a5f9d
Copy-Tag: eyJwIjoiYXBpcy9Hb29nbGUuQ2xvdWQuQmlnUXVlcnkuRGF0YVRyYW5zZmVyLlYxLy5Pd2xCb3QueWFtbCIsImgiOiJkMWE1ZjlkNDY0NmU0Y2Y3OGZkZWFkMDY4YzNlOGMwNjQzNDdjZTQ1In0=
  • Loading branch information
gcf-owl-bot[bot] authored and jskeet committed Jan 4, 2023
1 parent a8855da commit 3e84841
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
Expand Up @@ -17,6 +17,7 @@
#pragma warning disable CS8981
using gaxgrpc = Google.Api.Gax.Grpc;
using gcl = Google.Cloud.Location;
using proto = Google.Protobuf;
using gpr = Google.Protobuf.Reflection;
using scg = System.Collections.Generic;

Expand All @@ -27,7 +28,20 @@ internal static class PackageApiMetadata
{
/// <summary>The <see cref="gaxgrpc::ApiMetadata"/> for services in this package.</summary>
internal static gaxgrpc::ApiMetadata ApiMetadata { get; } = new gaxgrpc::ApiMetadata("Google.Cloud.BigQuery.DataTransfer.V1", GetFileDescriptors)
.WithRequestNumericEnumJsonEncoding(true);
.WithRequestNumericEnumJsonEncoding(true)
.WithHttpRuleOverrides(new scg::Dictionary<string, proto::ByteString>
{
{
"google.cloud.location.Locations.GetLocation",
// { "get": "/v1/{name=projects/*/locations/*}" }
proto::ByteString.FromBase64("EiEvdjEve25hbWU9cHJvamVjdHMvKi9sb2NhdGlvbnMvKn0=")
},
{
"google.cloud.location.Locations.ListLocations",
// { "get": "/v1/{name=projects/*}/locations" }
proto::ByteString.FromBase64("Eh8vdjEve25hbWU9cHJvamVjdHMvKn0vbG9jYXRpb25z")
},
});

private static scg::IEnumerable<gpr::FileDescriptor> GetFileDescriptors()
{
Expand Down
Expand Up @@ -18,6 +18,7 @@
using gaxgrpc = Google.Api.Gax.Grpc;
using gcbdv = Google.Cloud.BigQuery.DataTransfer.V1;
using gcl = Google.Cloud.Location;
using proto = Google.Protobuf;
using gpr = Google.Protobuf.Reflection;
using sys = System;
using scg = System.Collections.Generic;
Expand Down

0 comments on commit 3e84841

Please sign in to comment.