Class CachedContent.Builder (3.54.0)

public static final class CachedContent.Builder extends GeneratedMessageV3.Builder<CachedContent.Builder> implements CachedContentOrBuilder

A resource used in LLM queries for users to explicitly specify what to cache and how to cache.

Protobuf type google.cloud.aiplatform.v1beta1.CachedContent

Static Methods

getDescriptor()

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

Methods

addAllContents(Iterable<? extends Content> values)

public CachedContent.Builder addAllContents(Iterable<? extends Content> values)

Optional. Input only. Immutable. The content to cache

repeated .google.cloud.aiplatform.v1beta1.Content contents = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = INPUT_ONLY];

Parameter
Name Description
values Iterable<? extends com.google.cloud.aiplatform.v1beta1.Content>
Returns
Type Description
CachedContent.Builder

addAllTools(Iterable<? extends Tool> values)

public CachedContent.Builder addAllTools(Iterable<? extends Tool> values)

Optional. Input only. Immutable. A list of Tools the model may use to generate the next response

repeated .google.cloud.aiplatform.v1beta1.Tool tools = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = INPUT_ONLY];

Parameter
Name Description
values Iterable<? extends com.google.cloud.aiplatform.v1beta1.Tool>
Returns
Type Description
CachedContent.Builder

addContents(Content value)

public CachedContent.Builder addContents(Content value)

Optional. Input only. Immutable. The content to cache

repeated .google.cloud.aiplatform.v1beta1.Content contents = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = INPUT_ONLY];

Parameter
Name Description
value Content
Returns
Type Description
CachedContent.Builder

addContents(Content.Builder builderForValue)

public CachedContent.Builder addContents(Content.Builder builderForValue)

Optional. Input only. Immutable. The content to cache

repeated .google.cloud.aiplatform.v1beta1.Content contents = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = INPUT_ONLY];

Parameter
Name Description
builderForValue Content.Builder
Returns
Type Description
CachedContent.Builder

addContents(int index, Content value)

public CachedContent.Builder addContents(int index, Content value)

Optional. Input only. Immutable. The content to cache

repeated .google.cloud.aiplatform.v1beta1.Content contents = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = INPUT_ONLY];

Parameters
Name Description
index int
value Content
Returns
Type Description
CachedContent.Builder

addContents(int index, Content.Builder builderForValue)

public CachedContent.Builder addContents(int index, Content.Builder builderForValue)

Optional. Input only. Immutable. The content to cache

repeated .google.cloud.aiplatform.v1beta1.Content contents = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = INPUT_ONLY];

Parameters
Name Description
index int
builderForValue Content.Builder
Returns
Type Description
CachedContent.Builder

addContentsBuilder()

public Content.Builder addContentsBuilder()

Optional. Input only. Immutable. The content to cache

repeated .google.cloud.aiplatform.v1beta1.Content contents = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = INPUT_ONLY];

Returns
Type Description
Content.Builder

addContentsBuilder(int index)

public Content.Builder addContentsBuilder(int index)

Optional. Input only. Immutable. The content to cache

repeated .google.cloud.aiplatform.v1beta1.Content contents = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = INPUT_ONLY];

Parameter
Name Description
index int
Returns
Type Description
Content.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public CachedContent.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
CachedContent.Builder
Overrides

addTools(Tool value)

public CachedContent.Builder addTools(Tool value)

Optional. Input only. Immutable. A list of Tools the model may use to generate the next response

repeated .google.cloud.aiplatform.v1beta1.Tool tools = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = INPUT_ONLY];

Parameter
Name Description
value Tool
Returns
Type Description
CachedContent.Builder

addTools(Tool.Builder builderForValue)

public CachedContent.Builder addTools(Tool.Builder builderForValue)

Optional. Input only. Immutable. A list of Tools the model may use to generate the next response

repeated .google.cloud.aiplatform.v1beta1.Tool tools = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = INPUT_ONLY];

Parameter
Name Description
builderForValue Tool.Builder
Returns
Type Description
CachedContent.Builder

addTools(int index, Tool value)

public CachedContent.Builder addTools(int index, Tool value)

Optional. Input only. Immutable. A list of Tools the model may use to generate the next response

repeated .google.cloud.aiplatform.v1beta1.Tool tools = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = INPUT_ONLY];

Parameters
Name Description
index int
value Tool
Returns
Type Description
CachedContent.Builder

addTools(int index, Tool.Builder builderForValue)

public CachedContent.Builder addTools(int index, Tool.Builder builderForValue)

Optional. Input only. Immutable. A list of Tools the model may use to generate the next response

repeated .google.cloud.aiplatform.v1beta1.Tool tools = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = INPUT_ONLY];

Parameters
Name Description
index int
builderForValue Tool.Builder
Returns
Type Description
CachedContent.Builder

addToolsBuilder()

public Tool.Builder addToolsBuilder()

Optional. Input only. Immutable. A list of Tools the model may use to generate the next response

repeated .google.cloud.aiplatform.v1beta1.Tool tools = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = INPUT_ONLY];

Returns
Type Description
Tool.Builder

addToolsBuilder(int index)

public Tool.Builder addToolsBuilder(int index)

Optional. Input only. Immutable. A list of Tools the model may use to generate the next response

repeated .google.cloud.aiplatform.v1beta1.Tool tools = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = INPUT_ONLY];

Parameter
Name Description
index int
Returns
Type Description
Tool.Builder

build()

public CachedContent build()
Returns
Type Description
CachedContent

buildPartial()

public CachedContent buildPartial()
Returns
Type Description
CachedContent

clear()

public CachedContent.Builder clear()
Returns
Type Description
CachedContent.Builder
Overrides

clearContents()

public CachedContent.Builder clearContents()

Optional. Input only. Immutable. The content to cache

repeated .google.cloud.aiplatform.v1beta1.Content contents = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = INPUT_ONLY];

Returns
Type Description
CachedContent.Builder

clearCreateTime()

public CachedContent.Builder clearCreateTime()

Output only. Creatation time of the cache entry.

.google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
CachedContent.Builder

clearDisplayName()

public CachedContent.Builder clearDisplayName()

Optional. Immutable. The user-generated meaningful display name of the cached content.

string display_name = 11 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE];

Returns
Type Description
CachedContent.Builder

This builder for chaining.

clearExpiration()

public CachedContent.Builder clearExpiration()
Returns
Type Description
CachedContent.Builder

clearExpireTime()

public CachedContent.Builder clearExpireTime()

Timestamp of when this resource is considered expired. This is always provided on output, regardless of what was sent on input.

.google.protobuf.Timestamp expire_time = 9;

Returns
Type Description
CachedContent.Builder

clearField(Descriptors.FieldDescriptor field)

public CachedContent.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
CachedContent.Builder
Overrides

clearModel()

public CachedContent.Builder clearModel()

Immutable. The name of the publisher model to use for cached content. Format: projects/{project}/locations/{location}/publishers/{publisher}/models/{model}

string model = 2 [(.google.api.field_behavior) = IMMUTABLE];

Returns
Type Description
CachedContent.Builder

This builder for chaining.

clearName()

public CachedContent.Builder clearName()

Immutable. Identifier. The server-generated resource name of the cached content Format: projects/{project}/locations/{location}/cachedContents/{cached_content}

string name = 1 [(.google.api.field_behavior) = IDENTIFIER, (.google.api.field_behavior) = IMMUTABLE];

Returns
Type Description
CachedContent.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public CachedContent.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
CachedContent.Builder
Overrides

clearSystemInstruction()

public CachedContent.Builder clearSystemInstruction()

Optional. Input only. Immutable. Developer set system instruction. Currently, text only

.google.cloud.aiplatform.v1beta1.Content system_instruction = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = INPUT_ONLY];

Returns
Type Description
CachedContent.Builder

clearToolConfig()

public CachedContent.Builder clearToolConfig()

Optional. Input only. Immutable. Tool config. This config is shared for all tools

.google.cloud.aiplatform.v1beta1.ToolConfig tool_config = 6 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = INPUT_ONLY];

Returns
Type Description
CachedContent.Builder

clearTools()

public CachedContent.Builder clearTools()

Optional. Input only. Immutable. A list of Tools the model may use to generate the next response

repeated .google.cloud.aiplatform.v1beta1.Tool tools = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = INPUT_ONLY];

Returns
Type Description
CachedContent.Builder

clearTtl()

public CachedContent.Builder clearTtl()

Input only. The TTL for this resource. The expiration time is computed: now + TTL.

.google.protobuf.Duration ttl = 10 [(.google.api.field_behavior) = INPUT_ONLY];

Returns
Type Description
CachedContent.Builder

clearUpdateTime()

public CachedContent.Builder clearUpdateTime()

Output only. When the cache entry was last updated in UTC time.

.google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
CachedContent.Builder

clearUsageMetadata()

public CachedContent.Builder clearUsageMetadata()

Output only. Metadata on the usage of the cached content.

.google.cloud.aiplatform.v1beta1.CachedContent.UsageMetadata usage_metadata = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
CachedContent.Builder

clone()

public CachedContent.Builder clone()
Returns
Type Description
CachedContent.Builder
Overrides

getContents(int index)

public Content getContents(int index)

Optional. Input only. Immutable. The content to cache

repeated .google.cloud.aiplatform.v1beta1.Content contents = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = INPUT_ONLY];

Parameter
Name Description
index int
Returns
Type Description
Content

getContentsBuilder(int index)

public Content.Builder getContentsBuilder(int index)

Optional. Input only. Immutable. The content to cache

repeated .google.cloud.aiplatform.v1beta1.Content contents = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = INPUT_ONLY];

Parameter
Name Description
index int
Returns
Type Description
Content.Builder

getContentsBuilderList()

public List<Content.Builder> getContentsBuilderList()

Optional. Input only. Immutable. The content to cache

repeated .google.cloud.aiplatform.v1beta1.Content contents = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = INPUT_ONLY];

Returns
Type Description
List<Builder>

getContentsCount()

public int getContentsCount()

Optional. Input only. Immutable. The content to cache

repeated .google.cloud.aiplatform.v1beta1.Content contents = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = INPUT_ONLY];

Returns
Type Description
int

getContentsList()

public List<Content> getContentsList()

Optional. Input only. Immutable. The content to cache

repeated .google.cloud.aiplatform.v1beta1.Content contents = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = INPUT_ONLY];

Returns
Type Description
List<Content>

getContentsOrBuilder(int index)

public ContentOrBuilder getContentsOrBuilder(int index)

Optional. Input only. Immutable. The content to cache

repeated .google.cloud.aiplatform.v1beta1.Content contents = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = INPUT_ONLY];

Parameter
Name Description
index int
Returns
Type Description
ContentOrBuilder

getContentsOrBuilderList()

public List<? extends ContentOrBuilder> getContentsOrBuilderList()

Optional. Input only. Immutable. The content to cache

repeated .google.cloud.aiplatform.v1beta1.Content contents = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = INPUT_ONLY];

Returns
Type Description
List<? extends com.google.cloud.aiplatform.v1beta1.ContentOrBuilder>

getCreateTime()

public Timestamp getCreateTime()

Output only. Creatation time of the cache entry.

.google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Timestamp

The createTime.

getCreateTimeBuilder()

public Timestamp.Builder getCreateTimeBuilder()

Output only. Creatation time of the cache entry.

.google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Builder

getCreateTimeOrBuilder()

public TimestampOrBuilder getCreateTimeOrBuilder()

Output only. Creatation time of the cache entry.

.google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
TimestampOrBuilder

getDefaultInstanceForType()

public CachedContent getDefaultInstanceForType()
Returns
Type Description
CachedContent

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getDisplayName()

public String getDisplayName()

Optional. Immutable. The user-generated meaningful display name of the cached content.

string display_name = 11 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE];

Returns
Type Description
String

The displayName.

getDisplayNameBytes()

public ByteString getDisplayNameBytes()

Optional. Immutable. The user-generated meaningful display name of the cached content.

string display_name = 11 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE];

Returns
Type Description
ByteString

The bytes for displayName.

getExpirationCase()

public CachedContent.ExpirationCase getExpirationCase()
Returns
Type Description
CachedContent.ExpirationCase

getExpireTime()

public Timestamp getExpireTime()

Timestamp of when this resource is considered expired. This is always provided on output, regardless of what was sent on input.

.google.protobuf.Timestamp expire_time = 9;

Returns
Type Description
Timestamp

The expireTime.

getExpireTimeBuilder()

public Timestamp.Builder getExpireTimeBuilder()

Timestamp of when this resource is considered expired. This is always provided on output, regardless of what was sent on input.

.google.protobuf.Timestamp expire_time = 9;

Returns
Type Description
Builder

getExpireTimeOrBuilder()

public TimestampOrBuilder getExpireTimeOrBuilder()

Timestamp of when this resource is considered expired. This is always provided on output, regardless of what was sent on input.

.google.protobuf.Timestamp expire_time = 9;

Returns
Type Description
TimestampOrBuilder

getModel()

public String getModel()

Immutable. The name of the publisher model to use for cached content. Format: projects/{project}/locations/{location}/publishers/{publisher}/models/{model}

string model = 2 [(.google.api.field_behavior) = IMMUTABLE];

Returns
Type Description
String

The model.

getModelBytes()

public ByteString getModelBytes()

Immutable. The name of the publisher model to use for cached content. Format: projects/{project}/locations/{location}/publishers/{publisher}/models/{model}

string model = 2 [(.google.api.field_behavior) = IMMUTABLE];

Returns
Type Description
ByteString

The bytes for model.

getName()

public String getName()

Immutable. Identifier. The server-generated resource name of the cached content Format: projects/{project}/locations/{location}/cachedContents/{cached_content}

string name = 1 [(.google.api.field_behavior) = IDENTIFIER, (.google.api.field_behavior) = IMMUTABLE];

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

Immutable. Identifier. The server-generated resource name of the cached content Format: projects/{project}/locations/{location}/cachedContents/{cached_content}

string name = 1 [(.google.api.field_behavior) = IDENTIFIER, (.google.api.field_behavior) = IMMUTABLE];

Returns
Type Description
ByteString

The bytes for name.

getSystemInstruction()

public Content getSystemInstruction()

Optional. Input only. Immutable. Developer set system instruction. Currently, text only

.google.cloud.aiplatform.v1beta1.Content system_instruction = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = INPUT_ONLY];

Returns
Type Description
Content

The systemInstruction.

getSystemInstructionBuilder()

public Content.Builder getSystemInstructionBuilder()

Optional. Input only. Immutable. Developer set system instruction. Currently, text only

.google.cloud.aiplatform.v1beta1.Content system_instruction = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = INPUT_ONLY];

Returns
Type Description
Content.Builder

getSystemInstructionOrBuilder()

public ContentOrBuilder getSystemInstructionOrBuilder()

Optional. Input only. Immutable. Developer set system instruction. Currently, text only

.google.cloud.aiplatform.v1beta1.Content system_instruction = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = INPUT_ONLY];

Returns
Type Description
ContentOrBuilder

getToolConfig()

public ToolConfig getToolConfig()

Optional. Input only. Immutable. Tool config. This config is shared for all tools

.google.cloud.aiplatform.v1beta1.ToolConfig tool_config = 6 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = INPUT_ONLY];

Returns
Type Description
ToolConfig

The toolConfig.

getToolConfigBuilder()

public ToolConfig.Builder getToolConfigBuilder()

Optional. Input only. Immutable. Tool config. This config is shared for all tools

.google.cloud.aiplatform.v1beta1.ToolConfig tool_config = 6 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = INPUT_ONLY];

Returns
Type Description
ToolConfig.Builder

getToolConfigOrBuilder()

public ToolConfigOrBuilder getToolConfigOrBuilder()

Optional. Input only. Immutable. Tool config. This config is shared for all tools

.google.cloud.aiplatform.v1beta1.ToolConfig tool_config = 6 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = INPUT_ONLY];

Returns
Type Description
ToolConfigOrBuilder

getTools(int index)

public Tool getTools(int index)

Optional. Input only. Immutable. A list of Tools the model may use to generate the next response

repeated .google.cloud.aiplatform.v1beta1.Tool tools = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = INPUT_ONLY];

Parameter
Name Description
index int
Returns
Type Description
Tool

getToolsBuilder(int index)

public Tool.Builder getToolsBuilder(int index)

Optional. Input only. Immutable. A list of Tools the model may use to generate the next response

repeated .google.cloud.aiplatform.v1beta1.Tool tools = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = INPUT_ONLY];

Parameter
Name Description
index int
Returns
Type Description
Tool.Builder

getToolsBuilderList()

public List<Tool.Builder> getToolsBuilderList()

Optional. Input only. Immutable. A list of Tools the model may use to generate the next response

repeated .google.cloud.aiplatform.v1beta1.Tool tools = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = INPUT_ONLY];

Returns
Type Description
List<Builder>

getToolsCount()

public int getToolsCount()

Optional. Input only. Immutable. A list of Tools the model may use to generate the next response

repeated .google.cloud.aiplatform.v1beta1.Tool tools = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = INPUT_ONLY];

Returns
Type Description
int

getToolsList()

public List<Tool> getToolsList()

Optional. Input only. Immutable. A list of Tools the model may use to generate the next response

repeated .google.cloud.aiplatform.v1beta1.Tool tools = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = INPUT_ONLY];

Returns
Type Description
List<Tool>

getToolsOrBuilder(int index)

public ToolOrBuilder getToolsOrBuilder(int index)

Optional. Input only. Immutable. A list of Tools the model may use to generate the next response

repeated .google.cloud.aiplatform.v1beta1.Tool tools = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = INPUT_ONLY];

Parameter
Name Description
index int
Returns
Type Description
ToolOrBuilder

getToolsOrBuilderList()

public List<? extends ToolOrBuilder> getToolsOrBuilderList()

Optional. Input only. Immutable. A list of Tools the model may use to generate the next response

repeated .google.cloud.aiplatform.v1beta1.Tool tools = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = INPUT_ONLY];

Returns
Type Description
List<? extends com.google.cloud.aiplatform.v1beta1.ToolOrBuilder>

getTtl()

public Duration getTtl()

Input only. The TTL for this resource. The expiration time is computed: now + TTL.

.google.protobuf.Duration ttl = 10 [(.google.api.field_behavior) = INPUT_ONLY];

Returns
Type Description
Duration

The ttl.

getTtlBuilder()

public Duration.Builder getTtlBuilder()

Input only. The TTL for this resource. The expiration time is computed: now + TTL.

.google.protobuf.Duration ttl = 10 [(.google.api.field_behavior) = INPUT_ONLY];

Returns
Type Description
Builder

getTtlOrBuilder()

public DurationOrBuilder getTtlOrBuilder()

Input only. The TTL for this resource. The expiration time is computed: now + TTL.

.google.protobuf.Duration ttl = 10 [(.google.api.field_behavior) = INPUT_ONLY];

Returns
Type Description
DurationOrBuilder

getUpdateTime()

public Timestamp getUpdateTime()

Output only. When the cache entry was last updated in UTC time.

.google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Timestamp

The updateTime.

getUpdateTimeBuilder()

public Timestamp.Builder getUpdateTimeBuilder()

Output only. When the cache entry was last updated in UTC time.

.google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Builder

getUpdateTimeOrBuilder()

public TimestampOrBuilder getUpdateTimeOrBuilder()

Output only. When the cache entry was last updated in UTC time.

.google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
TimestampOrBuilder

getUsageMetadata()

public CachedContent.UsageMetadata getUsageMetadata()

Output only. Metadata on the usage of the cached content.

.google.cloud.aiplatform.v1beta1.CachedContent.UsageMetadata usage_metadata = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
CachedContent.UsageMetadata

The usageMetadata.

getUsageMetadataBuilder()

public CachedContent.UsageMetadata.Builder getUsageMetadataBuilder()

Output only. Metadata on the usage of the cached content.

.google.cloud.aiplatform.v1beta1.CachedContent.UsageMetadata usage_metadata = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
CachedContent.UsageMetadata.Builder

getUsageMetadataOrBuilder()

public CachedContent.UsageMetadataOrBuilder getUsageMetadataOrBuilder()

Output only. Metadata on the usage of the cached content.

.google.cloud.aiplatform.v1beta1.CachedContent.UsageMetadata usage_metadata = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
CachedContent.UsageMetadataOrBuilder

hasCreateTime()

public boolean hasCreateTime()

Output only. Creatation time of the cache entry.

.google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the createTime field is set.

hasExpireTime()

public boolean hasExpireTime()

Timestamp of when this resource is considered expired. This is always provided on output, regardless of what was sent on input.

.google.protobuf.Timestamp expire_time = 9;

Returns
Type Description
boolean

Whether the expireTime field is set.

hasSystemInstruction()

public boolean hasSystemInstruction()

Optional. Input only. Immutable. Developer set system instruction. Currently, text only

.google.cloud.aiplatform.v1beta1.Content system_instruction = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = INPUT_ONLY];

Returns
Type Description
boolean

Whether the systemInstruction field is set.

hasToolConfig()

public boolean hasToolConfig()

Optional. Input only. Immutable. Tool config. This config is shared for all tools

.google.cloud.aiplatform.v1beta1.ToolConfig tool_config = 6 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = INPUT_ONLY];

Returns
Type Description
boolean

Whether the toolConfig field is set.

hasTtl()

public boolean hasTtl()

Input only. The TTL for this resource. The expiration time is computed: now + TTL.

.google.protobuf.Duration ttl = 10 [(.google.api.field_behavior) = INPUT_ONLY];

Returns
Type Description
boolean

Whether the ttl field is set.

hasUpdateTime()

public boolean hasUpdateTime()

Output only. When the cache entry was last updated in UTC time.

.google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the updateTime field is set.

hasUsageMetadata()

public boolean hasUsageMetadata()

Output only. Metadata on the usage of the cached content.

.google.cloud.aiplatform.v1beta1.CachedContent.UsageMetadata usage_metadata = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the usageMetadata field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeCreateTime(Timestamp value)

public CachedContent.Builder mergeCreateTime(Timestamp value)

Output only. Creatation time of the cache entry.

.google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Timestamp
Returns
Type Description
CachedContent.Builder

mergeExpireTime(Timestamp value)

public CachedContent.Builder mergeExpireTime(Timestamp value)

Timestamp of when this resource is considered expired. This is always provided on output, regardless of what was sent on input.

.google.protobuf.Timestamp expire_time = 9;

Parameter
Name Description
value Timestamp
Returns
Type Description
CachedContent.Builder

mergeFrom(CachedContent other)

public CachedContent.Builder mergeFrom(CachedContent other)
Parameter
Name Description
other CachedContent
Returns
Type Description
CachedContent.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public CachedContent.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
CachedContent.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public CachedContent.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
CachedContent.Builder
Overrides

mergeSystemInstruction(Content value)

public CachedContent.Builder mergeSystemInstruction(Content value)

Optional. Input only. Immutable. Developer set system instruction. Currently, text only

.google.cloud.aiplatform.v1beta1.Content system_instruction = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = INPUT_ONLY];

Parameter
Name Description
value Content
Returns
Type Description
CachedContent.Builder

mergeToolConfig(ToolConfig value)

public CachedContent.Builder mergeToolConfig(ToolConfig value)

Optional. Input only. Immutable. Tool config. This config is shared for all tools

.google.cloud.aiplatform.v1beta1.ToolConfig tool_config = 6 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = INPUT_ONLY];

Parameter
Name Description
value ToolConfig
Returns
Type Description
CachedContent.Builder

mergeTtl(Duration value)

public CachedContent.Builder mergeTtl(Duration value)

Input only. The TTL for this resource. The expiration time is computed: now + TTL.

.google.protobuf.Duration ttl = 10 [(.google.api.field_behavior) = INPUT_ONLY];

Parameter
Name Description
value Duration
Returns
Type Description
CachedContent.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final CachedContent.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
CachedContent.Builder
Overrides

mergeUpdateTime(Timestamp value)

public CachedContent.Builder mergeUpdateTime(Timestamp value)

Output only. When the cache entry was last updated in UTC time.

.google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Timestamp
Returns
Type Description
CachedContent.Builder

mergeUsageMetadata(CachedContent.UsageMetadata value)

public CachedContent.Builder mergeUsageMetadata(CachedContent.UsageMetadata value)

Output only. Metadata on the usage of the cached content.

.google.cloud.aiplatform.v1beta1.CachedContent.UsageMetadata usage_metadata = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value CachedContent.UsageMetadata
Returns
Type Description
CachedContent.Builder

removeContents(int index)

public CachedContent.Builder removeContents(int index)

Optional. Input only. Immutable. The content to cache

repeated .google.cloud.aiplatform.v1beta1.Content contents = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = INPUT_ONLY];

Parameter
Name Description
index int
Returns
Type Description
CachedContent.Builder

removeTools(int index)

public CachedContent.Builder removeTools(int index)

Optional. Input only. Immutable. A list of Tools the model may use to generate the next response

repeated .google.cloud.aiplatform.v1beta1.Tool tools = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = INPUT_ONLY];

Parameter
Name Description
index int
Returns
Type Description
CachedContent.Builder

setContents(int index, Content value)

public CachedContent.Builder setContents(int index, Content value)

Optional. Input only. Immutable. The content to cache

repeated .google.cloud.aiplatform.v1beta1.Content contents = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = INPUT_ONLY];

Parameters
Name Description
index int
value Content
Returns
Type Description
CachedContent.Builder

setContents(int index, Content.Builder builderForValue)

public CachedContent.Builder setContents(int index, Content.Builder builderForValue)

Optional. Input only. Immutable. The content to cache

repeated .google.cloud.aiplatform.v1beta1.Content contents = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = INPUT_ONLY];

Parameters
Name Description
index int
builderForValue Content.Builder
Returns
Type Description
CachedContent.Builder

setCreateTime(Timestamp value)

public CachedContent.Builder setCreateTime(Timestamp value)

Output only. Creatation time of the cache entry.

.google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Timestamp
Returns
Type Description
CachedContent.Builder

setCreateTime(Timestamp.Builder builderForValue)

public CachedContent.Builder setCreateTime(Timestamp.Builder builderForValue)

Output only. Creatation time of the cache entry.

.google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
builderForValue Builder
Returns
Type Description
CachedContent.Builder

setDisplayName(String value)

public CachedContent.Builder setDisplayName(String value)

Optional. Immutable. The user-generated meaningful display name of the cached content.

string display_name = 11 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE];

Parameter
Name Description
value String

The displayName to set.

Returns
Type Description
CachedContent.Builder

This builder for chaining.

setDisplayNameBytes(ByteString value)

public CachedContent.Builder setDisplayNameBytes(ByteString value)

Optional. Immutable. The user-generated meaningful display name of the cached content.

string display_name = 11 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE];

Parameter
Name Description
value ByteString

The bytes for displayName to set.

Returns
Type Description
CachedContent.Builder

This builder for chaining.

setExpireTime(Timestamp value)

public CachedContent.Builder setExpireTime(Timestamp value)

Timestamp of when this resource is considered expired. This is always provided on output, regardless of what was sent on input.

.google.protobuf.Timestamp expire_time = 9;

Parameter
Name Description
value Timestamp
Returns
Type Description
CachedContent.Builder

setExpireTime(Timestamp.Builder builderForValue)

public CachedContent.Builder setExpireTime(Timestamp.Builder builderForValue)

Timestamp of when this resource is considered expired. This is always provided on output, regardless of what was sent on input.

.google.protobuf.Timestamp expire_time = 9;

Parameter
Name Description
builderForValue Builder
Returns
Type Description
CachedContent.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public CachedContent.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
CachedContent.Builder
Overrides

setModel(String value)

public CachedContent.Builder setModel(String value)

Immutable. The name of the publisher model to use for cached content. Format: projects/{project}/locations/{location}/publishers/{publisher}/models/{model}

string model = 2 [(.google.api.field_behavior) = IMMUTABLE];

Parameter
Name Description
value String

The model to set.

Returns
Type Description
CachedContent.Builder

This builder for chaining.

setModelBytes(ByteString value)

public CachedContent.Builder setModelBytes(ByteString value)

Immutable. The name of the publisher model to use for cached content. Format: projects/{project}/locations/{location}/publishers/{publisher}/models/{model}

string model = 2 [(.google.api.field_behavior) = IMMUTABLE];

Parameter
Name Description
value ByteString

The bytes for model to set.

Returns
Type Description
CachedContent.Builder

This builder for chaining.

setName(String value)

public CachedContent.Builder setName(String value)

Immutable. Identifier. The server-generated resource name of the cached content Format: projects/{project}/locations/{location}/cachedContents/{cached_content}

string name = 1 [(.google.api.field_behavior) = IDENTIFIER, (.google.api.field_behavior) = IMMUTABLE];

Parameter
Name Description
value String

The name to set.

Returns
Type Description
CachedContent.Builder

This builder for chaining.

setNameBytes(ByteString value)

public CachedContent.Builder setNameBytes(ByteString value)

Immutable. Identifier. The server-generated resource name of the cached content Format: projects/{project}/locations/{location}/cachedContents/{cached_content}

string name = 1 [(.google.api.field_behavior) = IDENTIFIER, (.google.api.field_behavior) = IMMUTABLE];

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
CachedContent.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public CachedContent.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
CachedContent.Builder
Overrides

setSystemInstruction(Content value)

public CachedContent.Builder setSystemInstruction(Content value)

Optional. Input only. Immutable. Developer set system instruction. Currently, text only

.google.cloud.aiplatform.v1beta1.Content system_instruction = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = INPUT_ONLY];

Parameter
Name Description
value Content
Returns
Type Description
CachedContent.Builder

setSystemInstruction(Content.Builder builderForValue)

public CachedContent.Builder setSystemInstruction(Content.Builder builderForValue)

Optional. Input only. Immutable. Developer set system instruction. Currently, text only

.google.cloud.aiplatform.v1beta1.Content system_instruction = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = INPUT_ONLY];

Parameter
Name Description
builderForValue Content.Builder
Returns
Type Description
CachedContent.Builder

setToolConfig(ToolConfig value)

public CachedContent.Builder setToolConfig(ToolConfig value)

Optional. Input only. Immutable. Tool config. This config is shared for all tools

.google.cloud.aiplatform.v1beta1.ToolConfig tool_config = 6 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = INPUT_ONLY];

Parameter
Name Description
value ToolConfig
Returns
Type Description
CachedContent.Builder

setToolConfig(ToolConfig.Builder builderForValue)

public CachedContent.Builder setToolConfig(ToolConfig.Builder builderForValue)

Optional. Input only. Immutable. Tool config. This config is shared for all tools

.google.cloud.aiplatform.v1beta1.ToolConfig tool_config = 6 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = INPUT_ONLY];

Parameter
Name Description
builderForValue ToolConfig.Builder
Returns
Type Description
CachedContent.Builder

setTools(int index, Tool value)

public CachedContent.Builder setTools(int index, Tool value)

Optional. Input only. Immutable. A list of Tools the model may use to generate the next response

repeated .google.cloud.aiplatform.v1beta1.Tool tools = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = INPUT_ONLY];

Parameters
Name Description
index int
value Tool
Returns
Type Description
CachedContent.Builder

setTools(int index, Tool.Builder builderForValue)

public CachedContent.Builder setTools(int index, Tool.Builder builderForValue)

Optional. Input only. Immutable. A list of Tools the model may use to generate the next response

repeated .google.cloud.aiplatform.v1beta1.Tool tools = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = INPUT_ONLY];

Parameters
Name Description
index int
builderForValue Tool.Builder
Returns
Type Description
CachedContent.Builder

setTtl(Duration value)

public CachedContent.Builder setTtl(Duration value)

Input only. The TTL for this resource. The expiration time is computed: now + TTL.

.google.protobuf.Duration ttl = 10 [(.google.api.field_behavior) = INPUT_ONLY];

Parameter
Name Description
value Duration
Returns
Type Description
CachedContent.Builder

setTtl(Duration.Builder builderForValue)

public CachedContent.Builder setTtl(Duration.Builder builderForValue)

Input only. The TTL for this resource. The expiration time is computed: now + TTL.

.google.protobuf.Duration ttl = 10 [(.google.api.field_behavior) = INPUT_ONLY];

Parameter
Name Description
builderForValue Builder
Returns
Type Description
CachedContent.Builder

setUnknownFields(UnknownFieldSet unknownFields)

public final CachedContent.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
CachedContent.Builder
Overrides

setUpdateTime(Timestamp value)

public CachedContent.Builder setUpdateTime(Timestamp value)

Output only. When the cache entry was last updated in UTC time.

.google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Timestamp
Returns
Type Description
CachedContent.Builder

setUpdateTime(Timestamp.Builder builderForValue)

public CachedContent.Builder setUpdateTime(Timestamp.Builder builderForValue)

Output only. When the cache entry was last updated in UTC time.

.google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
builderForValue Builder
Returns
Type Description
CachedContent.Builder

setUsageMetadata(CachedContent.UsageMetadata value)

public CachedContent.Builder setUsageMetadata(CachedContent.UsageMetadata value)

Output only. Metadata on the usage of the cached content.

.google.cloud.aiplatform.v1beta1.CachedContent.UsageMetadata usage_metadata = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value CachedContent.UsageMetadata
Returns
Type Description
CachedContent.Builder

setUsageMetadata(CachedContent.UsageMetadata.Builder builderForValue)

public CachedContent.Builder setUsageMetadata(CachedContent.UsageMetadata.Builder builderForValue)

Output only. Metadata on the usage of the cached content.

.google.cloud.aiplatform.v1beta1.CachedContent.UsageMetadata usage_metadata = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
builderForValue CachedContent.UsageMetadata.Builder
Returns
Type Description
CachedContent.Builder