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

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

There is a newer version: 0.60.0
Show newest version
/*
 * 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 [Pages][google.cloud.dialogflow.cx.v3beta1.Page].
 * 
*/ @javax.annotation.Generated( value = "by gRPC proto compiler", comments = "Source: google/cloud/dialogflow/cx/v3beta1/page.proto") @io.grpc.stub.annotations.GrpcGenerated public final class PagesGrpc { private PagesGrpc() {} public static final java.lang.String SERVICE_NAME = "google.cloud.dialogflow.cx.v3beta1.Pages"; // Static method descriptors that strictly reflect the proto. private static volatile io.grpc.MethodDescriptor< com.google.cloud.dialogflow.cx.v3beta1.ListPagesRequest, com.google.cloud.dialogflow.cx.v3beta1.ListPagesResponse> getListPagesMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "ListPages", requestType = com.google.cloud.dialogflow.cx.v3beta1.ListPagesRequest.class, responseType = com.google.cloud.dialogflow.cx.v3beta1.ListPagesResponse.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor< com.google.cloud.dialogflow.cx.v3beta1.ListPagesRequest, com.google.cloud.dialogflow.cx.v3beta1.ListPagesResponse> getListPagesMethod() { io.grpc.MethodDescriptor< com.google.cloud.dialogflow.cx.v3beta1.ListPagesRequest, com.google.cloud.dialogflow.cx.v3beta1.ListPagesResponse> getListPagesMethod; if ((getListPagesMethod = PagesGrpc.getListPagesMethod) == null) { synchronized (PagesGrpc.class) { if ((getListPagesMethod = PagesGrpc.getListPagesMethod) == null) { PagesGrpc.getListPagesMethod = getListPagesMethod = io.grpc.MethodDescriptor . newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListPages")) .setSampledToLocalTracing(true) .setRequestMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( com.google.cloud.dialogflow.cx.v3beta1.ListPagesRequest .getDefaultInstance())) .setResponseMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( com.google.cloud.dialogflow.cx.v3beta1.ListPagesResponse .getDefaultInstance())) .setSchemaDescriptor(new PagesMethodDescriptorSupplier("ListPages")) .build(); } } } return getListPagesMethod; } private static volatile io.grpc.MethodDescriptor< com.google.cloud.dialogflow.cx.v3beta1.GetPageRequest, com.google.cloud.dialogflow.cx.v3beta1.Page> getGetPageMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "GetPage", requestType = com.google.cloud.dialogflow.cx.v3beta1.GetPageRequest.class, responseType = com.google.cloud.dialogflow.cx.v3beta1.Page.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor< com.google.cloud.dialogflow.cx.v3beta1.GetPageRequest, com.google.cloud.dialogflow.cx.v3beta1.Page> getGetPageMethod() { io.grpc.MethodDescriptor< com.google.cloud.dialogflow.cx.v3beta1.GetPageRequest, com.google.cloud.dialogflow.cx.v3beta1.Page> getGetPageMethod; if ((getGetPageMethod = PagesGrpc.getGetPageMethod) == null) { synchronized (PagesGrpc.class) { if ((getGetPageMethod = PagesGrpc.getGetPageMethod) == null) { PagesGrpc.getGetPageMethod = getGetPageMethod = io.grpc.MethodDescriptor . newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetPage")) .setSampledToLocalTracing(true) .setRequestMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( com.google.cloud.dialogflow.cx.v3beta1.GetPageRequest .getDefaultInstance())) .setResponseMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( com.google.cloud.dialogflow.cx.v3beta1.Page.getDefaultInstance())) .setSchemaDescriptor(new PagesMethodDescriptorSupplier("GetPage")) .build(); } } } return getGetPageMethod; } private static volatile io.grpc.MethodDescriptor< com.google.cloud.dialogflow.cx.v3beta1.CreatePageRequest, com.google.cloud.dialogflow.cx.v3beta1.Page> getCreatePageMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "CreatePage", requestType = com.google.cloud.dialogflow.cx.v3beta1.CreatePageRequest.class, responseType = com.google.cloud.dialogflow.cx.v3beta1.Page.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor< com.google.cloud.dialogflow.cx.v3beta1.CreatePageRequest, com.google.cloud.dialogflow.cx.v3beta1.Page> getCreatePageMethod() { io.grpc.MethodDescriptor< com.google.cloud.dialogflow.cx.v3beta1.CreatePageRequest, com.google.cloud.dialogflow.cx.v3beta1.Page> getCreatePageMethod; if ((getCreatePageMethod = PagesGrpc.getCreatePageMethod) == null) { synchronized (PagesGrpc.class) { if ((getCreatePageMethod = PagesGrpc.getCreatePageMethod) == null) { PagesGrpc.getCreatePageMethod = getCreatePageMethod = io.grpc.MethodDescriptor . newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreatePage")) .setSampledToLocalTracing(true) .setRequestMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( com.google.cloud.dialogflow.cx.v3beta1.CreatePageRequest .getDefaultInstance())) .setResponseMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( com.google.cloud.dialogflow.cx.v3beta1.Page.getDefaultInstance())) .setSchemaDescriptor(new PagesMethodDescriptorSupplier("CreatePage")) .build(); } } } return getCreatePageMethod; } private static volatile io.grpc.MethodDescriptor< com.google.cloud.dialogflow.cx.v3beta1.UpdatePageRequest, com.google.cloud.dialogflow.cx.v3beta1.Page> getUpdatePageMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "UpdatePage", requestType = com.google.cloud.dialogflow.cx.v3beta1.UpdatePageRequest.class, responseType = com.google.cloud.dialogflow.cx.v3beta1.Page.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor< com.google.cloud.dialogflow.cx.v3beta1.UpdatePageRequest, com.google.cloud.dialogflow.cx.v3beta1.Page> getUpdatePageMethod() { io.grpc.MethodDescriptor< com.google.cloud.dialogflow.cx.v3beta1.UpdatePageRequest, com.google.cloud.dialogflow.cx.v3beta1.Page> getUpdatePageMethod; if ((getUpdatePageMethod = PagesGrpc.getUpdatePageMethod) == null) { synchronized (PagesGrpc.class) { if ((getUpdatePageMethod = PagesGrpc.getUpdatePageMethod) == null) { PagesGrpc.getUpdatePageMethod = getUpdatePageMethod = io.grpc.MethodDescriptor . newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdatePage")) .setSampledToLocalTracing(true) .setRequestMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( com.google.cloud.dialogflow.cx.v3beta1.UpdatePageRequest .getDefaultInstance())) .setResponseMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( com.google.cloud.dialogflow.cx.v3beta1.Page.getDefaultInstance())) .setSchemaDescriptor(new PagesMethodDescriptorSupplier("UpdatePage")) .build(); } } } return getUpdatePageMethod; } private static volatile io.grpc.MethodDescriptor< com.google.cloud.dialogflow.cx.v3beta1.DeletePageRequest, com.google.protobuf.Empty> getDeletePageMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "DeletePage", requestType = com.google.cloud.dialogflow.cx.v3beta1.DeletePageRequest.class, responseType = com.google.protobuf.Empty.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor< com.google.cloud.dialogflow.cx.v3beta1.DeletePageRequest, com.google.protobuf.Empty> getDeletePageMethod() { io.grpc.MethodDescriptor< com.google.cloud.dialogflow.cx.v3beta1.DeletePageRequest, com.google.protobuf.Empty> getDeletePageMethod; if ((getDeletePageMethod = PagesGrpc.getDeletePageMethod) == null) { synchronized (PagesGrpc.class) { if ((getDeletePageMethod = PagesGrpc.getDeletePageMethod) == null) { PagesGrpc.getDeletePageMethod = getDeletePageMethod = io.grpc.MethodDescriptor . newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeletePage")) .setSampledToLocalTracing(true) .setRequestMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( com.google.cloud.dialogflow.cx.v3beta1.DeletePageRequest .getDefaultInstance())) .setResponseMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( com.google.protobuf.Empty.getDefaultInstance())) .setSchemaDescriptor(new PagesMethodDescriptorSupplier("DeletePage")) .build(); } } } return getDeletePageMethod; } /** Creates a new async stub that supports all call types for the service */ public static PagesStub newStub(io.grpc.Channel channel) { io.grpc.stub.AbstractStub.StubFactory factory = new io.grpc.stub.AbstractStub.StubFactory() { @java.lang.Override public PagesStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new PagesStub(channel, callOptions); } }; return PagesStub.newStub(factory, channel); } /** * Creates a new blocking-style stub that supports unary and streaming output calls on the service */ public static PagesBlockingStub newBlockingStub(io.grpc.Channel channel) { io.grpc.stub.AbstractStub.StubFactory factory = new io.grpc.stub.AbstractStub.StubFactory() { @java.lang.Override public PagesBlockingStub newStub( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new PagesBlockingStub(channel, callOptions); } }; return PagesBlockingStub.newStub(factory, channel); } /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ public static PagesFutureStub newFutureStub(io.grpc.Channel channel) { io.grpc.stub.AbstractStub.StubFactory factory = new io.grpc.stub.AbstractStub.StubFactory() { @java.lang.Override public PagesFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new PagesFutureStub(channel, callOptions); } }; return PagesFutureStub.newStub(factory, channel); } /** * * *
   * Service for managing [Pages][google.cloud.dialogflow.cx.v3beta1.Page].
   * 
*/ public interface AsyncService { /** * * *
     * Returns the list of all pages in the specified flow.
     * 
*/ default void listPages( com.google.cloud.dialogflow.cx.v3beta1.ListPagesRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListPagesMethod(), responseObserver); } /** * * *
     * Retrieves the specified page.
     * 
*/ default void getPage( com.google.cloud.dialogflow.cx.v3beta1.GetPageRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetPageMethod(), responseObserver); } /** * * *
     * Creates a page in the specified flow.
     * 
*/ default void createPage( com.google.cloud.dialogflow.cx.v3beta1.CreatePageRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreatePageMethod(), responseObserver); } /** * * *
     * Updates the specified page.
     * 
*/ default void updatePage( com.google.cloud.dialogflow.cx.v3beta1.UpdatePageRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdatePageMethod(), responseObserver); } /** * * *
     * Deletes the specified page.
     * 
*/ default void deletePage( com.google.cloud.dialogflow.cx.v3beta1.DeletePageRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeletePageMethod(), responseObserver); } } /** * Base class for the server implementation of the service Pages. * *
   * Service for managing [Pages][google.cloud.dialogflow.cx.v3beta1.Page].
   * 
*/ public abstract static class PagesImplBase implements io.grpc.BindableService, AsyncService { @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { return PagesGrpc.bindService(this); } } /** * A stub to allow clients to do asynchronous rpc calls to service Pages. * *
   * Service for managing [Pages][google.cloud.dialogflow.cx.v3beta1.Page].
   * 
*/ public static final class PagesStub extends io.grpc.stub.AbstractAsyncStub { private PagesStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @java.lang.Override protected PagesStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new PagesStub(channel, callOptions); } /** * * *
     * Returns the list of all pages in the specified flow.
     * 
*/ public void listPages( com.google.cloud.dialogflow.cx.v3beta1.ListPagesRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getListPagesMethod(), getCallOptions()), request, responseObserver); } /** * * *
     * Retrieves the specified page.
     * 
*/ public void getPage( com.google.cloud.dialogflow.cx.v3beta1.GetPageRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getGetPageMethod(), getCallOptions()), request, responseObserver); } /** * * *
     * Creates a page in the specified flow.
     * 
*/ public void createPage( com.google.cloud.dialogflow.cx.v3beta1.CreatePageRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getCreatePageMethod(), getCallOptions()), request, responseObserver); } /** * * *
     * Updates the specified page.
     * 
*/ public void updatePage( com.google.cloud.dialogflow.cx.v3beta1.UpdatePageRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getUpdatePageMethod(), getCallOptions()), request, responseObserver); } /** * * *
     * Deletes the specified page.
     * 
*/ public void deletePage( com.google.cloud.dialogflow.cx.v3beta1.DeletePageRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getDeletePageMethod(), getCallOptions()), request, responseObserver); } } /** * A stub to allow clients to do synchronous rpc calls to service Pages. * *
   * Service for managing [Pages][google.cloud.dialogflow.cx.v3beta1.Page].
   * 
*/ public static final class PagesBlockingStub extends io.grpc.stub.AbstractBlockingStub { private PagesBlockingStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @java.lang.Override protected PagesBlockingStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new PagesBlockingStub(channel, callOptions); } /** * * *
     * Returns the list of all pages in the specified flow.
     * 
*/ public com.google.cloud.dialogflow.cx.v3beta1.ListPagesResponse listPages( com.google.cloud.dialogflow.cx.v3beta1.ListPagesRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getListPagesMethod(), getCallOptions(), request); } /** * * *
     * Retrieves the specified page.
     * 
*/ public com.google.cloud.dialogflow.cx.v3beta1.Page getPage( com.google.cloud.dialogflow.cx.v3beta1.GetPageRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getGetPageMethod(), getCallOptions(), request); } /** * * *
     * Creates a page in the specified flow.
     * 
*/ public com.google.cloud.dialogflow.cx.v3beta1.Page createPage( com.google.cloud.dialogflow.cx.v3beta1.CreatePageRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getCreatePageMethod(), getCallOptions(), request); } /** * * *
     * Updates the specified page.
     * 
*/ public com.google.cloud.dialogflow.cx.v3beta1.Page updatePage( com.google.cloud.dialogflow.cx.v3beta1.UpdatePageRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getUpdatePageMethod(), getCallOptions(), request); } /** * * *
     * Deletes the specified page.
     * 
*/ public com.google.protobuf.Empty deletePage( com.google.cloud.dialogflow.cx.v3beta1.DeletePageRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getDeletePageMethod(), getCallOptions(), request); } } /** * A stub to allow clients to do ListenableFuture-style rpc calls to service Pages. * *
   * Service for managing [Pages][google.cloud.dialogflow.cx.v3beta1.Page].
   * 
*/ public static final class PagesFutureStub extends io.grpc.stub.AbstractFutureStub { private PagesFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @java.lang.Override protected PagesFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new PagesFutureStub(channel, callOptions); } /** * * *
     * Returns the list of all pages in the specified flow.
     * 
*/ public com.google.common.util.concurrent.ListenableFuture< com.google.cloud.dialogflow.cx.v3beta1.ListPagesResponse> listPages(com.google.cloud.dialogflow.cx.v3beta1.ListPagesRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getListPagesMethod(), getCallOptions()), request); } /** * * *
     * Retrieves the specified page.
     * 
*/ public com.google.common.util.concurrent.ListenableFuture< com.google.cloud.dialogflow.cx.v3beta1.Page> getPage(com.google.cloud.dialogflow.cx.v3beta1.GetPageRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getGetPageMethod(), getCallOptions()), request); } /** * * *
     * Creates a page in the specified flow.
     * 
*/ public com.google.common.util.concurrent.ListenableFuture< com.google.cloud.dialogflow.cx.v3beta1.Page> createPage(com.google.cloud.dialogflow.cx.v3beta1.CreatePageRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getCreatePageMethod(), getCallOptions()), request); } /** * * *
     * Updates the specified page.
     * 
*/ public com.google.common.util.concurrent.ListenableFuture< com.google.cloud.dialogflow.cx.v3beta1.Page> updatePage(com.google.cloud.dialogflow.cx.v3beta1.UpdatePageRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getUpdatePageMethod(), getCallOptions()), request); } /** * * *
     * Deletes the specified page.
     * 
*/ public com.google.common.util.concurrent.ListenableFuture deletePage( com.google.cloud.dialogflow.cx.v3beta1.DeletePageRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getDeletePageMethod(), getCallOptions()), request); } } private static final int METHODID_LIST_PAGES = 0; private static final int METHODID_GET_PAGE = 1; private static final int METHODID_CREATE_PAGE = 2; private static final int METHODID_UPDATE_PAGE = 3; private static final int METHODID_DELETE_PAGE = 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_LIST_PAGES: serviceImpl.listPages( (com.google.cloud.dialogflow.cx.v3beta1.ListPagesRequest) request, (io.grpc.stub.StreamObserver< com.google.cloud.dialogflow.cx.v3beta1.ListPagesResponse>) responseObserver); break; case METHODID_GET_PAGE: serviceImpl.getPage( (com.google.cloud.dialogflow.cx.v3beta1.GetPageRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_CREATE_PAGE: serviceImpl.createPage( (com.google.cloud.dialogflow.cx.v3beta1.CreatePageRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_UPDATE_PAGE: serviceImpl.updatePage( (com.google.cloud.dialogflow.cx.v3beta1.UpdatePageRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_DELETE_PAGE: serviceImpl.deletePage( (com.google.cloud.dialogflow.cx.v3beta1.DeletePageRequest) 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( getListPagesMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.dialogflow.cx.v3beta1.ListPagesRequest, com.google.cloud.dialogflow.cx.v3beta1.ListPagesResponse>( service, METHODID_LIST_PAGES))) .addMethod( getGetPageMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.dialogflow.cx.v3beta1.GetPageRequest, com.google.cloud.dialogflow.cx.v3beta1.Page>(service, METHODID_GET_PAGE))) .addMethod( getCreatePageMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.dialogflow.cx.v3beta1.CreatePageRequest, com.google.cloud.dialogflow.cx.v3beta1.Page>(service, METHODID_CREATE_PAGE))) .addMethod( getUpdatePageMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.dialogflow.cx.v3beta1.UpdatePageRequest, com.google.cloud.dialogflow.cx.v3beta1.Page>(service, METHODID_UPDATE_PAGE))) .addMethod( getDeletePageMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.dialogflow.cx.v3beta1.DeletePageRequest, com.google.protobuf.Empty>(service, METHODID_DELETE_PAGE))) .build(); } private abstract static class PagesBaseDescriptorSupplier implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { PagesBaseDescriptorSupplier() {} @java.lang.Override public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { return com.google.cloud.dialogflow.cx.v3beta1.PageProto.getDescriptor(); } @java.lang.Override public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { return getFileDescriptor().findServiceByName("Pages"); } } private static final class PagesFileDescriptorSupplier extends PagesBaseDescriptorSupplier { PagesFileDescriptorSupplier() {} } private static final class PagesMethodDescriptorSupplier extends PagesBaseDescriptorSupplier implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { private final java.lang.String methodName; PagesMethodDescriptorSupplier(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 (PagesGrpc.class) { result = serviceDescriptor; if (result == null) { serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) .setSchemaDescriptor(new PagesFileDescriptorSupplier()) .addMethod(getListPagesMethod()) .addMethod(getGetPageMethod()) .addMethod(getCreatePageMethod()) .addMethod(getUpdatePageMethod()) .addMethod(getDeletePageMethod()) .build(); } } } return result; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy