/// <summary>Register service method implementations with a service binder. Useful when customizing the service binding logic. /// Note: this method is part of an experimental API that can change or be removed without any prior notice.</summary> /// <param name="serviceBinder">Service methods will be bound by calling <c>AddMethod</c> on this object.</param> /// <param name="serviceImpl">An object implementing the server-side handling logic.</param> public static void BindService(grpc::ServiceBinderBase serviceBinder, AssetServiceBase serviceImpl) { serviceBinder.AddMethod(__Method_CreateAssetClass, serviceImpl.CreateAssetClass); serviceBinder.AddMethod(__Method_DeleteAssetClass, serviceImpl.DeleteAssetClass); serviceBinder.AddMethod(__Method_CreateAsset, serviceImpl.CreateAsset); serviceBinder.AddMethod(__Method_DeleteAsset, serviceImpl.DeleteAsset); serviceBinder.AddMethod(__Method_TransferAsset, serviceImpl.TransferAsset); serviceBinder.AddMethod(__Method_ExecuteTransaction, serviceImpl.ExecuteTransaction); }
/// <summary>Register service method with a service binder with or without implementation. Useful when customizing the service binding logic. /// Note: this method is part of an experimental API that can change or be removed without any prior notice.</summary> /// <param name="serviceBinder">Service methods will be bound by calling <c>AddMethod</c> on this object.</param> /// <param name="serviceImpl">An object implementing the server-side handling logic.</param> public static void BindService(grpc::ServiceBinderBase serviceBinder, AssetServiceBase serviceImpl) { serviceBinder.AddMethod(__Method_ExportAssets, serviceImpl == null ? null : new grpc::UnaryServerMethod <global::Google.Cloud.Asset.V1.ExportAssetsRequest, global::Google.LongRunning.Operation>(serviceImpl.ExportAssets)); serviceBinder.AddMethod(__Method_BatchGetAssetsHistory, serviceImpl == null ? null : new grpc::UnaryServerMethod <global::Google.Cloud.Asset.V1.BatchGetAssetsHistoryRequest, global::Google.Cloud.Asset.V1.BatchGetAssetsHistoryResponse>(serviceImpl.BatchGetAssetsHistory)); serviceBinder.AddMethod(__Method_CreateFeed, serviceImpl == null ? null : new grpc::UnaryServerMethod <global::Google.Cloud.Asset.V1.CreateFeedRequest, global::Google.Cloud.Asset.V1.Feed>(serviceImpl.CreateFeed)); serviceBinder.AddMethod(__Method_GetFeed, serviceImpl == null ? null : new grpc::UnaryServerMethod <global::Google.Cloud.Asset.V1.GetFeedRequest, global::Google.Cloud.Asset.V1.Feed>(serviceImpl.GetFeed)); serviceBinder.AddMethod(__Method_ListFeeds, serviceImpl == null ? null : new grpc::UnaryServerMethod <global::Google.Cloud.Asset.V1.ListFeedsRequest, global::Google.Cloud.Asset.V1.ListFeedsResponse>(serviceImpl.ListFeeds)); serviceBinder.AddMethod(__Method_UpdateFeed, serviceImpl == null ? null : new grpc::UnaryServerMethod <global::Google.Cloud.Asset.V1.UpdateFeedRequest, global::Google.Cloud.Asset.V1.Feed>(serviceImpl.UpdateFeed)); serviceBinder.AddMethod(__Method_DeleteFeed, serviceImpl == null ? null : new grpc::UnaryServerMethod <global::Google.Cloud.Asset.V1.DeleteFeedRequest, global::Google.Protobuf.WellKnownTypes.Empty>(serviceImpl.DeleteFeed)); }
/// <summary>Creates service definition that can be registered with a server</summary> /// <param name="serviceImpl">An object implementing the server-side handling logic.</param> public static grpc::ServerServiceDefinition BindService(AssetServiceBase serviceImpl) { return(grpc::ServerServiceDefinition.CreateBuilder() .AddMethod(__Method_CreateAssetClass, serviceImpl.CreateAssetClass) .AddMethod(__Method_DeleteAssetClass, serviceImpl.DeleteAssetClass) .AddMethod(__Method_CreateAsset, serviceImpl.CreateAsset) .AddMethod(__Method_DeleteAsset, serviceImpl.DeleteAsset) .AddMethod(__Method_TransferAsset, serviceImpl.TransferAsset) .AddMethod(__Method_ExecuteTransaction, serviceImpl.ExecuteTransaction).Build()); }
/// <summary>Creates service definition that can be registered with a server</summary> /// <param name="serviceImpl">An object implementing the server-side handling logic.</param> public static grpc::ServerServiceDefinition BindService(AssetServiceBase serviceImpl) { return(grpc::ServerServiceDefinition.CreateBuilder() .AddMethod(__Method_ExportAssets, serviceImpl.ExportAssets) .AddMethod(__Method_BatchGetAssetsHistory, serviceImpl.BatchGetAssetsHistory) .AddMethod(__Method_CreateFeed, serviceImpl.CreateFeed) .AddMethod(__Method_GetFeed, serviceImpl.GetFeed) .AddMethod(__Method_ListFeeds, serviceImpl.ListFeeds) .AddMethod(__Method_UpdateFeed, serviceImpl.UpdateFeed) .AddMethod(__Method_DeleteFeed, serviceImpl.DeleteFeed).Build()); }
/// <summary>Register service method with a service binder with or without implementation. Useful when customizing the service binding logic. /// Note: this method is part of an experimental API that can change or be removed without any prior notice.</summary> /// <param name="serviceBinder">Service methods will be bound by calling <c>AddMethod</c> on this object.</param> /// <param name="serviceImpl">An object implementing the server-side handling logic.</param> public static void BindService(grpc::ServiceBinderBase serviceBinder, AssetServiceBase serviceImpl) { serviceBinder.AddMethod(__Method_GetAsset, serviceImpl == null ? null : new grpc::UnaryServerMethod <global::Google.Ads.GoogleAds.V6.Services.GetAssetRequest, global::Google.Ads.GoogleAds.V6.Resources.Asset>(serviceImpl.GetAsset)); serviceBinder.AddMethod(__Method_MutateAssets, serviceImpl == null ? null : new grpc::UnaryServerMethod <global::Google.Ads.GoogleAds.V6.Services.MutateAssetsRequest, global::Google.Ads.GoogleAds.V6.Services.MutateAssetsResponse>(serviceImpl.MutateAssets)); }
/// <summary>Creates service definition that can be registered with a server</summary> /// <param name="serviceImpl">An object implementing the server-side handling logic.</param> public static grpc::ServerServiceDefinition BindService(AssetServiceBase serviceImpl) { return(grpc::ServerServiceDefinition.CreateBuilder() .AddMethod(__Method_GetAsset, serviceImpl.GetAsset) .AddMethod(__Method_MutateAssets, serviceImpl.MutateAssets).Build()); }
/// <summary>Register service method with a service binder with or without implementation. Useful when customizing the service binding logic. /// Note: this method is part of an experimental API that can change or be removed without any prior notice.</summary> /// <param name="serviceBinder">Service methods will be bound by calling <c>AddMethod</c> on this object.</param> /// <param name="serviceImpl">An object implementing the server-side handling logic.</param> public static void BindService(grpc::ServiceBinderBase serviceBinder, AssetServiceBase serviceImpl) { serviceBinder.AddMethod(__Method_ExportAssets, serviceImpl == null ? null : new grpc::UnaryServerMethod <global::Google.Cloud.Asset.V1.ExportAssetsRequest, global::Google.LongRunning.Operation>(serviceImpl.ExportAssets)); serviceBinder.AddMethod(__Method_BatchGetAssetsHistory, serviceImpl == null ? null : new grpc::UnaryServerMethod <global::Google.Cloud.Asset.V1.BatchGetAssetsHistoryRequest, global::Google.Cloud.Asset.V1.BatchGetAssetsHistoryResponse>(serviceImpl.BatchGetAssetsHistory)); }
/// <summary>Creates service definition that can be registered with a server</summary> /// <param name="serviceImpl">An object implementing the server-side handling logic.</param> public static grpc::ServerServiceDefinition BindService(AssetServiceBase serviceImpl) { return(grpc::ServerServiceDefinition.CreateBuilder() .AddMethod(__Method_ExportAssets, serviceImpl.ExportAssets) .AddMethod(__Method_BatchGetAssetsHistory, serviceImpl.BatchGetAssetsHistory).Build()); }
/// <summary>Register service method with a service binder with or without implementation. Useful when customizing the service binding logic. /// Note: this method is part of an experimental API that can change or be removed without any prior notice.</summary> /// <param name="serviceBinder">Service methods will be bound by calling <c>AddMethod</c> on this object.</param> /// <param name="serviceImpl">An object implementing the server-side handling logic.</param> public static void BindService(grpc::ServiceBinderBase serviceBinder, AssetServiceBase serviceImpl) { serviceBinder.AddMethod(__Method_SearchAllResources, serviceImpl == null ? null : new grpc::UnaryServerMethod <global::Google.Cloud.Asset.V1P1Beta1.SearchAllResourcesRequest, global::Google.Cloud.Asset.V1P1Beta1.SearchAllResourcesResponse>(serviceImpl.SearchAllResources)); serviceBinder.AddMethod(__Method_SearchAllIamPolicies, serviceImpl == null ? null : new grpc::UnaryServerMethod <global::Google.Cloud.Asset.V1P1Beta1.SearchAllIamPoliciesRequest, global::Google.Cloud.Asset.V1P1Beta1.SearchAllIamPoliciesResponse>(serviceImpl.SearchAllIamPolicies)); }
/// <summary>Creates service definition that can be registered with a server</summary> /// <param name="serviceImpl">An object implementing the server-side handling logic.</param> public static grpc::ServerServiceDefinition BindService(AssetServiceBase serviceImpl) { return(grpc::ServerServiceDefinition.CreateBuilder() .AddMethod(__Method_SearchAllResources, serviceImpl.SearchAllResources) .AddMethod(__Method_SearchAllIamPolicies, serviceImpl.SearchAllIamPolicies).Build()); }
/// <summary>Register service method implementations with a service binder. Useful when customizing the service binding logic. /// Note: this method is part of an experimental API that can change or be removed without any prior notice.</summary> /// <param name="serviceBinder">Service methods will be bound by calling <c>AddMethod</c> on this object.</param> /// <param name="serviceImpl">An object implementing the server-side handling logic.</param> public static void BindService(grpc::ServiceBinderBase serviceBinder, AssetServiceBase serviceImpl) { serviceBinder.AddMethod(__Method_GetAsset, serviceImpl.GetAsset); serviceBinder.AddMethod(__Method_MutateAssets, serviceImpl.MutateAssets); }
/// <summary>Register service method with a service binder with or without implementation. Useful when customizing the service binding logic. /// Note: this method is part of an experimental API that can change or be removed without any prior notice.</summary> /// <param name="serviceBinder">Service methods will be bound by calling <c>AddMethod</c> on this object.</param> /// <param name="serviceImpl">An object implementing the server-side handling logic.</param> public static void BindService(grpc::ServiceBinderBase serviceBinder, AssetServiceBase serviceImpl) { serviceBinder.AddMethod(__Method_AnalyzeIamPolicy, serviceImpl == null ? null : new grpc::UnaryServerMethod <global::Google.Cloud.Asset.V1P4Beta1.AnalyzeIamPolicyRequest, global::Google.Cloud.Asset.V1P4Beta1.AnalyzeIamPolicyResponse>(serviceImpl.AnalyzeIamPolicy)); serviceBinder.AddMethod(__Method_ExportIamPolicyAnalysis, serviceImpl == null ? null : new grpc::UnaryServerMethod <global::Google.Cloud.Asset.V1P4Beta1.ExportIamPolicyAnalysisRequest, global::Google.LongRunning.Operation>(serviceImpl.ExportIamPolicyAnalysis)); }
/// <summary>Creates service definition that can be registered with a server</summary> /// <param name="serviceImpl">An object implementing the server-side handling logic.</param> public static grpc::ServerServiceDefinition BindService(AssetServiceBase serviceImpl) { return(grpc::ServerServiceDefinition.CreateBuilder() .AddMethod(__Method_AnalyzeIamPolicy, serviceImpl.AnalyzeIamPolicy) .AddMethod(__Method_ExportIamPolicyAnalysis, serviceImpl.ExportIamPolicyAnalysis).Build()); }