Class SanitizeModelResponseRequest (0.1.0)

publicfinalclass SanitizeModelResponseRequestextendsGeneratedMessageV3implementsSanitizeModelResponseRequestOrBuilder

Sanitize Model Response request.

Protobuf type google.cloud.modelarmor.v1.SanitizeModelResponseRequest

Inherited Members

com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessageV3.<T>emptyList(java.lang.Class<T>)
com.google.protobuf.GeneratedMessageV3.internalGetMapFieldReflection(int)

Static Fields

MODEL_RESPONSE_DATA_FIELD_NUMBER

publicstaticfinalintMODEL_RESPONSE_DATA_FIELD_NUMBER
Field Value
Type Description
int

NAME_FIELD_NUMBER

publicstaticfinalintNAME_FIELD_NUMBER
Field Value
Type Description
int

USER_PROMPT_FIELD_NUMBER

publicstaticfinalintUSER_PROMPT_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

publicstaticSanitizeModelResponseRequestgetDefaultInstance()
Returns
Type Description
SanitizeModelResponseRequest

getDescriptor()

publicstaticfinalDescriptors.DescriptorgetDescriptor()
Returns
Type Description
Descriptor

newBuilder()

publicstaticSanitizeModelResponseRequest.BuildernewBuilder()
Returns
Type Description
SanitizeModelResponseRequest.Builder

newBuilder(SanitizeModelResponseRequest prototype)

publicstaticSanitizeModelResponseRequest.BuildernewBuilder(SanitizeModelResponseRequestprototype)
Parameter
Name Description
prototype SanitizeModelResponseRequest
Returns
Type Description
SanitizeModelResponseRequest.Builder

parseDelimitedFrom(InputStream input)

publicstaticSanitizeModelResponseRequestparseDelimitedFrom(InputStreaminput)
Parameter
Name Description
input InputStream
Returns
Type Description
SanitizeModelResponseRequest
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

publicstaticSanitizeModelResponseRequestparseDelimitedFrom(InputStreaminput,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
SanitizeModelResponseRequest
Exceptions
Type Description
IOException

parseFrom(byte[] data)

publicstaticSanitizeModelResponseRequestparseFrom(byte[]data)
Parameter
Name Description
data byte[]
Returns
Type Description
SanitizeModelResponseRequest
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

publicstaticSanitizeModelResponseRequestparseFrom(byte[]data,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
SanitizeModelResponseRequest
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

publicstaticSanitizeModelResponseRequestparseFrom(ByteStringdata)
Parameter
Name Description
data ByteString
Returns
Type Description
SanitizeModelResponseRequest
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

publicstaticSanitizeModelResponseRequestparseFrom(ByteStringdata,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
SanitizeModelResponseRequest
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

publicstaticSanitizeModelResponseRequestparseFrom(CodedInputStreaminput)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
SanitizeModelResponseRequest
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

publicstaticSanitizeModelResponseRequestparseFrom(CodedInputStreaminput,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
SanitizeModelResponseRequest
Exceptions
Type Description
IOException

parseFrom(InputStream input)

publicstaticSanitizeModelResponseRequestparseFrom(InputStreaminput)
Parameter
Name Description
input InputStream
Returns
Type Description
SanitizeModelResponseRequest
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

publicstaticSanitizeModelResponseRequestparseFrom(InputStreaminput,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
SanitizeModelResponseRequest
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

publicstaticSanitizeModelResponseRequestparseFrom(ByteBufferdata)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
SanitizeModelResponseRequest
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

publicstaticSanitizeModelResponseRequestparseFrom(ByteBufferdata,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
SanitizeModelResponseRequest
Exceptions
Type Description
InvalidProtocolBufferException

parser()

publicstaticParser<SanitizeModelResponseRequest>parser()
Returns
Type Description
Parser<SanitizeModelResponseRequest>

Methods

equals(Object obj)

publicbooleanequals(Objectobj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getDefaultInstanceForType()

publicSanitizeModelResponseRequestgetDefaultInstanceForType()
Returns
Type Description
SanitizeModelResponseRequest

getModelResponseData()

publicDataItemgetModelResponseData()

Required. Model response data to sanitize.

.google.cloud.modelarmor.v1.DataItem model_response_data = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
DataItem

The modelResponseData.

getModelResponseDataOrBuilder()

publicDataItemOrBuildergetModelResponseDataOrBuilder()

Required. Model response data to sanitize.

.google.cloud.modelarmor.v1.DataItem model_response_data = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
DataItemOrBuilder

getName()

publicStringgetName()

Required. Represents resource name of template e.g. name=projects/sample-project/locations/us-central1/templates/templ01

string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
String

The name.

getNameBytes()

publicByteStringgetNameBytes()

Required. Represents resource name of template e.g. name=projects/sample-project/locations/us-central1/templates/templ01

string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
ByteString

The bytes for name.

getParserForType()

publicParser<SanitizeModelResponseRequest>getParserForType()
Returns
Type Description
Parser<SanitizeModelResponseRequest>
Overrides

getSerializedSize()

publicintgetSerializedSize()
Returns
Type Description
int
Overrides

getUserPrompt()

publicStringgetUserPrompt()

Optional. User Prompt associated with Model response.

string user_prompt = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The userPrompt.

getUserPromptBytes()

publicByteStringgetUserPromptBytes()

Optional. User Prompt associated with Model response.

string user_prompt = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for userPrompt.

hasModelResponseData()

publicbooleanhasModelResponseData()

Required. Model response data to sanitize.

.google.cloud.modelarmor.v1.DataItem model_response_data = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the modelResponseData field is set.

hashCode()

publicinthashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

protectedGeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

publicfinalbooleanisInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

publicSanitizeModelResponseRequest.BuildernewBuilderForType()
Returns
Type Description
SanitizeModelResponseRequest.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protectedSanitizeModelResponseRequest.BuildernewBuilderForType(GeneratedMessageV3.BuilderParentparent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
SanitizeModelResponseRequest.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protectedObjectnewInstance(GeneratedMessageV3.UnusedPrivateParameterunused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

publicSanitizeModelResponseRequest.BuildertoBuilder()
Returns
Type Description
SanitizeModelResponseRequest.Builder

writeTo(CodedOutputStream output)

publicvoidwriteTo(CodedOutputStreamoutput)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException

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.