All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.xmtp.proto.mls.api.v1.MlsApiGrpc Maven / Gradle / Ivy

There is a newer version: 3.70.1
Show newest version
package org.xmtp.proto.mls.api.v1;

import static io.grpc.MethodDescriptor.generateFullMethodName;

/**
 * 
 * RPCs for the new MLS API
 * 
*/ @javax.annotation.Generated( value = "by gRPC proto compiler (version 1.45.1)", comments = "Source: mls/api/v1/mls.proto") @io.grpc.stub.annotations.GrpcGenerated public final class MlsApiGrpc { private MlsApiGrpc() {} public static final String SERVICE_NAME = "xmtp.mls.api.v1.MlsApi"; // Static method descriptors that strictly reflect the proto. private static volatile io.grpc.MethodDescriptor getSendGroupMessagesMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "SendGroupMessages", requestType = org.xmtp.proto.mls.api.v1.Mls.SendGroupMessagesRequest.class, responseType = com.google.protobuf.Empty.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor getSendGroupMessagesMethod() { io.grpc.MethodDescriptor getSendGroupMessagesMethod; if ((getSendGroupMessagesMethod = MlsApiGrpc.getSendGroupMessagesMethod) == null) { synchronized (MlsApiGrpc.class) { if ((getSendGroupMessagesMethod = MlsApiGrpc.getSendGroupMessagesMethod) == null) { MlsApiGrpc.getSendGroupMessagesMethod = getSendGroupMessagesMethod = io.grpc.MethodDescriptor.newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName(generateFullMethodName(SERVICE_NAME, "SendGroupMessages")) .setSampledToLocalTracing(true) .setRequestMarshaller(io.grpc.protobuf.lite.ProtoLiteUtils.marshaller( org.xmtp.proto.mls.api.v1.Mls.SendGroupMessagesRequest.getDefaultInstance())) .setResponseMarshaller(io.grpc.protobuf.lite.ProtoLiteUtils.marshaller( com.google.protobuf.Empty.getDefaultInstance())) .build(); } } } return getSendGroupMessagesMethod; } private static volatile io.grpc.MethodDescriptor getSendWelcomeMessagesMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "SendWelcomeMessages", requestType = org.xmtp.proto.mls.api.v1.Mls.SendWelcomeMessagesRequest.class, responseType = com.google.protobuf.Empty.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor getSendWelcomeMessagesMethod() { io.grpc.MethodDescriptor getSendWelcomeMessagesMethod; if ((getSendWelcomeMessagesMethod = MlsApiGrpc.getSendWelcomeMessagesMethod) == null) { synchronized (MlsApiGrpc.class) { if ((getSendWelcomeMessagesMethod = MlsApiGrpc.getSendWelcomeMessagesMethod) == null) { MlsApiGrpc.getSendWelcomeMessagesMethod = getSendWelcomeMessagesMethod = io.grpc.MethodDescriptor.newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName(generateFullMethodName(SERVICE_NAME, "SendWelcomeMessages")) .setSampledToLocalTracing(true) .setRequestMarshaller(io.grpc.protobuf.lite.ProtoLiteUtils.marshaller( org.xmtp.proto.mls.api.v1.Mls.SendWelcomeMessagesRequest.getDefaultInstance())) .setResponseMarshaller(io.grpc.protobuf.lite.ProtoLiteUtils.marshaller( com.google.protobuf.Empty.getDefaultInstance())) .build(); } } } return getSendWelcomeMessagesMethod; } private static volatile io.grpc.MethodDescriptor getRegisterInstallationMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "RegisterInstallation", requestType = org.xmtp.proto.mls.api.v1.Mls.RegisterInstallationRequest.class, responseType = org.xmtp.proto.mls.api.v1.Mls.RegisterInstallationResponse.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor getRegisterInstallationMethod() { io.grpc.MethodDescriptor getRegisterInstallationMethod; if ((getRegisterInstallationMethod = MlsApiGrpc.getRegisterInstallationMethod) == null) { synchronized (MlsApiGrpc.class) { if ((getRegisterInstallationMethod = MlsApiGrpc.getRegisterInstallationMethod) == null) { MlsApiGrpc.getRegisterInstallationMethod = getRegisterInstallationMethod = io.grpc.MethodDescriptor.newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName(generateFullMethodName(SERVICE_NAME, "RegisterInstallation")) .setSampledToLocalTracing(true) .setRequestMarshaller(io.grpc.protobuf.lite.ProtoLiteUtils.marshaller( org.xmtp.proto.mls.api.v1.Mls.RegisterInstallationRequest.getDefaultInstance())) .setResponseMarshaller(io.grpc.protobuf.lite.ProtoLiteUtils.marshaller( org.xmtp.proto.mls.api.v1.Mls.RegisterInstallationResponse.getDefaultInstance())) .build(); } } } return getRegisterInstallationMethod; } private static volatile io.grpc.MethodDescriptor getUploadKeyPackageMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "UploadKeyPackage", requestType = org.xmtp.proto.mls.api.v1.Mls.UploadKeyPackageRequest.class, responseType = com.google.protobuf.Empty.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor getUploadKeyPackageMethod() { io.grpc.MethodDescriptor getUploadKeyPackageMethod; if ((getUploadKeyPackageMethod = MlsApiGrpc.getUploadKeyPackageMethod) == null) { synchronized (MlsApiGrpc.class) { if ((getUploadKeyPackageMethod = MlsApiGrpc.getUploadKeyPackageMethod) == null) { MlsApiGrpc.getUploadKeyPackageMethod = getUploadKeyPackageMethod = io.grpc.MethodDescriptor.newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UploadKeyPackage")) .setSampledToLocalTracing(true) .setRequestMarshaller(io.grpc.protobuf.lite.ProtoLiteUtils.marshaller( org.xmtp.proto.mls.api.v1.Mls.UploadKeyPackageRequest.getDefaultInstance())) .setResponseMarshaller(io.grpc.protobuf.lite.ProtoLiteUtils.marshaller( com.google.protobuf.Empty.getDefaultInstance())) .build(); } } } return getUploadKeyPackageMethod; } private static volatile io.grpc.MethodDescriptor getFetchKeyPackagesMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "FetchKeyPackages", requestType = org.xmtp.proto.mls.api.v1.Mls.FetchKeyPackagesRequest.class, responseType = org.xmtp.proto.mls.api.v1.Mls.FetchKeyPackagesResponse.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor getFetchKeyPackagesMethod() { io.grpc.MethodDescriptor getFetchKeyPackagesMethod; if ((getFetchKeyPackagesMethod = MlsApiGrpc.getFetchKeyPackagesMethod) == null) { synchronized (MlsApiGrpc.class) { if ((getFetchKeyPackagesMethod = MlsApiGrpc.getFetchKeyPackagesMethod) == null) { MlsApiGrpc.getFetchKeyPackagesMethod = getFetchKeyPackagesMethod = io.grpc.MethodDescriptor.newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName(generateFullMethodName(SERVICE_NAME, "FetchKeyPackages")) .setSampledToLocalTracing(true) .setRequestMarshaller(io.grpc.protobuf.lite.ProtoLiteUtils.marshaller( org.xmtp.proto.mls.api.v1.Mls.FetchKeyPackagesRequest.getDefaultInstance())) .setResponseMarshaller(io.grpc.protobuf.lite.ProtoLiteUtils.marshaller( org.xmtp.proto.mls.api.v1.Mls.FetchKeyPackagesResponse.getDefaultInstance())) .build(); } } } return getFetchKeyPackagesMethod; } private static volatile io.grpc.MethodDescriptor getRevokeInstallationMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "RevokeInstallation", requestType = org.xmtp.proto.mls.api.v1.Mls.RevokeInstallationRequest.class, responseType = com.google.protobuf.Empty.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor getRevokeInstallationMethod() { io.grpc.MethodDescriptor getRevokeInstallationMethod; if ((getRevokeInstallationMethod = MlsApiGrpc.getRevokeInstallationMethod) == null) { synchronized (MlsApiGrpc.class) { if ((getRevokeInstallationMethod = MlsApiGrpc.getRevokeInstallationMethod) == null) { MlsApiGrpc.getRevokeInstallationMethod = getRevokeInstallationMethod = io.grpc.MethodDescriptor.newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName(generateFullMethodName(SERVICE_NAME, "RevokeInstallation")) .setSampledToLocalTracing(true) .setRequestMarshaller(io.grpc.protobuf.lite.ProtoLiteUtils.marshaller( org.xmtp.proto.mls.api.v1.Mls.RevokeInstallationRequest.getDefaultInstance())) .setResponseMarshaller(io.grpc.protobuf.lite.ProtoLiteUtils.marshaller( com.google.protobuf.Empty.getDefaultInstance())) .build(); } } } return getRevokeInstallationMethod; } private static volatile io.grpc.MethodDescriptor getGetIdentityUpdatesMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "GetIdentityUpdates", requestType = org.xmtp.proto.mls.api.v1.Mls.GetIdentityUpdatesRequest.class, responseType = org.xmtp.proto.mls.api.v1.Mls.GetIdentityUpdatesResponse.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor getGetIdentityUpdatesMethod() { io.grpc.MethodDescriptor getGetIdentityUpdatesMethod; if ((getGetIdentityUpdatesMethod = MlsApiGrpc.getGetIdentityUpdatesMethod) == null) { synchronized (MlsApiGrpc.class) { if ((getGetIdentityUpdatesMethod = MlsApiGrpc.getGetIdentityUpdatesMethod) == null) { MlsApiGrpc.getGetIdentityUpdatesMethod = getGetIdentityUpdatesMethod = io.grpc.MethodDescriptor.newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetIdentityUpdates")) .setSampledToLocalTracing(true) .setRequestMarshaller(io.grpc.protobuf.lite.ProtoLiteUtils.marshaller( org.xmtp.proto.mls.api.v1.Mls.GetIdentityUpdatesRequest.getDefaultInstance())) .setResponseMarshaller(io.grpc.protobuf.lite.ProtoLiteUtils.marshaller( org.xmtp.proto.mls.api.v1.Mls.GetIdentityUpdatesResponse.getDefaultInstance())) .build(); } } } return getGetIdentityUpdatesMethod; } private static volatile io.grpc.MethodDescriptor getQueryGroupMessagesMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "QueryGroupMessages", requestType = org.xmtp.proto.mls.api.v1.Mls.QueryGroupMessagesRequest.class, responseType = org.xmtp.proto.mls.api.v1.Mls.QueryGroupMessagesResponse.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor getQueryGroupMessagesMethod() { io.grpc.MethodDescriptor getQueryGroupMessagesMethod; if ((getQueryGroupMessagesMethod = MlsApiGrpc.getQueryGroupMessagesMethod) == null) { synchronized (MlsApiGrpc.class) { if ((getQueryGroupMessagesMethod = MlsApiGrpc.getQueryGroupMessagesMethod) == null) { MlsApiGrpc.getQueryGroupMessagesMethod = getQueryGroupMessagesMethod = io.grpc.MethodDescriptor.newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName(generateFullMethodName(SERVICE_NAME, "QueryGroupMessages")) .setSampledToLocalTracing(true) .setRequestMarshaller(io.grpc.protobuf.lite.ProtoLiteUtils.marshaller( org.xmtp.proto.mls.api.v1.Mls.QueryGroupMessagesRequest.getDefaultInstance())) .setResponseMarshaller(io.grpc.protobuf.lite.ProtoLiteUtils.marshaller( org.xmtp.proto.mls.api.v1.Mls.QueryGroupMessagesResponse.getDefaultInstance())) .build(); } } } return getQueryGroupMessagesMethod; } private static volatile io.grpc.MethodDescriptor getQueryWelcomeMessagesMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "QueryWelcomeMessages", requestType = org.xmtp.proto.mls.api.v1.Mls.QueryWelcomeMessagesRequest.class, responseType = org.xmtp.proto.mls.api.v1.Mls.QueryWelcomeMessagesResponse.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor getQueryWelcomeMessagesMethod() { io.grpc.MethodDescriptor getQueryWelcomeMessagesMethod; if ((getQueryWelcomeMessagesMethod = MlsApiGrpc.getQueryWelcomeMessagesMethod) == null) { synchronized (MlsApiGrpc.class) { if ((getQueryWelcomeMessagesMethod = MlsApiGrpc.getQueryWelcomeMessagesMethod) == null) { MlsApiGrpc.getQueryWelcomeMessagesMethod = getQueryWelcomeMessagesMethod = io.grpc.MethodDescriptor.newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName(generateFullMethodName(SERVICE_NAME, "QueryWelcomeMessages")) .setSampledToLocalTracing(true) .setRequestMarshaller(io.grpc.protobuf.lite.ProtoLiteUtils.marshaller( org.xmtp.proto.mls.api.v1.Mls.QueryWelcomeMessagesRequest.getDefaultInstance())) .setResponseMarshaller(io.grpc.protobuf.lite.ProtoLiteUtils.marshaller( org.xmtp.proto.mls.api.v1.Mls.QueryWelcomeMessagesResponse.getDefaultInstance())) .build(); } } } return getQueryWelcomeMessagesMethod; } private static volatile io.grpc.MethodDescriptor getSubscribeGroupMessagesMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "SubscribeGroupMessages", requestType = org.xmtp.proto.mls.api.v1.Mls.SubscribeGroupMessagesRequest.class, responseType = org.xmtp.proto.mls.api.v1.Mls.GroupMessage.class, methodType = io.grpc.MethodDescriptor.MethodType.SERVER_STREAMING) public static io.grpc.MethodDescriptor getSubscribeGroupMessagesMethod() { io.grpc.MethodDescriptor getSubscribeGroupMessagesMethod; if ((getSubscribeGroupMessagesMethod = MlsApiGrpc.getSubscribeGroupMessagesMethod) == null) { synchronized (MlsApiGrpc.class) { if ((getSubscribeGroupMessagesMethod = MlsApiGrpc.getSubscribeGroupMessagesMethod) == null) { MlsApiGrpc.getSubscribeGroupMessagesMethod = getSubscribeGroupMessagesMethod = io.grpc.MethodDescriptor.newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.SERVER_STREAMING) .setFullMethodName(generateFullMethodName(SERVICE_NAME, "SubscribeGroupMessages")) .setSampledToLocalTracing(true) .setRequestMarshaller(io.grpc.protobuf.lite.ProtoLiteUtils.marshaller( org.xmtp.proto.mls.api.v1.Mls.SubscribeGroupMessagesRequest.getDefaultInstance())) .setResponseMarshaller(io.grpc.protobuf.lite.ProtoLiteUtils.marshaller( org.xmtp.proto.mls.api.v1.Mls.GroupMessage.getDefaultInstance())) .build(); } } } return getSubscribeGroupMessagesMethod; } private static volatile io.grpc.MethodDescriptor getSubscribeWelcomeMessagesMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "SubscribeWelcomeMessages", requestType = org.xmtp.proto.mls.api.v1.Mls.SubscribeWelcomeMessagesRequest.class, responseType = org.xmtp.proto.mls.api.v1.Mls.WelcomeMessage.class, methodType = io.grpc.MethodDescriptor.MethodType.SERVER_STREAMING) public static io.grpc.MethodDescriptor getSubscribeWelcomeMessagesMethod() { io.grpc.MethodDescriptor getSubscribeWelcomeMessagesMethod; if ((getSubscribeWelcomeMessagesMethod = MlsApiGrpc.getSubscribeWelcomeMessagesMethod) == null) { synchronized (MlsApiGrpc.class) { if ((getSubscribeWelcomeMessagesMethod = MlsApiGrpc.getSubscribeWelcomeMessagesMethod) == null) { MlsApiGrpc.getSubscribeWelcomeMessagesMethod = getSubscribeWelcomeMessagesMethod = io.grpc.MethodDescriptor.newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.SERVER_STREAMING) .setFullMethodName(generateFullMethodName(SERVICE_NAME, "SubscribeWelcomeMessages")) .setSampledToLocalTracing(true) .setRequestMarshaller(io.grpc.protobuf.lite.ProtoLiteUtils.marshaller( org.xmtp.proto.mls.api.v1.Mls.SubscribeWelcomeMessagesRequest.getDefaultInstance())) .setResponseMarshaller(io.grpc.protobuf.lite.ProtoLiteUtils.marshaller( org.xmtp.proto.mls.api.v1.Mls.WelcomeMessage.getDefaultInstance())) .build(); } } } return getSubscribeWelcomeMessagesMethod; } /** * Creates a new async stub that supports all call types for the service */ public static MlsApiStub newStub(io.grpc.Channel channel) { io.grpc.stub.AbstractStub.StubFactory factory = new io.grpc.stub.AbstractStub.StubFactory() { @java.lang.Override public MlsApiStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new MlsApiStub(channel, callOptions); } }; return MlsApiStub.newStub(factory, channel); } /** * Creates a new blocking-style stub that supports unary and streaming output calls on the service */ public static MlsApiBlockingStub newBlockingStub( io.grpc.Channel channel) { io.grpc.stub.AbstractStub.StubFactory factory = new io.grpc.stub.AbstractStub.StubFactory() { @java.lang.Override public MlsApiBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new MlsApiBlockingStub(channel, callOptions); } }; return MlsApiBlockingStub.newStub(factory, channel); } /** * Creates a new ListenableFuture-style stub that supports unary calls on the service */ public static MlsApiFutureStub newFutureStub( io.grpc.Channel channel) { io.grpc.stub.AbstractStub.StubFactory factory = new io.grpc.stub.AbstractStub.StubFactory() { @java.lang.Override public MlsApiFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new MlsApiFutureStub(channel, callOptions); } }; return MlsApiFutureStub.newStub(factory, channel); } /** *
   * RPCs for the new MLS API
   * 
*/ public static abstract class MlsApiImplBase implements io.grpc.BindableService { /** *
     * Send a MLS payload, that would be validated before being stored to the
     * network
     * 
*/ public void sendGroupMessages(org.xmtp.proto.mls.api.v1.Mls.SendGroupMessagesRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getSendGroupMessagesMethod(), responseObserver); } /** *
     * Send a batch of welcome messages
     * 
*/ public void sendWelcomeMessages(org.xmtp.proto.mls.api.v1.Mls.SendWelcomeMessagesRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getSendWelcomeMessagesMethod(), responseObserver); } /** *
     * Register a new installation, which would be validated before storage
     * 
*/ public void registerInstallation(org.xmtp.proto.mls.api.v1.Mls.RegisterInstallationRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getRegisterInstallationMethod(), responseObserver); } /** *
     * Upload a new KeyPackage, which would be validated before storage
     * 
*/ public void uploadKeyPackage(org.xmtp.proto.mls.api.v1.Mls.UploadKeyPackageRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUploadKeyPackageMethod(), responseObserver); } /** *
     * Get one or more Key Packages by installation_id
     * 
*/ public void fetchKeyPackages(org.xmtp.proto.mls.api.v1.Mls.FetchKeyPackagesRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getFetchKeyPackagesMethod(), responseObserver); } /** *
     * Would delete all key packages associated with the installation and mark
     * the installation as having been revoked
     * 
*/ public void revokeInstallation(org.xmtp.proto.mls.api.v1.Mls.RevokeInstallationRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getRevokeInstallationMethod(), responseObserver); } /** *
     * Used to check for changes related to members of a group.
     * Would return an array of any new installations associated with the wallet
     * address, and any revocations that have happened.
     * 
*/ public void getIdentityUpdates(org.xmtp.proto.mls.api.v1.Mls.GetIdentityUpdatesRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetIdentityUpdatesMethod(), responseObserver); } /** *
     * Query stored group messages
     * 
*/ public void queryGroupMessages(org.xmtp.proto.mls.api.v1.Mls.QueryGroupMessagesRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getQueryGroupMessagesMethod(), responseObserver); } /** *
     * Query stored group messages
     * 
*/ public void queryWelcomeMessages(org.xmtp.proto.mls.api.v1.Mls.QueryWelcomeMessagesRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getQueryWelcomeMessagesMethod(), responseObserver); } /** *
     * Subscribe stream of new group messages
     * 
*/ public void subscribeGroupMessages(org.xmtp.proto.mls.api.v1.Mls.SubscribeGroupMessagesRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getSubscribeGroupMessagesMethod(), responseObserver); } /** *
     * Subscribe stream of new welcome messages
     * 
*/ public void subscribeWelcomeMessages(org.xmtp.proto.mls.api.v1.Mls.SubscribeWelcomeMessagesRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getSubscribeWelcomeMessagesMethod(), responseObserver); } @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) .addMethod( getSendGroupMessagesMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< org.xmtp.proto.mls.api.v1.Mls.SendGroupMessagesRequest, com.google.protobuf.Empty>( this, METHODID_SEND_GROUP_MESSAGES))) .addMethod( getSendWelcomeMessagesMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< org.xmtp.proto.mls.api.v1.Mls.SendWelcomeMessagesRequest, com.google.protobuf.Empty>( this, METHODID_SEND_WELCOME_MESSAGES))) .addMethod( getRegisterInstallationMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< org.xmtp.proto.mls.api.v1.Mls.RegisterInstallationRequest, org.xmtp.proto.mls.api.v1.Mls.RegisterInstallationResponse>( this, METHODID_REGISTER_INSTALLATION))) .addMethod( getUploadKeyPackageMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< org.xmtp.proto.mls.api.v1.Mls.UploadKeyPackageRequest, com.google.protobuf.Empty>( this, METHODID_UPLOAD_KEY_PACKAGE))) .addMethod( getFetchKeyPackagesMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< org.xmtp.proto.mls.api.v1.Mls.FetchKeyPackagesRequest, org.xmtp.proto.mls.api.v1.Mls.FetchKeyPackagesResponse>( this, METHODID_FETCH_KEY_PACKAGES))) .addMethod( getRevokeInstallationMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< org.xmtp.proto.mls.api.v1.Mls.RevokeInstallationRequest, com.google.protobuf.Empty>( this, METHODID_REVOKE_INSTALLATION))) .addMethod( getGetIdentityUpdatesMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< org.xmtp.proto.mls.api.v1.Mls.GetIdentityUpdatesRequest, org.xmtp.proto.mls.api.v1.Mls.GetIdentityUpdatesResponse>( this, METHODID_GET_IDENTITY_UPDATES))) .addMethod( getQueryGroupMessagesMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< org.xmtp.proto.mls.api.v1.Mls.QueryGroupMessagesRequest, org.xmtp.proto.mls.api.v1.Mls.QueryGroupMessagesResponse>( this, METHODID_QUERY_GROUP_MESSAGES))) .addMethod( getQueryWelcomeMessagesMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< org.xmtp.proto.mls.api.v1.Mls.QueryWelcomeMessagesRequest, org.xmtp.proto.mls.api.v1.Mls.QueryWelcomeMessagesResponse>( this, METHODID_QUERY_WELCOME_MESSAGES))) .addMethod( getSubscribeGroupMessagesMethod(), io.grpc.stub.ServerCalls.asyncServerStreamingCall( new MethodHandlers< org.xmtp.proto.mls.api.v1.Mls.SubscribeGroupMessagesRequest, org.xmtp.proto.mls.api.v1.Mls.GroupMessage>( this, METHODID_SUBSCRIBE_GROUP_MESSAGES))) .addMethod( getSubscribeWelcomeMessagesMethod(), io.grpc.stub.ServerCalls.asyncServerStreamingCall( new MethodHandlers< org.xmtp.proto.mls.api.v1.Mls.SubscribeWelcomeMessagesRequest, org.xmtp.proto.mls.api.v1.Mls.WelcomeMessage>( this, METHODID_SUBSCRIBE_WELCOME_MESSAGES))) .build(); } } /** *
   * RPCs for the new MLS API
   * 
*/ public static final class MlsApiStub extends io.grpc.stub.AbstractAsyncStub { private MlsApiStub( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @java.lang.Override protected MlsApiStub build( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new MlsApiStub(channel, callOptions); } /** *
     * Send a MLS payload, that would be validated before being stored to the
     * network
     * 
*/ public void sendGroupMessages(org.xmtp.proto.mls.api.v1.Mls.SendGroupMessagesRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getSendGroupMessagesMethod(), getCallOptions()), request, responseObserver); } /** *
     * Send a batch of welcome messages
     * 
*/ public void sendWelcomeMessages(org.xmtp.proto.mls.api.v1.Mls.SendWelcomeMessagesRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getSendWelcomeMessagesMethod(), getCallOptions()), request, responseObserver); } /** *
     * Register a new installation, which would be validated before storage
     * 
*/ public void registerInstallation(org.xmtp.proto.mls.api.v1.Mls.RegisterInstallationRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getRegisterInstallationMethod(), getCallOptions()), request, responseObserver); } /** *
     * Upload a new KeyPackage, which would be validated before storage
     * 
*/ public void uploadKeyPackage(org.xmtp.proto.mls.api.v1.Mls.UploadKeyPackageRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getUploadKeyPackageMethod(), getCallOptions()), request, responseObserver); } /** *
     * Get one or more Key Packages by installation_id
     * 
*/ public void fetchKeyPackages(org.xmtp.proto.mls.api.v1.Mls.FetchKeyPackagesRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getFetchKeyPackagesMethod(), getCallOptions()), request, responseObserver); } /** *
     * Would delete all key packages associated with the installation and mark
     * the installation as having been revoked
     * 
*/ public void revokeInstallation(org.xmtp.proto.mls.api.v1.Mls.RevokeInstallationRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getRevokeInstallationMethod(), getCallOptions()), request, responseObserver); } /** *
     * Used to check for changes related to members of a group.
     * Would return an array of any new installations associated with the wallet
     * address, and any revocations that have happened.
     * 
*/ public void getIdentityUpdates(org.xmtp.proto.mls.api.v1.Mls.GetIdentityUpdatesRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getGetIdentityUpdatesMethod(), getCallOptions()), request, responseObserver); } /** *
     * Query stored group messages
     * 
*/ public void queryGroupMessages(org.xmtp.proto.mls.api.v1.Mls.QueryGroupMessagesRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getQueryGroupMessagesMethod(), getCallOptions()), request, responseObserver); } /** *
     * Query stored group messages
     * 
*/ public void queryWelcomeMessages(org.xmtp.proto.mls.api.v1.Mls.QueryWelcomeMessagesRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getQueryWelcomeMessagesMethod(), getCallOptions()), request, responseObserver); } /** *
     * Subscribe stream of new group messages
     * 
*/ public void subscribeGroupMessages(org.xmtp.proto.mls.api.v1.Mls.SubscribeGroupMessagesRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncServerStreamingCall( getChannel().newCall(getSubscribeGroupMessagesMethod(), getCallOptions()), request, responseObserver); } /** *
     * Subscribe stream of new welcome messages
     * 
*/ public void subscribeWelcomeMessages(org.xmtp.proto.mls.api.v1.Mls.SubscribeWelcomeMessagesRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncServerStreamingCall( getChannel().newCall(getSubscribeWelcomeMessagesMethod(), getCallOptions()), request, responseObserver); } } /** *
   * RPCs for the new MLS API
   * 
*/ public static final class MlsApiBlockingStub extends io.grpc.stub.AbstractBlockingStub { private MlsApiBlockingStub( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @java.lang.Override protected MlsApiBlockingStub build( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new MlsApiBlockingStub(channel, callOptions); } /** *
     * Send a MLS payload, that would be validated before being stored to the
     * network
     * 
*/ public com.google.protobuf.Empty sendGroupMessages(org.xmtp.proto.mls.api.v1.Mls.SendGroupMessagesRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getSendGroupMessagesMethod(), getCallOptions(), request); } /** *
     * Send a batch of welcome messages
     * 
*/ public com.google.protobuf.Empty sendWelcomeMessages(org.xmtp.proto.mls.api.v1.Mls.SendWelcomeMessagesRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getSendWelcomeMessagesMethod(), getCallOptions(), request); } /** *
     * Register a new installation, which would be validated before storage
     * 
*/ public org.xmtp.proto.mls.api.v1.Mls.RegisterInstallationResponse registerInstallation(org.xmtp.proto.mls.api.v1.Mls.RegisterInstallationRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getRegisterInstallationMethod(), getCallOptions(), request); } /** *
     * Upload a new KeyPackage, which would be validated before storage
     * 
*/ public com.google.protobuf.Empty uploadKeyPackage(org.xmtp.proto.mls.api.v1.Mls.UploadKeyPackageRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getUploadKeyPackageMethod(), getCallOptions(), request); } /** *
     * Get one or more Key Packages by installation_id
     * 
*/ public org.xmtp.proto.mls.api.v1.Mls.FetchKeyPackagesResponse fetchKeyPackages(org.xmtp.proto.mls.api.v1.Mls.FetchKeyPackagesRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getFetchKeyPackagesMethod(), getCallOptions(), request); } /** *
     * Would delete all key packages associated with the installation and mark
     * the installation as having been revoked
     * 
*/ public com.google.protobuf.Empty revokeInstallation(org.xmtp.proto.mls.api.v1.Mls.RevokeInstallationRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getRevokeInstallationMethod(), getCallOptions(), request); } /** *
     * Used to check for changes related to members of a group.
     * Would return an array of any new installations associated with the wallet
     * address, and any revocations that have happened.
     * 
*/ public org.xmtp.proto.mls.api.v1.Mls.GetIdentityUpdatesResponse getIdentityUpdates(org.xmtp.proto.mls.api.v1.Mls.GetIdentityUpdatesRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getGetIdentityUpdatesMethod(), getCallOptions(), request); } /** *
     * Query stored group messages
     * 
*/ public org.xmtp.proto.mls.api.v1.Mls.QueryGroupMessagesResponse queryGroupMessages(org.xmtp.proto.mls.api.v1.Mls.QueryGroupMessagesRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getQueryGroupMessagesMethod(), getCallOptions(), request); } /** *
     * Query stored group messages
     * 
*/ public org.xmtp.proto.mls.api.v1.Mls.QueryWelcomeMessagesResponse queryWelcomeMessages(org.xmtp.proto.mls.api.v1.Mls.QueryWelcomeMessagesRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getQueryWelcomeMessagesMethod(), getCallOptions(), request); } /** *
     * Subscribe stream of new group messages
     * 
*/ public java.util.Iterator subscribeGroupMessages( org.xmtp.proto.mls.api.v1.Mls.SubscribeGroupMessagesRequest request) { return io.grpc.stub.ClientCalls.blockingServerStreamingCall( getChannel(), getSubscribeGroupMessagesMethod(), getCallOptions(), request); } /** *
     * Subscribe stream of new welcome messages
     * 
*/ public java.util.Iterator subscribeWelcomeMessages( org.xmtp.proto.mls.api.v1.Mls.SubscribeWelcomeMessagesRequest request) { return io.grpc.stub.ClientCalls.blockingServerStreamingCall( getChannel(), getSubscribeWelcomeMessagesMethod(), getCallOptions(), request); } } /** *
   * RPCs for the new MLS API
   * 
*/ public static final class MlsApiFutureStub extends io.grpc.stub.AbstractFutureStub { private MlsApiFutureStub( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @java.lang.Override protected MlsApiFutureStub build( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new MlsApiFutureStub(channel, callOptions); } /** *
     * Send a MLS payload, that would be validated before being stored to the
     * network
     * 
*/ public com.google.common.util.concurrent.ListenableFuture sendGroupMessages( org.xmtp.proto.mls.api.v1.Mls.SendGroupMessagesRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getSendGroupMessagesMethod(), getCallOptions()), request); } /** *
     * Send a batch of welcome messages
     * 
*/ public com.google.common.util.concurrent.ListenableFuture sendWelcomeMessages( org.xmtp.proto.mls.api.v1.Mls.SendWelcomeMessagesRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getSendWelcomeMessagesMethod(), getCallOptions()), request); } /** *
     * Register a new installation, which would be validated before storage
     * 
*/ public com.google.common.util.concurrent.ListenableFuture registerInstallation( org.xmtp.proto.mls.api.v1.Mls.RegisterInstallationRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getRegisterInstallationMethod(), getCallOptions()), request); } /** *
     * Upload a new KeyPackage, which would be validated before storage
     * 
*/ public com.google.common.util.concurrent.ListenableFuture uploadKeyPackage( org.xmtp.proto.mls.api.v1.Mls.UploadKeyPackageRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getUploadKeyPackageMethod(), getCallOptions()), request); } /** *
     * Get one or more Key Packages by installation_id
     * 
*/ public com.google.common.util.concurrent.ListenableFuture fetchKeyPackages( org.xmtp.proto.mls.api.v1.Mls.FetchKeyPackagesRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getFetchKeyPackagesMethod(), getCallOptions()), request); } /** *
     * Would delete all key packages associated with the installation and mark
     * the installation as having been revoked
     * 
*/ public com.google.common.util.concurrent.ListenableFuture revokeInstallation( org.xmtp.proto.mls.api.v1.Mls.RevokeInstallationRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getRevokeInstallationMethod(), getCallOptions()), request); } /** *
     * Used to check for changes related to members of a group.
     * Would return an array of any new installations associated with the wallet
     * address, and any revocations that have happened.
     * 
*/ public com.google.common.util.concurrent.ListenableFuture getIdentityUpdates( org.xmtp.proto.mls.api.v1.Mls.GetIdentityUpdatesRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getGetIdentityUpdatesMethod(), getCallOptions()), request); } /** *
     * Query stored group messages
     * 
*/ public com.google.common.util.concurrent.ListenableFuture queryGroupMessages( org.xmtp.proto.mls.api.v1.Mls.QueryGroupMessagesRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getQueryGroupMessagesMethod(), getCallOptions()), request); } /** *
     * Query stored group messages
     * 
*/ public com.google.common.util.concurrent.ListenableFuture queryWelcomeMessages( org.xmtp.proto.mls.api.v1.Mls.QueryWelcomeMessagesRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getQueryWelcomeMessagesMethod(), getCallOptions()), request); } } private static final int METHODID_SEND_GROUP_MESSAGES = 0; private static final int METHODID_SEND_WELCOME_MESSAGES = 1; private static final int METHODID_REGISTER_INSTALLATION = 2; private static final int METHODID_UPLOAD_KEY_PACKAGE = 3; private static final int METHODID_FETCH_KEY_PACKAGES = 4; private static final int METHODID_REVOKE_INSTALLATION = 5; private static final int METHODID_GET_IDENTITY_UPDATES = 6; private static final int METHODID_QUERY_GROUP_MESSAGES = 7; private static final int METHODID_QUERY_WELCOME_MESSAGES = 8; private static final int METHODID_SUBSCRIBE_GROUP_MESSAGES = 9; private static final int METHODID_SUBSCRIBE_WELCOME_MESSAGES = 10; private static final class MethodHandlers implements io.grpc.stub.ServerCalls.UnaryMethod, io.grpc.stub.ServerCalls.ServerStreamingMethod, io.grpc.stub.ServerCalls.ClientStreamingMethod, io.grpc.stub.ServerCalls.BidiStreamingMethod { private final MlsApiImplBase serviceImpl; private final int methodId; MethodHandlers(MlsApiImplBase serviceImpl, int methodId) { this.serviceImpl = serviceImpl; this.methodId = methodId; } @java.lang.Override @java.lang.SuppressWarnings("unchecked") public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { switch (methodId) { case METHODID_SEND_GROUP_MESSAGES: serviceImpl.sendGroupMessages((org.xmtp.proto.mls.api.v1.Mls.SendGroupMessagesRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_SEND_WELCOME_MESSAGES: serviceImpl.sendWelcomeMessages((org.xmtp.proto.mls.api.v1.Mls.SendWelcomeMessagesRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_REGISTER_INSTALLATION: serviceImpl.registerInstallation((org.xmtp.proto.mls.api.v1.Mls.RegisterInstallationRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_UPLOAD_KEY_PACKAGE: serviceImpl.uploadKeyPackage((org.xmtp.proto.mls.api.v1.Mls.UploadKeyPackageRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_FETCH_KEY_PACKAGES: serviceImpl.fetchKeyPackages((org.xmtp.proto.mls.api.v1.Mls.FetchKeyPackagesRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_REVOKE_INSTALLATION: serviceImpl.revokeInstallation((org.xmtp.proto.mls.api.v1.Mls.RevokeInstallationRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_GET_IDENTITY_UPDATES: serviceImpl.getIdentityUpdates((org.xmtp.proto.mls.api.v1.Mls.GetIdentityUpdatesRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_QUERY_GROUP_MESSAGES: serviceImpl.queryGroupMessages((org.xmtp.proto.mls.api.v1.Mls.QueryGroupMessagesRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_QUERY_WELCOME_MESSAGES: serviceImpl.queryWelcomeMessages((org.xmtp.proto.mls.api.v1.Mls.QueryWelcomeMessagesRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_SUBSCRIBE_GROUP_MESSAGES: serviceImpl.subscribeGroupMessages((org.xmtp.proto.mls.api.v1.Mls.SubscribeGroupMessagesRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_SUBSCRIBE_WELCOME_MESSAGES: serviceImpl.subscribeWelcomeMessages((org.xmtp.proto.mls.api.v1.Mls.SubscribeWelcomeMessagesRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; default: throw new AssertionError(); } } @java.lang.Override @java.lang.SuppressWarnings("unchecked") public io.grpc.stub.StreamObserver invoke( io.grpc.stub.StreamObserver responseObserver) { switch (methodId) { default: throw new AssertionError(); } } } private static volatile io.grpc.ServiceDescriptor serviceDescriptor; public static io.grpc.ServiceDescriptor getServiceDescriptor() { io.grpc.ServiceDescriptor result = serviceDescriptor; if (result == null) { synchronized (MlsApiGrpc.class) { result = serviceDescriptor; if (result == null) { serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) .addMethod(getSendGroupMessagesMethod()) .addMethod(getSendWelcomeMessagesMethod()) .addMethod(getRegisterInstallationMethod()) .addMethod(getUploadKeyPackageMethod()) .addMethod(getFetchKeyPackagesMethod()) .addMethod(getRevokeInstallationMethod()) .addMethod(getGetIdentityUpdatesMethod()) .addMethod(getQueryGroupMessagesMethod()) .addMethod(getQueryWelcomeMessagesMethod()) .addMethod(getSubscribeGroupMessagesMethod()) .addMethod(getSubscribeWelcomeMessagesMethod()) .build(); } } } return result; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy