Interface Template.TemplateMetadataOrBuilder
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
Template.TemplateMetadata,Template.TemplateMetadata.Builder
- Enclosing class:
- Template
public static interface Template.TemplateMetadataOrBuilder
extends com.google.protobuf.MessageOrBuilder
-
Method Summary
Modifier and TypeMethodDescriptionintOptional.Optional.com.google.protobuf.ByteStringOptional.intOptional.Optional.com.google.protobuf.ByteStringOptional.Optional.intOptional.booleanOptional.booleanOptional.booleanOptional.Optional.Optional.booleanOptional.Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder
isInitializedMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getIgnorePartialInvocationFailures
boolean getIgnorePartialInvocationFailures()Optional. If true, partial detector failures should be ignored.
bool ignore_partial_invocation_failures = 1 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- The ignorePartialInvocationFailures.
-
getCustomPromptSafetyErrorCode
int getCustomPromptSafetyErrorCode()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:
- The customPromptSafetyErrorCode.
-
getCustomPromptSafetyErrorMessage
String getCustomPromptSafetyErrorMessage()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:
- The customPromptSafetyErrorMessage.
-
getCustomPromptSafetyErrorMessageBytes
com.google.protobuf.ByteString getCustomPromptSafetyErrorMessageBytes()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:
- The bytes for customPromptSafetyErrorMessage.
-
getCustomLlmResponseSafetyErrorCode
int getCustomLlmResponseSafetyErrorCode()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:
- The customLlmResponseSafetyErrorCode.
-
getCustomLlmResponseSafetyErrorMessage
String getCustomLlmResponseSafetyErrorMessage()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:
- The customLlmResponseSafetyErrorMessage.
-
getCustomLlmResponseSafetyErrorMessageBytes
com.google.protobuf.ByteString getCustomLlmResponseSafetyErrorMessageBytes()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:
- The bytes for customLlmResponseSafetyErrorMessage.
-
getLogTemplateOperations
boolean getLogTemplateOperations()Optional. If true, log template crud operations.
bool log_template_operations = 6 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- The logTemplateOperations.
-
getLogSanitizeOperations
boolean getLogSanitizeOperations()Optional. If true, log sanitize operations.
bool log_sanitize_operations = 7 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- The logSanitizeOperations.
-
getEnforcementTypeValue
int getEnforcementTypeValue()Optional. Enforcement type for Model Armor filters.
.google.cloud.modelarmor.v1beta.Template.TemplateMetadata.EnforcementType enforcement_type = 8 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- The enum numeric value on the wire for enforcementType.
-
getEnforcementType
Template.TemplateMetadata.EnforcementType getEnforcementType()Optional. Enforcement type for Model Armor filters.
.google.cloud.modelarmor.v1beta.Template.TemplateMetadata.EnforcementType enforcement_type = 8 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- The enforcementType.
-
hasMultiLanguageDetection
boolean hasMultiLanguageDetection()Optional. Metadata for multi language detection.
.google.cloud.modelarmor.v1beta.Template.TemplateMetadata.MultiLanguageDetection multi_language_detection = 9 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- Whether the multiLanguageDetection field is set.
-
getMultiLanguageDetection
Template.TemplateMetadata.MultiLanguageDetection getMultiLanguageDetection()Optional. Metadata for multi language detection.
.google.cloud.modelarmor.v1beta.Template.TemplateMetadata.MultiLanguageDetection multi_language_detection = 9 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- The multiLanguageDetection.
-
getMultiLanguageDetectionOrBuilder
Template.TemplateMetadata.MultiLanguageDetectionOrBuilder getMultiLanguageDetectionOrBuilder()Optional. Metadata for multi language detection.
.google.cloud.modelarmor.v1beta.Template.TemplateMetadata.MultiLanguageDetection multi_language_detection = 9 [(.google.api.field_behavior) = OPTIONAL];
-