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

com.google.cloud.dialogflow.cx.v3beta1.SecuritySettingsServiceGrpc Maven / Gradle / Ivy

/*
 * Copyright 2024 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     https://www.apache.org/licenses/LICENSE-2.0
 *
 * 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 com.google.cloud.dialogflow.cx.v3beta1;

import static io.grpc.MethodDescriptor.generateFullMethodName;

/**
 *
 *
 * 
 * Service for managing security settings for Dialogflow.
 * 
*/ @javax.annotation.Generated( value = "by gRPC proto compiler", comments = "Source: google/cloud/dialogflow/cx/v3beta1/security_settings.proto") @io.grpc.stub.annotations.GrpcGenerated public final class SecuritySettingsServiceGrpc { private SecuritySettingsServiceGrpc() {} public static final java.lang.String SERVICE_NAME = "google.cloud.dialogflow.cx.v3beta1.SecuritySettingsService"; // Static method descriptors that strictly reflect the proto. private static volatile io.grpc.MethodDescriptor< com.google.cloud.dialogflow.cx.v3beta1.CreateSecuritySettingsRequest, com.google.cloud.dialogflow.cx.v3beta1.SecuritySettings> getCreateSecuritySettingsMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "CreateSecuritySettings", requestType = com.google.cloud.dialogflow.cx.v3beta1.CreateSecuritySettingsRequest.class, responseType = com.google.cloud.dialogflow.cx.v3beta1.SecuritySettings.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor< com.google.cloud.dialogflow.cx.v3beta1.CreateSecuritySettingsRequest, com.google.cloud.dialogflow.cx.v3beta1.SecuritySettings> getCreateSecuritySettingsMethod() { io.grpc.MethodDescriptor< com.google.cloud.dialogflow.cx.v3beta1.CreateSecuritySettingsRequest, com.google.cloud.dialogflow.cx.v3beta1.SecuritySettings> getCreateSecuritySettingsMethod; if ((getCreateSecuritySettingsMethod = SecuritySettingsServiceGrpc.getCreateSecuritySettingsMethod) == null) { synchronized (SecuritySettingsServiceGrpc.class) { if ((getCreateSecuritySettingsMethod = SecuritySettingsServiceGrpc.getCreateSecuritySettingsMethod) == null) { SecuritySettingsServiceGrpc.getCreateSecuritySettingsMethod = getCreateSecuritySettingsMethod = io.grpc.MethodDescriptor . newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName( generateFullMethodName(SERVICE_NAME, "CreateSecuritySettings")) .setSampledToLocalTracing(true) .setRequestMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( com.google.cloud.dialogflow.cx.v3beta1.CreateSecuritySettingsRequest .getDefaultInstance())) .setResponseMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( com.google.cloud.dialogflow.cx.v3beta1.SecuritySettings .getDefaultInstance())) .setSchemaDescriptor( new SecuritySettingsServiceMethodDescriptorSupplier( "CreateSecuritySettings")) .build(); } } } return getCreateSecuritySettingsMethod; } private static volatile io.grpc.MethodDescriptor< com.google.cloud.dialogflow.cx.v3beta1.GetSecuritySettingsRequest, com.google.cloud.dialogflow.cx.v3beta1.SecuritySettings> getGetSecuritySettingsMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "GetSecuritySettings", requestType = com.google.cloud.dialogflow.cx.v3beta1.GetSecuritySettingsRequest.class, responseType = com.google.cloud.dialogflow.cx.v3beta1.SecuritySettings.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor< com.google.cloud.dialogflow.cx.v3beta1.GetSecuritySettingsRequest, com.google.cloud.dialogflow.cx.v3beta1.SecuritySettings> getGetSecuritySettingsMethod() { io.grpc.MethodDescriptor< com.google.cloud.dialogflow.cx.v3beta1.GetSecuritySettingsRequest, com.google.cloud.dialogflow.cx.v3beta1.SecuritySettings> getGetSecuritySettingsMethod; if ((getGetSecuritySettingsMethod = SecuritySettingsServiceGrpc.getGetSecuritySettingsMethod) == null) { synchronized (SecuritySettingsServiceGrpc.class) { if ((getGetSecuritySettingsMethod = SecuritySettingsServiceGrpc.getGetSecuritySettingsMethod) == null) { SecuritySettingsServiceGrpc.getGetSecuritySettingsMethod = getGetSecuritySettingsMethod = io.grpc.MethodDescriptor . newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName( generateFullMethodName(SERVICE_NAME, "GetSecuritySettings")) .setSampledToLocalTracing(true) .setRequestMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( com.google.cloud.dialogflow.cx.v3beta1.GetSecuritySettingsRequest .getDefaultInstance())) .setResponseMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( com.google.cloud.dialogflow.cx.v3beta1.SecuritySettings .getDefaultInstance())) .setSchemaDescriptor( new SecuritySettingsServiceMethodDescriptorSupplier( "GetSecuritySettings")) .build(); } } } return getGetSecuritySettingsMethod; } private static volatile io.grpc.MethodDescriptor< com.google.cloud.dialogflow.cx.v3beta1.UpdateSecuritySettingsRequest, com.google.cloud.dialogflow.cx.v3beta1.SecuritySettings> getUpdateSecuritySettingsMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "UpdateSecuritySettings", requestType = com.google.cloud.dialogflow.cx.v3beta1.UpdateSecuritySettingsRequest.class, responseType = com.google.cloud.dialogflow.cx.v3beta1.SecuritySettings.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor< com.google.cloud.dialogflow.cx.v3beta1.UpdateSecuritySettingsRequest, com.google.cloud.dialogflow.cx.v3beta1.SecuritySettings> getUpdateSecuritySettingsMethod() { io.grpc.MethodDescriptor< com.google.cloud.dialogflow.cx.v3beta1.UpdateSecuritySettingsRequest, com.google.cloud.dialogflow.cx.v3beta1.SecuritySettings> getUpdateSecuritySettingsMethod; if ((getUpdateSecuritySettingsMethod = SecuritySettingsServiceGrpc.getUpdateSecuritySettingsMethod) == null) { synchronized (SecuritySettingsServiceGrpc.class) { if ((getUpdateSecuritySettingsMethod = SecuritySettingsServiceGrpc.getUpdateSecuritySettingsMethod) == null) { SecuritySettingsServiceGrpc.getUpdateSecuritySettingsMethod = getUpdateSecuritySettingsMethod = io.grpc.MethodDescriptor . newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName( generateFullMethodName(SERVICE_NAME, "UpdateSecuritySettings")) .setSampledToLocalTracing(true) .setRequestMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( com.google.cloud.dialogflow.cx.v3beta1.UpdateSecuritySettingsRequest .getDefaultInstance())) .setResponseMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( com.google.cloud.dialogflow.cx.v3beta1.SecuritySettings .getDefaultInstance())) .setSchemaDescriptor( new SecuritySettingsServiceMethodDescriptorSupplier( "UpdateSecuritySettings")) .build(); } } } return getUpdateSecuritySettingsMethod; } private static volatile io.grpc.MethodDescriptor< com.google.cloud.dialogflow.cx.v3beta1.ListSecuritySettingsRequest, com.google.cloud.dialogflow.cx.v3beta1.ListSecuritySettingsResponse> getListSecuritySettingsMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "ListSecuritySettings", requestType = com.google.cloud.dialogflow.cx.v3beta1.ListSecuritySettingsRequest.class, responseType = com.google.cloud.dialogflow.cx.v3beta1.ListSecuritySettingsResponse.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor< com.google.cloud.dialogflow.cx.v3beta1.ListSecuritySettingsRequest, com.google.cloud.dialogflow.cx.v3beta1.ListSecuritySettingsResponse> getListSecuritySettingsMethod() { io.grpc.MethodDescriptor< com.google.cloud.dialogflow.cx.v3beta1.ListSecuritySettingsRequest, com.google.cloud.dialogflow.cx.v3beta1.ListSecuritySettingsResponse> getListSecuritySettingsMethod; if ((getListSecuritySettingsMethod = SecuritySettingsServiceGrpc.getListSecuritySettingsMethod) == null) { synchronized (SecuritySettingsServiceGrpc.class) { if ((getListSecuritySettingsMethod = SecuritySettingsServiceGrpc.getListSecuritySettingsMethod) == null) { SecuritySettingsServiceGrpc.getListSecuritySettingsMethod = getListSecuritySettingsMethod = io.grpc.MethodDescriptor . newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName( generateFullMethodName(SERVICE_NAME, "ListSecuritySettings")) .setSampledToLocalTracing(true) .setRequestMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( com.google.cloud.dialogflow.cx.v3beta1.ListSecuritySettingsRequest .getDefaultInstance())) .setResponseMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( com.google.cloud.dialogflow.cx.v3beta1.ListSecuritySettingsResponse .getDefaultInstance())) .setSchemaDescriptor( new SecuritySettingsServiceMethodDescriptorSupplier( "ListSecuritySettings")) .build(); } } } return getListSecuritySettingsMethod; } private static volatile io.grpc.MethodDescriptor< com.google.cloud.dialogflow.cx.v3beta1.DeleteSecuritySettingsRequest, com.google.protobuf.Empty> getDeleteSecuritySettingsMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "DeleteSecuritySettings", requestType = com.google.cloud.dialogflow.cx.v3beta1.DeleteSecuritySettingsRequest.class, responseType = com.google.protobuf.Empty.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor< com.google.cloud.dialogflow.cx.v3beta1.DeleteSecuritySettingsRequest, com.google.protobuf.Empty> getDeleteSecuritySettingsMethod() { io.grpc.MethodDescriptor< com.google.cloud.dialogflow.cx.v3beta1.DeleteSecuritySettingsRequest, com.google.protobuf.Empty> getDeleteSecuritySettingsMethod; if ((getDeleteSecuritySettingsMethod = SecuritySettingsServiceGrpc.getDeleteSecuritySettingsMethod) == null) { synchronized (SecuritySettingsServiceGrpc.class) { if ((getDeleteSecuritySettingsMethod = SecuritySettingsServiceGrpc.getDeleteSecuritySettingsMethod) == null) { SecuritySettingsServiceGrpc.getDeleteSecuritySettingsMethod = getDeleteSecuritySettingsMethod = io.grpc.MethodDescriptor . newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName( generateFullMethodName(SERVICE_NAME, "DeleteSecuritySettings")) .setSampledToLocalTracing(true) .setRequestMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( com.google.cloud.dialogflow.cx.v3beta1.DeleteSecuritySettingsRequest .getDefaultInstance())) .setResponseMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( com.google.protobuf.Empty.getDefaultInstance())) .setSchemaDescriptor( new SecuritySettingsServiceMethodDescriptorSupplier( "DeleteSecuritySettings")) .build(); } } } return getDeleteSecuritySettingsMethod; } /** Creates a new async stub that supports all call types for the service */ public static SecuritySettingsServiceStub newStub(io.grpc.Channel channel) { io.grpc.stub.AbstractStub.StubFactory factory = new io.grpc.stub.AbstractStub.StubFactory() { @java.lang.Override public SecuritySettingsServiceStub newStub( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new SecuritySettingsServiceStub(channel, callOptions); } }; return SecuritySettingsServiceStub.newStub(factory, channel); } /** * Creates a new blocking-style stub that supports unary and streaming output calls on the service */ public static SecuritySettingsServiceBlockingStub newBlockingStub(io.grpc.Channel channel) { io.grpc.stub.AbstractStub.StubFactory factory = new io.grpc.stub.AbstractStub.StubFactory() { @java.lang.Override public SecuritySettingsServiceBlockingStub newStub( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new SecuritySettingsServiceBlockingStub(channel, callOptions); } }; return SecuritySettingsServiceBlockingStub.newStub(factory, channel); } /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ public static SecuritySettingsServiceFutureStub newFutureStub(io.grpc.Channel channel) { io.grpc.stub.AbstractStub.StubFactory factory = new io.grpc.stub.AbstractStub.StubFactory() { @java.lang.Override public SecuritySettingsServiceFutureStub newStub( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new SecuritySettingsServiceFutureStub(channel, callOptions); } }; return SecuritySettingsServiceFutureStub.newStub(factory, channel); } /** * * *
   * Service for managing security settings for Dialogflow.
   * 
*/ public interface AsyncService { /** * * *
     * Create security settings in the specified location.
     * 
*/ default void createSecuritySettings( com.google.cloud.dialogflow.cx.v3beta1.CreateSecuritySettingsRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( getCreateSecuritySettingsMethod(), responseObserver); } /** * * *
     * Retrieves the specified
     * [SecuritySettings][google.cloud.dialogflow.cx.v3beta1.SecuritySettings].
     * The returned settings may be stale by up to 1 minute.
     * 
*/ default void getSecuritySettings( com.google.cloud.dialogflow.cx.v3beta1.GetSecuritySettingsRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( getGetSecuritySettingsMethod(), responseObserver); } /** * * *
     * Updates the specified
     * [SecuritySettings][google.cloud.dialogflow.cx.v3beta1.SecuritySettings].
     * 
*/ default void updateSecuritySettings( com.google.cloud.dialogflow.cx.v3beta1.UpdateSecuritySettingsRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( getUpdateSecuritySettingsMethod(), responseObserver); } /** * * *
     * Returns the list of all security settings in the specified location.
     * 
*/ default void listSecuritySettings( com.google.cloud.dialogflow.cx.v3beta1.ListSecuritySettingsRequest request, io.grpc.stub.StreamObserver< com.google.cloud.dialogflow.cx.v3beta1.ListSecuritySettingsResponse> responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( getListSecuritySettingsMethod(), responseObserver); } /** * * *
     * Deletes the specified
     * [SecuritySettings][google.cloud.dialogflow.cx.v3beta1.SecuritySettings].
     * 
*/ default void deleteSecuritySettings( com.google.cloud.dialogflow.cx.v3beta1.DeleteSecuritySettingsRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( getDeleteSecuritySettingsMethod(), responseObserver); } } /** * Base class for the server implementation of the service SecuritySettingsService. * *
   * Service for managing security settings for Dialogflow.
   * 
*/ public abstract static class SecuritySettingsServiceImplBase implements io.grpc.BindableService, AsyncService { @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { return SecuritySettingsServiceGrpc.bindService(this); } } /** * A stub to allow clients to do asynchronous rpc calls to service SecuritySettingsService. * *
   * Service for managing security settings for Dialogflow.
   * 
*/ public static final class SecuritySettingsServiceStub extends io.grpc.stub.AbstractAsyncStub { private SecuritySettingsServiceStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @java.lang.Override protected SecuritySettingsServiceStub build( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new SecuritySettingsServiceStub(channel, callOptions); } /** * * *
     * Create security settings in the specified location.
     * 
*/ public void createSecuritySettings( com.google.cloud.dialogflow.cx.v3beta1.CreateSecuritySettingsRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getCreateSecuritySettingsMethod(), getCallOptions()), request, responseObserver); } /** * * *
     * Retrieves the specified
     * [SecuritySettings][google.cloud.dialogflow.cx.v3beta1.SecuritySettings].
     * The returned settings may be stale by up to 1 minute.
     * 
*/ public void getSecuritySettings( com.google.cloud.dialogflow.cx.v3beta1.GetSecuritySettingsRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getGetSecuritySettingsMethod(), getCallOptions()), request, responseObserver); } /** * * *
     * Updates the specified
     * [SecuritySettings][google.cloud.dialogflow.cx.v3beta1.SecuritySettings].
     * 
*/ public void updateSecuritySettings( com.google.cloud.dialogflow.cx.v3beta1.UpdateSecuritySettingsRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getUpdateSecuritySettingsMethod(), getCallOptions()), request, responseObserver); } /** * * *
     * Returns the list of all security settings in the specified location.
     * 
*/ public void listSecuritySettings( com.google.cloud.dialogflow.cx.v3beta1.ListSecuritySettingsRequest request, io.grpc.stub.StreamObserver< com.google.cloud.dialogflow.cx.v3beta1.ListSecuritySettingsResponse> responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getListSecuritySettingsMethod(), getCallOptions()), request, responseObserver); } /** * * *
     * Deletes the specified
     * [SecuritySettings][google.cloud.dialogflow.cx.v3beta1.SecuritySettings].
     * 
*/ public void deleteSecuritySettings( com.google.cloud.dialogflow.cx.v3beta1.DeleteSecuritySettingsRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getDeleteSecuritySettingsMethod(), getCallOptions()), request, responseObserver); } } /** * A stub to allow clients to do synchronous rpc calls to service SecuritySettingsService. * *
   * Service for managing security settings for Dialogflow.
   * 
*/ public static final class SecuritySettingsServiceBlockingStub extends io.grpc.stub.AbstractBlockingStub { private SecuritySettingsServiceBlockingStub( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @java.lang.Override protected SecuritySettingsServiceBlockingStub build( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new SecuritySettingsServiceBlockingStub(channel, callOptions); } /** * * *
     * Create security settings in the specified location.
     * 
*/ public com.google.cloud.dialogflow.cx.v3beta1.SecuritySettings createSecuritySettings( com.google.cloud.dialogflow.cx.v3beta1.CreateSecuritySettingsRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getCreateSecuritySettingsMethod(), getCallOptions(), request); } /** * * *
     * Retrieves the specified
     * [SecuritySettings][google.cloud.dialogflow.cx.v3beta1.SecuritySettings].
     * The returned settings may be stale by up to 1 minute.
     * 
*/ public com.google.cloud.dialogflow.cx.v3beta1.SecuritySettings getSecuritySettings( com.google.cloud.dialogflow.cx.v3beta1.GetSecuritySettingsRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getGetSecuritySettingsMethod(), getCallOptions(), request); } /** * * *
     * Updates the specified
     * [SecuritySettings][google.cloud.dialogflow.cx.v3beta1.SecuritySettings].
     * 
*/ public com.google.cloud.dialogflow.cx.v3beta1.SecuritySettings updateSecuritySettings( com.google.cloud.dialogflow.cx.v3beta1.UpdateSecuritySettingsRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getUpdateSecuritySettingsMethod(), getCallOptions(), request); } /** * * *
     * Returns the list of all security settings in the specified location.
     * 
*/ public com.google.cloud.dialogflow.cx.v3beta1.ListSecuritySettingsResponse listSecuritySettings( com.google.cloud.dialogflow.cx.v3beta1.ListSecuritySettingsRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getListSecuritySettingsMethod(), getCallOptions(), request); } /** * * *
     * Deletes the specified
     * [SecuritySettings][google.cloud.dialogflow.cx.v3beta1.SecuritySettings].
     * 
*/ public com.google.protobuf.Empty deleteSecuritySettings( com.google.cloud.dialogflow.cx.v3beta1.DeleteSecuritySettingsRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getDeleteSecuritySettingsMethod(), getCallOptions(), request); } } /** * A stub to allow clients to do ListenableFuture-style rpc calls to service * SecuritySettingsService. * *
   * Service for managing security settings for Dialogflow.
   * 
*/ public static final class SecuritySettingsServiceFutureStub extends io.grpc.stub.AbstractFutureStub { private SecuritySettingsServiceFutureStub( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @java.lang.Override protected SecuritySettingsServiceFutureStub build( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new SecuritySettingsServiceFutureStub(channel, callOptions); } /** * * *
     * Create security settings in the specified location.
     * 
*/ public com.google.common.util.concurrent.ListenableFuture< com.google.cloud.dialogflow.cx.v3beta1.SecuritySettings> createSecuritySettings( com.google.cloud.dialogflow.cx.v3beta1.CreateSecuritySettingsRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getCreateSecuritySettingsMethod(), getCallOptions()), request); } /** * * *
     * Retrieves the specified
     * [SecuritySettings][google.cloud.dialogflow.cx.v3beta1.SecuritySettings].
     * The returned settings may be stale by up to 1 minute.
     * 
*/ public com.google.common.util.concurrent.ListenableFuture< com.google.cloud.dialogflow.cx.v3beta1.SecuritySettings> getSecuritySettings( com.google.cloud.dialogflow.cx.v3beta1.GetSecuritySettingsRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getGetSecuritySettingsMethod(), getCallOptions()), request); } /** * * *
     * Updates the specified
     * [SecuritySettings][google.cloud.dialogflow.cx.v3beta1.SecuritySettings].
     * 
*/ public com.google.common.util.concurrent.ListenableFuture< com.google.cloud.dialogflow.cx.v3beta1.SecuritySettings> updateSecuritySettings( com.google.cloud.dialogflow.cx.v3beta1.UpdateSecuritySettingsRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getUpdateSecuritySettingsMethod(), getCallOptions()), request); } /** * * *
     * Returns the list of all security settings in the specified location.
     * 
*/ public com.google.common.util.concurrent.ListenableFuture< com.google.cloud.dialogflow.cx.v3beta1.ListSecuritySettingsResponse> listSecuritySettings( com.google.cloud.dialogflow.cx.v3beta1.ListSecuritySettingsRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getListSecuritySettingsMethod(), getCallOptions()), request); } /** * * *
     * Deletes the specified
     * [SecuritySettings][google.cloud.dialogflow.cx.v3beta1.SecuritySettings].
     * 
*/ public com.google.common.util.concurrent.ListenableFuture deleteSecuritySettings( com.google.cloud.dialogflow.cx.v3beta1.DeleteSecuritySettingsRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getDeleteSecuritySettingsMethod(), getCallOptions()), request); } } private static final int METHODID_CREATE_SECURITY_SETTINGS = 0; private static final int METHODID_GET_SECURITY_SETTINGS = 1; private static final int METHODID_UPDATE_SECURITY_SETTINGS = 2; private static final int METHODID_LIST_SECURITY_SETTINGS = 3; private static final int METHODID_DELETE_SECURITY_SETTINGS = 4; 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 AsyncService serviceImpl; private final int methodId; MethodHandlers(AsyncService 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_CREATE_SECURITY_SETTINGS: serviceImpl.createSecuritySettings( (com.google.cloud.dialogflow.cx.v3beta1.CreateSecuritySettingsRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_GET_SECURITY_SETTINGS: serviceImpl.getSecuritySettings( (com.google.cloud.dialogflow.cx.v3beta1.GetSecuritySettingsRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_UPDATE_SECURITY_SETTINGS: serviceImpl.updateSecuritySettings( (com.google.cloud.dialogflow.cx.v3beta1.UpdateSecuritySettingsRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_LIST_SECURITY_SETTINGS: serviceImpl.listSecuritySettings( (com.google.cloud.dialogflow.cx.v3beta1.ListSecuritySettingsRequest) request, (io.grpc.stub.StreamObserver< com.google.cloud.dialogflow.cx.v3beta1.ListSecuritySettingsResponse>) responseObserver); break; case METHODID_DELETE_SECURITY_SETTINGS: serviceImpl.deleteSecuritySettings( (com.google.cloud.dialogflow.cx.v3beta1.DeleteSecuritySettingsRequest) 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(); } } } public static final io.grpc.ServerServiceDefinition bindService(AsyncService service) { return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) .addMethod( getCreateSecuritySettingsMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.dialogflow.cx.v3beta1.CreateSecuritySettingsRequest, com.google.cloud.dialogflow.cx.v3beta1.SecuritySettings>( service, METHODID_CREATE_SECURITY_SETTINGS))) .addMethod( getGetSecuritySettingsMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.dialogflow.cx.v3beta1.GetSecuritySettingsRequest, com.google.cloud.dialogflow.cx.v3beta1.SecuritySettings>( service, METHODID_GET_SECURITY_SETTINGS))) .addMethod( getUpdateSecuritySettingsMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.dialogflow.cx.v3beta1.UpdateSecuritySettingsRequest, com.google.cloud.dialogflow.cx.v3beta1.SecuritySettings>( service, METHODID_UPDATE_SECURITY_SETTINGS))) .addMethod( getListSecuritySettingsMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.dialogflow.cx.v3beta1.ListSecuritySettingsRequest, com.google.cloud.dialogflow.cx.v3beta1.ListSecuritySettingsResponse>( service, METHODID_LIST_SECURITY_SETTINGS))) .addMethod( getDeleteSecuritySettingsMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.dialogflow.cx.v3beta1.DeleteSecuritySettingsRequest, com.google.protobuf.Empty>(service, METHODID_DELETE_SECURITY_SETTINGS))) .build(); } private abstract static class SecuritySettingsServiceBaseDescriptorSupplier implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { SecuritySettingsServiceBaseDescriptorSupplier() {} @java.lang.Override public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { return com.google.cloud.dialogflow.cx.v3beta1.SecuritySettingsProto.getDescriptor(); } @java.lang.Override public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { return getFileDescriptor().findServiceByName("SecuritySettingsService"); } } private static final class SecuritySettingsServiceFileDescriptorSupplier extends SecuritySettingsServiceBaseDescriptorSupplier { SecuritySettingsServiceFileDescriptorSupplier() {} } private static final class SecuritySettingsServiceMethodDescriptorSupplier extends SecuritySettingsServiceBaseDescriptorSupplier implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { private final java.lang.String methodName; SecuritySettingsServiceMethodDescriptorSupplier(java.lang.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 (SecuritySettingsServiceGrpc.class) { result = serviceDescriptor; if (result == null) { serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) .setSchemaDescriptor(new SecuritySettingsServiceFileDescriptorSupplier()) .addMethod(getCreateSecuritySettingsMethod()) .addMethod(getGetSecuritySettingsMethod()) .addMethod(getUpdateSecuritySettingsMethod()) .addMethod(getListSecuritySettingsMethod()) .addMethod(getDeleteSecuritySettingsMethod()) .build(); } } } return result; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy