com.google.cloud.retail.v2beta.GenerativeQuestionServiceGrpc Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of grpc-google-cloud-retail-v2beta Show documentation
Show all versions of grpc-google-cloud-retail-v2beta Show documentation
GRPC library for google-cloud-retail
/*
* 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.retail.v2beta;
import static io.grpc.MethodDescriptor.generateFullMethodName;
/**
*
*
*
* Service for managing LLM generated questions in search serving.
*
*/
@javax.annotation.Generated(
value = "by gRPC proto compiler",
comments = "Source: google/cloud/retail/v2beta/generative_question_service.proto")
@io.grpc.stub.annotations.GrpcGenerated
public final class GenerativeQuestionServiceGrpc {
private GenerativeQuestionServiceGrpc() {}
public static final java.lang.String SERVICE_NAME =
"google.cloud.retail.v2beta.GenerativeQuestionService";
// Static method descriptors that strictly reflect the proto.
private static volatile io.grpc.MethodDescriptor<
com.google.cloud.retail.v2beta.UpdateGenerativeQuestionsFeatureConfigRequest,
com.google.cloud.retail.v2beta.GenerativeQuestionsFeatureConfig>
getUpdateGenerativeQuestionsFeatureConfigMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "UpdateGenerativeQuestionsFeatureConfig",
requestType =
com.google.cloud.retail.v2beta.UpdateGenerativeQuestionsFeatureConfigRequest.class,
responseType = com.google.cloud.retail.v2beta.GenerativeQuestionsFeatureConfig.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor<
com.google.cloud.retail.v2beta.UpdateGenerativeQuestionsFeatureConfigRequest,
com.google.cloud.retail.v2beta.GenerativeQuestionsFeatureConfig>
getUpdateGenerativeQuestionsFeatureConfigMethod() {
io.grpc.MethodDescriptor<
com.google.cloud.retail.v2beta.UpdateGenerativeQuestionsFeatureConfigRequest,
com.google.cloud.retail.v2beta.GenerativeQuestionsFeatureConfig>
getUpdateGenerativeQuestionsFeatureConfigMethod;
if ((getUpdateGenerativeQuestionsFeatureConfigMethod =
GenerativeQuestionServiceGrpc.getUpdateGenerativeQuestionsFeatureConfigMethod)
== null) {
synchronized (GenerativeQuestionServiceGrpc.class) {
if ((getUpdateGenerativeQuestionsFeatureConfigMethod =
GenerativeQuestionServiceGrpc.getUpdateGenerativeQuestionsFeatureConfigMethod)
== null) {
GenerativeQuestionServiceGrpc.getUpdateGenerativeQuestionsFeatureConfigMethod =
getUpdateGenerativeQuestionsFeatureConfigMethod =
io.grpc.MethodDescriptor
.
newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(
generateFullMethodName(
SERVICE_NAME, "UpdateGenerativeQuestionsFeatureConfig"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(
io.grpc.protobuf.ProtoUtils.marshaller(
com.google.cloud.retail.v2beta
.UpdateGenerativeQuestionsFeatureConfigRequest
.getDefaultInstance()))
.setResponseMarshaller(
io.grpc.protobuf.ProtoUtils.marshaller(
com.google.cloud.retail.v2beta.GenerativeQuestionsFeatureConfig
.getDefaultInstance()))
.setSchemaDescriptor(
new GenerativeQuestionServiceMethodDescriptorSupplier(
"UpdateGenerativeQuestionsFeatureConfig"))
.build();
}
}
}
return getUpdateGenerativeQuestionsFeatureConfigMethod;
}
private static volatile io.grpc.MethodDescriptor<
com.google.cloud.retail.v2beta.GetGenerativeQuestionsFeatureConfigRequest,
com.google.cloud.retail.v2beta.GenerativeQuestionsFeatureConfig>
getGetGenerativeQuestionsFeatureConfigMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "GetGenerativeQuestionsFeatureConfig",
requestType = com.google.cloud.retail.v2beta.GetGenerativeQuestionsFeatureConfigRequest.class,
responseType = com.google.cloud.retail.v2beta.GenerativeQuestionsFeatureConfig.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor<
com.google.cloud.retail.v2beta.GetGenerativeQuestionsFeatureConfigRequest,
com.google.cloud.retail.v2beta.GenerativeQuestionsFeatureConfig>
getGetGenerativeQuestionsFeatureConfigMethod() {
io.grpc.MethodDescriptor<
com.google.cloud.retail.v2beta.GetGenerativeQuestionsFeatureConfigRequest,
com.google.cloud.retail.v2beta.GenerativeQuestionsFeatureConfig>
getGetGenerativeQuestionsFeatureConfigMethod;
if ((getGetGenerativeQuestionsFeatureConfigMethod =
GenerativeQuestionServiceGrpc.getGetGenerativeQuestionsFeatureConfigMethod)
== null) {
synchronized (GenerativeQuestionServiceGrpc.class) {
if ((getGetGenerativeQuestionsFeatureConfigMethod =
GenerativeQuestionServiceGrpc.getGetGenerativeQuestionsFeatureConfigMethod)
== null) {
GenerativeQuestionServiceGrpc.getGetGenerativeQuestionsFeatureConfigMethod =
getGetGenerativeQuestionsFeatureConfigMethod =
io.grpc.MethodDescriptor
.
newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(
generateFullMethodName(
SERVICE_NAME, "GetGenerativeQuestionsFeatureConfig"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(
io.grpc.protobuf.ProtoUtils.marshaller(
com.google.cloud.retail.v2beta
.GetGenerativeQuestionsFeatureConfigRequest.getDefaultInstance()))
.setResponseMarshaller(
io.grpc.protobuf.ProtoUtils.marshaller(
com.google.cloud.retail.v2beta.GenerativeQuestionsFeatureConfig
.getDefaultInstance()))
.setSchemaDescriptor(
new GenerativeQuestionServiceMethodDescriptorSupplier(
"GetGenerativeQuestionsFeatureConfig"))
.build();
}
}
}
return getGetGenerativeQuestionsFeatureConfigMethod;
}
private static volatile io.grpc.MethodDescriptor<
com.google.cloud.retail.v2beta.ListGenerativeQuestionConfigsRequest,
com.google.cloud.retail.v2beta.ListGenerativeQuestionConfigsResponse>
getListGenerativeQuestionConfigsMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "ListGenerativeQuestionConfigs",
requestType = com.google.cloud.retail.v2beta.ListGenerativeQuestionConfigsRequest.class,
responseType = com.google.cloud.retail.v2beta.ListGenerativeQuestionConfigsResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor<
com.google.cloud.retail.v2beta.ListGenerativeQuestionConfigsRequest,
com.google.cloud.retail.v2beta.ListGenerativeQuestionConfigsResponse>
getListGenerativeQuestionConfigsMethod() {
io.grpc.MethodDescriptor<
com.google.cloud.retail.v2beta.ListGenerativeQuestionConfigsRequest,
com.google.cloud.retail.v2beta.ListGenerativeQuestionConfigsResponse>
getListGenerativeQuestionConfigsMethod;
if ((getListGenerativeQuestionConfigsMethod =
GenerativeQuestionServiceGrpc.getListGenerativeQuestionConfigsMethod)
== null) {
synchronized (GenerativeQuestionServiceGrpc.class) {
if ((getListGenerativeQuestionConfigsMethod =
GenerativeQuestionServiceGrpc.getListGenerativeQuestionConfigsMethod)
== null) {
GenerativeQuestionServiceGrpc.getListGenerativeQuestionConfigsMethod =
getListGenerativeQuestionConfigsMethod =
io.grpc.MethodDescriptor
.
newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(
generateFullMethodName(SERVICE_NAME, "ListGenerativeQuestionConfigs"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(
io.grpc.protobuf.ProtoUtils.marshaller(
com.google.cloud.retail.v2beta.ListGenerativeQuestionConfigsRequest
.getDefaultInstance()))
.setResponseMarshaller(
io.grpc.protobuf.ProtoUtils.marshaller(
com.google.cloud.retail.v2beta.ListGenerativeQuestionConfigsResponse
.getDefaultInstance()))
.setSchemaDescriptor(
new GenerativeQuestionServiceMethodDescriptorSupplier(
"ListGenerativeQuestionConfigs"))
.build();
}
}
}
return getListGenerativeQuestionConfigsMethod;
}
private static volatile io.grpc.MethodDescriptor<
com.google.cloud.retail.v2beta.UpdateGenerativeQuestionConfigRequest,
com.google.cloud.retail.v2beta.GenerativeQuestionConfig>
getUpdateGenerativeQuestionConfigMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "UpdateGenerativeQuestionConfig",
requestType = com.google.cloud.retail.v2beta.UpdateGenerativeQuestionConfigRequest.class,
responseType = com.google.cloud.retail.v2beta.GenerativeQuestionConfig.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor<
com.google.cloud.retail.v2beta.UpdateGenerativeQuestionConfigRequest,
com.google.cloud.retail.v2beta.GenerativeQuestionConfig>
getUpdateGenerativeQuestionConfigMethod() {
io.grpc.MethodDescriptor<
com.google.cloud.retail.v2beta.UpdateGenerativeQuestionConfigRequest,
com.google.cloud.retail.v2beta.GenerativeQuestionConfig>
getUpdateGenerativeQuestionConfigMethod;
if ((getUpdateGenerativeQuestionConfigMethod =
GenerativeQuestionServiceGrpc.getUpdateGenerativeQuestionConfigMethod)
== null) {
synchronized (GenerativeQuestionServiceGrpc.class) {
if ((getUpdateGenerativeQuestionConfigMethod =
GenerativeQuestionServiceGrpc.getUpdateGenerativeQuestionConfigMethod)
== null) {
GenerativeQuestionServiceGrpc.getUpdateGenerativeQuestionConfigMethod =
getUpdateGenerativeQuestionConfigMethod =
io.grpc.MethodDescriptor
.
newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(
generateFullMethodName(SERVICE_NAME, "UpdateGenerativeQuestionConfig"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(
io.grpc.protobuf.ProtoUtils.marshaller(
com.google.cloud.retail.v2beta.UpdateGenerativeQuestionConfigRequest
.getDefaultInstance()))
.setResponseMarshaller(
io.grpc.protobuf.ProtoUtils.marshaller(
com.google.cloud.retail.v2beta.GenerativeQuestionConfig
.getDefaultInstance()))
.setSchemaDescriptor(
new GenerativeQuestionServiceMethodDescriptorSupplier(
"UpdateGenerativeQuestionConfig"))
.build();
}
}
}
return getUpdateGenerativeQuestionConfigMethod;
}
private static volatile io.grpc.MethodDescriptor<
com.google.cloud.retail.v2beta.BatchUpdateGenerativeQuestionConfigsRequest,
com.google.cloud.retail.v2beta.BatchUpdateGenerativeQuestionConfigsResponse>
getBatchUpdateGenerativeQuestionConfigsMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "BatchUpdateGenerativeQuestionConfigs",
requestType =
com.google.cloud.retail.v2beta.BatchUpdateGenerativeQuestionConfigsRequest.class,
responseType =
com.google.cloud.retail.v2beta.BatchUpdateGenerativeQuestionConfigsResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor<
com.google.cloud.retail.v2beta.BatchUpdateGenerativeQuestionConfigsRequest,
com.google.cloud.retail.v2beta.BatchUpdateGenerativeQuestionConfigsResponse>
getBatchUpdateGenerativeQuestionConfigsMethod() {
io.grpc.MethodDescriptor<
com.google.cloud.retail.v2beta.BatchUpdateGenerativeQuestionConfigsRequest,
com.google.cloud.retail.v2beta.BatchUpdateGenerativeQuestionConfigsResponse>
getBatchUpdateGenerativeQuestionConfigsMethod;
if ((getBatchUpdateGenerativeQuestionConfigsMethod =
GenerativeQuestionServiceGrpc.getBatchUpdateGenerativeQuestionConfigsMethod)
== null) {
synchronized (GenerativeQuestionServiceGrpc.class) {
if ((getBatchUpdateGenerativeQuestionConfigsMethod =
GenerativeQuestionServiceGrpc.getBatchUpdateGenerativeQuestionConfigsMethod)
== null) {
GenerativeQuestionServiceGrpc.getBatchUpdateGenerativeQuestionConfigsMethod =
getBatchUpdateGenerativeQuestionConfigsMethod =
io.grpc.MethodDescriptor
.
newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(
generateFullMethodName(
SERVICE_NAME, "BatchUpdateGenerativeQuestionConfigs"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(
io.grpc.protobuf.ProtoUtils.marshaller(
com.google.cloud.retail.v2beta
.BatchUpdateGenerativeQuestionConfigsRequest
.getDefaultInstance()))
.setResponseMarshaller(
io.grpc.protobuf.ProtoUtils.marshaller(
com.google.cloud.retail.v2beta
.BatchUpdateGenerativeQuestionConfigsResponse
.getDefaultInstance()))
.setSchemaDescriptor(
new GenerativeQuestionServiceMethodDescriptorSupplier(
"BatchUpdateGenerativeQuestionConfigs"))
.build();
}
}
}
return getBatchUpdateGenerativeQuestionConfigsMethod;
}
/** Creates a new async stub that supports all call types for the service */
public static GenerativeQuestionServiceStub newStub(io.grpc.Channel channel) {
io.grpc.stub.AbstractStub.StubFactory factory =
new io.grpc.stub.AbstractStub.StubFactory() {
@java.lang.Override
public GenerativeQuestionServiceStub newStub(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new GenerativeQuestionServiceStub(channel, callOptions);
}
};
return GenerativeQuestionServiceStub.newStub(factory, channel);
}
/**
* Creates a new blocking-style stub that supports unary and streaming output calls on the service
*/
public static GenerativeQuestionServiceBlockingStub newBlockingStub(io.grpc.Channel channel) {
io.grpc.stub.AbstractStub.StubFactory factory =
new io.grpc.stub.AbstractStub.StubFactory() {
@java.lang.Override
public GenerativeQuestionServiceBlockingStub newStub(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new GenerativeQuestionServiceBlockingStub(channel, callOptions);
}
};
return GenerativeQuestionServiceBlockingStub.newStub(factory, channel);
}
/** Creates a new ListenableFuture-style stub that supports unary calls on the service */
public static GenerativeQuestionServiceFutureStub newFutureStub(io.grpc.Channel channel) {
io.grpc.stub.AbstractStub.StubFactory factory =
new io.grpc.stub.AbstractStub.StubFactory() {
@java.lang.Override
public GenerativeQuestionServiceFutureStub newStub(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new GenerativeQuestionServiceFutureStub(channel, callOptions);
}
};
return GenerativeQuestionServiceFutureStub.newStub(factory, channel);
}
/**
*
*
*
* Service for managing LLM generated questions in search serving.
*
*/
public interface AsyncService {
/**
*
*
*
* Manages overal generative question feature state -- enables toggling
* feature on and off.
*
*/
default void updateGenerativeQuestionsFeatureConfig(
com.google.cloud.retail.v2beta.UpdateGenerativeQuestionsFeatureConfigRequest request,
io.grpc.stub.StreamObserver
responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(
getUpdateGenerativeQuestionsFeatureConfigMethod(), responseObserver);
}
/**
*
*
*
* Manages overal generative question feature state -- enables toggling
* feature on and off.
*
*/
default void getGenerativeQuestionsFeatureConfig(
com.google.cloud.retail.v2beta.GetGenerativeQuestionsFeatureConfigRequest request,
io.grpc.stub.StreamObserver
responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(
getGetGenerativeQuestionsFeatureConfigMethod(), responseObserver);
}
/**
*
*
*
* Returns all questions for a given catalog.
*
*/
default void listGenerativeQuestionConfigs(
com.google.cloud.retail.v2beta.ListGenerativeQuestionConfigsRequest request,
io.grpc.stub.StreamObserver<
com.google.cloud.retail.v2beta.ListGenerativeQuestionConfigsResponse>
responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(
getListGenerativeQuestionConfigsMethod(), responseObserver);
}
/**
*
*
*
* Allows management of individual questions.
*
*/
default void updateGenerativeQuestionConfig(
com.google.cloud.retail.v2beta.UpdateGenerativeQuestionConfigRequest request,
io.grpc.stub.StreamObserver
responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(
getUpdateGenerativeQuestionConfigMethod(), responseObserver);
}
/**
*
*
*
* Allows management of multiple questions.
*
*/
default void batchUpdateGenerativeQuestionConfigs(
com.google.cloud.retail.v2beta.BatchUpdateGenerativeQuestionConfigsRequest request,
io.grpc.stub.StreamObserver<
com.google.cloud.retail.v2beta.BatchUpdateGenerativeQuestionConfigsResponse>
responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(
getBatchUpdateGenerativeQuestionConfigsMethod(), responseObserver);
}
}
/**
* Base class for the server implementation of the service GenerativeQuestionService.
*
*
* Service for managing LLM generated questions in search serving.
*
*/
public abstract static class GenerativeQuestionServiceImplBase
implements io.grpc.BindableService, AsyncService {
@java.lang.Override
public final io.grpc.ServerServiceDefinition bindService() {
return GenerativeQuestionServiceGrpc.bindService(this);
}
}
/**
* A stub to allow clients to do asynchronous rpc calls to service GenerativeQuestionService.
*
*
* Service for managing LLM generated questions in search serving.
*
*/
public static final class GenerativeQuestionServiceStub
extends io.grpc.stub.AbstractAsyncStub {
private GenerativeQuestionServiceStub(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
super(channel, callOptions);
}
@java.lang.Override
protected GenerativeQuestionServiceStub build(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new GenerativeQuestionServiceStub(channel, callOptions);
}
/**
*
*
*
* Manages overal generative question feature state -- enables toggling
* feature on and off.
*
*/
public void updateGenerativeQuestionsFeatureConfig(
com.google.cloud.retail.v2beta.UpdateGenerativeQuestionsFeatureConfigRequest request,
io.grpc.stub.StreamObserver
responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getUpdateGenerativeQuestionsFeatureConfigMethod(), getCallOptions()),
request,
responseObserver);
}
/**
*
*
*
* Manages overal generative question feature state -- enables toggling
* feature on and off.
*
*/
public void getGenerativeQuestionsFeatureConfig(
com.google.cloud.retail.v2beta.GetGenerativeQuestionsFeatureConfigRequest request,
io.grpc.stub.StreamObserver
responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getGetGenerativeQuestionsFeatureConfigMethod(), getCallOptions()),
request,
responseObserver);
}
/**
*
*
*
* Returns all questions for a given catalog.
*
*/
public void listGenerativeQuestionConfigs(
com.google.cloud.retail.v2beta.ListGenerativeQuestionConfigsRequest request,
io.grpc.stub.StreamObserver<
com.google.cloud.retail.v2beta.ListGenerativeQuestionConfigsResponse>
responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getListGenerativeQuestionConfigsMethod(), getCallOptions()),
request,
responseObserver);
}
/**
*
*
*
* Allows management of individual questions.
*
*/
public void updateGenerativeQuestionConfig(
com.google.cloud.retail.v2beta.UpdateGenerativeQuestionConfigRequest request,
io.grpc.stub.StreamObserver
responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getUpdateGenerativeQuestionConfigMethod(), getCallOptions()),
request,
responseObserver);
}
/**
*
*
*
* Allows management of multiple questions.
*
*/
public void batchUpdateGenerativeQuestionConfigs(
com.google.cloud.retail.v2beta.BatchUpdateGenerativeQuestionConfigsRequest request,
io.grpc.stub.StreamObserver<
com.google.cloud.retail.v2beta.BatchUpdateGenerativeQuestionConfigsResponse>
responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getBatchUpdateGenerativeQuestionConfigsMethod(), getCallOptions()),
request,
responseObserver);
}
}
/**
* A stub to allow clients to do synchronous rpc calls to service GenerativeQuestionService.
*
*
* Service for managing LLM generated questions in search serving.
*
*/
public static final class GenerativeQuestionServiceBlockingStub
extends io.grpc.stub.AbstractBlockingStub {
private GenerativeQuestionServiceBlockingStub(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
super(channel, callOptions);
}
@java.lang.Override
protected GenerativeQuestionServiceBlockingStub build(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new GenerativeQuestionServiceBlockingStub(channel, callOptions);
}
/**
*
*
*
* Manages overal generative question feature state -- enables toggling
* feature on and off.
*
*/
public com.google.cloud.retail.v2beta.GenerativeQuestionsFeatureConfig
updateGenerativeQuestionsFeatureConfig(
com.google.cloud.retail.v2beta.UpdateGenerativeQuestionsFeatureConfigRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(),
getUpdateGenerativeQuestionsFeatureConfigMethod(),
getCallOptions(),
request);
}
/**
*
*
*
* Manages overal generative question feature state -- enables toggling
* feature on and off.
*
*/
public com.google.cloud.retail.v2beta.GenerativeQuestionsFeatureConfig
getGenerativeQuestionsFeatureConfig(
com.google.cloud.retail.v2beta.GetGenerativeQuestionsFeatureConfigRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getGetGenerativeQuestionsFeatureConfigMethod(), getCallOptions(), request);
}
/**
*
*
*
* Returns all questions for a given catalog.
*
*/
public com.google.cloud.retail.v2beta.ListGenerativeQuestionConfigsResponse
listGenerativeQuestionConfigs(
com.google.cloud.retail.v2beta.ListGenerativeQuestionConfigsRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getListGenerativeQuestionConfigsMethod(), getCallOptions(), request);
}
/**
*
*
*
* Allows management of individual questions.
*
*/
public com.google.cloud.retail.v2beta.GenerativeQuestionConfig updateGenerativeQuestionConfig(
com.google.cloud.retail.v2beta.UpdateGenerativeQuestionConfigRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getUpdateGenerativeQuestionConfigMethod(), getCallOptions(), request);
}
/**
*
*
*
* Allows management of multiple questions.
*
*/
public com.google.cloud.retail.v2beta.BatchUpdateGenerativeQuestionConfigsResponse
batchUpdateGenerativeQuestionConfigs(
com.google.cloud.retail.v2beta.BatchUpdateGenerativeQuestionConfigsRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getBatchUpdateGenerativeQuestionConfigsMethod(), getCallOptions(), request);
}
}
/**
* A stub to allow clients to do ListenableFuture-style rpc calls to service
* GenerativeQuestionService.
*
*
* Service for managing LLM generated questions in search serving.
*
*/
public static final class GenerativeQuestionServiceFutureStub
extends io.grpc.stub.AbstractFutureStub {
private GenerativeQuestionServiceFutureStub(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
super(channel, callOptions);
}
@java.lang.Override
protected GenerativeQuestionServiceFutureStub build(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new GenerativeQuestionServiceFutureStub(channel, callOptions);
}
/**
*
*
*
* Manages overal generative question feature state -- enables toggling
* feature on and off.
*
*/
public com.google.common.util.concurrent.ListenableFuture<
com.google.cloud.retail.v2beta.GenerativeQuestionsFeatureConfig>
updateGenerativeQuestionsFeatureConfig(
com.google.cloud.retail.v2beta.UpdateGenerativeQuestionsFeatureConfigRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getUpdateGenerativeQuestionsFeatureConfigMethod(), getCallOptions()),
request);
}
/**
*
*
*
* Manages overal generative question feature state -- enables toggling
* feature on and off.
*
*/
public com.google.common.util.concurrent.ListenableFuture<
com.google.cloud.retail.v2beta.GenerativeQuestionsFeatureConfig>
getGenerativeQuestionsFeatureConfig(
com.google.cloud.retail.v2beta.GetGenerativeQuestionsFeatureConfigRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getGetGenerativeQuestionsFeatureConfigMethod(), getCallOptions()),
request);
}
/**
*
*
*
* Returns all questions for a given catalog.
*
*/
public com.google.common.util.concurrent.ListenableFuture<
com.google.cloud.retail.v2beta.ListGenerativeQuestionConfigsResponse>
listGenerativeQuestionConfigs(
com.google.cloud.retail.v2beta.ListGenerativeQuestionConfigsRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getListGenerativeQuestionConfigsMethod(), getCallOptions()),
request);
}
/**
*
*
*
* Allows management of individual questions.
*
*/
public com.google.common.util.concurrent.ListenableFuture<
com.google.cloud.retail.v2beta.GenerativeQuestionConfig>
updateGenerativeQuestionConfig(
com.google.cloud.retail.v2beta.UpdateGenerativeQuestionConfigRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getUpdateGenerativeQuestionConfigMethod(), getCallOptions()),
request);
}
/**
*
*
*
* Allows management of multiple questions.
*
*/
public com.google.common.util.concurrent.ListenableFuture<
com.google.cloud.retail.v2beta.BatchUpdateGenerativeQuestionConfigsResponse>
batchUpdateGenerativeQuestionConfigs(
com.google.cloud.retail.v2beta.BatchUpdateGenerativeQuestionConfigsRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getBatchUpdateGenerativeQuestionConfigsMethod(), getCallOptions()),
request);
}
}
private static final int METHODID_UPDATE_GENERATIVE_QUESTIONS_FEATURE_CONFIG = 0;
private static final int METHODID_GET_GENERATIVE_QUESTIONS_FEATURE_CONFIG = 1;
private static final int METHODID_LIST_GENERATIVE_QUESTION_CONFIGS = 2;
private static final int METHODID_UPDATE_GENERATIVE_QUESTION_CONFIG = 3;
private static final int METHODID_BATCH_UPDATE_GENERATIVE_QUESTION_CONFIGS = 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_UPDATE_GENERATIVE_QUESTIONS_FEATURE_CONFIG:
serviceImpl.updateGenerativeQuestionsFeatureConfig(
(com.google.cloud.retail.v2beta.UpdateGenerativeQuestionsFeatureConfigRequest)
request,
(io.grpc.stub.StreamObserver<
com.google.cloud.retail.v2beta.GenerativeQuestionsFeatureConfig>)
responseObserver);
break;
case METHODID_GET_GENERATIVE_QUESTIONS_FEATURE_CONFIG:
serviceImpl.getGenerativeQuestionsFeatureConfig(
(com.google.cloud.retail.v2beta.GetGenerativeQuestionsFeatureConfigRequest) request,
(io.grpc.stub.StreamObserver<
com.google.cloud.retail.v2beta.GenerativeQuestionsFeatureConfig>)
responseObserver);
break;
case METHODID_LIST_GENERATIVE_QUESTION_CONFIGS:
serviceImpl.listGenerativeQuestionConfigs(
(com.google.cloud.retail.v2beta.ListGenerativeQuestionConfigsRequest) request,
(io.grpc.stub.StreamObserver<
com.google.cloud.retail.v2beta.ListGenerativeQuestionConfigsResponse>)
responseObserver);
break;
case METHODID_UPDATE_GENERATIVE_QUESTION_CONFIG:
serviceImpl.updateGenerativeQuestionConfig(
(com.google.cloud.retail.v2beta.UpdateGenerativeQuestionConfigRequest) request,
(io.grpc.stub.StreamObserver)
responseObserver);
break;
case METHODID_BATCH_UPDATE_GENERATIVE_QUESTION_CONFIGS:
serviceImpl.batchUpdateGenerativeQuestionConfigs(
(com.google.cloud.retail.v2beta.BatchUpdateGenerativeQuestionConfigsRequest) request,
(io.grpc.stub.StreamObserver<
com.google.cloud.retail.v2beta.BatchUpdateGenerativeQuestionConfigsResponse>)
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(
getUpdateGenerativeQuestionsFeatureConfigMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
com.google.cloud.retail.v2beta.UpdateGenerativeQuestionsFeatureConfigRequest,
com.google.cloud.retail.v2beta.GenerativeQuestionsFeatureConfig>(
service, METHODID_UPDATE_GENERATIVE_QUESTIONS_FEATURE_CONFIG)))
.addMethod(
getGetGenerativeQuestionsFeatureConfigMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
com.google.cloud.retail.v2beta.GetGenerativeQuestionsFeatureConfigRequest,
com.google.cloud.retail.v2beta.GenerativeQuestionsFeatureConfig>(
service, METHODID_GET_GENERATIVE_QUESTIONS_FEATURE_CONFIG)))
.addMethod(
getListGenerativeQuestionConfigsMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
com.google.cloud.retail.v2beta.ListGenerativeQuestionConfigsRequest,
com.google.cloud.retail.v2beta.ListGenerativeQuestionConfigsResponse>(
service, METHODID_LIST_GENERATIVE_QUESTION_CONFIGS)))
.addMethod(
getUpdateGenerativeQuestionConfigMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
com.google.cloud.retail.v2beta.UpdateGenerativeQuestionConfigRequest,
com.google.cloud.retail.v2beta.GenerativeQuestionConfig>(
service, METHODID_UPDATE_GENERATIVE_QUESTION_CONFIG)))
.addMethod(
getBatchUpdateGenerativeQuestionConfigsMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
com.google.cloud.retail.v2beta.BatchUpdateGenerativeQuestionConfigsRequest,
com.google.cloud.retail.v2beta.BatchUpdateGenerativeQuestionConfigsResponse>(
service, METHODID_BATCH_UPDATE_GENERATIVE_QUESTION_CONFIGS)))
.build();
}
private abstract static class GenerativeQuestionServiceBaseDescriptorSupplier
implements io.grpc.protobuf.ProtoFileDescriptorSupplier,
io.grpc.protobuf.ProtoServiceDescriptorSupplier {
GenerativeQuestionServiceBaseDescriptorSupplier() {}
@java.lang.Override
public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() {
return com.google.cloud.retail.v2beta.GenerativeQuestionServiceProto.getDescriptor();
}
@java.lang.Override
public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() {
return getFileDescriptor().findServiceByName("GenerativeQuestionService");
}
}
private static final class GenerativeQuestionServiceFileDescriptorSupplier
extends GenerativeQuestionServiceBaseDescriptorSupplier {
GenerativeQuestionServiceFileDescriptorSupplier() {}
}
private static final class GenerativeQuestionServiceMethodDescriptorSupplier
extends GenerativeQuestionServiceBaseDescriptorSupplier
implements io.grpc.protobuf.ProtoMethodDescriptorSupplier {
private final java.lang.String methodName;
GenerativeQuestionServiceMethodDescriptorSupplier(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 (GenerativeQuestionServiceGrpc.class) {
result = serviceDescriptor;
if (result == null) {
serviceDescriptor =
result =
io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME)
.setSchemaDescriptor(new GenerativeQuestionServiceFileDescriptorSupplier())
.addMethod(getUpdateGenerativeQuestionsFeatureConfigMethod())
.addMethod(getGetGenerativeQuestionsFeatureConfigMethod())
.addMethod(getListGenerativeQuestionConfigsMethod())
.addMethod(getUpdateGenerativeQuestionConfigMethod())
.addMethod(getBatchUpdateGenerativeQuestionConfigsMethod())
.build();
}
}
}
return result;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy