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
publicstaticfinalintCUSTOM_LLM_RESPONSE_SAFETY_ERROR_CODE_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
publicstaticfinalintCUSTOM_LLM_RESPONSE_SAFETY_ERROR_MESSAGE_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
publicstaticfinalintCUSTOM_PROMPT_SAFETY_ERROR_CODE_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
publicstaticfinalintCUSTOM_PROMPT_SAFETY_ERROR_MESSAGE_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
publicstaticfinalintENFORCEMENT_TYPE_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
publicstaticfinalintIGNORE_PARTIAL_INVOCATION_FAILURES_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
publicstaticfinalintLOG_SANITIZE_OPERATIONS_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
publicstaticfinalintLOG_TEMPLATE_OPERATIONS_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
publicstaticfinalintMULTI_LANGUAGE_DETECTION_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
Static Methods
publicstaticTemplate.TemplateMetadatagetDefaultInstance()
publicstaticfinalDescriptors.DescriptorgetDescriptor()
publicstaticTemplate.TemplateMetadata.BuildernewBuilder()
publicstaticTemplate.TemplateMetadata.BuildernewBuilder(Template.TemplateMetadataprototype)
publicstaticTemplate.TemplateMetadataparseDelimitedFrom(InputStreaminput)
publicstaticTemplate.TemplateMetadataparseDelimitedFrom(InputStreaminput,ExtensionRegistryLiteextensionRegistry)
publicstaticTemplate.TemplateMetadataparseFrom(byte[]data)
| Parameter |
| Name |
Description |
data |
byte[]
|
publicstaticTemplate.TemplateMetadataparseFrom(byte[]data,ExtensionRegistryLiteextensionRegistry)
publicstaticTemplate.TemplateMetadataparseFrom(ByteStringdata)
publicstaticTemplate.TemplateMetadataparseFrom(ByteStringdata,ExtensionRegistryLiteextensionRegistry)
publicstaticTemplate.TemplateMetadataparseFrom(CodedInputStreaminput)
publicstaticTemplate.TemplateMetadataparseFrom(CodedInputStreaminput,ExtensionRegistryLiteextensionRegistry)
publicstaticTemplate.TemplateMetadataparseFrom(InputStreaminput)
publicstaticTemplate.TemplateMetadataparseFrom(InputStreaminput,ExtensionRegistryLiteextensionRegistry)
publicstaticTemplate.TemplateMetadataparseFrom(ByteBufferdata)
publicstaticTemplate.TemplateMetadataparseFrom(ByteBufferdata,ExtensionRegistryLiteextensionRegistry)
publicstaticParser<Template.TemplateMetadata>parser()
Methods
publicbooleanequals(Objectobj)
| Parameter |
| Name |
Description |
obj |
Object
|
Overrides
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.
|
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.
|
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.
|
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.
|
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.
|
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.
|
publicTemplate.TemplateMetadatagetDefaultInstanceForType()
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];
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.
|
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.
|
publicbooleangetLogSanitizeOperations()
Optional. If true, log sanitize operations.
bool log_sanitize_operations = 7 [(.google.api.field_behavior) = OPTIONAL];
| Returns |
| Type |
Description |
boolean |
The logSanitizeOperations.
|
publicbooleangetLogTemplateOperations()
Optional. If true, log template crud operations.
bool log_template_operations = 6 [(.google.api.field_behavior) = OPTIONAL];
| Returns |
| Type |
Description |
boolean |
The logTemplateOperations.
|
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];
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];
publicParser<Template.TemplateMetadata>getParserForType()
Overrides
publicintgetSerializedSize()
| Returns |
| Type |
Description |
int |
Overrides
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.
|
| Returns |
| Type |
Description |
int |
Overrides
protectedGeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()
Overrides
publicfinalbooleanisInitialized()
Overrides
publicTemplate.TemplateMetadata.BuildernewBuilderForType()
protectedTemplate.TemplateMetadata.BuildernewBuilderForType(GeneratedMessageV3.BuilderParentparent)
Overrides
protectedObjectnewInstance(GeneratedMessageV3.UnusedPrivateParameterunused)
| Returns |
| Type |
Description |
Object |
Overrides
publicTemplate.TemplateMetadata.BuildertoBuilder()
publicvoidwriteTo(CodedOutputStreamoutput)
Overrides