com.google.appengine.v1.ServicesGrpc Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of grpc-google-cloud-appengine-admin-v1 Show documentation
Show all versions of grpc-google-cloud-appengine-admin-v1 Show documentation
GRPC library for google-cloud-appengine-admin
/*
* 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.appengine.v1;
import static io.grpc.MethodDescriptor.generateFullMethodName;
/**
*
*
*
* Manages services of an application.
*
*/
@javax.annotation.Generated(
value = "by gRPC proto compiler",
comments = "Source: google/appengine/v1/appengine.proto")
@io.grpc.stub.annotations.GrpcGenerated
public final class ServicesGrpc {
private ServicesGrpc() {}
public static final java.lang.String SERVICE_NAME = "google.appengine.v1.Services";
// Static method descriptors that strictly reflect the proto.
private static volatile io.grpc.MethodDescriptor<
com.google.appengine.v1.ListServicesRequest, com.google.appengine.v1.ListServicesResponse>
getListServicesMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "ListServices",
requestType = com.google.appengine.v1.ListServicesRequest.class,
responseType = com.google.appengine.v1.ListServicesResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor<
com.google.appengine.v1.ListServicesRequest, com.google.appengine.v1.ListServicesResponse>
getListServicesMethod() {
io.grpc.MethodDescriptor<
com.google.appengine.v1.ListServicesRequest,
com.google.appengine.v1.ListServicesResponse>
getListServicesMethod;
if ((getListServicesMethod = ServicesGrpc.getListServicesMethod) == null) {
synchronized (ServicesGrpc.class) {
if ((getListServicesMethod = ServicesGrpc.getListServicesMethod) == null) {
ServicesGrpc.getListServicesMethod =
getListServicesMethod =
io.grpc.MethodDescriptor
.
newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListServices"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(
io.grpc.protobuf.ProtoUtils.marshaller(
com.google.appengine.v1.ListServicesRequest.getDefaultInstance()))
.setResponseMarshaller(
io.grpc.protobuf.ProtoUtils.marshaller(
com.google.appengine.v1.ListServicesResponse.getDefaultInstance()))
.setSchemaDescriptor(new ServicesMethodDescriptorSupplier("ListServices"))
.build();
}
}
}
return getListServicesMethod;
}
private static volatile io.grpc.MethodDescriptor<
com.google.appengine.v1.GetServiceRequest, com.google.appengine.v1.Service>
getGetServiceMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "GetService",
requestType = com.google.appengine.v1.GetServiceRequest.class,
responseType = com.google.appengine.v1.Service.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor<
com.google.appengine.v1.GetServiceRequest, com.google.appengine.v1.Service>
getGetServiceMethod() {
io.grpc.MethodDescriptor<
com.google.appengine.v1.GetServiceRequest, com.google.appengine.v1.Service>
getGetServiceMethod;
if ((getGetServiceMethod = ServicesGrpc.getGetServiceMethod) == null) {
synchronized (ServicesGrpc.class) {
if ((getGetServiceMethod = ServicesGrpc.getGetServiceMethod) == null) {
ServicesGrpc.getGetServiceMethod =
getGetServiceMethod =
io.grpc.MethodDescriptor
.
newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetService"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(
io.grpc.protobuf.ProtoUtils.marshaller(
com.google.appengine.v1.GetServiceRequest.getDefaultInstance()))
.setResponseMarshaller(
io.grpc.protobuf.ProtoUtils.marshaller(
com.google.appengine.v1.Service.getDefaultInstance()))
.setSchemaDescriptor(new ServicesMethodDescriptorSupplier("GetService"))
.build();
}
}
}
return getGetServiceMethod;
}
private static volatile io.grpc.MethodDescriptor<
com.google.appengine.v1.UpdateServiceRequest, com.google.longrunning.Operation>
getUpdateServiceMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "UpdateService",
requestType = com.google.appengine.v1.UpdateServiceRequest.class,
responseType = com.google.longrunning.Operation.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor<
com.google.appengine.v1.UpdateServiceRequest, com.google.longrunning.Operation>
getUpdateServiceMethod() {
io.grpc.MethodDescriptor<
com.google.appengine.v1.UpdateServiceRequest, com.google.longrunning.Operation>
getUpdateServiceMethod;
if ((getUpdateServiceMethod = ServicesGrpc.getUpdateServiceMethod) == null) {
synchronized (ServicesGrpc.class) {
if ((getUpdateServiceMethod = ServicesGrpc.getUpdateServiceMethod) == null) {
ServicesGrpc.getUpdateServiceMethod =
getUpdateServiceMethod =
io.grpc.MethodDescriptor
.
newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateService"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(
io.grpc.protobuf.ProtoUtils.marshaller(
com.google.appengine.v1.UpdateServiceRequest.getDefaultInstance()))
.setResponseMarshaller(
io.grpc.protobuf.ProtoUtils.marshaller(
com.google.longrunning.Operation.getDefaultInstance()))
.setSchemaDescriptor(new ServicesMethodDescriptorSupplier("UpdateService"))
.build();
}
}
}
return getUpdateServiceMethod;
}
private static volatile io.grpc.MethodDescriptor<
com.google.appengine.v1.DeleteServiceRequest, com.google.longrunning.Operation>
getDeleteServiceMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "DeleteService",
requestType = com.google.appengine.v1.DeleteServiceRequest.class,
responseType = com.google.longrunning.Operation.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor<
com.google.appengine.v1.DeleteServiceRequest, com.google.longrunning.Operation>
getDeleteServiceMethod() {
io.grpc.MethodDescriptor<
com.google.appengine.v1.DeleteServiceRequest, com.google.longrunning.Operation>
getDeleteServiceMethod;
if ((getDeleteServiceMethod = ServicesGrpc.getDeleteServiceMethod) == null) {
synchronized (ServicesGrpc.class) {
if ((getDeleteServiceMethod = ServicesGrpc.getDeleteServiceMethod) == null) {
ServicesGrpc.getDeleteServiceMethod =
getDeleteServiceMethod =
io.grpc.MethodDescriptor
.
newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteService"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(
io.grpc.protobuf.ProtoUtils.marshaller(
com.google.appengine.v1.DeleteServiceRequest.getDefaultInstance()))
.setResponseMarshaller(
io.grpc.protobuf.ProtoUtils.marshaller(
com.google.longrunning.Operation.getDefaultInstance()))
.setSchemaDescriptor(new ServicesMethodDescriptorSupplier("DeleteService"))
.build();
}
}
}
return getDeleteServiceMethod;
}
/** Creates a new async stub that supports all call types for the service */
public static ServicesStub newStub(io.grpc.Channel channel) {
io.grpc.stub.AbstractStub.StubFactory factory =
new io.grpc.stub.AbstractStub.StubFactory() {
@java.lang.Override
public ServicesStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new ServicesStub(channel, callOptions);
}
};
return ServicesStub.newStub(factory, channel);
}
/**
* Creates a new blocking-style stub that supports unary and streaming output calls on the service
*/
public static ServicesBlockingStub newBlockingStub(io.grpc.Channel channel) {
io.grpc.stub.AbstractStub.StubFactory factory =
new io.grpc.stub.AbstractStub.StubFactory() {
@java.lang.Override
public ServicesBlockingStub newStub(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new ServicesBlockingStub(channel, callOptions);
}
};
return ServicesBlockingStub.newStub(factory, channel);
}
/** Creates a new ListenableFuture-style stub that supports unary calls on the service */
public static ServicesFutureStub newFutureStub(io.grpc.Channel channel) {
io.grpc.stub.AbstractStub.StubFactory factory =
new io.grpc.stub.AbstractStub.StubFactory() {
@java.lang.Override
public ServicesFutureStub newStub(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new ServicesFutureStub(channel, callOptions);
}
};
return ServicesFutureStub.newStub(factory, channel);
}
/**
*
*
*
* Manages services of an application.
*
*/
public interface AsyncService {
/**
*
*
*
* Lists all the services in the application.
*
*/
default void listServices(
com.google.appengine.v1.ListServicesRequest request,
io.grpc.stub.StreamObserver
responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(
getListServicesMethod(), responseObserver);
}
/**
*
*
*
* Gets the current configuration of the specified service.
*
*/
default void getService(
com.google.appengine.v1.GetServiceRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetServiceMethod(), responseObserver);
}
/**
*
*
*
* Updates the configuration of the specified service.
*
*/
default void updateService(
com.google.appengine.v1.UpdateServiceRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(
getUpdateServiceMethod(), responseObserver);
}
/**
*
*
*
* Deletes the specified service and all enclosed versions.
*
*/
default void deleteService(
com.google.appengine.v1.DeleteServiceRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(
getDeleteServiceMethod(), responseObserver);
}
}
/**
* Base class for the server implementation of the service Services.
*
*
* Manages services of an application.
*
*/
public abstract static class ServicesImplBase implements io.grpc.BindableService, AsyncService {
@java.lang.Override
public final io.grpc.ServerServiceDefinition bindService() {
return ServicesGrpc.bindService(this);
}
}
/**
* A stub to allow clients to do asynchronous rpc calls to service Services.
*
*
* Manages services of an application.
*
*/
public static final class ServicesStub extends io.grpc.stub.AbstractAsyncStub {
private ServicesStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
super(channel, callOptions);
}
@java.lang.Override
protected ServicesStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new ServicesStub(channel, callOptions);
}
/**
*
*
*
* Lists all the services in the application.
*
*/
public void listServices(
com.google.appengine.v1.ListServicesRequest request,
io.grpc.stub.StreamObserver
responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getListServicesMethod(), getCallOptions()),
request,
responseObserver);
}
/**
*
*
*
* Gets the current configuration of the specified service.
*
*/
public void getService(
com.google.appengine.v1.GetServiceRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getGetServiceMethod(), getCallOptions()), request, responseObserver);
}
/**
*
*
*
* Updates the configuration of the specified service.
*
*/
public void updateService(
com.google.appengine.v1.UpdateServiceRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getUpdateServiceMethod(), getCallOptions()),
request,
responseObserver);
}
/**
*
*
*
* Deletes the specified service and all enclosed versions.
*
*/
public void deleteService(
com.google.appengine.v1.DeleteServiceRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getDeleteServiceMethod(), getCallOptions()),
request,
responseObserver);
}
}
/**
* A stub to allow clients to do synchronous rpc calls to service Services.
*
*
* Manages services of an application.
*
*/
public static final class ServicesBlockingStub
extends io.grpc.stub.AbstractBlockingStub {
private ServicesBlockingStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
super(channel, callOptions);
}
@java.lang.Override
protected ServicesBlockingStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new ServicesBlockingStub(channel, callOptions);
}
/**
*
*
*
* Lists all the services in the application.
*
*/
public com.google.appengine.v1.ListServicesResponse listServices(
com.google.appengine.v1.ListServicesRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getListServicesMethod(), getCallOptions(), request);
}
/**
*
*
*
* Gets the current configuration of the specified service.
*
*/
public com.google.appengine.v1.Service getService(
com.google.appengine.v1.GetServiceRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getGetServiceMethod(), getCallOptions(), request);
}
/**
*
*
*
* Updates the configuration of the specified service.
*
*/
public com.google.longrunning.Operation updateService(
com.google.appengine.v1.UpdateServiceRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getUpdateServiceMethod(), getCallOptions(), request);
}
/**
*
*
*
* Deletes the specified service and all enclosed versions.
*
*/
public com.google.longrunning.Operation deleteService(
com.google.appengine.v1.DeleteServiceRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getDeleteServiceMethod(), getCallOptions(), request);
}
}
/**
* A stub to allow clients to do ListenableFuture-style rpc calls to service Services.
*
*
* Manages services of an application.
*
*/
public static final class ServicesFutureStub
extends io.grpc.stub.AbstractFutureStub {
private ServicesFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
super(channel, callOptions);
}
@java.lang.Override
protected ServicesFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new ServicesFutureStub(channel, callOptions);
}
/**
*
*
*
* Lists all the services in the application.
*
*/
public com.google.common.util.concurrent.ListenableFuture<
com.google.appengine.v1.ListServicesResponse>
listServices(com.google.appengine.v1.ListServicesRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getListServicesMethod(), getCallOptions()), request);
}
/**
*
*
*
* Gets the current configuration of the specified service.
*
*/
public com.google.common.util.concurrent.ListenableFuture
getService(com.google.appengine.v1.GetServiceRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getGetServiceMethod(), getCallOptions()), request);
}
/**
*
*
*
* Updates the configuration of the specified service.
*
*/
public com.google.common.util.concurrent.ListenableFuture
updateService(com.google.appengine.v1.UpdateServiceRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getUpdateServiceMethod(), getCallOptions()), request);
}
/**
*
*
*
* Deletes the specified service and all enclosed versions.
*
*/
public com.google.common.util.concurrent.ListenableFuture
deleteService(com.google.appengine.v1.DeleteServiceRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getDeleteServiceMethod(), getCallOptions()), request);
}
}
private static final int METHODID_LIST_SERVICES = 0;
private static final int METHODID_GET_SERVICE = 1;
private static final int METHODID_UPDATE_SERVICE = 2;
private static final int METHODID_DELETE_SERVICE = 3;
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_SERVICES:
serviceImpl.listServices(
(com.google.appengine.v1.ListServicesRequest) request,
(io.grpc.stub.StreamObserver)
responseObserver);
break;
case METHODID_GET_SERVICE:
serviceImpl.getService(
(com.google.appengine.v1.GetServiceRequest) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_UPDATE_SERVICE:
serviceImpl.updateService(
(com.google.appengine.v1.UpdateServiceRequest) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_DELETE_SERVICE:
serviceImpl.deleteService(
(com.google.appengine.v1.DeleteServiceRequest) 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(
getListServicesMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
com.google.appengine.v1.ListServicesRequest,
com.google.appengine.v1.ListServicesResponse>(service, METHODID_LIST_SERVICES)))
.addMethod(
getGetServiceMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
com.google.appengine.v1.GetServiceRequest, com.google.appengine.v1.Service>(
service, METHODID_GET_SERVICE)))
.addMethod(
getUpdateServiceMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
com.google.appengine.v1.UpdateServiceRequest, com.google.longrunning.Operation>(
service, METHODID_UPDATE_SERVICE)))
.addMethod(
getDeleteServiceMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
com.google.appengine.v1.DeleteServiceRequest, com.google.longrunning.Operation>(
service, METHODID_DELETE_SERVICE)))
.build();
}
private abstract static class ServicesBaseDescriptorSupplier
implements io.grpc.protobuf.ProtoFileDescriptorSupplier,
io.grpc.protobuf.ProtoServiceDescriptorSupplier {
ServicesBaseDescriptorSupplier() {}
@java.lang.Override
public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() {
return com.google.appengine.v1.AppengineProto.getDescriptor();
}
@java.lang.Override
public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() {
return getFileDescriptor().findServiceByName("Services");
}
}
private static final class ServicesFileDescriptorSupplier extends ServicesBaseDescriptorSupplier {
ServicesFileDescriptorSupplier() {}
}
private static final class ServicesMethodDescriptorSupplier extends ServicesBaseDescriptorSupplier
implements io.grpc.protobuf.ProtoMethodDescriptorSupplier {
private final java.lang.String methodName;
ServicesMethodDescriptorSupplier(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 (ServicesGrpc.class) {
result = serviceDescriptor;
if (result == null) {
serviceDescriptor =
result =
io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME)
.setSchemaDescriptor(new ServicesFileDescriptorSupplier())
.addMethod(getListServicesMethod())
.addMethod(getGetServiceMethod())
.addMethod(getUpdateServiceMethod())
.addMethod(getDeleteServiceMethod())
.build();
}
}
}
return result;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy