Send feedback
Class Template.TemplateMetadata (0.1.0)
Stay organized with collections
Save and categorize content based on your preferences.
public static final class Template . TemplateMetadata extends GeneratedMessageV3 implements Template . TemplateMetadataOrBuilder
Message describing TemplateMetadata
Protobuf type google.cloud.modelarmor.v1.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
public static final int CUSTOM_LLM_RESPONSE_SAFETY_ERROR_CODE_FIELD_NUMBER
Field Value
Type
Description
int
public static final int CUSTOM_LLM_RESPONSE_SAFETY_ERROR_MESSAGE_FIELD_NUMBER
Field Value
Type
Description
int
public static final int CUSTOM_PROMPT_SAFETY_ERROR_CODE_FIELD_NUMBER
Field Value
Type
Description
int
public static final int CUSTOM_PROMPT_SAFETY_ERROR_MESSAGE_FIELD_NUMBER
Field Value
Type
Description
int
public static final int IGNORE_PARTIAL_INVOCATION_FAILURES_FIELD_NUMBER
Field Value
Type
Description
int
public static final int LOG_SANITIZE_OPERATIONS_FIELD_NUMBER
Field Value
Type
Description
int
public static final int LOG_TEMPLATE_OPERATIONS_FIELD_NUMBER
Field Value
Type
Description
int
Static Methods
public static Template . TemplateMetadata getDefaultInstance ()
public static final Descriptors . Descriptor getDescriptor ()
public static Template . TemplateMetadata . Builder newBuilder ()
public static Template . TemplateMetadata . Builder newBuilder ( Template . TemplateMetadata prototype )
public static Template . TemplateMetadata parseDelimitedFrom ( InputStream input )
public static Template . TemplateMetadata parseDelimitedFrom ( InputStream input , ExtensionRegistryLite extensionRegistry )
public static Template . TemplateMetadata parseFrom ( byte [] data )
Parameter
Name
Description
data
byte []
public static Template . TemplateMetadata parseFrom ( byte [] data , ExtensionRegistryLite extensionRegistry )
public static Template . TemplateMetadata parseFrom ( ByteString data )
public static Template . TemplateMetadata parseFrom ( ByteString data , ExtensionRegistryLite extensionRegistry )
public static Template . TemplateMetadata parseFrom ( CodedInputStream input )
public static Template . TemplateMetadata parseFrom ( CodedInputStream input , ExtensionRegistryLite extensionRegistry )
public static Template . TemplateMetadata parseFrom ( InputStream input )
public static Template . TemplateMetadata parseFrom ( InputStream input , ExtensionRegistryLite extensionRegistry )
public static Template . TemplateMetadata parseFrom ( ByteBuffer data )
public static Template . TemplateMetadata parseFrom ( ByteBuffer data , ExtensionRegistryLite extensionRegistry )
public static Parser<Template . TemplateMetadata > parser ()
Methods
public boolean equals ( Object obj )
Parameter
Name
Description
obj
Object
Overrides
public 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
Type
Description
int
The customLlmResponseSafetyErrorCode.
public 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
Type
Description
String
The customLlmResponseSafetyErrorMessage.
public 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
Type
Description
ByteString
The bytes for customLlmResponseSafetyErrorMessage.
public 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
Type
Description
int
The customPromptSafetyErrorCode.
public 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
Type
Description
String
The customPromptSafetyErrorMessage.
public 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
Type
Description
ByteString
The bytes for customPromptSafetyErrorMessage.
public Template . TemplateMetadata getDefaultInstanceForType ()
public boolean getIgnorePartialInvocationFailures ()
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.
public boolean getLogSanitizeOperations ()
Optional. If true, log sanitize operations.
bool log_sanitize_operations = 7 [(.google.api.field_behavior) = OPTIONAL];
Returns
Type
Description
boolean
The logSanitizeOperations.
public boolean getLogTemplateOperations ()
Optional. If true, log template crud operations.
bool log_template_operations = 6 [(.google.api.field_behavior) = OPTIONAL];
Returns
Type
Description
boolean
The logTemplateOperations.
public Parser<Template . TemplateMetadata > getParserForType ()
Overrides
public int getSerializedSize ()
Returns
Type
Description
int
Overrides
Returns
Type
Description
int
Overrides
protected GeneratedMessageV3 . FieldAccessorTable internalGetFieldAccessorTable ()
Overrides
public final boolean isInitialized ()
Overrides
public Template . TemplateMetadata . Builder newBuilderForType ()
protected Template . TemplateMetadata . Builder newBuilderForType ( GeneratedMessageV3 . BuilderParent parent )
Overrides
protected Object newInstance ( GeneratedMessageV3 . UnusedPrivateParameter unused )
Returns
Type
Description
Object
Overrides
public Template . TemplateMetadata . Builder toBuilder ()
public void writeTo ( CodedOutputStream output )
Overrides
Send feedback
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-03-22 UTC.
Need to tell us more?
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-03-22 UTC."],[],[]]