- 3.56.0 (latest)
- 3.55.0
- 3.54.0
- 3.53.0
- 3.52.0
- 3.50.0
- 3.49.0
- 3.48.0
- 3.47.0
- 3.46.0
- 3.45.0
- 3.44.0
- 3.43.0
- 3.42.0
- 3.41.0
- 3.40.0
- 3.38.0
- 3.37.0
- 3.36.0
- 3.35.0
- 3.34.0
- 3.33.0
- 3.32.0
- 3.31.0
- 3.30.0
- 3.29.0
- 3.28.0
- 3.25.0
- 3.24.0
- 3.23.0
- 3.22.0
- 3.21.0
- 3.20.0
- 3.19.0
- 3.18.0
- 3.17.0
- 3.16.0
- 3.15.0
- 3.14.0
- 3.13.0
- 3.12.0
- 3.11.0
- 3.10.0
- 3.9.0
- 3.8.0
- 3.7.0
- 3.6.0
- 3.5.0
- 3.4.2
- 3.3.0
- 3.2.0
- 3.0.0
- 2.9.8
- 2.8.9
- 2.7.4
- 2.5.3
- 2.4.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
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > CachedContent.BuilderImplements
CachedContentOrBuilderStatic 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 |
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 |
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 |
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 |
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 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 |
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 |
clone()
public CachedContent.Builder clone()
Returns | |
---|---|
Type | Description |
CachedContent.Builder |
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 |
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 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 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 |
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. |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns | |
---|---|
Type | Description |
FieldAccessorTable |
isInitialized()
public final boolean isInitialized()
Returns | |
---|---|
Type | Description |
boolean |
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 |
Exceptions | |
---|---|
Type | Description |
IOException |
mergeFrom(Message other)
public CachedContent.Builder mergeFrom(Message other)
Parameter | |
---|---|
Name | Description |
other |
Message |
Returns | |
---|---|
Type | Description |
CachedContent.Builder |
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 |
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 |
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 |
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 |
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 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 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 |
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 |
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 |