yandex.cloud.api.organizationmanager.v1.saml.FederationServiceGrpc Maven / Gradle / Ivy
package yandex.cloud.api.organizationmanager.v1.saml;
import static io.grpc.MethodDescriptor.generateFullMethodName;
/**
*
* A set of methods for managing federations.
*
*/
@javax.annotation.Generated(
value = "by gRPC proto compiler (version 1.43.2)",
comments = "Source: yandex/cloud/organizationmanager/v1/saml/federation_service.proto")
@io.grpc.stub.annotations.GrpcGenerated
public final class FederationServiceGrpc {
private FederationServiceGrpc() {}
public static final String SERVICE_NAME = "yandex.cloud.organizationmanager.v1.saml.FederationService";
// Static method descriptors that strictly reflect the proto.
private static volatile io.grpc.MethodDescriptor getGetMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "Get",
requestType = yandex.cloud.api.organizationmanager.v1.saml.FederationServiceOuterClass.GetFederationRequest.class,
responseType = yandex.cloud.api.organizationmanager.v1.saml.FederationOuterClass.Federation.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getGetMethod() {
io.grpc.MethodDescriptor getGetMethod;
if ((getGetMethod = FederationServiceGrpc.getGetMethod) == null) {
synchronized (FederationServiceGrpc.class) {
if ((getGetMethod = FederationServiceGrpc.getGetMethod) == null) {
FederationServiceGrpc.getGetMethod = getGetMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "Get"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
yandex.cloud.api.organizationmanager.v1.saml.FederationServiceOuterClass.GetFederationRequest.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
yandex.cloud.api.organizationmanager.v1.saml.FederationOuterClass.Federation.getDefaultInstance()))
.setSchemaDescriptor(new FederationServiceMethodDescriptorSupplier("Get"))
.build();
}
}
}
return getGetMethod;
}
private static volatile io.grpc.MethodDescriptor getListMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "List",
requestType = yandex.cloud.api.organizationmanager.v1.saml.FederationServiceOuterClass.ListFederationsRequest.class,
responseType = yandex.cloud.api.organizationmanager.v1.saml.FederationServiceOuterClass.ListFederationsResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getListMethod() {
io.grpc.MethodDescriptor getListMethod;
if ((getListMethod = FederationServiceGrpc.getListMethod) == null) {
synchronized (FederationServiceGrpc.class) {
if ((getListMethod = FederationServiceGrpc.getListMethod) == null) {
FederationServiceGrpc.getListMethod = getListMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "List"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
yandex.cloud.api.organizationmanager.v1.saml.FederationServiceOuterClass.ListFederationsRequest.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
yandex.cloud.api.organizationmanager.v1.saml.FederationServiceOuterClass.ListFederationsResponse.getDefaultInstance()))
.setSchemaDescriptor(new FederationServiceMethodDescriptorSupplier("List"))
.build();
}
}
}
return getListMethod;
}
private static volatile io.grpc.MethodDescriptor getCreateMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "Create",
requestType = yandex.cloud.api.organizationmanager.v1.saml.FederationServiceOuterClass.CreateFederationRequest.class,
responseType = yandex.cloud.api.operation.OperationOuterClass.Operation.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getCreateMethod() {
io.grpc.MethodDescriptor getCreateMethod;
if ((getCreateMethod = FederationServiceGrpc.getCreateMethod) == null) {
synchronized (FederationServiceGrpc.class) {
if ((getCreateMethod = FederationServiceGrpc.getCreateMethod) == null) {
FederationServiceGrpc.getCreateMethod = getCreateMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "Create"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
yandex.cloud.api.organizationmanager.v1.saml.FederationServiceOuterClass.CreateFederationRequest.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
yandex.cloud.api.operation.OperationOuterClass.Operation.getDefaultInstance()))
.setSchemaDescriptor(new FederationServiceMethodDescriptorSupplier("Create"))
.build();
}
}
}
return getCreateMethod;
}
private static volatile io.grpc.MethodDescriptor getUpdateMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "Update",
requestType = yandex.cloud.api.organizationmanager.v1.saml.FederationServiceOuterClass.UpdateFederationRequest.class,
responseType = yandex.cloud.api.operation.OperationOuterClass.Operation.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getUpdateMethod() {
io.grpc.MethodDescriptor getUpdateMethod;
if ((getUpdateMethod = FederationServiceGrpc.getUpdateMethod) == null) {
synchronized (FederationServiceGrpc.class) {
if ((getUpdateMethod = FederationServiceGrpc.getUpdateMethod) == null) {
FederationServiceGrpc.getUpdateMethod = getUpdateMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "Update"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
yandex.cloud.api.organizationmanager.v1.saml.FederationServiceOuterClass.UpdateFederationRequest.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
yandex.cloud.api.operation.OperationOuterClass.Operation.getDefaultInstance()))
.setSchemaDescriptor(new FederationServiceMethodDescriptorSupplier("Update"))
.build();
}
}
}
return getUpdateMethod;
}
private static volatile io.grpc.MethodDescriptor getDeleteMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "Delete",
requestType = yandex.cloud.api.organizationmanager.v1.saml.FederationServiceOuterClass.DeleteFederationRequest.class,
responseType = yandex.cloud.api.operation.OperationOuterClass.Operation.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getDeleteMethod() {
io.grpc.MethodDescriptor getDeleteMethod;
if ((getDeleteMethod = FederationServiceGrpc.getDeleteMethod) == null) {
synchronized (FederationServiceGrpc.class) {
if ((getDeleteMethod = FederationServiceGrpc.getDeleteMethod) == null) {
FederationServiceGrpc.getDeleteMethod = getDeleteMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "Delete"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
yandex.cloud.api.organizationmanager.v1.saml.FederationServiceOuterClass.DeleteFederationRequest.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
yandex.cloud.api.operation.OperationOuterClass.Operation.getDefaultInstance()))
.setSchemaDescriptor(new FederationServiceMethodDescriptorSupplier("Delete"))
.build();
}
}
}
return getDeleteMethod;
}
private static volatile io.grpc.MethodDescriptor getAddUserAccountsMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "AddUserAccounts",
requestType = yandex.cloud.api.organizationmanager.v1.saml.FederationServiceOuterClass.AddFederatedUserAccountsRequest.class,
responseType = yandex.cloud.api.operation.OperationOuterClass.Operation.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getAddUserAccountsMethod() {
io.grpc.MethodDescriptor getAddUserAccountsMethod;
if ((getAddUserAccountsMethod = FederationServiceGrpc.getAddUserAccountsMethod) == null) {
synchronized (FederationServiceGrpc.class) {
if ((getAddUserAccountsMethod = FederationServiceGrpc.getAddUserAccountsMethod) == null) {
FederationServiceGrpc.getAddUserAccountsMethod = getAddUserAccountsMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "AddUserAccounts"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
yandex.cloud.api.organizationmanager.v1.saml.FederationServiceOuterClass.AddFederatedUserAccountsRequest.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
yandex.cloud.api.operation.OperationOuterClass.Operation.getDefaultInstance()))
.setSchemaDescriptor(new FederationServiceMethodDescriptorSupplier("AddUserAccounts"))
.build();
}
}
}
return getAddUserAccountsMethod;
}
private static volatile io.grpc.MethodDescriptor getListUserAccountsMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "ListUserAccounts",
requestType = yandex.cloud.api.organizationmanager.v1.saml.FederationServiceOuterClass.ListFederatedUserAccountsRequest.class,
responseType = yandex.cloud.api.organizationmanager.v1.saml.FederationServiceOuterClass.ListFederatedUserAccountsResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getListUserAccountsMethod() {
io.grpc.MethodDescriptor getListUserAccountsMethod;
if ((getListUserAccountsMethod = FederationServiceGrpc.getListUserAccountsMethod) == null) {
synchronized (FederationServiceGrpc.class) {
if ((getListUserAccountsMethod = FederationServiceGrpc.getListUserAccountsMethod) == null) {
FederationServiceGrpc.getListUserAccountsMethod = getListUserAccountsMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListUserAccounts"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
yandex.cloud.api.organizationmanager.v1.saml.FederationServiceOuterClass.ListFederatedUserAccountsRequest.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
yandex.cloud.api.organizationmanager.v1.saml.FederationServiceOuterClass.ListFederatedUserAccountsResponse.getDefaultInstance()))
.setSchemaDescriptor(new FederationServiceMethodDescriptorSupplier("ListUserAccounts"))
.build();
}
}
}
return getListUserAccountsMethod;
}
private static volatile io.grpc.MethodDescriptor getListOperationsMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "ListOperations",
requestType = yandex.cloud.api.organizationmanager.v1.saml.FederationServiceOuterClass.ListFederationOperationsRequest.class,
responseType = yandex.cloud.api.organizationmanager.v1.saml.FederationServiceOuterClass.ListFederationOperationsResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getListOperationsMethod() {
io.grpc.MethodDescriptor getListOperationsMethod;
if ((getListOperationsMethod = FederationServiceGrpc.getListOperationsMethod) == null) {
synchronized (FederationServiceGrpc.class) {
if ((getListOperationsMethod = FederationServiceGrpc.getListOperationsMethod) == null) {
FederationServiceGrpc.getListOperationsMethod = getListOperationsMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListOperations"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
yandex.cloud.api.organizationmanager.v1.saml.FederationServiceOuterClass.ListFederationOperationsRequest.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
yandex.cloud.api.organizationmanager.v1.saml.FederationServiceOuterClass.ListFederationOperationsResponse.getDefaultInstance()))
.setSchemaDescriptor(new FederationServiceMethodDescriptorSupplier("ListOperations"))
.build();
}
}
}
return getListOperationsMethod;
}
/**
* Creates a new async stub that supports all call types for the service
*/
public static FederationServiceStub newStub(io.grpc.Channel channel) {
io.grpc.stub.AbstractStub.StubFactory factory =
new io.grpc.stub.AbstractStub.StubFactory() {
@java.lang.Override
public FederationServiceStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new FederationServiceStub(channel, callOptions);
}
};
return FederationServiceStub.newStub(factory, channel);
}
/**
* Creates a new blocking-style stub that supports unary and streaming output calls on the service
*/
public static FederationServiceBlockingStub newBlockingStub(
io.grpc.Channel channel) {
io.grpc.stub.AbstractStub.StubFactory factory =
new io.grpc.stub.AbstractStub.StubFactory() {
@java.lang.Override
public FederationServiceBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new FederationServiceBlockingStub(channel, callOptions);
}
};
return FederationServiceBlockingStub.newStub(factory, channel);
}
/**
* Creates a new ListenableFuture-style stub that supports unary calls on the service
*/
public static FederationServiceFutureStub newFutureStub(
io.grpc.Channel channel) {
io.grpc.stub.AbstractStub.StubFactory factory =
new io.grpc.stub.AbstractStub.StubFactory() {
@java.lang.Override
public FederationServiceFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new FederationServiceFutureStub(channel, callOptions);
}
};
return FederationServiceFutureStub.newStub(factory, channel);
}
/**
*
* A set of methods for managing federations.
*
*/
public static abstract class FederationServiceImplBase implements io.grpc.BindableService {
/**
*
* Returns the specified federation.
* To get the list of available federations, make a [List] request.
*
*/
public void get(yandex.cloud.api.organizationmanager.v1.saml.FederationServiceOuterClass.GetFederationRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetMethod(), responseObserver);
}
/**
*
* Retrieves the list of federations in the specified organization.
*
*/
public void list(yandex.cloud.api.organizationmanager.v1.saml.FederationServiceOuterClass.ListFederationsRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListMethod(), responseObserver);
}
/**
*
* Creates a federation in the specified organization.
*
*/
public void create(yandex.cloud.api.organizationmanager.v1.saml.FederationServiceOuterClass.CreateFederationRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateMethod(), responseObserver);
}
/**
*
* Updates the specified federation.
*
*/
public void update(yandex.cloud.api.organizationmanager.v1.saml.FederationServiceOuterClass.UpdateFederationRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateMethod(), responseObserver);
}
/**
*
* Deletes the specified federation.
*
*/
public void delete(yandex.cloud.api.organizationmanager.v1.saml.FederationServiceOuterClass.DeleteFederationRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteMethod(), responseObserver);
}
/**
*
* Adds users to the specified federation.
*
*/
public void addUserAccounts(yandex.cloud.api.organizationmanager.v1.saml.FederationServiceOuterClass.AddFederatedUserAccountsRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getAddUserAccountsMethod(), responseObserver);
}
/**
*
* Lists users for the specified federation.
*
*/
public void listUserAccounts(yandex.cloud.api.organizationmanager.v1.saml.FederationServiceOuterClass.ListFederatedUserAccountsRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListUserAccountsMethod(), responseObserver);
}
/**
*
* Lists operations for the specified federation.
*
*/
public void listOperations(yandex.cloud.api.organizationmanager.v1.saml.FederationServiceOuterClass.ListFederationOperationsRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListOperationsMethod(), responseObserver);
}
@java.lang.Override public final io.grpc.ServerServiceDefinition bindService() {
return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor())
.addMethod(
getGetMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
yandex.cloud.api.organizationmanager.v1.saml.FederationServiceOuterClass.GetFederationRequest,
yandex.cloud.api.organizationmanager.v1.saml.FederationOuterClass.Federation>(
this, METHODID_GET)))
.addMethod(
getListMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
yandex.cloud.api.organizationmanager.v1.saml.FederationServiceOuterClass.ListFederationsRequest,
yandex.cloud.api.organizationmanager.v1.saml.FederationServiceOuterClass.ListFederationsResponse>(
this, METHODID_LIST)))
.addMethod(
getCreateMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
yandex.cloud.api.organizationmanager.v1.saml.FederationServiceOuterClass.CreateFederationRequest,
yandex.cloud.api.operation.OperationOuterClass.Operation>(
this, METHODID_CREATE)))
.addMethod(
getUpdateMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
yandex.cloud.api.organizationmanager.v1.saml.FederationServiceOuterClass.UpdateFederationRequest,
yandex.cloud.api.operation.OperationOuterClass.Operation>(
this, METHODID_UPDATE)))
.addMethod(
getDeleteMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
yandex.cloud.api.organizationmanager.v1.saml.FederationServiceOuterClass.DeleteFederationRequest,
yandex.cloud.api.operation.OperationOuterClass.Operation>(
this, METHODID_DELETE)))
.addMethod(
getAddUserAccountsMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
yandex.cloud.api.organizationmanager.v1.saml.FederationServiceOuterClass.AddFederatedUserAccountsRequest,
yandex.cloud.api.operation.OperationOuterClass.Operation>(
this, METHODID_ADD_USER_ACCOUNTS)))
.addMethod(
getListUserAccountsMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
yandex.cloud.api.organizationmanager.v1.saml.FederationServiceOuterClass.ListFederatedUserAccountsRequest,
yandex.cloud.api.organizationmanager.v1.saml.FederationServiceOuterClass.ListFederatedUserAccountsResponse>(
this, METHODID_LIST_USER_ACCOUNTS)))
.addMethod(
getListOperationsMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
yandex.cloud.api.organizationmanager.v1.saml.FederationServiceOuterClass.ListFederationOperationsRequest,
yandex.cloud.api.organizationmanager.v1.saml.FederationServiceOuterClass.ListFederationOperationsResponse>(
this, METHODID_LIST_OPERATIONS)))
.build();
}
}
/**
*
* A set of methods for managing federations.
*
*/
public static final class FederationServiceStub extends io.grpc.stub.AbstractAsyncStub {
private FederationServiceStub(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
super(channel, callOptions);
}
@java.lang.Override
protected FederationServiceStub build(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new FederationServiceStub(channel, callOptions);
}
/**
*
* Returns the specified federation.
* To get the list of available federations, make a [List] request.
*
*/
public void get(yandex.cloud.api.organizationmanager.v1.saml.FederationServiceOuterClass.GetFederationRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getGetMethod(), getCallOptions()), request, responseObserver);
}
/**
*
* Retrieves the list of federations in the specified organization.
*
*/
public void list(yandex.cloud.api.organizationmanager.v1.saml.FederationServiceOuterClass.ListFederationsRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getListMethod(), getCallOptions()), request, responseObserver);
}
/**
*
* Creates a federation in the specified organization.
*
*/
public void create(yandex.cloud.api.organizationmanager.v1.saml.FederationServiceOuterClass.CreateFederationRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getCreateMethod(), getCallOptions()), request, responseObserver);
}
/**
*
* Updates the specified federation.
*
*/
public void update(yandex.cloud.api.organizationmanager.v1.saml.FederationServiceOuterClass.UpdateFederationRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getUpdateMethod(), getCallOptions()), request, responseObserver);
}
/**
*
* Deletes the specified federation.
*
*/
public void delete(yandex.cloud.api.organizationmanager.v1.saml.FederationServiceOuterClass.DeleteFederationRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getDeleteMethod(), getCallOptions()), request, responseObserver);
}
/**
*
* Adds users to the specified federation.
*
*/
public void addUserAccounts(yandex.cloud.api.organizationmanager.v1.saml.FederationServiceOuterClass.AddFederatedUserAccountsRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getAddUserAccountsMethod(), getCallOptions()), request, responseObserver);
}
/**
*
* Lists users for the specified federation.
*
*/
public void listUserAccounts(yandex.cloud.api.organizationmanager.v1.saml.FederationServiceOuterClass.ListFederatedUserAccountsRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getListUserAccountsMethod(), getCallOptions()), request, responseObserver);
}
/**
*
* Lists operations for the specified federation.
*
*/
public void listOperations(yandex.cloud.api.organizationmanager.v1.saml.FederationServiceOuterClass.ListFederationOperationsRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getListOperationsMethod(), getCallOptions()), request, responseObserver);
}
}
/**
*
* A set of methods for managing federations.
*
*/
public static final class FederationServiceBlockingStub extends io.grpc.stub.AbstractBlockingStub {
private FederationServiceBlockingStub(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
super(channel, callOptions);
}
@java.lang.Override
protected FederationServiceBlockingStub build(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new FederationServiceBlockingStub(channel, callOptions);
}
/**
*
* Returns the specified federation.
* To get the list of available federations, make a [List] request.
*
*/
public yandex.cloud.api.organizationmanager.v1.saml.FederationOuterClass.Federation get(yandex.cloud.api.organizationmanager.v1.saml.FederationServiceOuterClass.GetFederationRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getGetMethod(), getCallOptions(), request);
}
/**
*
* Retrieves the list of federations in the specified organization.
*
*/
public yandex.cloud.api.organizationmanager.v1.saml.FederationServiceOuterClass.ListFederationsResponse list(yandex.cloud.api.organizationmanager.v1.saml.FederationServiceOuterClass.ListFederationsRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getListMethod(), getCallOptions(), request);
}
/**
*
* Creates a federation in the specified organization.
*
*/
public yandex.cloud.api.operation.OperationOuterClass.Operation create(yandex.cloud.api.organizationmanager.v1.saml.FederationServiceOuterClass.CreateFederationRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getCreateMethod(), getCallOptions(), request);
}
/**
*
* Updates the specified federation.
*
*/
public yandex.cloud.api.operation.OperationOuterClass.Operation update(yandex.cloud.api.organizationmanager.v1.saml.FederationServiceOuterClass.UpdateFederationRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getUpdateMethod(), getCallOptions(), request);
}
/**
*
* Deletes the specified federation.
*
*/
public yandex.cloud.api.operation.OperationOuterClass.Operation delete(yandex.cloud.api.organizationmanager.v1.saml.FederationServiceOuterClass.DeleteFederationRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getDeleteMethod(), getCallOptions(), request);
}
/**
*
* Adds users to the specified federation.
*
*/
public yandex.cloud.api.operation.OperationOuterClass.Operation addUserAccounts(yandex.cloud.api.organizationmanager.v1.saml.FederationServiceOuterClass.AddFederatedUserAccountsRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getAddUserAccountsMethod(), getCallOptions(), request);
}
/**
*
* Lists users for the specified federation.
*
*/
public yandex.cloud.api.organizationmanager.v1.saml.FederationServiceOuterClass.ListFederatedUserAccountsResponse listUserAccounts(yandex.cloud.api.organizationmanager.v1.saml.FederationServiceOuterClass.ListFederatedUserAccountsRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getListUserAccountsMethod(), getCallOptions(), request);
}
/**
*
* Lists operations for the specified federation.
*
*/
public yandex.cloud.api.organizationmanager.v1.saml.FederationServiceOuterClass.ListFederationOperationsResponse listOperations(yandex.cloud.api.organizationmanager.v1.saml.FederationServiceOuterClass.ListFederationOperationsRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getListOperationsMethod(), getCallOptions(), request);
}
}
/**
*
* A set of methods for managing federations.
*
*/
public static final class FederationServiceFutureStub extends io.grpc.stub.AbstractFutureStub {
private FederationServiceFutureStub(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
super(channel, callOptions);
}
@java.lang.Override
protected FederationServiceFutureStub build(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new FederationServiceFutureStub(channel, callOptions);
}
/**
*
* Returns the specified federation.
* To get the list of available federations, make a [List] request.
*
*/
public com.google.common.util.concurrent.ListenableFuture get(
yandex.cloud.api.organizationmanager.v1.saml.FederationServiceOuterClass.GetFederationRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getGetMethod(), getCallOptions()), request);
}
/**
*
* Retrieves the list of federations in the specified organization.
*
*/
public com.google.common.util.concurrent.ListenableFuture list(
yandex.cloud.api.organizationmanager.v1.saml.FederationServiceOuterClass.ListFederationsRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getListMethod(), getCallOptions()), request);
}
/**
*
* Creates a federation in the specified organization.
*
*/
public com.google.common.util.concurrent.ListenableFuture create(
yandex.cloud.api.organizationmanager.v1.saml.FederationServiceOuterClass.CreateFederationRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getCreateMethod(), getCallOptions()), request);
}
/**
*
* Updates the specified federation.
*
*/
public com.google.common.util.concurrent.ListenableFuture update(
yandex.cloud.api.organizationmanager.v1.saml.FederationServiceOuterClass.UpdateFederationRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getUpdateMethod(), getCallOptions()), request);
}
/**
*
* Deletes the specified federation.
*
*/
public com.google.common.util.concurrent.ListenableFuture delete(
yandex.cloud.api.organizationmanager.v1.saml.FederationServiceOuterClass.DeleteFederationRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getDeleteMethod(), getCallOptions()), request);
}
/**
*
* Adds users to the specified federation.
*
*/
public com.google.common.util.concurrent.ListenableFuture addUserAccounts(
yandex.cloud.api.organizationmanager.v1.saml.FederationServiceOuterClass.AddFederatedUserAccountsRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getAddUserAccountsMethod(), getCallOptions()), request);
}
/**
*
* Lists users for the specified federation.
*
*/
public com.google.common.util.concurrent.ListenableFuture listUserAccounts(
yandex.cloud.api.organizationmanager.v1.saml.FederationServiceOuterClass.ListFederatedUserAccountsRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getListUserAccountsMethod(), getCallOptions()), request);
}
/**
*
* Lists operations for the specified federation.
*
*/
public com.google.common.util.concurrent.ListenableFuture listOperations(
yandex.cloud.api.organizationmanager.v1.saml.FederationServiceOuterClass.ListFederationOperationsRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getListOperationsMethod(), getCallOptions()), request);
}
}
private static final int METHODID_GET = 0;
private static final int METHODID_LIST = 1;
private static final int METHODID_CREATE = 2;
private static final int METHODID_UPDATE = 3;
private static final int METHODID_DELETE = 4;
private static final int METHODID_ADD_USER_ACCOUNTS = 5;
private static final int METHODID_LIST_USER_ACCOUNTS = 6;
private static final int METHODID_LIST_OPERATIONS = 7;
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 FederationServiceImplBase serviceImpl;
private final int methodId;
MethodHandlers(FederationServiceImplBase 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_GET:
serviceImpl.get((yandex.cloud.api.organizationmanager.v1.saml.FederationServiceOuterClass.GetFederationRequest) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_LIST:
serviceImpl.list((yandex.cloud.api.organizationmanager.v1.saml.FederationServiceOuterClass.ListFederationsRequest) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_CREATE:
serviceImpl.create((yandex.cloud.api.organizationmanager.v1.saml.FederationServiceOuterClass.CreateFederationRequest) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_UPDATE:
serviceImpl.update((yandex.cloud.api.organizationmanager.v1.saml.FederationServiceOuterClass.UpdateFederationRequest) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_DELETE:
serviceImpl.delete((yandex.cloud.api.organizationmanager.v1.saml.FederationServiceOuterClass.DeleteFederationRequest) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_ADD_USER_ACCOUNTS:
serviceImpl.addUserAccounts((yandex.cloud.api.organizationmanager.v1.saml.FederationServiceOuterClass.AddFederatedUserAccountsRequest) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_LIST_USER_ACCOUNTS:
serviceImpl.listUserAccounts((yandex.cloud.api.organizationmanager.v1.saml.FederationServiceOuterClass.ListFederatedUserAccountsRequest) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_LIST_OPERATIONS:
serviceImpl.listOperations((yandex.cloud.api.organizationmanager.v1.saml.FederationServiceOuterClass.ListFederationOperationsRequest) 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 FederationServiceBaseDescriptorSupplier
implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier {
FederationServiceBaseDescriptorSupplier() {}
@java.lang.Override
public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() {
return yandex.cloud.api.organizationmanager.v1.saml.FederationServiceOuterClass.getDescriptor();
}
@java.lang.Override
public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() {
return getFileDescriptor().findServiceByName("FederationService");
}
}
private static final class FederationServiceFileDescriptorSupplier
extends FederationServiceBaseDescriptorSupplier {
FederationServiceFileDescriptorSupplier() {}
}
private static final class FederationServiceMethodDescriptorSupplier
extends FederationServiceBaseDescriptorSupplier
implements io.grpc.protobuf.ProtoMethodDescriptorSupplier {
private final String methodName;
FederationServiceMethodDescriptorSupplier(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 (FederationServiceGrpc.class) {
result = serviceDescriptor;
if (result == null) {
serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME)
.setSchemaDescriptor(new FederationServiceFileDescriptorSupplier())
.addMethod(getGetMethod())
.addMethod(getListMethod())
.addMethod(getCreateMethod())
.addMethod(getUpdateMethod())
.addMethod(getDeleteMethod())
.addMethod(getAddUserAccountsMethod())
.addMethod(getListUserAccountsMethod())
.addMethod(getListOperationsMethod())
.build();
}
}
}
return result;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy