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

com.google.cloud.memcache.v1beta2.CloudMemcacheGrpc Maven / Gradle / Ivy

There is a newer version: 0.54.0
Show newest version
/*
 * Copyright 2023 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.memcache.v1beta2;

import static io.grpc.MethodDescriptor.generateFullMethodName;

/**
 *
 *
 * 
 * Configures and manages Cloud Memorystore for Memcached instances.
 * The `memcache.googleapis.com` service implements the Google Cloud Memorystore
 * for Memcached API and defines the following resource model for managing
 * Memorystore Memcached (also called Memcached below) instances:
 * * The service works with a collection of cloud projects, named: `/projects/*`
 * * Each project has a collection of available locations, named: `/locations/*`
 * * Each location has a collection of Memcached instances, named:
 * `/instances/*`
 * * As such, Memcached instances are resources of the form:
 *   `/projects/{project_id}/locations/{location_id}/instances/{instance_id}`
 * Note that location_id must be a GCP `region`; for example:
 * * `projects/my-memcached-project/locations/us-central1/instances/my-memcached`
 * 
*/ @javax.annotation.Generated( value = "by gRPC proto compiler", comments = "Source: google/cloud/memcache/v1beta2/cloud_memcache.proto") @io.grpc.stub.annotations.GrpcGenerated public final class CloudMemcacheGrpc { private CloudMemcacheGrpc() {} public static final java.lang.String SERVICE_NAME = "google.cloud.memcache.v1beta2.CloudMemcache"; // Static method descriptors that strictly reflect the proto. private static volatile io.grpc.MethodDescriptor< com.google.cloud.memcache.v1beta2.ListInstancesRequest, com.google.cloud.memcache.v1beta2.ListInstancesResponse> getListInstancesMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "ListInstances", requestType = com.google.cloud.memcache.v1beta2.ListInstancesRequest.class, responseType = com.google.cloud.memcache.v1beta2.ListInstancesResponse.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor< com.google.cloud.memcache.v1beta2.ListInstancesRequest, com.google.cloud.memcache.v1beta2.ListInstancesResponse> getListInstancesMethod() { io.grpc.MethodDescriptor< com.google.cloud.memcache.v1beta2.ListInstancesRequest, com.google.cloud.memcache.v1beta2.ListInstancesResponse> getListInstancesMethod; if ((getListInstancesMethod = CloudMemcacheGrpc.getListInstancesMethod) == null) { synchronized (CloudMemcacheGrpc.class) { if ((getListInstancesMethod = CloudMemcacheGrpc.getListInstancesMethod) == null) { CloudMemcacheGrpc.getListInstancesMethod = getListInstancesMethod = io.grpc.MethodDescriptor . newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListInstances")) .setSampledToLocalTracing(true) .setRequestMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( com.google.cloud.memcache.v1beta2.ListInstancesRequest .getDefaultInstance())) .setResponseMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( com.google.cloud.memcache.v1beta2.ListInstancesResponse .getDefaultInstance())) .setSchemaDescriptor( new CloudMemcacheMethodDescriptorSupplier("ListInstances")) .build(); } } } return getListInstancesMethod; } private static volatile io.grpc.MethodDescriptor< com.google.cloud.memcache.v1beta2.GetInstanceRequest, com.google.cloud.memcache.v1beta2.Instance> getGetInstanceMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "GetInstance", requestType = com.google.cloud.memcache.v1beta2.GetInstanceRequest.class, responseType = com.google.cloud.memcache.v1beta2.Instance.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor< com.google.cloud.memcache.v1beta2.GetInstanceRequest, com.google.cloud.memcache.v1beta2.Instance> getGetInstanceMethod() { io.grpc.MethodDescriptor< com.google.cloud.memcache.v1beta2.GetInstanceRequest, com.google.cloud.memcache.v1beta2.Instance> getGetInstanceMethod; if ((getGetInstanceMethod = CloudMemcacheGrpc.getGetInstanceMethod) == null) { synchronized (CloudMemcacheGrpc.class) { if ((getGetInstanceMethod = CloudMemcacheGrpc.getGetInstanceMethod) == null) { CloudMemcacheGrpc.getGetInstanceMethod = getGetInstanceMethod = io.grpc.MethodDescriptor . newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetInstance")) .setSampledToLocalTracing(true) .setRequestMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( com.google.cloud.memcache.v1beta2.GetInstanceRequest .getDefaultInstance())) .setResponseMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( com.google.cloud.memcache.v1beta2.Instance.getDefaultInstance())) .setSchemaDescriptor(new CloudMemcacheMethodDescriptorSupplier("GetInstance")) .build(); } } } return getGetInstanceMethod; } private static volatile io.grpc.MethodDescriptor< com.google.cloud.memcache.v1beta2.CreateInstanceRequest, com.google.longrunning.Operation> getCreateInstanceMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "CreateInstance", requestType = com.google.cloud.memcache.v1beta2.CreateInstanceRequest.class, responseType = com.google.longrunning.Operation.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor< com.google.cloud.memcache.v1beta2.CreateInstanceRequest, com.google.longrunning.Operation> getCreateInstanceMethod() { io.grpc.MethodDescriptor< com.google.cloud.memcache.v1beta2.CreateInstanceRequest, com.google.longrunning.Operation> getCreateInstanceMethod; if ((getCreateInstanceMethod = CloudMemcacheGrpc.getCreateInstanceMethod) == null) { synchronized (CloudMemcacheGrpc.class) { if ((getCreateInstanceMethod = CloudMemcacheGrpc.getCreateInstanceMethod) == null) { CloudMemcacheGrpc.getCreateInstanceMethod = getCreateInstanceMethod = io.grpc.MethodDescriptor . newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateInstance")) .setSampledToLocalTracing(true) .setRequestMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( com.google.cloud.memcache.v1beta2.CreateInstanceRequest .getDefaultInstance())) .setResponseMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( com.google.longrunning.Operation.getDefaultInstance())) .setSchemaDescriptor( new CloudMemcacheMethodDescriptorSupplier("CreateInstance")) .build(); } } } return getCreateInstanceMethod; } private static volatile io.grpc.MethodDescriptor< com.google.cloud.memcache.v1beta2.UpdateInstanceRequest, com.google.longrunning.Operation> getUpdateInstanceMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "UpdateInstance", requestType = com.google.cloud.memcache.v1beta2.UpdateInstanceRequest.class, responseType = com.google.longrunning.Operation.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor< com.google.cloud.memcache.v1beta2.UpdateInstanceRequest, com.google.longrunning.Operation> getUpdateInstanceMethod() { io.grpc.MethodDescriptor< com.google.cloud.memcache.v1beta2.UpdateInstanceRequest, com.google.longrunning.Operation> getUpdateInstanceMethod; if ((getUpdateInstanceMethod = CloudMemcacheGrpc.getUpdateInstanceMethod) == null) { synchronized (CloudMemcacheGrpc.class) { if ((getUpdateInstanceMethod = CloudMemcacheGrpc.getUpdateInstanceMethod) == null) { CloudMemcacheGrpc.getUpdateInstanceMethod = getUpdateInstanceMethod = io.grpc.MethodDescriptor . newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateInstance")) .setSampledToLocalTracing(true) .setRequestMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( com.google.cloud.memcache.v1beta2.UpdateInstanceRequest .getDefaultInstance())) .setResponseMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( com.google.longrunning.Operation.getDefaultInstance())) .setSchemaDescriptor( new CloudMemcacheMethodDescriptorSupplier("UpdateInstance")) .build(); } } } return getUpdateInstanceMethod; } private static volatile io.grpc.MethodDescriptor< com.google.cloud.memcache.v1beta2.UpdateParametersRequest, com.google.longrunning.Operation> getUpdateParametersMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "UpdateParameters", requestType = com.google.cloud.memcache.v1beta2.UpdateParametersRequest.class, responseType = com.google.longrunning.Operation.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor< com.google.cloud.memcache.v1beta2.UpdateParametersRequest, com.google.longrunning.Operation> getUpdateParametersMethod() { io.grpc.MethodDescriptor< com.google.cloud.memcache.v1beta2.UpdateParametersRequest, com.google.longrunning.Operation> getUpdateParametersMethod; if ((getUpdateParametersMethod = CloudMemcacheGrpc.getUpdateParametersMethod) == null) { synchronized (CloudMemcacheGrpc.class) { if ((getUpdateParametersMethod = CloudMemcacheGrpc.getUpdateParametersMethod) == null) { CloudMemcacheGrpc.getUpdateParametersMethod = getUpdateParametersMethod = io.grpc.MethodDescriptor . newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateParameters")) .setSampledToLocalTracing(true) .setRequestMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( com.google.cloud.memcache.v1beta2.UpdateParametersRequest .getDefaultInstance())) .setResponseMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( com.google.longrunning.Operation.getDefaultInstance())) .setSchemaDescriptor( new CloudMemcacheMethodDescriptorSupplier("UpdateParameters")) .build(); } } } return getUpdateParametersMethod; } private static volatile io.grpc.MethodDescriptor< com.google.cloud.memcache.v1beta2.DeleteInstanceRequest, com.google.longrunning.Operation> getDeleteInstanceMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "DeleteInstance", requestType = com.google.cloud.memcache.v1beta2.DeleteInstanceRequest.class, responseType = com.google.longrunning.Operation.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor< com.google.cloud.memcache.v1beta2.DeleteInstanceRequest, com.google.longrunning.Operation> getDeleteInstanceMethod() { io.grpc.MethodDescriptor< com.google.cloud.memcache.v1beta2.DeleteInstanceRequest, com.google.longrunning.Operation> getDeleteInstanceMethod; if ((getDeleteInstanceMethod = CloudMemcacheGrpc.getDeleteInstanceMethod) == null) { synchronized (CloudMemcacheGrpc.class) { if ((getDeleteInstanceMethod = CloudMemcacheGrpc.getDeleteInstanceMethod) == null) { CloudMemcacheGrpc.getDeleteInstanceMethod = getDeleteInstanceMethod = io.grpc.MethodDescriptor . newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteInstance")) .setSampledToLocalTracing(true) .setRequestMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( com.google.cloud.memcache.v1beta2.DeleteInstanceRequest .getDefaultInstance())) .setResponseMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( com.google.longrunning.Operation.getDefaultInstance())) .setSchemaDescriptor( new CloudMemcacheMethodDescriptorSupplier("DeleteInstance")) .build(); } } } return getDeleteInstanceMethod; } private static volatile io.grpc.MethodDescriptor< com.google.cloud.memcache.v1beta2.ApplyParametersRequest, com.google.longrunning.Operation> getApplyParametersMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "ApplyParameters", requestType = com.google.cloud.memcache.v1beta2.ApplyParametersRequest.class, responseType = com.google.longrunning.Operation.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor< com.google.cloud.memcache.v1beta2.ApplyParametersRequest, com.google.longrunning.Operation> getApplyParametersMethod() { io.grpc.MethodDescriptor< com.google.cloud.memcache.v1beta2.ApplyParametersRequest, com.google.longrunning.Operation> getApplyParametersMethod; if ((getApplyParametersMethod = CloudMemcacheGrpc.getApplyParametersMethod) == null) { synchronized (CloudMemcacheGrpc.class) { if ((getApplyParametersMethod = CloudMemcacheGrpc.getApplyParametersMethod) == null) { CloudMemcacheGrpc.getApplyParametersMethod = getApplyParametersMethod = io.grpc.MethodDescriptor . newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ApplyParameters")) .setSampledToLocalTracing(true) .setRequestMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( com.google.cloud.memcache.v1beta2.ApplyParametersRequest .getDefaultInstance())) .setResponseMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( com.google.longrunning.Operation.getDefaultInstance())) .setSchemaDescriptor( new CloudMemcacheMethodDescriptorSupplier("ApplyParameters")) .build(); } } } return getApplyParametersMethod; } private static volatile io.grpc.MethodDescriptor< com.google.cloud.memcache.v1beta2.ApplySoftwareUpdateRequest, com.google.longrunning.Operation> getApplySoftwareUpdateMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "ApplySoftwareUpdate", requestType = com.google.cloud.memcache.v1beta2.ApplySoftwareUpdateRequest.class, responseType = com.google.longrunning.Operation.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor< com.google.cloud.memcache.v1beta2.ApplySoftwareUpdateRequest, com.google.longrunning.Operation> getApplySoftwareUpdateMethod() { io.grpc.MethodDescriptor< com.google.cloud.memcache.v1beta2.ApplySoftwareUpdateRequest, com.google.longrunning.Operation> getApplySoftwareUpdateMethod; if ((getApplySoftwareUpdateMethod = CloudMemcacheGrpc.getApplySoftwareUpdateMethod) == null) { synchronized (CloudMemcacheGrpc.class) { if ((getApplySoftwareUpdateMethod = CloudMemcacheGrpc.getApplySoftwareUpdateMethod) == null) { CloudMemcacheGrpc.getApplySoftwareUpdateMethod = getApplySoftwareUpdateMethod = io.grpc.MethodDescriptor . newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName( generateFullMethodName(SERVICE_NAME, "ApplySoftwareUpdate")) .setSampledToLocalTracing(true) .setRequestMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( com.google.cloud.memcache.v1beta2.ApplySoftwareUpdateRequest .getDefaultInstance())) .setResponseMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( com.google.longrunning.Operation.getDefaultInstance())) .setSchemaDescriptor( new CloudMemcacheMethodDescriptorSupplier("ApplySoftwareUpdate")) .build(); } } } return getApplySoftwareUpdateMethod; } private static volatile io.grpc.MethodDescriptor< com.google.cloud.memcache.v1beta2.RescheduleMaintenanceRequest, com.google.longrunning.Operation> getRescheduleMaintenanceMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "RescheduleMaintenance", requestType = com.google.cloud.memcache.v1beta2.RescheduleMaintenanceRequest.class, responseType = com.google.longrunning.Operation.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor< com.google.cloud.memcache.v1beta2.RescheduleMaintenanceRequest, com.google.longrunning.Operation> getRescheduleMaintenanceMethod() { io.grpc.MethodDescriptor< com.google.cloud.memcache.v1beta2.RescheduleMaintenanceRequest, com.google.longrunning.Operation> getRescheduleMaintenanceMethod; if ((getRescheduleMaintenanceMethod = CloudMemcacheGrpc.getRescheduleMaintenanceMethod) == null) { synchronized (CloudMemcacheGrpc.class) { if ((getRescheduleMaintenanceMethod = CloudMemcacheGrpc.getRescheduleMaintenanceMethod) == null) { CloudMemcacheGrpc.getRescheduleMaintenanceMethod = getRescheduleMaintenanceMethod = io.grpc.MethodDescriptor . newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName( generateFullMethodName(SERVICE_NAME, "RescheduleMaintenance")) .setSampledToLocalTracing(true) .setRequestMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( com.google.cloud.memcache.v1beta2.RescheduleMaintenanceRequest .getDefaultInstance())) .setResponseMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( com.google.longrunning.Operation.getDefaultInstance())) .setSchemaDescriptor( new CloudMemcacheMethodDescriptorSupplier("RescheduleMaintenance")) .build(); } } } return getRescheduleMaintenanceMethod; } /** Creates a new async stub that supports all call types for the service */ public static CloudMemcacheStub newStub(io.grpc.Channel channel) { io.grpc.stub.AbstractStub.StubFactory factory = new io.grpc.stub.AbstractStub.StubFactory() { @java.lang.Override public CloudMemcacheStub newStub( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new CloudMemcacheStub(channel, callOptions); } }; return CloudMemcacheStub.newStub(factory, channel); } /** * Creates a new blocking-style stub that supports unary and streaming output calls on the service */ public static CloudMemcacheBlockingStub newBlockingStub(io.grpc.Channel channel) { io.grpc.stub.AbstractStub.StubFactory factory = new io.grpc.stub.AbstractStub.StubFactory() { @java.lang.Override public CloudMemcacheBlockingStub newStub( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new CloudMemcacheBlockingStub(channel, callOptions); } }; return CloudMemcacheBlockingStub.newStub(factory, channel); } /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ public static CloudMemcacheFutureStub newFutureStub(io.grpc.Channel channel) { io.grpc.stub.AbstractStub.StubFactory factory = new io.grpc.stub.AbstractStub.StubFactory() { @java.lang.Override public CloudMemcacheFutureStub newStub( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new CloudMemcacheFutureStub(channel, callOptions); } }; return CloudMemcacheFutureStub.newStub(factory, channel); } /** * * *
   * Configures and manages Cloud Memorystore for Memcached instances.
   * The `memcache.googleapis.com` service implements the Google Cloud Memorystore
   * for Memcached API and defines the following resource model for managing
   * Memorystore Memcached (also called Memcached below) instances:
   * * The service works with a collection of cloud projects, named: `/projects/*`
   * * Each project has a collection of available locations, named: `/locations/*`
   * * Each location has a collection of Memcached instances, named:
   * `/instances/*`
   * * As such, Memcached instances are resources of the form:
   *   `/projects/{project_id}/locations/{location_id}/instances/{instance_id}`
   * Note that location_id must be a GCP `region`; for example:
   * * `projects/my-memcached-project/locations/us-central1/instances/my-memcached`
   * 
*/ public interface AsyncService { /** * * *
     * Lists Instances in a given location.
     * 
*/ default void listInstances( com.google.cloud.memcache.v1beta2.ListInstancesRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( getListInstancesMethod(), responseObserver); } /** * * *
     * Gets details of a single Instance.
     * 
*/ default void getInstance( com.google.cloud.memcache.v1beta2.GetInstanceRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( getGetInstanceMethod(), responseObserver); } /** * * *
     * Creates a new Instance in a given location.
     * 
*/ default void createInstance( com.google.cloud.memcache.v1beta2.CreateInstanceRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( getCreateInstanceMethod(), responseObserver); } /** * * *
     * Updates an existing Instance in a given project and location.
     * 
*/ default void updateInstance( com.google.cloud.memcache.v1beta2.UpdateInstanceRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( getUpdateInstanceMethod(), responseObserver); } /** * * *
     * Updates the defined Memcached parameters for an existing instance.
     * This method only stages the parameters, it must be followed by
     * `ApplyParameters` to apply the parameters to nodes of the Memcached
     * instance.
     * 
*/ default void updateParameters( com.google.cloud.memcache.v1beta2.UpdateParametersRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( getUpdateParametersMethod(), responseObserver); } /** * * *
     * Deletes a single Instance.
     * 
*/ default void deleteInstance( com.google.cloud.memcache.v1beta2.DeleteInstanceRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( getDeleteInstanceMethod(), responseObserver); } /** * * *
     * `ApplyParameters` restarts the set of specified nodes in order to update
     * them to the current set of parameters for the Memcached Instance.
     * 
*/ default void applyParameters( com.google.cloud.memcache.v1beta2.ApplyParametersRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( getApplyParametersMethod(), responseObserver); } /** * * *
     * Updates software on the selected nodes of the Instance.
     * 
*/ default void applySoftwareUpdate( com.google.cloud.memcache.v1beta2.ApplySoftwareUpdateRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( getApplySoftwareUpdateMethod(), responseObserver); } /** * * *
     * Performs the apply phase of the RescheduleMaintenance verb.
     * 
*/ default void rescheduleMaintenance( com.google.cloud.memcache.v1beta2.RescheduleMaintenanceRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( getRescheduleMaintenanceMethod(), responseObserver); } } /** * Base class for the server implementation of the service CloudMemcache. * *
   * Configures and manages Cloud Memorystore for Memcached instances.
   * The `memcache.googleapis.com` service implements the Google Cloud Memorystore
   * for Memcached API and defines the following resource model for managing
   * Memorystore Memcached (also called Memcached below) instances:
   * * The service works with a collection of cloud projects, named: `/projects/*`
   * * Each project has a collection of available locations, named: `/locations/*`
   * * Each location has a collection of Memcached instances, named:
   * `/instances/*`
   * * As such, Memcached instances are resources of the form:
   *   `/projects/{project_id}/locations/{location_id}/instances/{instance_id}`
   * Note that location_id must be a GCP `region`; for example:
   * * `projects/my-memcached-project/locations/us-central1/instances/my-memcached`
   * 
*/ public abstract static class CloudMemcacheImplBase implements io.grpc.BindableService, AsyncService { @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { return CloudMemcacheGrpc.bindService(this); } } /** * A stub to allow clients to do asynchronous rpc calls to service CloudMemcache. * *
   * Configures and manages Cloud Memorystore for Memcached instances.
   * The `memcache.googleapis.com` service implements the Google Cloud Memorystore
   * for Memcached API and defines the following resource model for managing
   * Memorystore Memcached (also called Memcached below) instances:
   * * The service works with a collection of cloud projects, named: `/projects/*`
   * * Each project has a collection of available locations, named: `/locations/*`
   * * Each location has a collection of Memcached instances, named:
   * `/instances/*`
   * * As such, Memcached instances are resources of the form:
   *   `/projects/{project_id}/locations/{location_id}/instances/{instance_id}`
   * Note that location_id must be a GCP `region`; for example:
   * * `projects/my-memcached-project/locations/us-central1/instances/my-memcached`
   * 
*/ public static final class CloudMemcacheStub extends io.grpc.stub.AbstractAsyncStub { private CloudMemcacheStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @java.lang.Override protected CloudMemcacheStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new CloudMemcacheStub(channel, callOptions); } /** * * *
     * Lists Instances in a given location.
     * 
*/ public void listInstances( com.google.cloud.memcache.v1beta2.ListInstancesRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getListInstancesMethod(), getCallOptions()), request, responseObserver); } /** * * *
     * Gets details of a single Instance.
     * 
*/ public void getInstance( com.google.cloud.memcache.v1beta2.GetInstanceRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getGetInstanceMethod(), getCallOptions()), request, responseObserver); } /** * * *
     * Creates a new Instance in a given location.
     * 
*/ public void createInstance( com.google.cloud.memcache.v1beta2.CreateInstanceRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getCreateInstanceMethod(), getCallOptions()), request, responseObserver); } /** * * *
     * Updates an existing Instance in a given project and location.
     * 
*/ public void updateInstance( com.google.cloud.memcache.v1beta2.UpdateInstanceRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getUpdateInstanceMethod(), getCallOptions()), request, responseObserver); } /** * * *
     * Updates the defined Memcached parameters for an existing instance.
     * This method only stages the parameters, it must be followed by
     * `ApplyParameters` to apply the parameters to nodes of the Memcached
     * instance.
     * 
*/ public void updateParameters( com.google.cloud.memcache.v1beta2.UpdateParametersRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getUpdateParametersMethod(), getCallOptions()), request, responseObserver); } /** * * *
     * Deletes a single Instance.
     * 
*/ public void deleteInstance( com.google.cloud.memcache.v1beta2.DeleteInstanceRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getDeleteInstanceMethod(), getCallOptions()), request, responseObserver); } /** * * *
     * `ApplyParameters` restarts the set of specified nodes in order to update
     * them to the current set of parameters for the Memcached Instance.
     * 
*/ public void applyParameters( com.google.cloud.memcache.v1beta2.ApplyParametersRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getApplyParametersMethod(), getCallOptions()), request, responseObserver); } /** * * *
     * Updates software on the selected nodes of the Instance.
     * 
*/ public void applySoftwareUpdate( com.google.cloud.memcache.v1beta2.ApplySoftwareUpdateRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getApplySoftwareUpdateMethod(), getCallOptions()), request, responseObserver); } /** * * *
     * Performs the apply phase of the RescheduleMaintenance verb.
     * 
*/ public void rescheduleMaintenance( com.google.cloud.memcache.v1beta2.RescheduleMaintenanceRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getRescheduleMaintenanceMethod(), getCallOptions()), request, responseObserver); } } /** * A stub to allow clients to do synchronous rpc calls to service CloudMemcache. * *
   * Configures and manages Cloud Memorystore for Memcached instances.
   * The `memcache.googleapis.com` service implements the Google Cloud Memorystore
   * for Memcached API and defines the following resource model for managing
   * Memorystore Memcached (also called Memcached below) instances:
   * * The service works with a collection of cloud projects, named: `/projects/*`
   * * Each project has a collection of available locations, named: `/locations/*`
   * * Each location has a collection of Memcached instances, named:
   * `/instances/*`
   * * As such, Memcached instances are resources of the form:
   *   `/projects/{project_id}/locations/{location_id}/instances/{instance_id}`
   * Note that location_id must be a GCP `region`; for example:
   * * `projects/my-memcached-project/locations/us-central1/instances/my-memcached`
   * 
*/ public static final class CloudMemcacheBlockingStub extends io.grpc.stub.AbstractBlockingStub { private CloudMemcacheBlockingStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @java.lang.Override protected CloudMemcacheBlockingStub build( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new CloudMemcacheBlockingStub(channel, callOptions); } /** * * *
     * Lists Instances in a given location.
     * 
*/ public com.google.cloud.memcache.v1beta2.ListInstancesResponse listInstances( com.google.cloud.memcache.v1beta2.ListInstancesRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getListInstancesMethod(), getCallOptions(), request); } /** * * *
     * Gets details of a single Instance.
     * 
*/ public com.google.cloud.memcache.v1beta2.Instance getInstance( com.google.cloud.memcache.v1beta2.GetInstanceRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getGetInstanceMethod(), getCallOptions(), request); } /** * * *
     * Creates a new Instance in a given location.
     * 
*/ public com.google.longrunning.Operation createInstance( com.google.cloud.memcache.v1beta2.CreateInstanceRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getCreateInstanceMethod(), getCallOptions(), request); } /** * * *
     * Updates an existing Instance in a given project and location.
     * 
*/ public com.google.longrunning.Operation updateInstance( com.google.cloud.memcache.v1beta2.UpdateInstanceRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getUpdateInstanceMethod(), getCallOptions(), request); } /** * * *
     * Updates the defined Memcached parameters for an existing instance.
     * This method only stages the parameters, it must be followed by
     * `ApplyParameters` to apply the parameters to nodes of the Memcached
     * instance.
     * 
*/ public com.google.longrunning.Operation updateParameters( com.google.cloud.memcache.v1beta2.UpdateParametersRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getUpdateParametersMethod(), getCallOptions(), request); } /** * * *
     * Deletes a single Instance.
     * 
*/ public com.google.longrunning.Operation deleteInstance( com.google.cloud.memcache.v1beta2.DeleteInstanceRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getDeleteInstanceMethod(), getCallOptions(), request); } /** * * *
     * `ApplyParameters` restarts the set of specified nodes in order to update
     * them to the current set of parameters for the Memcached Instance.
     * 
*/ public com.google.longrunning.Operation applyParameters( com.google.cloud.memcache.v1beta2.ApplyParametersRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getApplyParametersMethod(), getCallOptions(), request); } /** * * *
     * Updates software on the selected nodes of the Instance.
     * 
*/ public com.google.longrunning.Operation applySoftwareUpdate( com.google.cloud.memcache.v1beta2.ApplySoftwareUpdateRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getApplySoftwareUpdateMethod(), getCallOptions(), request); } /** * * *
     * Performs the apply phase of the RescheduleMaintenance verb.
     * 
*/ public com.google.longrunning.Operation rescheduleMaintenance( com.google.cloud.memcache.v1beta2.RescheduleMaintenanceRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getRescheduleMaintenanceMethod(), getCallOptions(), request); } } /** * A stub to allow clients to do ListenableFuture-style rpc calls to service CloudMemcache. * *
   * Configures and manages Cloud Memorystore for Memcached instances.
   * The `memcache.googleapis.com` service implements the Google Cloud Memorystore
   * for Memcached API and defines the following resource model for managing
   * Memorystore Memcached (also called Memcached below) instances:
   * * The service works with a collection of cloud projects, named: `/projects/*`
   * * Each project has a collection of available locations, named: `/locations/*`
   * * Each location has a collection of Memcached instances, named:
   * `/instances/*`
   * * As such, Memcached instances are resources of the form:
   *   `/projects/{project_id}/locations/{location_id}/instances/{instance_id}`
   * Note that location_id must be a GCP `region`; for example:
   * * `projects/my-memcached-project/locations/us-central1/instances/my-memcached`
   * 
*/ public static final class CloudMemcacheFutureStub extends io.grpc.stub.AbstractFutureStub { private CloudMemcacheFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @java.lang.Override protected CloudMemcacheFutureStub build( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new CloudMemcacheFutureStub(channel, callOptions); } /** * * *
     * Lists Instances in a given location.
     * 
*/ public com.google.common.util.concurrent.ListenableFuture< com.google.cloud.memcache.v1beta2.ListInstancesResponse> listInstances(com.google.cloud.memcache.v1beta2.ListInstancesRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getListInstancesMethod(), getCallOptions()), request); } /** * * *
     * Gets details of a single Instance.
     * 
*/ public com.google.common.util.concurrent.ListenableFuture< com.google.cloud.memcache.v1beta2.Instance> getInstance(com.google.cloud.memcache.v1beta2.GetInstanceRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getGetInstanceMethod(), getCallOptions()), request); } /** * * *
     * Creates a new Instance in a given location.
     * 
*/ public com.google.common.util.concurrent.ListenableFuture createInstance(com.google.cloud.memcache.v1beta2.CreateInstanceRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getCreateInstanceMethod(), getCallOptions()), request); } /** * * *
     * Updates an existing Instance in a given project and location.
     * 
*/ public com.google.common.util.concurrent.ListenableFuture updateInstance(com.google.cloud.memcache.v1beta2.UpdateInstanceRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getUpdateInstanceMethod(), getCallOptions()), request); } /** * * *
     * Updates the defined Memcached parameters for an existing instance.
     * This method only stages the parameters, it must be followed by
     * `ApplyParameters` to apply the parameters to nodes of the Memcached
     * instance.
     * 
*/ public com.google.common.util.concurrent.ListenableFuture updateParameters(com.google.cloud.memcache.v1beta2.UpdateParametersRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getUpdateParametersMethod(), getCallOptions()), request); } /** * * *
     * Deletes a single Instance.
     * 
*/ public com.google.common.util.concurrent.ListenableFuture deleteInstance(com.google.cloud.memcache.v1beta2.DeleteInstanceRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getDeleteInstanceMethod(), getCallOptions()), request); } /** * * *
     * `ApplyParameters` restarts the set of specified nodes in order to update
     * them to the current set of parameters for the Memcached Instance.
     * 
*/ public com.google.common.util.concurrent.ListenableFuture applyParameters(com.google.cloud.memcache.v1beta2.ApplyParametersRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getApplyParametersMethod(), getCallOptions()), request); } /** * * *
     * Updates software on the selected nodes of the Instance.
     * 
*/ public com.google.common.util.concurrent.ListenableFuture applySoftwareUpdate(com.google.cloud.memcache.v1beta2.ApplySoftwareUpdateRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getApplySoftwareUpdateMethod(), getCallOptions()), request); } /** * * *
     * Performs the apply phase of the RescheduleMaintenance verb.
     * 
*/ public com.google.common.util.concurrent.ListenableFuture rescheduleMaintenance( com.google.cloud.memcache.v1beta2.RescheduleMaintenanceRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getRescheduleMaintenanceMethod(), getCallOptions()), request); } } private static final int METHODID_LIST_INSTANCES = 0; private static final int METHODID_GET_INSTANCE = 1; private static final int METHODID_CREATE_INSTANCE = 2; private static final int METHODID_UPDATE_INSTANCE = 3; private static final int METHODID_UPDATE_PARAMETERS = 4; private static final int METHODID_DELETE_INSTANCE = 5; private static final int METHODID_APPLY_PARAMETERS = 6; private static final int METHODID_APPLY_SOFTWARE_UPDATE = 7; private static final int METHODID_RESCHEDULE_MAINTENANCE = 8; 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_INSTANCES: serviceImpl.listInstances( (com.google.cloud.memcache.v1beta2.ListInstancesRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_GET_INSTANCE: serviceImpl.getInstance( (com.google.cloud.memcache.v1beta2.GetInstanceRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_CREATE_INSTANCE: serviceImpl.createInstance( (com.google.cloud.memcache.v1beta2.CreateInstanceRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_UPDATE_INSTANCE: serviceImpl.updateInstance( (com.google.cloud.memcache.v1beta2.UpdateInstanceRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_UPDATE_PARAMETERS: serviceImpl.updateParameters( (com.google.cloud.memcache.v1beta2.UpdateParametersRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_DELETE_INSTANCE: serviceImpl.deleteInstance( (com.google.cloud.memcache.v1beta2.DeleteInstanceRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_APPLY_PARAMETERS: serviceImpl.applyParameters( (com.google.cloud.memcache.v1beta2.ApplyParametersRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_APPLY_SOFTWARE_UPDATE: serviceImpl.applySoftwareUpdate( (com.google.cloud.memcache.v1beta2.ApplySoftwareUpdateRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_RESCHEDULE_MAINTENANCE: serviceImpl.rescheduleMaintenance( (com.google.cloud.memcache.v1beta2.RescheduleMaintenanceRequest) 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( getListInstancesMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.memcache.v1beta2.ListInstancesRequest, com.google.cloud.memcache.v1beta2.ListInstancesResponse>( service, METHODID_LIST_INSTANCES))) .addMethod( getGetInstanceMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.memcache.v1beta2.GetInstanceRequest, com.google.cloud.memcache.v1beta2.Instance>(service, METHODID_GET_INSTANCE))) .addMethod( getCreateInstanceMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.memcache.v1beta2.CreateInstanceRequest, com.google.longrunning.Operation>(service, METHODID_CREATE_INSTANCE))) .addMethod( getUpdateInstanceMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.memcache.v1beta2.UpdateInstanceRequest, com.google.longrunning.Operation>(service, METHODID_UPDATE_INSTANCE))) .addMethod( getUpdateParametersMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.memcache.v1beta2.UpdateParametersRequest, com.google.longrunning.Operation>(service, METHODID_UPDATE_PARAMETERS))) .addMethod( getDeleteInstanceMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.memcache.v1beta2.DeleteInstanceRequest, com.google.longrunning.Operation>(service, METHODID_DELETE_INSTANCE))) .addMethod( getApplyParametersMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.memcache.v1beta2.ApplyParametersRequest, com.google.longrunning.Operation>(service, METHODID_APPLY_PARAMETERS))) .addMethod( getApplySoftwareUpdateMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.memcache.v1beta2.ApplySoftwareUpdateRequest, com.google.longrunning.Operation>(service, METHODID_APPLY_SOFTWARE_UPDATE))) .addMethod( getRescheduleMaintenanceMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.memcache.v1beta2.RescheduleMaintenanceRequest, com.google.longrunning.Operation>(service, METHODID_RESCHEDULE_MAINTENANCE))) .build(); } private abstract static class CloudMemcacheBaseDescriptorSupplier implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { CloudMemcacheBaseDescriptorSupplier() {} @java.lang.Override public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { return com.google.cloud.memcache.v1beta2.CloudMemcacheProto.getDescriptor(); } @java.lang.Override public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { return getFileDescriptor().findServiceByName("CloudMemcache"); } } private static final class CloudMemcacheFileDescriptorSupplier extends CloudMemcacheBaseDescriptorSupplier { CloudMemcacheFileDescriptorSupplier() {} } private static final class CloudMemcacheMethodDescriptorSupplier extends CloudMemcacheBaseDescriptorSupplier implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { private final java.lang.String methodName; CloudMemcacheMethodDescriptorSupplier(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 (CloudMemcacheGrpc.class) { result = serviceDescriptor; if (result == null) { serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) .setSchemaDescriptor(new CloudMemcacheFileDescriptorSupplier()) .addMethod(getListInstancesMethod()) .addMethod(getGetInstanceMethod()) .addMethod(getCreateInstanceMethod()) .addMethod(getUpdateInstanceMethod()) .addMethod(getUpdateParametersMethod()) .addMethod(getDeleteInstanceMethod()) .addMethod(getApplyParametersMethod()) .addMethod(getApplySoftwareUpdateMethod()) .addMethod(getRescheduleMaintenanceMethod()) .build(); } } } return result; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy