Class Template.TemplateMetadata (0.19.0)

publicstaticfinalclass Template.TemplateMetadataextendsGeneratedMessageV3implementsTemplate.TemplateMetadataOrBuilder

Message describing TemplateMetadata

Protobuf type google.cloud.modelarmor.v1beta.Template.TemplateMetadata

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

CUSTOM_LLM_RESPONSE_SAFETY_ERROR_CODE_FIELD_NUMBER

publicstaticfinalintCUSTOM_LLM_RESPONSE_SAFETY_ERROR_CODE_FIELD_NUMBER
Field Value
Type Description
int

CUSTOM_LLM_RESPONSE_SAFETY_ERROR_MESSAGE_FIELD_NUMBER

publicstaticfinalintCUSTOM_LLM_RESPONSE_SAFETY_ERROR_MESSAGE_FIELD_NUMBER
Field Value
Type Description
int

CUSTOM_PROMPT_SAFETY_ERROR_CODE_FIELD_NUMBER

publicstaticfinalintCUSTOM_PROMPT_SAFETY_ERROR_CODE_FIELD_NUMBER
Field Value
Type Description
int

CUSTOM_PROMPT_SAFETY_ERROR_MESSAGE_FIELD_NUMBER

publicstaticfinalintCUSTOM_PROMPT_SAFETY_ERROR_MESSAGE_FIELD_NUMBER
Field Value
Type Description
int

ENFORCEMENT_TYPE_FIELD_NUMBER

publicstaticfinalintENFORCEMENT_TYPE_FIELD_NUMBER
Field Value
Type Description
int

IGNORE_PARTIAL_INVOCATION_FAILURES_FIELD_NUMBER

publicstaticfinalintIGNORE_PARTIAL_INVOCATION_FAILURES_FIELD_NUMBER
Field Value
Type Description
int

LOG_SANITIZE_OPERATIONS_FIELD_NUMBER

publicstaticfinalintLOG_SANITIZE_OPERATIONS_FIELD_NUMBER
Field Value
Type Description
int

LOG_TEMPLATE_OPERATIONS_FIELD_NUMBER

publicstaticfinalintLOG_TEMPLATE_OPERATIONS_FIELD_NUMBER
Field Value
Type Description
int

MULTI_LANGUAGE_DETECTION_FIELD_NUMBER

publicstaticfinalintMULTI_LANGUAGE_DETECTION_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

publicstaticTemplate.TemplateMetadatagetDefaultInstance()
Returns
Type Description
Template.TemplateMetadata

getDescriptor()

publicstaticfinalDescriptors.DescriptorgetDescriptor()
Returns
Type Description
Descriptor

newBuilder()

publicstaticTemplate.TemplateMetadata.BuildernewBuilder()
Returns
Type Description
Template.TemplateMetadata.Builder

newBuilder(Template.TemplateMetadata prototype)

publicstaticTemplate.TemplateMetadata.BuildernewBuilder(Template.TemplateMetadataprototype)
Parameter
Name Description
prototype Template.TemplateMetadata
Returns
Type Description
Template.TemplateMetadata.Builder

parseDelimitedFrom(InputStream input)

publicstaticTemplate.TemplateMetadataparseDelimitedFrom(InputStreaminput)
Parameter
Name Description
input InputStream
Returns
Type Description
Template.TemplateMetadata
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

publicstaticTemplate.TemplateMetadataparseDelimitedFrom(InputStreaminput,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Template.TemplateMetadata
Exceptions
Type Description
IOException

parseFrom(byte[] data)

publicstaticTemplate.TemplateMetadataparseFrom(byte[]data)
Parameter
Name Description
data byte[]
Returns
Type Description
Template.TemplateMetadata
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

publicstaticTemplate.TemplateMetadataparseFrom(byte[]data,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Template.TemplateMetadata
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

publicstaticTemplate.TemplateMetadataparseFrom(ByteStringdata)
Parameter
Name Description
data ByteString
Returns
Type Description
Template.TemplateMetadata
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

publicstaticTemplate.TemplateMetadataparseFrom(ByteStringdata,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Template.TemplateMetadata
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

publicstaticTemplate.TemplateMetadataparseFrom(CodedInputStreaminput)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
Template.TemplateMetadata
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

publicstaticTemplate.TemplateMetadataparseFrom(CodedInputStreaminput,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Template.TemplateMetadata
Exceptions
Type Description
IOException

parseFrom(InputStream input)

publicstaticTemplate.TemplateMetadataparseFrom(InputStreaminput)
Parameter
Name Description
input InputStream
Returns
Type Description
Template.TemplateMetadata
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

publicstaticTemplate.TemplateMetadataparseFrom(InputStreaminput,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Template.TemplateMetadata
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

publicstaticTemplate.TemplateMetadataparseFrom(ByteBufferdata)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
Template.TemplateMetadata
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

publicstaticTemplate.TemplateMetadataparseFrom(ByteBufferdata,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Template.TemplateMetadata
Exceptions
Type Description
InvalidProtocolBufferException

parser()

publicstaticParser<Template.TemplateMetadata>parser()
Returns
Type Description
Parser<TemplateMetadata>

Methods

equals(Object obj)

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

getCustomLlmResponseSafetyErrorCode()

publicintgetCustomLlmResponseSafetyErrorCode()

Optional. Indicates the custom error code set by the user to be returned to the end user if the LLM response trips Model Armor filters.

int32 custom_llm_response_safety_error_code = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

The customLlmResponseSafetyErrorCode.

getCustomLlmResponseSafetyErrorMessage()

publicStringgetCustomLlmResponseSafetyErrorMessage()

Optional. Indicates the custom error message set by the user to be returned to the end user if the LLM response trips Model Armor filters.

string custom_llm_response_safety_error_message = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The customLlmResponseSafetyErrorMessage.

getCustomLlmResponseSafetyErrorMessageBytes()

publicByteStringgetCustomLlmResponseSafetyErrorMessageBytes()

Optional. Indicates the custom error message set by the user to be returned to the end user if the LLM response trips Model Armor filters.

string custom_llm_response_safety_error_message = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for customLlmResponseSafetyErrorMessage.

getCustomPromptSafetyErrorCode()

publicintgetCustomPromptSafetyErrorCode()

Optional. Indicates the custom error code set by the user to be returned to the end user by the service extension if the prompt trips Model Armor filters.

int32 custom_prompt_safety_error_code = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

The customPromptSafetyErrorCode.

getCustomPromptSafetyErrorMessage()

publicStringgetCustomPromptSafetyErrorMessage()

Optional. Indicates the custom error message set by the user to be returned to the end user if the prompt trips Model Armor filters.

string custom_prompt_safety_error_message = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The customPromptSafetyErrorMessage.

getCustomPromptSafetyErrorMessageBytes()

publicByteStringgetCustomPromptSafetyErrorMessageBytes()

Optional. Indicates the custom error message set by the user to be returned to the end user if the prompt trips Model Armor filters.

string custom_prompt_safety_error_message = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for customPromptSafetyErrorMessage.

getDefaultInstanceForType()

publicTemplate.TemplateMetadatagetDefaultInstanceForType()
Returns
Type Description
Template.TemplateMetadata

getEnforcementType()

publicTemplate.TemplateMetadata.EnforcementTypegetEnforcementType()

Optional. Enforcement type for Model Armor filters.

.google.cloud.modelarmor.v1beta.Template.TemplateMetadata.EnforcementType enforcement_type = 8 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Template.TemplateMetadata.EnforcementType

The enforcementType.

getEnforcementTypeValue()

publicintgetEnforcementTypeValue()

Optional. Enforcement type for Model Armor filters.

.google.cloud.modelarmor.v1beta.Template.TemplateMetadata.EnforcementType enforcement_type = 8 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

The enum numeric value on the wire for enforcementType.

getIgnorePartialInvocationFailures()

publicbooleangetIgnorePartialInvocationFailures()

Optional. If true, partial detector failures should be ignored.

bool ignore_partial_invocation_failures = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

The ignorePartialInvocationFailures.

getLogSanitizeOperations()

publicbooleangetLogSanitizeOperations()

Optional. If true, log sanitize operations.

bool log_sanitize_operations = 7 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

The logSanitizeOperations.

getLogTemplateOperations()

publicbooleangetLogTemplateOperations()

Optional. If true, log template crud operations.

bool log_template_operations = 6 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

The logTemplateOperations.

getMultiLanguageDetection()

publicTemplate.TemplateMetadata.MultiLanguageDetectiongetMultiLanguageDetection()

Optional. Metadata for multi language detection.

.google.cloud.modelarmor.v1beta.Template.TemplateMetadata.MultiLanguageDetection multi_language_detection = 9 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Template.TemplateMetadata.MultiLanguageDetection

The multiLanguageDetection.

getMultiLanguageDetectionOrBuilder()

publicTemplate.TemplateMetadata.MultiLanguageDetectionOrBuildergetMultiLanguageDetectionOrBuilder()

Optional. Metadata for multi language detection.

.google.cloud.modelarmor.v1beta.Template.TemplateMetadata.MultiLanguageDetection multi_language_detection = 9 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Template.TemplateMetadata.MultiLanguageDetectionOrBuilder

getParserForType()

publicParser<Template.TemplateMetadata>getParserForType()
Returns
Type Description
Parser<TemplateMetadata>
Overrides

getSerializedSize()

publicintgetSerializedSize()
Returns
Type Description
int
Overrides

hasMultiLanguageDetection()

publicbooleanhasMultiLanguageDetection()

Optional. Metadata for multi language detection.

.google.cloud.modelarmor.v1beta.Template.TemplateMetadata.MultiLanguageDetection multi_language_detection = 9 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the multiLanguageDetection 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()

publicTemplate.TemplateMetadata.BuildernewBuilderForType()
Returns
Type Description
Template.TemplateMetadata.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protectedTemplate.TemplateMetadata.BuildernewBuilderForType(GeneratedMessageV3.BuilderParentparent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
Template.TemplateMetadata.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

publicTemplate.TemplateMetadata.BuildertoBuilder()
Returns
Type Description
Template.TemplateMetadata.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.