Class CloudRedisGrpc (2.81.0)

publicfinalclass CloudRedisGrpc

Configures and manages Cloud Memorystore for Redis instances Google Cloud Memorystore for Redis v1 The redis.googleapis.com service implements the Google Cloud Memorystore for Redis API and defines the following resource model for managing Redis 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 Redis instances, named: /instances/*
  • As such, Redis instances are resources of the form: /projects/{project_id}/locations/{location_id}/instances/{instance_id} Note that location_id must be referring to a GCP region; for example:
  • projects/redpepper-1290/locations/us-central1/instances/my-redis

Inheritance

java.lang.Object > CloudRedisGrpc

Static Fields

SERVICE_NAME

publicstaticfinalStringSERVICE_NAME
Field Value
Type Description
String

Static Methods

bindService(CloudRedisGrpc.AsyncService service)

publicstaticfinalServerServiceDefinitionbindService(CloudRedisGrpc.AsyncServiceservice)
Parameter
Name Description
service CloudRedisGrpc.AsyncService
Returns
Type Description
io.grpc.ServerServiceDefinition

getCreateInstanceMethod()

publicstaticMethodDescriptor<CreateInstanceRequest,Operation>getCreateInstanceMethod()
Returns
Type Description
io.grpc.MethodDescriptor<CreateInstanceRequest,Operation>

getDeleteInstanceMethod()

publicstaticMethodDescriptor<DeleteInstanceRequest,Operation>getDeleteInstanceMethod()
Returns
Type Description
io.grpc.MethodDescriptor<DeleteInstanceRequest,Operation>

getExportInstanceMethod()

publicstaticMethodDescriptor<ExportInstanceRequest,Operation>getExportInstanceMethod()
Returns
Type Description
io.grpc.MethodDescriptor<ExportInstanceRequest,Operation>

getFailoverInstanceMethod()

publicstaticMethodDescriptor<FailoverInstanceRequest,Operation>getFailoverInstanceMethod()
Returns
Type Description
io.grpc.MethodDescriptor<FailoverInstanceRequest,Operation>

getGetInstanceAuthStringMethod()

publicstaticMethodDescriptor<GetInstanceAuthStringRequest,InstanceAuthString>getGetInstanceAuthStringMethod()
Returns
Type Description
io.grpc.MethodDescriptor<GetInstanceAuthStringRequest,InstanceAuthString>

getGetInstanceMethod()

publicstaticMethodDescriptor<GetInstanceRequest,Instance>getGetInstanceMethod()
Returns
Type Description
io.grpc.MethodDescriptor<GetInstanceRequest,Instance>

getImportInstanceMethod()

publicstaticMethodDescriptor<ImportInstanceRequest,Operation>getImportInstanceMethod()
Returns
Type Description
io.grpc.MethodDescriptor<ImportInstanceRequest,Operation>

getListInstancesMethod()

publicstaticMethodDescriptor<ListInstancesRequest,ListInstancesResponse>getListInstancesMethod()
Returns
Type Description
io.grpc.MethodDescriptor<ListInstancesRequest,ListInstancesResponse>

getRescheduleMaintenanceMethod()

publicstaticMethodDescriptor<RescheduleMaintenanceRequest,Operation>getRescheduleMaintenanceMethod()
Returns
Type Description
io.grpc.MethodDescriptor<RescheduleMaintenanceRequest,Operation>

getServiceDescriptor()

publicstaticServiceDescriptorgetServiceDescriptor()
Returns
Type Description
io.grpc.ServiceDescriptor

getUpdateInstanceMethod()

publicstaticMethodDescriptor<UpdateInstanceRequest,Operation>getUpdateInstanceMethod()
Returns
Type Description
io.grpc.MethodDescriptor<UpdateInstanceRequest,Operation>

getUpgradeInstanceMethod()

publicstaticMethodDescriptor<UpgradeInstanceRequest,Operation>getUpgradeInstanceMethod()
Returns
Type Description
io.grpc.MethodDescriptor<UpgradeInstanceRequest,Operation>

newBlockingStub(Channel channel)

publicstaticCloudRedisGrpc.CloudRedisBlockingStubnewBlockingStub(Channelchannel)

Creates a new blocking-style stub that supports unary and streaming output calls on the service

Parameter
Name Description
channel io.grpc.Channel
Returns
Type Description
CloudRedisGrpc.CloudRedisBlockingStub

newBlockingV2Stub(Channel channel)

publicstaticCloudRedisGrpc.CloudRedisBlockingV2StubnewBlockingV2Stub(Channelchannel)

Creates a new blocking-style stub that supports all types of calls on the service

Parameter
Name Description
channel io.grpc.Channel
Returns
Type Description
CloudRedisGrpc.CloudRedisBlockingV2Stub

newFutureStub(Channel channel)

publicstaticCloudRedisGrpc.CloudRedisFutureStubnewFutureStub(Channelchannel)

Creates a new ListenableFuture-style stub that supports unary calls on the service

Parameter
Name Description
channel io.grpc.Channel
Returns
Type Description
CloudRedisGrpc.CloudRedisFutureStub

newStub(Channel channel)

publicstaticCloudRedisGrpc.CloudRedisStubnewStub(Channelchannel)

Creates a new async stub that supports all call types for the service

Parameter
Name Description
channel io.grpc.Channel
Returns
Type Description
CloudRedisGrpc.CloudRedisStub

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025年10月30日 UTC.