Class Project.CustomerProvidedConfig.NotebooklmConfig.ModelArmorConfig (0.90.0)

public static final class Project.CustomerProvidedConfig.NotebooklmConfig.ModelArmorConfig extends GeneratedMessage implements Project.CustomerProvidedConfig.NotebooklmConfig.ModelArmorConfigOrBuilder

Configuration for customer defined Model Armor templates to be used for sanitizing user prompts and LLM responses.

Protobuf type google.cloud.discoveryengine.v1beta.Project.CustomerProvidedConfig.NotebooklmConfig.ModelArmorConfig

Inheritance

Object > AbstractMessageLite<MessageType,BuilderType> > AbstractMessage > GeneratedMessage > Project.CustomerProvidedConfig.NotebooklmConfig.ModelArmorConfig

Static Fields

RESPONSE_TEMPLATE_FIELD_NUMBER

public static final int RESPONSE_TEMPLATE_FIELD_NUMBER
Field Value
Type Description
int

USER_PROMPT_TEMPLATE_FIELD_NUMBER

public static final int USER_PROMPT_TEMPLATE_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static Project.CustomerProvidedConfig.NotebooklmConfig.ModelArmorConfig getDefaultInstance()
Returns
Type Description
Project.CustomerProvidedConfig.NotebooklmConfig.ModelArmorConfig

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

newBuilder()

public static Project.CustomerProvidedConfig.NotebooklmConfig.ModelArmorConfig.Builder newBuilder()
Returns
Type Description
Project.CustomerProvidedConfig.NotebooklmConfig.ModelArmorConfig.Builder

newBuilder(Project.CustomerProvidedConfig.NotebooklmConfig.ModelArmorConfig prototype)

public static Project.CustomerProvidedConfig.NotebooklmConfig.ModelArmorConfig.Builder newBuilder(Project.CustomerProvidedConfig.NotebooklmConfig.ModelArmorConfig prototype)
Parameter
Name Description
prototype Project.CustomerProvidedConfig.NotebooklmConfig.ModelArmorConfig
Returns
Type Description
Project.CustomerProvidedConfig.NotebooklmConfig.ModelArmorConfig.Builder

parseDelimitedFrom(InputStream input)

public static Project.CustomerProvidedConfig.NotebooklmConfig.ModelArmorConfig parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
Project.CustomerProvidedConfig.NotebooklmConfig.ModelArmorConfig
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static Project.CustomerProvidedConfig.NotebooklmConfig.ModelArmorConfig parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Project.CustomerProvidedConfig.NotebooklmConfig.ModelArmorConfig
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static Project.CustomerProvidedConfig.NotebooklmConfig.ModelArmorConfig parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
Project.CustomerProvidedConfig.NotebooklmConfig.ModelArmorConfig
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static Project.CustomerProvidedConfig.NotebooklmConfig.ModelArmorConfig parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Project.CustomerProvidedConfig.NotebooklmConfig.ModelArmorConfig
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static Project.CustomerProvidedConfig.NotebooklmConfig.ModelArmorConfig parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
Project.CustomerProvidedConfig.NotebooklmConfig.ModelArmorConfig
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static Project.CustomerProvidedConfig.NotebooklmConfig.ModelArmorConfig parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Project.CustomerProvidedConfig.NotebooklmConfig.ModelArmorConfig
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static Project.CustomerProvidedConfig.NotebooklmConfig.ModelArmorConfig parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
Project.CustomerProvidedConfig.NotebooklmConfig.ModelArmorConfig
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static Project.CustomerProvidedConfig.NotebooklmConfig.ModelArmorConfig parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Project.CustomerProvidedConfig.NotebooklmConfig.ModelArmorConfig
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static Project.CustomerProvidedConfig.NotebooklmConfig.ModelArmorConfig parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
Project.CustomerProvidedConfig.NotebooklmConfig.ModelArmorConfig
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static Project.CustomerProvidedConfig.NotebooklmConfig.ModelArmorConfig parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Project.CustomerProvidedConfig.NotebooklmConfig.ModelArmorConfig
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static Project.CustomerProvidedConfig.NotebooklmConfig.ModelArmorConfig parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
Project.CustomerProvidedConfig.NotebooklmConfig.ModelArmorConfig
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static Project.CustomerProvidedConfig.NotebooklmConfig.ModelArmorConfig parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Project.CustomerProvidedConfig.NotebooklmConfig.ModelArmorConfig
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<Project.CustomerProvidedConfig.NotebooklmConfig.ModelArmorConfig> parser()
Returns
Type Description
Parser<ModelArmorConfig>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getDefaultInstanceForType()

public Project.CustomerProvidedConfig.NotebooklmConfig.ModelArmorConfig getDefaultInstanceForType()
Returns
Type Description
Project.CustomerProvidedConfig.NotebooklmConfig.ModelArmorConfig

getParserForType()

public Parser<Project.CustomerProvidedConfig.NotebooklmConfig.ModelArmorConfig> getParserForType()
Returns
Type Description
Parser<ModelArmorConfig>
Overrides

getResponseTemplate()

public String getResponseTemplate()

Optional. The resource name of the Model Armor Template for sanitizing LLM responses. Format: projects/{project}/locations/{location}/templates/{template_id} If not specified, no sanitization will be applied to the LLM response.

string response_template = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }

Returns
Type Description
String

The responseTemplate.

getResponseTemplateBytes()

public ByteString getResponseTemplateBytes()

Optional. The resource name of the Model Armor Template for sanitizing LLM responses. Format: projects/{project}/locations/{location}/templates/{template_id} If not specified, no sanitization will be applied to the LLM response.

string response_template = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }

Returns
Type Description
ByteString

The bytes for responseTemplate.

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

getUserPromptTemplate()

public String getUserPromptTemplate()

Optional. The resource name of the Model Armor Template for sanitizing user prompts. Format: projects/{project}/locations/{location}/templates/{template_id} If not specified, no sanitization will be applied to the user prompt.

string user_prompt_template = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }

Returns
Type Description
String

The userPromptTemplate.

getUserPromptTemplateBytes()

public ByteString getUserPromptTemplateBytes()

Optional. The resource name of the Model Armor Template for sanitizing user prompts. Format: projects/{project}/locations/{location}/templates/{template_id} If not specified, no sanitization will be applied to the user prompt.

string user_prompt_template = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }

Returns
Type Description
ByteString

The bytes for userPromptTemplate.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public Project.CustomerProvidedConfig.NotebooklmConfig.ModelArmorConfig.Builder newBuilderForType()
Returns
Type Description
Project.CustomerProvidedConfig.NotebooklmConfig.ModelArmorConfig.Builder

newBuilderForType(AbstractMessage.BuilderParent parent)

protected Project.CustomerProvidedConfig.NotebooklmConfig.ModelArmorConfig.Builder newBuilderForType(AbstractMessage.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
Project.CustomerProvidedConfig.NotebooklmConfig.ModelArmorConfig.Builder
Overrides

toBuilder()

public Project.CustomerProvidedConfig.NotebooklmConfig.ModelArmorConfig.Builder toBuilder()
Returns
Type Description
Project.CustomerProvidedConfig.NotebooklmConfig.ModelArmorConfig.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException