Class ModelArmorGrpc.ModelArmorBlockingV2Stub
java.lang.Object
io.grpc.stub.AbstractStub<S>
io.grpc.stub.AbstractBlockingStub<ModelArmorGrpc.ModelArmorBlockingV2Stub>
com.google.cloud.modelarmor.v1beta.ModelArmorGrpc.ModelArmorBlockingV2Stub
- Enclosing class:
- ModelArmorGrpc
public static final class ModelArmorGrpc.ModelArmorBlockingV2Stub
extends io.grpc.stub.AbstractBlockingStub<ModelArmorGrpc.ModelArmorBlockingV2Stub>
A stub to allow clients to do synchronous rpc calls to service ModelArmor.
Service describing handlers for resources
-
Nested Class Summary
Nested classes/interfaces inherited from class io.grpc.stub.AbstractStub
io.grpc.stub.AbstractStub.StubFactory<T extends io.grpc.stub.AbstractStub<T>> -
Method Summary
Modifier and TypeMethodDescriptionprotected ModelArmorGrpc.ModelArmorBlockingV2Stubbuild(io.grpc.Channel channel, io.grpc.CallOptions callOptions) createTemplate(CreateTemplateRequest request) Creates a new Template in a given project and location.com.google.protobuf.EmptydeleteTemplate(DeleteTemplateRequest request) Deletes a single Template.getFloorSetting(GetFloorSettingRequest request) Gets details of a single floor setting of a projectgetTemplate(GetTemplateRequest request) Gets details of a single Template.listTemplates(ListTemplatesRequest request) Lists Templates in a given project and location.Sanitizes Model Response.Sanitizes User Prompt.io.grpc.stub.BlockingClientCall<SanitizeModelResponseRequest,SanitizeModelResponseResponse> Streaming version of Sanitizes Model Response.io.grpc.stub.BlockingClientCall<SanitizeUserPromptRequest,SanitizeUserPromptResponse> Streaming version of Sanitize User Prompt.Updates the parameters of a single floor setting of a projectupdateTemplate(UpdateTemplateRequest request) Updates the parameters of a single Template.Methods inherited from class io.grpc.stub.AbstractBlockingStub
newStub, newStubMethods inherited from class io.grpc.stub.AbstractStub
getCallOptions, getChannel, withCallCredentials, withChannel, withCompression, withDeadline, withDeadlineAfter, withDeadlineAfter, withExecutor, withInterceptors, withMaxInboundMessageSize, withMaxOutboundMessageSize, withOnReadyThreshold, withOption, withWaitForReady
-
Method Details
-
build
protected ModelArmorGrpc.ModelArmorBlockingV2Stub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) - Specified by:
buildin classio.grpc.stub.AbstractStub<ModelArmorGrpc.ModelArmorBlockingV2Stub>
-
listTemplates
public ListTemplatesResponse listTemplates(ListTemplatesRequest request) throws io.grpc.StatusException Lists Templates in a given project and location.
- Throws:
io.grpc.StatusException
-
getTemplate
Gets details of a single Template.
- Throws:
io.grpc.StatusException
-
createTemplate
Creates a new Template in a given project and location.
- Throws:
io.grpc.StatusException
-
updateTemplate
Updates the parameters of a single Template.
- Throws:
io.grpc.StatusException
-
deleteTemplate
public com.google.protobuf.Empty deleteTemplate(DeleteTemplateRequest request) throws io.grpc.StatusException Deletes a single Template.
- Throws:
io.grpc.StatusException
-
getFloorSetting
Gets details of a single floor setting of a project
- Throws:
io.grpc.StatusException
-
updateFloorSetting
public FloorSetting updateFloorSetting(UpdateFloorSettingRequest request) throws io.grpc.StatusException Updates the parameters of a single floor setting of a project
- Throws:
io.grpc.StatusException
-
sanitizeUserPrompt
public SanitizeUserPromptResponse sanitizeUserPrompt(SanitizeUserPromptRequest request) throws io.grpc.StatusException Sanitizes User Prompt.
- Throws:
io.grpc.StatusException
-
sanitizeModelResponse
public SanitizeModelResponseResponse sanitizeModelResponse(SanitizeModelResponseRequest request) throws io.grpc.StatusException Sanitizes Model Response.
- Throws:
io.grpc.StatusException
-
streamSanitizeUserPrompt
@ExperimentalApi("https://github.com/grpc/grpc-java/issues/10918") public io.grpc.stub.BlockingClientCall<SanitizeUserPromptRequest,SanitizeUserPromptResponse> streamSanitizeUserPrompt()Streaming version of Sanitize User Prompt.
-
streamSanitizeModelResponse
@ExperimentalApi("https://github.com/grpc/grpc-java/issues/10918") public io.grpc.stub.BlockingClientCall<SanitizeModelResponseRequest,SanitizeModelResponseResponse> streamSanitizeModelResponse()Streaming version of Sanitizes Model Response.
-