@BetaApi @Generated(value="by gapic-generator-java") public class HttpJsonModelArmorStub extends ModelArmorStub
This class is for advanced usage and reflects the underlying API directly.
| Modifier | Constructor and Description |
|---|---|
protected |
HttpJsonModelArmorStub(ModelArmorStubSettings settings,
com.google.api.gax.rpc.ClientContext clientContext)
Constructs an instance of HttpJsonModelArmorStub, using the given settings.
|
protected |
HttpJsonModelArmorStub(ModelArmorStubSettings settings,
com.google.api.gax.rpc.ClientContext clientContext,
com.google.api.gax.httpjson.HttpJsonStubCallableFactory callableFactory)
Constructs an instance of HttpJsonModelArmorStub, using the given settings.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
awaitTermination(long duration,
TimeUnit unit) |
void |
close() |
static HttpJsonModelArmorStub |
create(com.google.api.gax.rpc.ClientContext clientContext) |
static HttpJsonModelArmorStub |
create(com.google.api.gax.rpc.ClientContext clientContext,
com.google.api.gax.httpjson.HttpJsonStubCallableFactory callableFactory) |
static HttpJsonModelArmorStub |
create(ModelArmorStubSettings settings) |
com.google.api.gax.rpc.UnaryCallable<CreateTemplateRequest,Template> |
createTemplateCallable() |
com.google.api.gax.rpc.UnaryCallable<DeleteTemplateRequest,com.google.protobuf.Empty> |
deleteTemplateCallable() |
com.google.api.gax.rpc.UnaryCallable<GetFloorSettingRequest,FloorSetting> |
getFloorSettingCallable() |
com.google.api.gax.rpc.UnaryCallable<com.google.cloud.location.GetLocationRequest,com.google.cloud.location.Location> |
getLocationCallable() |
static List<com.google.api.gax.httpjson.ApiMethodDescriptor> |
getMethodDescriptors() |
com.google.api.gax.rpc.UnaryCallable<GetTemplateRequest,Template> |
getTemplateCallable() |
boolean |
isShutdown() |
boolean |
isTerminated() |
com.google.api.gax.rpc.UnaryCallable<com.google.cloud.location.ListLocationsRequest,com.google.cloud.location.ListLocationsResponse> |
listLocationsCallable() |
com.google.api.gax.rpc.UnaryCallable<com.google.cloud.location.ListLocationsRequest,ModelArmorClient.ListLocationsPagedResponse> |
listLocationsPagedCallable() |
com.google.api.gax.rpc.UnaryCallable<ListTemplatesRequest,ListTemplatesResponse> |
listTemplatesCallable() |
com.google.api.gax.rpc.UnaryCallable<ListTemplatesRequest,ModelArmorClient.ListTemplatesPagedResponse> |
listTemplatesPagedCallable() |
com.google.api.gax.rpc.UnaryCallable<SanitizeModelResponseRequest,SanitizeModelResponseResponse> |
sanitizeModelResponseCallable() |
com.google.api.gax.rpc.UnaryCallable<SanitizeUserPromptRequest,SanitizeUserPromptResponse> |
sanitizeUserPromptCallable() |
void |
shutdown() |
void |
shutdownNow() |
com.google.api.gax.rpc.UnaryCallable<UpdateFloorSettingRequest,FloorSetting> |
updateFloorSettingCallable() |
com.google.api.gax.rpc.UnaryCallable<UpdateTemplateRequest,Template> |
updateTemplateCallable() |
protected HttpJsonModelArmorStub(ModelArmorStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext) throws IOException
IOExceptionprotected HttpJsonModelArmorStub(ModelArmorStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.httpjson.HttpJsonStubCallableFactory callableFactory) throws IOException
IOExceptionpublic static final HttpJsonModelArmorStub create(ModelArmorStubSettings settings) throws IOException
IOExceptionpublic static final HttpJsonModelArmorStub create(com.google.api.gax.rpc.ClientContext clientContext) throws IOException
IOExceptionpublic static final HttpJsonModelArmorStub create(com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.httpjson.HttpJsonStubCallableFactory callableFactory) throws IOException
IOException@InternalApi public static List<com.google.api.gax.httpjson.ApiMethodDescriptor> getMethodDescriptors()
public com.google.api.gax.rpc.UnaryCallable<ListTemplatesRequest,ListTemplatesResponse> listTemplatesCallable()
listTemplatesCallable in class ModelArmorStubpublic com.google.api.gax.rpc.UnaryCallable<ListTemplatesRequest,ModelArmorClient.ListTemplatesPagedResponse> listTemplatesPagedCallable()
listTemplatesPagedCallable in class ModelArmorStubpublic com.google.api.gax.rpc.UnaryCallable<GetTemplateRequest,Template> getTemplateCallable()
getTemplateCallable in class ModelArmorStubpublic com.google.api.gax.rpc.UnaryCallable<CreateTemplateRequest,Template> createTemplateCallable()
createTemplateCallable in class ModelArmorStubpublic com.google.api.gax.rpc.UnaryCallable<UpdateTemplateRequest,Template> updateTemplateCallable()
updateTemplateCallable in class ModelArmorStubpublic com.google.api.gax.rpc.UnaryCallable<DeleteTemplateRequest,com.google.protobuf.Empty> deleteTemplateCallable()
deleteTemplateCallable in class ModelArmorStubpublic com.google.api.gax.rpc.UnaryCallable<GetFloorSettingRequest,FloorSetting> getFloorSettingCallable()
getFloorSettingCallable in class ModelArmorStubpublic com.google.api.gax.rpc.UnaryCallable<UpdateFloorSettingRequest,FloorSetting> updateFloorSettingCallable()
updateFloorSettingCallable in class ModelArmorStubpublic com.google.api.gax.rpc.UnaryCallable<SanitizeUserPromptRequest,SanitizeUserPromptResponse> sanitizeUserPromptCallable()
sanitizeUserPromptCallable in class ModelArmorStubpublic com.google.api.gax.rpc.UnaryCallable<SanitizeModelResponseRequest,SanitizeModelResponseResponse> sanitizeModelResponseCallable()
sanitizeModelResponseCallable in class ModelArmorStubpublic com.google.api.gax.rpc.UnaryCallable<com.google.cloud.location.ListLocationsRequest,com.google.cloud.location.ListLocationsResponse> listLocationsCallable()
listLocationsCallable in class ModelArmorStubpublic com.google.api.gax.rpc.UnaryCallable<com.google.cloud.location.ListLocationsRequest,ModelArmorClient.ListLocationsPagedResponse> listLocationsPagedCallable()
listLocationsPagedCallable in class ModelArmorStubpublic com.google.api.gax.rpc.UnaryCallable<com.google.cloud.location.GetLocationRequest,com.google.cloud.location.Location> getLocationCallable()
getLocationCallable in class ModelArmorStubpublic final void close()
close in interface AutoCloseableclose in class ModelArmorStubpublic void shutdown()
public boolean isShutdown()
public boolean isTerminated()
public void shutdownNow()
public boolean awaitTermination(long duration,
TimeUnit unit)
throws InterruptedException
InterruptedExceptionCopyright © 2026 Google LLC. All rights reserved.