Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion buf.gen.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@ plugins:
- "base_namespace="
- "no_server=on"
inputs:
- module: buf.build/authzed/api:v1.45.4
- module: buf.build/authzed/api:v1.53.0
521 changes: 521 additions & 0 deletions src/Authzed.Net/Authzed/Api/Materialize/V0/Relationships.cs

Large diffs are not rendered by default.

152 changes: 152 additions & 0 deletions src/Authzed.Net/Authzed/Api/Materialize/V0/RelationshipsGrpc.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,152 @@
// <auto-generated>
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: authzed/api/materialize/v0/relationships.proto
// </auto-generated>
#pragma warning disable 0414, 1591, 8981, 0612
#region Designer generated code

using grpc = global::Grpc.Core;

namespace Authzed.Api.Materialize.V0 {
public static partial class RelationshipsService
{
static readonly string __ServiceName = "authzed.api.materialize.v0.RelationshipsService";

[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
static void __Helper_SerializeMessage(global::Google.Protobuf.IMessage message, grpc::SerializationContext context)
{
#if !GRPC_DISABLE_PROTOBUF_BUFFER_SERIALIZATION
if (message is global::Google.Protobuf.IBufferMessage)
{
context.SetPayloadLength(message.CalculateSize());
global::Google.Protobuf.MessageExtensions.WriteTo(message, context.GetBufferWriter());
context.Complete();
return;
}
#endif
context.Complete(global::Google.Protobuf.MessageExtensions.ToByteArray(message));
}

[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
static class __Helper_MessageCache<T>
{
public static readonly bool IsBufferMessage = global::System.Reflection.IntrospectionExtensions.GetTypeInfo(typeof(global::Google.Protobuf.IBufferMessage)).IsAssignableFrom(typeof(T));
}

[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
static T __Helper_DeserializeMessage<T>(grpc::DeserializationContext context, global::Google.Protobuf.MessageParser<T> parser) where T : global::Google.Protobuf.IMessage<T>
{
#if !GRPC_DISABLE_PROTOBUF_BUFFER_SERIALIZATION
if (__Helper_MessageCache<T>.IsBufferMessage)
{
return parser.ParseFrom(context.PayloadAsReadOnlySequence());
}
#endif
return parser.ParseFrom(context.PayloadAsNewBuffer());
}

[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
static readonly grpc::Marshaller<global::Authzed.Api.Materialize.V0.ExperimentalCountRelationshipsByFilterRequest> __Marshaller_authzed_api_materialize_v0_ExperimentalCountRelationshipsByFilterRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Authzed.Api.Materialize.V0.ExperimentalCountRelationshipsByFilterRequest.Parser));
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
static readonly grpc::Marshaller<global::Authzed.Api.Materialize.V0.ExperimentalCountRelationshipsByFilterResponse> __Marshaller_authzed_api_materialize_v0_ExperimentalCountRelationshipsByFilterResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::Authzed.Api.Materialize.V0.ExperimentalCountRelationshipsByFilterResponse.Parser));

[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
static readonly grpc::Method<global::Authzed.Api.Materialize.V0.ExperimentalCountRelationshipsByFilterRequest, global::Authzed.Api.Materialize.V0.ExperimentalCountRelationshipsByFilterResponse> __Method_ExperimentalCountRelationshipsByFilter = new grpc::Method<global::Authzed.Api.Materialize.V0.ExperimentalCountRelationshipsByFilterRequest, global::Authzed.Api.Materialize.V0.ExperimentalCountRelationshipsByFilterResponse>(
grpc::MethodType.Unary,
__ServiceName,
"ExperimentalCountRelationshipsByFilter",
__Marshaller_authzed_api_materialize_v0_ExperimentalCountRelationshipsByFilterRequest,
__Marshaller_authzed_api_materialize_v0_ExperimentalCountRelationshipsByFilterResponse);

/// <summary>Service descriptor</summary>
public static global::Google.Protobuf.Reflection.ServiceDescriptor Descriptor
{
get { return global::Authzed.Api.Materialize.V0.RelationshipsReflection.Descriptor.Services[0]; }
}

/// <summary>Client for RelationshipsService</summary>
public partial class RelationshipsServiceClient : grpc::ClientBase<RelationshipsServiceClient>
{
/// <summary>Creates a new client for RelationshipsService</summary>
/// <param name="channel">The channel to use to make remote calls.</param>
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
public RelationshipsServiceClient(grpc::ChannelBase channel) : base(channel)
{
}
/// <summary>Creates a new client for RelationshipsService that uses a custom <c>CallInvoker</c>.</summary>
/// <param name="callInvoker">The callInvoker to use to make remote calls.</param>
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
public RelationshipsServiceClient(grpc::CallInvoker callInvoker) : base(callInvoker)
{
}
/// <summary>Protected parameterless constructor to allow creation of test doubles.</summary>
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
protected RelationshipsServiceClient() : base()
{
}
/// <summary>Protected constructor to allow creation of configured clients.</summary>
/// <param name="configuration">The client configuration.</param>
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
protected RelationshipsServiceClient(ClientBaseConfiguration configuration) : base(configuration)
{
}

/// <summary>
/// EXPERIMENTAL: CountRelationships returns the count of relationships for a given filter.
/// </summary>
/// <param name="request">The request to send to the server.</param>
/// <param name="headers">The initial metadata to send with the call. This parameter is optional.</param>
/// <param name="deadline">An optional deadline for the call. The call will be cancelled if deadline is hit.</param>
/// <param name="cancellationToken">An optional token for canceling the call.</param>
/// <returns>The response received from the server.</returns>
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
public virtual global::Authzed.Api.Materialize.V0.ExperimentalCountRelationshipsByFilterResponse ExperimentalCountRelationshipsByFilter(global::Authzed.Api.Materialize.V0.ExperimentalCountRelationshipsByFilterRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken))
{
return ExperimentalCountRelationshipsByFilter(request, new grpc::CallOptions(headers, deadline, cancellationToken));
}
/// <summary>
/// EXPERIMENTAL: CountRelationships returns the count of relationships for a given filter.
/// </summary>
/// <param name="request">The request to send to the server.</param>
/// <param name="options">The options for the call.</param>
/// <returns>The response received from the server.</returns>
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
public virtual global::Authzed.Api.Materialize.V0.ExperimentalCountRelationshipsByFilterResponse ExperimentalCountRelationshipsByFilter(global::Authzed.Api.Materialize.V0.ExperimentalCountRelationshipsByFilterRequest request, grpc::CallOptions options)
{
return CallInvoker.BlockingUnaryCall(__Method_ExperimentalCountRelationshipsByFilter, null, options, request);
}
/// <summary>
/// EXPERIMENTAL: CountRelationships returns the count of relationships for a given filter.
/// </summary>
/// <param name="request">The request to send to the server.</param>
/// <param name="headers">The initial metadata to send with the call. This parameter is optional.</param>
/// <param name="deadline">An optional deadline for the call. The call will be cancelled if deadline is hit.</param>
/// <param name="cancellationToken">An optional token for canceling the call.</param>
/// <returns>The call object.</returns>
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
public virtual grpc::AsyncUnaryCall<global::Authzed.Api.Materialize.V0.ExperimentalCountRelationshipsByFilterResponse> ExperimentalCountRelationshipsByFilterAsync(global::Authzed.Api.Materialize.V0.ExperimentalCountRelationshipsByFilterRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken))
{
return ExperimentalCountRelationshipsByFilterAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken));
}
/// <summary>
/// EXPERIMENTAL: CountRelationships returns the count of relationships for a given filter.
/// </summary>
/// <param name="request">The request to send to the server.</param>
/// <param name="options">The options for the call.</param>
/// <returns>The call object.</returns>
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
public virtual grpc::AsyncUnaryCall<global::Authzed.Api.Materialize.V0.ExperimentalCountRelationshipsByFilterResponse> ExperimentalCountRelationshipsByFilterAsync(global::Authzed.Api.Materialize.V0.ExperimentalCountRelationshipsByFilterRequest request, grpc::CallOptions options)
{
return CallInvoker.AsyncUnaryCall(__Method_ExperimentalCountRelationshipsByFilter, null, options, request);
}
/// <summary>Creates a new instance of client from given <c>ClientBaseConfiguration</c>.</summary>
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
protected override RelationshipsServiceClient NewInstance(ClientBaseConfiguration configuration)
{
return new RelationshipsServiceClient(configuration);
}
}

}
}
#endregion
10 changes: 5 additions & 5 deletions src/Authzed.Net/Authzed/Api/Materialize/V0/Watchpermissions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -49,13 +49,13 @@ static WatchpermissionsReflection() {
"aXNzaW9uc2hpcCKgAQoOUGVybWlzc2lvbnNoaXASHgoaUEVSTUlTU0lPTlNI",
"SVBfVU5TUEVDSUZJRUQQABIgChxQRVJNSVNTSU9OU0hJUF9OT19QRVJNSVNT",
"SU9OEAESIQodUEVSTUlTU0lPTlNISVBfSEFTX1BFUk1JU1NJT04QAhIpCiVQ",
"RVJNSVNTSU9OU0hJUF9DT05ESVRJT05BTF9QRVJNSVNTSU9OEAMynQEKF1dh",
"dGNoUGVybWlzc2lvbnNTZXJ2aWNlEoEBChBXYXRjaFBlcm1pc3Npb25zEjMu",
"RVJNSVNTSU9OU0hJUF9DT05ESVRJT05BTF9QRVJNSVNTSU9OEAMyoAEKF1dh",
"dGNoUGVybWlzc2lvbnNTZXJ2aWNlEoQBChBXYXRjaFBlcm1pc3Npb25zEjMu",
"YXV0aHplZC5hcGkubWF0ZXJpYWxpemUudjAuV2F0Y2hQZXJtaXNzaW9uc1Jl",
"cXVlc3QaNC5hdXRoemVkLmFwaS5tYXRlcmlhbGl6ZS52MC5XYXRjaFBlcm1p",
"c3Npb25zUmVzcG9uc2UiADABQmIKHmNvbS5hdXRoemVkLmFwaS5tYXRlcmlh",
"bGl6ZS52MFABWj5naXRodWIuY29tL2F1dGh6ZWQvYXV0aHplZC1nby9wcm90",
"by9hdXRoemVkL2FwaS9tYXRlcmlhbGl6ZS92MGIGcHJvdG8z"));
"c3Npb25zUmVzcG9uc2UiA4gCATABQmIKHmNvbS5hdXRoemVkLmFwaS5tYXRl",
"cmlhbGl6ZS52MFABWj5naXRodWIuY29tL2F1dGh6ZWQvYXV0aHplZC1nby9w",
"cm90by9hdXRoemVkL2FwaS9tYXRlcmlhbGl6ZS92MGIGcHJvdG8z"));
descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
new pbr::FileDescriptor[] { global::Authzed.Api.V1.CoreReflection.Descriptor, },
new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,7 @@ protected WatchPermissionsServiceClient(ClientBaseConfiguration configuration) :
/// <param name="deadline">An optional deadline for the call. The call will be cancelled if deadline is hit.</param>
/// <param name="cancellationToken">An optional token for canceling the call.</param>
/// <returns>The call object.</returns>
[global::System.ObsoleteAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
public virtual grpc::AsyncServerStreamingCall<global::Authzed.Api.Materialize.V0.WatchPermissionsResponse> WatchPermissions(global::Authzed.Api.Materialize.V0.WatchPermissionsRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken))
{
Expand All @@ -138,6 +139,7 @@ protected WatchPermissionsServiceClient(ClientBaseConfiguration configuration) :
/// <param name="request">The request to send to the server.</param>
/// <param name="options">The options for the call.</param>
/// <returns>The call object.</returns>
[global::System.ObsoleteAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)]
public virtual grpc::AsyncServerStreamingCall<global::Authzed.Api.Materialize.V0.WatchPermissionsResponse> WatchPermissions(global::Authzed.Api.Materialize.V0.WatchPermissionsRequest request, grpc::CallOptions options)
{
Expand Down
Loading
Loading