
io.bloombox.schema.services.auth.v1beta1.AuthGrpc Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of java-client Show documentation
Show all versions of java-client Show documentation
Java RPCAPI client for the Bloombox Cloud.
The newest version!
/*
* Copyright 2019, Momentum Ideas, Co. All rights reserved.
*
* Source and object computer code contained herein is the private intellectual
* property of Momentum Ideas Co., a Delaware Corporation. Use of this
* code in source form requires permission in writing before use or the
* assembly, distribution, or publishing of derivative works, for commercial
* purposes or any other purpose, from a duly authorized officer of Momentum
* Ideas Co.
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package io.bloombox.schema.services.auth.v1beta1;
import static io.grpc.MethodDescriptor.generateFullMethodName;
import static io.grpc.stub.ClientCalls.asyncBidiStreamingCall;
import static io.grpc.stub.ClientCalls.asyncClientStreamingCall;
import static io.grpc.stub.ClientCalls.asyncServerStreamingCall;
import static io.grpc.stub.ClientCalls.asyncUnaryCall;
import static io.grpc.stub.ClientCalls.blockingServerStreamingCall;
import static io.grpc.stub.ClientCalls.blockingUnaryCall;
import static io.grpc.stub.ClientCalls.futureUnaryCall;
import static io.grpc.stub.ServerCalls.asyncBidiStreamingCall;
import static io.grpc.stub.ServerCalls.asyncClientStreamingCall;
import static io.grpc.stub.ServerCalls.asyncServerStreamingCall;
import static io.grpc.stub.ServerCalls.asyncUnaryCall;
import static io.grpc.stub.ServerCalls.asyncUnimplementedStreamingCall;
import static io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall;
/**
*
* Specifies the Auth service, which is responsible for authenticating and authorizing users. It also provides limited
* profile information for UI purposes.
*
*/
@javax.annotation.Generated(
value = "by gRPC proto compiler (version 1.18.0)",
comments = "Source: auth/v1beta1/AuthService_Beta1.proto")
public final class AuthGrpc {
private AuthGrpc() {}
public static final String SERVICE_NAME = "bloombox.services.auth.v1beta1.Auth";
// Static method descriptors that strictly reflect the proto.
private static volatile io.grpc.MethodDescriptor getNonceMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "Nonce",
requestType = com.google.protobuf.Empty.class,
responseType = io.bloombox.schema.services.auth.v1beta1.AuthNonce.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getNonceMethod() {
io.grpc.MethodDescriptor getNonceMethod;
if ((getNonceMethod = AuthGrpc.getNonceMethod) == null) {
synchronized (AuthGrpc.class) {
if ((getNonceMethod = AuthGrpc.getNonceMethod) == null) {
AuthGrpc.getNonceMethod = getNonceMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(
"bloombox.services.auth.v1beta1.Auth", "Nonce"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
com.google.protobuf.Empty.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
io.bloombox.schema.services.auth.v1beta1.AuthNonce.getDefaultInstance()))
.setSchemaDescriptor(new AuthMethodDescriptorSupplier("Nonce"))
.build();
}
}
}
return getNonceMethod;
}
private static volatile io.grpc.MethodDescriptor getAuthenticateMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "Authenticate",
requestType = io.bloombox.schema.services.auth.v1beta1.AuthenticateUser.Request.class,
responseType = io.bloombox.schema.services.auth.v1beta1.AuthenticateUser.Response.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getAuthenticateMethod() {
io.grpc.MethodDescriptor getAuthenticateMethod;
if ((getAuthenticateMethod = AuthGrpc.getAuthenticateMethod) == null) {
synchronized (AuthGrpc.class) {
if ((getAuthenticateMethod = AuthGrpc.getAuthenticateMethod) == null) {
AuthGrpc.getAuthenticateMethod = getAuthenticateMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(
"bloombox.services.auth.v1beta1.Auth", "Authenticate"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
io.bloombox.schema.services.auth.v1beta1.AuthenticateUser.Request.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
io.bloombox.schema.services.auth.v1beta1.AuthenticateUser.Response.getDefaultInstance()))
.setSchemaDescriptor(new AuthMethodDescriptorSupplier("Authenticate"))
.build();
}
}
}
return getAuthenticateMethod;
}
private static volatile io.grpc.MethodDescriptor getConsentMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "Consent",
requestType = io.bloombox.schema.services.auth.v1beta1.ConsentFlow.Request.class,
responseType = io.bloombox.schema.services.auth.v1beta1.ConsentFlow.Response.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getConsentMethod() {
io.grpc.MethodDescriptor getConsentMethod;
if ((getConsentMethod = AuthGrpc.getConsentMethod) == null) {
synchronized (AuthGrpc.class) {
if ((getConsentMethod = AuthGrpc.getConsentMethod) == null) {
AuthGrpc.getConsentMethod = getConsentMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(
"bloombox.services.auth.v1beta1.Auth", "Consent"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
io.bloombox.schema.services.auth.v1beta1.ConsentFlow.Request.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
io.bloombox.schema.services.auth.v1beta1.ConsentFlow.Response.getDefaultInstance()))
.setSchemaDescriptor(new AuthMethodDescriptorSupplier("Consent"))
.build();
}
}
}
return getConsentMethod;
}
private static volatile io.grpc.MethodDescriptor getTokenMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "Token",
requestType = io.bloombox.schema.services.auth.v1beta1.ResolveToken.Request.class,
responseType = io.bloombox.schema.services.auth.v1beta1.ResolveToken.Response.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getTokenMethod() {
io.grpc.MethodDescriptor getTokenMethod;
if ((getTokenMethod = AuthGrpc.getTokenMethod) == null) {
synchronized (AuthGrpc.class) {
if ((getTokenMethod = AuthGrpc.getTokenMethod) == null) {
AuthGrpc.getTokenMethod = getTokenMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(
"bloombox.services.auth.v1beta1.Auth", "Token"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
io.bloombox.schema.services.auth.v1beta1.ResolveToken.Request.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
io.bloombox.schema.services.auth.v1beta1.ResolveToken.Response.getDefaultInstance()))
.setSchemaDescriptor(new AuthMethodDescriptorSupplier("Token"))
.build();
}
}
}
return getTokenMethod;
}
private static volatile io.grpc.MethodDescriptor getAcceptMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "Accept",
requestType = io.bloombox.schema.services.auth.v1beta1.ConsentDecision.Accept.class,
responseType = com.google.protobuf.Empty.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getAcceptMethod() {
io.grpc.MethodDescriptor getAcceptMethod;
if ((getAcceptMethod = AuthGrpc.getAcceptMethod) == null) {
synchronized (AuthGrpc.class) {
if ((getAcceptMethod = AuthGrpc.getAcceptMethod) == null) {
AuthGrpc.getAcceptMethod = getAcceptMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(
"bloombox.services.auth.v1beta1.Auth", "Accept"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
io.bloombox.schema.services.auth.v1beta1.ConsentDecision.Accept.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
com.google.protobuf.Empty.getDefaultInstance()))
.setSchemaDescriptor(new AuthMethodDescriptorSupplier("Accept"))
.build();
}
}
}
return getAcceptMethod;
}
private static volatile io.grpc.MethodDescriptor getRejectMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "Reject",
requestType = io.bloombox.schema.services.auth.v1beta1.ConsentDecision.Reject.class,
responseType = com.google.protobuf.Empty.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getRejectMethod() {
io.grpc.MethodDescriptor getRejectMethod;
if ((getRejectMethod = AuthGrpc.getRejectMethod) == null) {
synchronized (AuthGrpc.class) {
if ((getRejectMethod = AuthGrpc.getRejectMethod) == null) {
AuthGrpc.getRejectMethod = getRejectMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(
"bloombox.services.auth.v1beta1.Auth", "Reject"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
io.bloombox.schema.services.auth.v1beta1.ConsentDecision.Reject.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
com.google.protobuf.Empty.getDefaultInstance()))
.setSchemaDescriptor(new AuthMethodDescriptorSupplier("Reject"))
.build();
}
}
}
return getRejectMethod;
}
private static volatile io.grpc.MethodDescriptor getConnectMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "Connect",
requestType = io.bloombox.schema.services.auth.v1beta1.IdentityConnect.Request.class,
responseType = io.bloombox.schema.services.auth.v1beta1.IdentityConnect.Response.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getConnectMethod() {
io.grpc.MethodDescriptor getConnectMethod;
if ((getConnectMethod = AuthGrpc.getConnectMethod) == null) {
synchronized (AuthGrpc.class) {
if ((getConnectMethod = AuthGrpc.getConnectMethod) == null) {
AuthGrpc.getConnectMethod = getConnectMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(
"bloombox.services.auth.v1beta1.Auth", "Connect"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
io.bloombox.schema.services.auth.v1beta1.IdentityConnect.Request.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
io.bloombox.schema.services.auth.v1beta1.IdentityConnect.Response.getDefaultInstance()))
.setSchemaDescriptor(new AuthMethodDescriptorSupplier("Connect"))
.build();
}
}
}
return getConnectMethod;
}
private static volatile io.grpc.MethodDescriptor getContextMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "Context",
requestType = io.bloombox.schema.services.auth.v1beta1.UserContext.Request.class,
responseType = io.bloombox.schema.services.auth.v1beta1.UserContext.Response.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getContextMethod() {
io.grpc.MethodDescriptor getContextMethod;
if ((getContextMethod = AuthGrpc.getContextMethod) == null) {
synchronized (AuthGrpc.class) {
if ((getContextMethod = AuthGrpc.getContextMethod) == null) {
AuthGrpc.getContextMethod = getContextMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(
"bloombox.services.auth.v1beta1.Auth", "Context"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
io.bloombox.schema.services.auth.v1beta1.UserContext.Request.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
io.bloombox.schema.services.auth.v1beta1.UserContext.Response.getDefaultInstance()))
.setSchemaDescriptor(new AuthMethodDescriptorSupplier("Context"))
.build();
}
}
}
return getContextMethod;
}
private static volatile io.grpc.MethodDescriptor getProfileMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "Profile",
requestType = io.bloombox.schema.services.auth.v1beta1.GetProfile.Request.class,
responseType = io.bloombox.schema.services.auth.v1beta1.GetProfile.Response.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getProfileMethod() {
io.grpc.MethodDescriptor getProfileMethod;
if ((getProfileMethod = AuthGrpc.getProfileMethod) == null) {
synchronized (AuthGrpc.class) {
if ((getProfileMethod = AuthGrpc.getProfileMethod) == null) {
AuthGrpc.getProfileMethod = getProfileMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(
"bloombox.services.auth.v1beta1.Auth", "Profile"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
io.bloombox.schema.services.auth.v1beta1.GetProfile.Request.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
io.bloombox.schema.services.auth.v1beta1.GetProfile.Response.getDefaultInstance()))
.setSchemaDescriptor(new AuthMethodDescriptorSupplier("Profile"))
.build();
}
}
}
return getProfileMethod;
}
private static volatile io.grpc.MethodDescriptor getUpdateProfileMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "UpdateProfile",
requestType = io.bloombox.schema.services.auth.v1beta1.ProfileUpdate.Request.class,
responseType = com.google.protobuf.Empty.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getUpdateProfileMethod() {
io.grpc.MethodDescriptor getUpdateProfileMethod;
if ((getUpdateProfileMethod = AuthGrpc.getUpdateProfileMethod) == null) {
synchronized (AuthGrpc.class) {
if ((getUpdateProfileMethod = AuthGrpc.getUpdateProfileMethod) == null) {
AuthGrpc.getUpdateProfileMethod = getUpdateProfileMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(
"bloombox.services.auth.v1beta1.Auth", "UpdateProfile"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
io.bloombox.schema.services.auth.v1beta1.ProfileUpdate.Request.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
com.google.protobuf.Empty.getDefaultInstance()))
.setSchemaDescriptor(new AuthMethodDescriptorSupplier("UpdateProfile"))
.build();
}
}
}
return getUpdateProfileMethod;
}
/**
* Creates a new async stub that supports all call types for the service
*/
public static AuthStub newStub(io.grpc.Channel channel) {
return new AuthStub(channel);
}
/**
* Creates a new blocking-style stub that supports unary and streaming output calls on the service
*/
public static AuthBlockingStub newBlockingStub(
io.grpc.Channel channel) {
return new AuthBlockingStub(channel);
}
/**
* Creates a new ListenableFuture-style stub that supports unary calls on the service
*/
public static AuthFutureStub newFutureStub(
io.grpc.Channel channel) {
return new AuthFutureStub(channel);
}
/**
*
* Specifies the Auth service, which is responsible for authenticating and authorizing users. It also provides limited
* profile information for UI purposes.
*
*/
public static abstract class AuthImplBase implements io.grpc.BindableService {
/**
*
* Generate an authentication nonce, which is usable once, and only once, to perform an auth flow.
*
*/
public void nonce(com.google.protobuf.Empty request,
io.grpc.stub.StreamObserver responseObserver) {
asyncUnimplementedUnaryCall(getNonceMethod(), responseObserver);
}
/**
*
* Authenticate an identity assertion of some kind from a user. Decide whether to grant them access to the subject
* account.
*
*/
public void authenticate(io.bloombox.schema.services.auth.v1beta1.AuthenticateUser.Request request,
io.grpc.stub.StreamObserver responseObserver) {
asyncUnimplementedUnaryCall(getAuthenticateMethod(), responseObserver);
}
/**
*
* Retrieve consent flow information by ID.
*
*/
public void consent(io.bloombox.schema.services.auth.v1beta1.ConsentFlow.Request request,
io.grpc.stub.StreamObserver responseObserver) {
asyncUnimplementedUnaryCall(getConsentMethod(), responseObserver);
}
/**
*
* Retrieve an access token, given a completed ID and authorization ticket.
*
*/
public void token(io.bloombox.schema.services.auth.v1beta1.ResolveToken.Request request,
io.grpc.stub.StreamObserver responseObserver) {
asyncUnimplementedUnaryCall(getTokenMethod(), responseObserver);
}
/**
*
* Indicates an affirmative consent decision from a user, during a consent flow.
*
*/
public void accept(io.bloombox.schema.services.auth.v1beta1.ConsentDecision.Accept request,
io.grpc.stub.StreamObserver responseObserver) {
asyncUnimplementedUnaryCall(getAcceptMethod(), responseObserver);
}
/**
*
* Indicates declined consent from a user, during a consent flow.
*
*/
public void reject(io.bloombox.schema.services.auth.v1beta1.ConsentDecision.Reject request,
io.grpc.stub.StreamObserver responseObserver) {
asyncUnimplementedUnaryCall(getRejectMethod(), responseObserver);
}
/**
*
* Connect a signed and validated user identity to a user account. If the user account in question doesn't exist yet,
* create it, initializing with any user details passed in along with the provided identity.
*
*/
public void connect(io.bloombox.schema.services.auth.v1beta1.IdentityConnect.Request request,
io.grpc.stub.StreamObserver responseObserver) {
asyncUnimplementedUnaryCall(getConnectMethod(), responseObserver);
}
/**
*
* Generate a full user context after a successful ID and authorization flow.
*
*/
public void context(io.bloombox.schema.services.auth.v1beta1.UserContext.Request request,
io.grpc.stub.StreamObserver responseObserver) {
asyncUnimplementedUnaryCall(getContextMethod(), responseObserver);
}
/**
*
* Retrieve a user's profile by key.
*
*/
public void profile(io.bloombox.schema.services.auth.v1beta1.GetProfile.Request request,
io.grpc.stub.StreamObserver responseObserver) {
asyncUnimplementedUnaryCall(getProfileMethod(), responseObserver);
}
/**
*/
public void updateProfile(io.bloombox.schema.services.auth.v1beta1.ProfileUpdate.Request request,
io.grpc.stub.StreamObserver responseObserver) {
asyncUnimplementedUnaryCall(getUpdateProfileMethod(), responseObserver);
}
@java.lang.Override public final io.grpc.ServerServiceDefinition bindService() {
return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor())
.addMethod(
getNonceMethod(),
asyncUnaryCall(
new MethodHandlers<
com.google.protobuf.Empty,
io.bloombox.schema.services.auth.v1beta1.AuthNonce>(
this, METHODID_NONCE)))
.addMethod(
getAuthenticateMethod(),
asyncUnaryCall(
new MethodHandlers<
io.bloombox.schema.services.auth.v1beta1.AuthenticateUser.Request,
io.bloombox.schema.services.auth.v1beta1.AuthenticateUser.Response>(
this, METHODID_AUTHENTICATE)))
.addMethod(
getConsentMethod(),
asyncUnaryCall(
new MethodHandlers<
io.bloombox.schema.services.auth.v1beta1.ConsentFlow.Request,
io.bloombox.schema.services.auth.v1beta1.ConsentFlow.Response>(
this, METHODID_CONSENT)))
.addMethod(
getTokenMethod(),
asyncUnaryCall(
new MethodHandlers<
io.bloombox.schema.services.auth.v1beta1.ResolveToken.Request,
io.bloombox.schema.services.auth.v1beta1.ResolveToken.Response>(
this, METHODID_TOKEN)))
.addMethod(
getAcceptMethod(),
asyncUnaryCall(
new MethodHandlers<
io.bloombox.schema.services.auth.v1beta1.ConsentDecision.Accept,
com.google.protobuf.Empty>(
this, METHODID_ACCEPT)))
.addMethod(
getRejectMethod(),
asyncUnaryCall(
new MethodHandlers<
io.bloombox.schema.services.auth.v1beta1.ConsentDecision.Reject,
com.google.protobuf.Empty>(
this, METHODID_REJECT)))
.addMethod(
getConnectMethod(),
asyncUnaryCall(
new MethodHandlers<
io.bloombox.schema.services.auth.v1beta1.IdentityConnect.Request,
io.bloombox.schema.services.auth.v1beta1.IdentityConnect.Response>(
this, METHODID_CONNECT)))
.addMethod(
getContextMethod(),
asyncUnaryCall(
new MethodHandlers<
io.bloombox.schema.services.auth.v1beta1.UserContext.Request,
io.bloombox.schema.services.auth.v1beta1.UserContext.Response>(
this, METHODID_CONTEXT)))
.addMethod(
getProfileMethod(),
asyncUnaryCall(
new MethodHandlers<
io.bloombox.schema.services.auth.v1beta1.GetProfile.Request,
io.bloombox.schema.services.auth.v1beta1.GetProfile.Response>(
this, METHODID_PROFILE)))
.addMethod(
getUpdateProfileMethod(),
asyncUnaryCall(
new MethodHandlers<
io.bloombox.schema.services.auth.v1beta1.ProfileUpdate.Request,
com.google.protobuf.Empty>(
this, METHODID_UPDATE_PROFILE)))
.build();
}
}
/**
*
* Specifies the Auth service, which is responsible for authenticating and authorizing users. It also provides limited
* profile information for UI purposes.
*
*/
public static final class AuthStub extends io.grpc.stub.AbstractStub {
private AuthStub(io.grpc.Channel channel) {
super(channel);
}
private AuthStub(io.grpc.Channel channel,
io.grpc.CallOptions callOptions) {
super(channel, callOptions);
}
@java.lang.Override
protected AuthStub build(io.grpc.Channel channel,
io.grpc.CallOptions callOptions) {
return new AuthStub(channel, callOptions);
}
/**
*
* Generate an authentication nonce, which is usable once, and only once, to perform an auth flow.
*
*/
public void nonce(com.google.protobuf.Empty request,
io.grpc.stub.StreamObserver responseObserver) {
asyncUnaryCall(
getChannel().newCall(getNonceMethod(), getCallOptions()), request, responseObserver);
}
/**
*
* Authenticate an identity assertion of some kind from a user. Decide whether to grant them access to the subject
* account.
*
*/
public void authenticate(io.bloombox.schema.services.auth.v1beta1.AuthenticateUser.Request request,
io.grpc.stub.StreamObserver responseObserver) {
asyncUnaryCall(
getChannel().newCall(getAuthenticateMethod(), getCallOptions()), request, responseObserver);
}
/**
*
* Retrieve consent flow information by ID.
*
*/
public void consent(io.bloombox.schema.services.auth.v1beta1.ConsentFlow.Request request,
io.grpc.stub.StreamObserver responseObserver) {
asyncUnaryCall(
getChannel().newCall(getConsentMethod(), getCallOptions()), request, responseObserver);
}
/**
*
* Retrieve an access token, given a completed ID and authorization ticket.
*
*/
public void token(io.bloombox.schema.services.auth.v1beta1.ResolveToken.Request request,
io.grpc.stub.StreamObserver responseObserver) {
asyncUnaryCall(
getChannel().newCall(getTokenMethod(), getCallOptions()), request, responseObserver);
}
/**
*
* Indicates an affirmative consent decision from a user, during a consent flow.
*
*/
public void accept(io.bloombox.schema.services.auth.v1beta1.ConsentDecision.Accept request,
io.grpc.stub.StreamObserver responseObserver) {
asyncUnaryCall(
getChannel().newCall(getAcceptMethod(), getCallOptions()), request, responseObserver);
}
/**
*
* Indicates declined consent from a user, during a consent flow.
*
*/
public void reject(io.bloombox.schema.services.auth.v1beta1.ConsentDecision.Reject request,
io.grpc.stub.StreamObserver responseObserver) {
asyncUnaryCall(
getChannel().newCall(getRejectMethod(), getCallOptions()), request, responseObserver);
}
/**
*
* Connect a signed and validated user identity to a user account. If the user account in question doesn't exist yet,
* create it, initializing with any user details passed in along with the provided identity.
*
*/
public void connect(io.bloombox.schema.services.auth.v1beta1.IdentityConnect.Request request,
io.grpc.stub.StreamObserver responseObserver) {
asyncUnaryCall(
getChannel().newCall(getConnectMethod(), getCallOptions()), request, responseObserver);
}
/**
*
* Generate a full user context after a successful ID and authorization flow.
*
*/
public void context(io.bloombox.schema.services.auth.v1beta1.UserContext.Request request,
io.grpc.stub.StreamObserver responseObserver) {
asyncUnaryCall(
getChannel().newCall(getContextMethod(), getCallOptions()), request, responseObserver);
}
/**
*
* Retrieve a user's profile by key.
*
*/
public void profile(io.bloombox.schema.services.auth.v1beta1.GetProfile.Request request,
io.grpc.stub.StreamObserver responseObserver) {
asyncUnaryCall(
getChannel().newCall(getProfileMethod(), getCallOptions()), request, responseObserver);
}
/**
*/
public void updateProfile(io.bloombox.schema.services.auth.v1beta1.ProfileUpdate.Request request,
io.grpc.stub.StreamObserver responseObserver) {
asyncUnaryCall(
getChannel().newCall(getUpdateProfileMethod(), getCallOptions()), request, responseObserver);
}
}
/**
*
* Specifies the Auth service, which is responsible for authenticating and authorizing users. It also provides limited
* profile information for UI purposes.
*
*/
public static final class AuthBlockingStub extends io.grpc.stub.AbstractStub {
private AuthBlockingStub(io.grpc.Channel channel) {
super(channel);
}
private AuthBlockingStub(io.grpc.Channel channel,
io.grpc.CallOptions callOptions) {
super(channel, callOptions);
}
@java.lang.Override
protected AuthBlockingStub build(io.grpc.Channel channel,
io.grpc.CallOptions callOptions) {
return new AuthBlockingStub(channel, callOptions);
}
/**
*
* Generate an authentication nonce, which is usable once, and only once, to perform an auth flow.
*
*/
public io.bloombox.schema.services.auth.v1beta1.AuthNonce nonce(com.google.protobuf.Empty request) {
return blockingUnaryCall(
getChannel(), getNonceMethod(), getCallOptions(), request);
}
/**
*
* Authenticate an identity assertion of some kind from a user. Decide whether to grant them access to the subject
* account.
*
*/
public io.bloombox.schema.services.auth.v1beta1.AuthenticateUser.Response authenticate(io.bloombox.schema.services.auth.v1beta1.AuthenticateUser.Request request) {
return blockingUnaryCall(
getChannel(), getAuthenticateMethod(), getCallOptions(), request);
}
/**
*
* Retrieve consent flow information by ID.
*
*/
public io.bloombox.schema.services.auth.v1beta1.ConsentFlow.Response consent(io.bloombox.schema.services.auth.v1beta1.ConsentFlow.Request request) {
return blockingUnaryCall(
getChannel(), getConsentMethod(), getCallOptions(), request);
}
/**
*
* Retrieve an access token, given a completed ID and authorization ticket.
*
*/
public io.bloombox.schema.services.auth.v1beta1.ResolveToken.Response token(io.bloombox.schema.services.auth.v1beta1.ResolveToken.Request request) {
return blockingUnaryCall(
getChannel(), getTokenMethod(), getCallOptions(), request);
}
/**
*
* Indicates an affirmative consent decision from a user, during a consent flow.
*
*/
public com.google.protobuf.Empty accept(io.bloombox.schema.services.auth.v1beta1.ConsentDecision.Accept request) {
return blockingUnaryCall(
getChannel(), getAcceptMethod(), getCallOptions(), request);
}
/**
*
* Indicates declined consent from a user, during a consent flow.
*
*/
public com.google.protobuf.Empty reject(io.bloombox.schema.services.auth.v1beta1.ConsentDecision.Reject request) {
return blockingUnaryCall(
getChannel(), getRejectMethod(), getCallOptions(), request);
}
/**
*
* Connect a signed and validated user identity to a user account. If the user account in question doesn't exist yet,
* create it, initializing with any user details passed in along with the provided identity.
*
*/
public io.bloombox.schema.services.auth.v1beta1.IdentityConnect.Response connect(io.bloombox.schema.services.auth.v1beta1.IdentityConnect.Request request) {
return blockingUnaryCall(
getChannel(), getConnectMethod(), getCallOptions(), request);
}
/**
*
* Generate a full user context after a successful ID and authorization flow.
*
*/
public io.bloombox.schema.services.auth.v1beta1.UserContext.Response context(io.bloombox.schema.services.auth.v1beta1.UserContext.Request request) {
return blockingUnaryCall(
getChannel(), getContextMethod(), getCallOptions(), request);
}
/**
*
* Retrieve a user's profile by key.
*
*/
public io.bloombox.schema.services.auth.v1beta1.GetProfile.Response profile(io.bloombox.schema.services.auth.v1beta1.GetProfile.Request request) {
return blockingUnaryCall(
getChannel(), getProfileMethod(), getCallOptions(), request);
}
/**
*/
public com.google.protobuf.Empty updateProfile(io.bloombox.schema.services.auth.v1beta1.ProfileUpdate.Request request) {
return blockingUnaryCall(
getChannel(), getUpdateProfileMethod(), getCallOptions(), request);
}
}
/**
*
* Specifies the Auth service, which is responsible for authenticating and authorizing users. It also provides limited
* profile information for UI purposes.
*
*/
public static final class AuthFutureStub extends io.grpc.stub.AbstractStub {
private AuthFutureStub(io.grpc.Channel channel) {
super(channel);
}
private AuthFutureStub(io.grpc.Channel channel,
io.grpc.CallOptions callOptions) {
super(channel, callOptions);
}
@java.lang.Override
protected AuthFutureStub build(io.grpc.Channel channel,
io.grpc.CallOptions callOptions) {
return new AuthFutureStub(channel, callOptions);
}
/**
*
* Generate an authentication nonce, which is usable once, and only once, to perform an auth flow.
*
*/
public com.google.common.util.concurrent.ListenableFuture nonce(
com.google.protobuf.Empty request) {
return futureUnaryCall(
getChannel().newCall(getNonceMethod(), getCallOptions()), request);
}
/**
*
* Authenticate an identity assertion of some kind from a user. Decide whether to grant them access to the subject
* account.
*
*/
public com.google.common.util.concurrent.ListenableFuture authenticate(
io.bloombox.schema.services.auth.v1beta1.AuthenticateUser.Request request) {
return futureUnaryCall(
getChannel().newCall(getAuthenticateMethod(), getCallOptions()), request);
}
/**
*
* Retrieve consent flow information by ID.
*
*/
public com.google.common.util.concurrent.ListenableFuture consent(
io.bloombox.schema.services.auth.v1beta1.ConsentFlow.Request request) {
return futureUnaryCall(
getChannel().newCall(getConsentMethod(), getCallOptions()), request);
}
/**
*
* Retrieve an access token, given a completed ID and authorization ticket.
*
*/
public com.google.common.util.concurrent.ListenableFuture token(
io.bloombox.schema.services.auth.v1beta1.ResolveToken.Request request) {
return futureUnaryCall(
getChannel().newCall(getTokenMethod(), getCallOptions()), request);
}
/**
*
* Indicates an affirmative consent decision from a user, during a consent flow.
*
*/
public com.google.common.util.concurrent.ListenableFuture accept(
io.bloombox.schema.services.auth.v1beta1.ConsentDecision.Accept request) {
return futureUnaryCall(
getChannel().newCall(getAcceptMethod(), getCallOptions()), request);
}
/**
*
* Indicates declined consent from a user, during a consent flow.
*
*/
public com.google.common.util.concurrent.ListenableFuture reject(
io.bloombox.schema.services.auth.v1beta1.ConsentDecision.Reject request) {
return futureUnaryCall(
getChannel().newCall(getRejectMethod(), getCallOptions()), request);
}
/**
*
* Connect a signed and validated user identity to a user account. If the user account in question doesn't exist yet,
* create it, initializing with any user details passed in along with the provided identity.
*
*/
public com.google.common.util.concurrent.ListenableFuture connect(
io.bloombox.schema.services.auth.v1beta1.IdentityConnect.Request request) {
return futureUnaryCall(
getChannel().newCall(getConnectMethod(), getCallOptions()), request);
}
/**
*
* Generate a full user context after a successful ID and authorization flow.
*
*/
public com.google.common.util.concurrent.ListenableFuture context(
io.bloombox.schema.services.auth.v1beta1.UserContext.Request request) {
return futureUnaryCall(
getChannel().newCall(getContextMethod(), getCallOptions()), request);
}
/**
*
* Retrieve a user's profile by key.
*
*/
public com.google.common.util.concurrent.ListenableFuture profile(
io.bloombox.schema.services.auth.v1beta1.GetProfile.Request request) {
return futureUnaryCall(
getChannel().newCall(getProfileMethod(), getCallOptions()), request);
}
/**
*/
public com.google.common.util.concurrent.ListenableFuture updateProfile(
io.bloombox.schema.services.auth.v1beta1.ProfileUpdate.Request request) {
return futureUnaryCall(
getChannel().newCall(getUpdateProfileMethod(), getCallOptions()), request);
}
}
private static final int METHODID_NONCE = 0;
private static final int METHODID_AUTHENTICATE = 1;
private static final int METHODID_CONSENT = 2;
private static final int METHODID_TOKEN = 3;
private static final int METHODID_ACCEPT = 4;
private static final int METHODID_REJECT = 5;
private static final int METHODID_CONNECT = 6;
private static final int METHODID_CONTEXT = 7;
private static final int METHODID_PROFILE = 8;
private static final int METHODID_UPDATE_PROFILE = 9;
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 AuthImplBase serviceImpl;
private final int methodId;
MethodHandlers(AuthImplBase 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_NONCE:
serviceImpl.nonce((com.google.protobuf.Empty) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_AUTHENTICATE:
serviceImpl.authenticate((io.bloombox.schema.services.auth.v1beta1.AuthenticateUser.Request) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_CONSENT:
serviceImpl.consent((io.bloombox.schema.services.auth.v1beta1.ConsentFlow.Request) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_TOKEN:
serviceImpl.token((io.bloombox.schema.services.auth.v1beta1.ResolveToken.Request) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_ACCEPT:
serviceImpl.accept((io.bloombox.schema.services.auth.v1beta1.ConsentDecision.Accept) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_REJECT:
serviceImpl.reject((io.bloombox.schema.services.auth.v1beta1.ConsentDecision.Reject) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_CONNECT:
serviceImpl.connect((io.bloombox.schema.services.auth.v1beta1.IdentityConnect.Request) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_CONTEXT:
serviceImpl.context((io.bloombox.schema.services.auth.v1beta1.UserContext.Request) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_PROFILE:
serviceImpl.profile((io.bloombox.schema.services.auth.v1beta1.GetProfile.Request) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_UPDATE_PROFILE:
serviceImpl.updateProfile((io.bloombox.schema.services.auth.v1beta1.ProfileUpdate.Request) 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 abstract class AuthBaseDescriptorSupplier
implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier {
AuthBaseDescriptorSupplier() {}
@java.lang.Override
public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() {
return io.bloombox.schema.services.auth.v1beta1.AuthServiceBeta1.getDescriptor();
}
@java.lang.Override
public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() {
return getFileDescriptor().findServiceByName("Auth");
}
}
private static final class AuthFileDescriptorSupplier
extends AuthBaseDescriptorSupplier {
AuthFileDescriptorSupplier() {}
}
private static final class AuthMethodDescriptorSupplier
extends AuthBaseDescriptorSupplier
implements io.grpc.protobuf.ProtoMethodDescriptorSupplier {
private final String methodName;
AuthMethodDescriptorSupplier(String methodName) {
this.methodName = methodName;
}
@java.lang.Override
public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() {
return getServiceDescriptor().findMethodByName(methodName);
}
}
private static volatile io.grpc.ServiceDescriptor serviceDescriptor;
public static io.grpc.ServiceDescriptor getServiceDescriptor() {
io.grpc.ServiceDescriptor result = serviceDescriptor;
if (result == null) {
synchronized (AuthGrpc.class) {
result = serviceDescriptor;
if (result == null) {
serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME)
.setSchemaDescriptor(new AuthFileDescriptorSupplier())
.addMethod(getNonceMethod())
.addMethod(getAuthenticateMethod())
.addMethod(getConsentMethod())
.addMethod(getTokenMethod())
.addMethod(getAcceptMethod())
.addMethod(getRejectMethod())
.addMethod(getConnectMethod())
.addMethod(getContextMethod())
.addMethod(getProfileMethod())
.addMethod(getUpdateProfileMethod())
.build();
}
}
}
return result;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy