Package com.google.cloud.aiplatform.v1
Class CachedContent.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<CachedContent.Builder>
com.google.cloud.aiplatform.v1.CachedContent.Builder
- All Implemented Interfaces:
CachedContentOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- CachedContent
public static final class CachedContent.Builder
extends com.google.protobuf.GeneratedMessage.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.v1.CachedContent-
Method Summary
Modifier and TypeMethodDescriptionaddAllContents(Iterable<? extends Content> values) Optional.addAllTools(Iterable<? extends Tool> values) Optional.addContents(int index, Content value) Optional.addContents(int index, Content.Builder builderForValue) Optional.addContents(Content value) Optional.addContents(Content.Builder builderForValue) Optional.Optional.addContentsBuilder(int index) Optional.Optional.addTools(int index, Tool.Builder builderForValue) Optional.Optional.addTools(Tool.Builder builderForValue) Optional.Optional.addToolsBuilder(int index) Optional.build()clear()Optional.Output only.Optional.Input only.Timestamp of when this resource is considered expired.Immutable.Immutable.Optional.Optional.Optional.clearTtl()Input only.Output only.Output only.getContents(int index) Optional.getContentsBuilder(int index) Optional.Optional.intOptional.Optional.getContentsOrBuilder(int index) Optional.List<? extends ContentOrBuilder>Optional.com.google.protobuf.TimestampOutput only.com.google.protobuf.Timestamp.BuilderOutput only.com.google.protobuf.TimestampOrBuilderOutput only.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorOptional.com.google.protobuf.ByteStringOptional.Input only.Input only.Input only.com.google.protobuf.TimestampTimestamp of when this resource is considered expired.com.google.protobuf.Timestamp.BuilderTimestamp of when this resource is considered expired.com.google.protobuf.TimestampOrBuilderTimestamp of when this resource is considered expired.getModel()Immutable.com.google.protobuf.ByteStringImmutable.getName()Immutable.com.google.protobuf.ByteStringImmutable.Optional.Optional.Optional.Optional.Optional.Optional.getTools(int index) Optional.getToolsBuilder(int index) Optional.Optional.intOptional.Optional.getToolsOrBuilder(int index) Optional.List<? extends ToolOrBuilder>Optional.com.google.protobuf.DurationgetTtl()Input only.com.google.protobuf.Duration.BuilderInput only.com.google.protobuf.DurationOrBuilderInput only.com.google.protobuf.TimestampOutput only.com.google.protobuf.Timestamp.BuilderOutput only.com.google.protobuf.TimestampOrBuilderOutput only.Output only.Output only.Output only.booleanOutput only.booleanInput only.booleanTimestamp of when this resource is considered expired.booleanOptional.booleanOptional.booleanhasTtl()Input only.booleanOutput only.booleanOutput only.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeCreateTime(com.google.protobuf.Timestamp value) Output only.Input only.mergeExpireTime(com.google.protobuf.Timestamp value) Timestamp of when this resource is considered expired.mergeFrom(CachedContent other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeSystemInstruction(Content value) Optional.mergeToolConfig(ToolConfig value) Optional.mergeTtl(com.google.protobuf.Duration value) Input only.mergeUpdateTime(com.google.protobuf.Timestamp value) Output only.Output only.removeContents(int index) Optional.removeTools(int index) Optional.setContents(int index, Content value) Optional.setContents(int index, Content.Builder builderForValue) Optional.setCreateTime(com.google.protobuf.Timestamp value) Output only.setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) Output only.setDisplayName(String value) Optional.setDisplayNameBytes(com.google.protobuf.ByteString value) Optional.setEncryptionSpec(EncryptionSpec value) Input only.setEncryptionSpec(EncryptionSpec.Builder builderForValue) Input only.setExpireTime(com.google.protobuf.Timestamp value) Timestamp of when this resource is considered expired.setExpireTime(com.google.protobuf.Timestamp.Builder builderForValue) Timestamp of when this resource is considered expired.Immutable.setModelBytes(com.google.protobuf.ByteString value) Immutable.Immutable.setNameBytes(com.google.protobuf.ByteString value) Immutable.setSystemInstruction(Content value) Optional.setSystemInstruction(Content.Builder builderForValue) Optional.setToolConfig(ToolConfig value) Optional.setToolConfig(ToolConfig.Builder builderForValue) Optional.Optional.setTools(int index, Tool.Builder builderForValue) Optional.setTtl(com.google.protobuf.Duration value) Input only.setTtl(com.google.protobuf.Duration.Builder builderForValue) Input only.setUpdateTime(com.google.protobuf.Timestamp value) Output only.setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) Output only.Output only.setUsageMetadata(CachedContent.UsageMetadata.Builder builderForValue) Output only.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<CachedContent.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<CachedContent.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<CachedContent.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<CachedContent.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<CachedContent.Builder>
-
mergeFrom
public CachedContent.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<CachedContent.Builder>- Throws:
IOException
-
getExpirationCase
- Specified by:
getExpirationCasein interfaceCachedContentOrBuilder
-
clearExpiration
-
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;- Specified by:
hasExpireTimein interfaceCachedContentOrBuilder- Returns:
- Whether the expireTime field is set.
-
getExpireTime
public com.google.protobuf.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;- Specified by:
getExpireTimein interfaceCachedContentOrBuilder- Returns:
- The expireTime.
-
setExpireTime
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; -
setExpireTime
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; -
mergeExpireTime
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; -
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; -
getExpireTimeBuilder
public com.google.protobuf.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; -
getExpireTimeOrBuilder
public com.google.protobuf.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;- Specified by:
getExpireTimeOrBuilderin interfaceCachedContentOrBuilder
-
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];- Specified by:
hasTtlin interfaceCachedContentOrBuilder- Returns:
- Whether the ttl field is set.
-
getTtl
public com.google.protobuf.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];- Specified by:
getTtlin interfaceCachedContentOrBuilder- Returns:
- The ttl.
-
setTtl
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]; -
setTtl
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]; -
mergeTtl
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]; -
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]; -
getTtlBuilder
public com.google.protobuf.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]; -
getTtlOrBuilder
public com.google.protobuf.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];- Specified by:
getTtlOrBuilderin interfaceCachedContentOrBuilder
-
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];- Specified by:
getNamein interfaceCachedContentOrBuilder- Returns:
- The name.
-
getNameBytes
public com.google.protobuf.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];- Specified by:
getNameBytesin interfaceCachedContentOrBuilder- Returns:
- The bytes for name.
-
setName
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];- Parameters:
value- The name to set.- Returns:
- This builder for chaining.
-
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:
- This builder for chaining.
-
setNameBytes
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];- Parameters:
value- The bytes for name to set.- Returns:
- This builder for chaining.
-
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];- Specified by:
getDisplayNamein interfaceCachedContentOrBuilder- Returns:
- The displayName.
-
getDisplayNameBytes
public com.google.protobuf.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];- Specified by:
getDisplayNameBytesin interfaceCachedContentOrBuilder- Returns:
- The bytes for displayName.
-
setDisplayName
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];- Parameters:
value- The displayName to set.- Returns:
- This builder for chaining.
-
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:
- This builder for chaining.
-
setDisplayNameBytes
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];- Parameters:
value- The bytes for displayName to set.- Returns:
- This builder for chaining.
-
getModel
Immutable. The name of the `Model` to use for cached content. Currently, only the published Gemini base models are supported, in form of projects/{PROJECT}/locations/{LOCATION}/publishers/google/models/{MODEL}string model = 2 [(.google.api.field_behavior) = IMMUTABLE];- Specified by:
getModelin interfaceCachedContentOrBuilder- Returns:
- The model.
-
getModelBytes
public com.google.protobuf.ByteString getModelBytes()Immutable. The name of the `Model` to use for cached content. Currently, only the published Gemini base models are supported, in form of projects/{PROJECT}/locations/{LOCATION}/publishers/google/models/{MODEL}string model = 2 [(.google.api.field_behavior) = IMMUTABLE];- Specified by:
getModelBytesin interfaceCachedContentOrBuilder- Returns:
- The bytes for model.
-
setModel
Immutable. The name of the `Model` to use for cached content. Currently, only the published Gemini base models are supported, in form of projects/{PROJECT}/locations/{LOCATION}/publishers/google/models/{MODEL}string model = 2 [(.google.api.field_behavior) = IMMUTABLE];- Parameters:
value- The model to set.- Returns:
- This builder for chaining.
-
clearModel
Immutable. The name of the `Model` to use for cached content. Currently, only the published Gemini base models are supported, in form of projects/{PROJECT}/locations/{LOCATION}/publishers/google/models/{MODEL}string model = 2 [(.google.api.field_behavior) = IMMUTABLE];- Returns:
- This builder for chaining.
-
setModelBytes
Immutable. The name of the `Model` to use for cached content. Currently, only the published Gemini base models are supported, in form of projects/{PROJECT}/locations/{LOCATION}/publishers/google/models/{MODEL}string model = 2 [(.google.api.field_behavior) = IMMUTABLE];- Parameters:
value- The bytes for model to set.- Returns:
- This builder for chaining.
-
hasSystemInstruction
public boolean hasSystemInstruction()Optional. Input only. Immutable. Developer set system instruction. Currently, text only
.google.cloud.aiplatform.v1.Content system_instruction = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = INPUT_ONLY];- Specified by:
hasSystemInstructionin interfaceCachedContentOrBuilder- Returns:
- Whether the systemInstruction field is set.
-
getSystemInstruction
Optional. Input only. Immutable. Developer set system instruction. Currently, text only
.google.cloud.aiplatform.v1.Content system_instruction = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = INPUT_ONLY];- Specified by:
getSystemInstructionin interfaceCachedContentOrBuilder- Returns:
- The systemInstruction.
-
setSystemInstruction
Optional. Input only. Immutable. Developer set system instruction. Currently, text only
.google.cloud.aiplatform.v1.Content system_instruction = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = INPUT_ONLY]; -
setSystemInstruction
Optional. Input only. Immutable. Developer set system instruction. Currently, text only
.google.cloud.aiplatform.v1.Content system_instruction = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = INPUT_ONLY]; -
mergeSystemInstruction
Optional. Input only. Immutable. Developer set system instruction. Currently, text only
.google.cloud.aiplatform.v1.Content system_instruction = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = INPUT_ONLY]; -
clearSystemInstruction
Optional. Input only. Immutable. Developer set system instruction. Currently, text only
.google.cloud.aiplatform.v1.Content system_instruction = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = INPUT_ONLY]; -
getSystemInstructionBuilder
Optional. Input only. Immutable. Developer set system instruction. Currently, text only
.google.cloud.aiplatform.v1.Content system_instruction = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = INPUT_ONLY]; -
getSystemInstructionOrBuilder
Optional. Input only. Immutable. Developer set system instruction. Currently, text only
.google.cloud.aiplatform.v1.Content system_instruction = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = INPUT_ONLY];- Specified by:
getSystemInstructionOrBuilderin interfaceCachedContentOrBuilder
-
getContentsList
Optional. Input only. Immutable. The content to cache
repeated .google.cloud.aiplatform.v1.Content contents = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = INPUT_ONLY];- Specified by:
getContentsListin interfaceCachedContentOrBuilder
-
getContentsCount
public int getContentsCount()Optional. Input only. Immutable. The content to cache
repeated .google.cloud.aiplatform.v1.Content contents = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = INPUT_ONLY];- Specified by:
getContentsCountin interfaceCachedContentOrBuilder
-
getContents
Optional. Input only. Immutable. The content to cache
repeated .google.cloud.aiplatform.v1.Content contents = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = INPUT_ONLY];- Specified by:
getContentsin interfaceCachedContentOrBuilder
-
setContents
Optional. Input only. Immutable. The content to cache
repeated .google.cloud.aiplatform.v1.Content contents = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = INPUT_ONLY]; -
setContents
Optional. Input only. Immutable. The content to cache
repeated .google.cloud.aiplatform.v1.Content contents = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = INPUT_ONLY]; -
addContents
Optional. Input only. Immutable. The content to cache
repeated .google.cloud.aiplatform.v1.Content contents = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = INPUT_ONLY]; -
addContents
Optional. Input only. Immutable. The content to cache
repeated .google.cloud.aiplatform.v1.Content contents = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = INPUT_ONLY]; -
addContents
Optional. Input only. Immutable. The content to cache
repeated .google.cloud.aiplatform.v1.Content contents = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = INPUT_ONLY]; -
addContents
Optional. Input only. Immutable. The content to cache
repeated .google.cloud.aiplatform.v1.Content contents = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = INPUT_ONLY]; -
addAllContents
Optional. Input only. Immutable. The content to cache
repeated .google.cloud.aiplatform.v1.Content contents = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = INPUT_ONLY]; -
clearContents
Optional. Input only. Immutable. The content to cache
repeated .google.cloud.aiplatform.v1.Content contents = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = INPUT_ONLY]; -
removeContents
Optional. Input only. Immutable. The content to cache
repeated .google.cloud.aiplatform.v1.Content contents = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = INPUT_ONLY]; -
getContentsBuilder
Optional. Input only. Immutable. The content to cache
repeated .google.cloud.aiplatform.v1.Content contents = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = INPUT_ONLY]; -
getContentsOrBuilder
Optional. Input only. Immutable. The content to cache
repeated .google.cloud.aiplatform.v1.Content contents = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = INPUT_ONLY];- Specified by:
getContentsOrBuilderin interfaceCachedContentOrBuilder
-
getContentsOrBuilderList
Optional. Input only. Immutable. The content to cache
repeated .google.cloud.aiplatform.v1.Content contents = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = INPUT_ONLY];- Specified by:
getContentsOrBuilderListin interfaceCachedContentOrBuilder
-
addContentsBuilder
Optional. Input only. Immutable. The content to cache
repeated .google.cloud.aiplatform.v1.Content contents = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = INPUT_ONLY]; -
addContentsBuilder
Optional. Input only. Immutable. The content to cache
repeated .google.cloud.aiplatform.v1.Content contents = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = INPUT_ONLY]; -
getContentsBuilderList
Optional. Input only. Immutable. The content to cache
repeated .google.cloud.aiplatform.v1.Content contents = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = INPUT_ONLY]; -
getToolsList
Optional. Input only. Immutable. A list of `Tools` the model may use to generate the next response
repeated .google.cloud.aiplatform.v1.Tool tools = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = INPUT_ONLY];- Specified by:
getToolsListin interfaceCachedContentOrBuilder
-
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.v1.Tool tools = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = INPUT_ONLY];- Specified by:
getToolsCountin interfaceCachedContentOrBuilder
-
getTools
Optional. Input only. Immutable. A list of `Tools` the model may use to generate the next response
repeated .google.cloud.aiplatform.v1.Tool tools = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = INPUT_ONLY];- Specified by:
getToolsin interfaceCachedContentOrBuilder
-
setTools
Optional. Input only. Immutable. A list of `Tools` the model may use to generate the next response
repeated .google.cloud.aiplatform.v1.Tool tools = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = INPUT_ONLY]; -
setTools
Optional. Input only. Immutable. A list of `Tools` the model may use to generate the next response
repeated .google.cloud.aiplatform.v1.Tool tools = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = INPUT_ONLY]; -
addTools
Optional. Input only. Immutable. A list of `Tools` the model may use to generate the next response
repeated .google.cloud.aiplatform.v1.Tool tools = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = INPUT_ONLY]; -
addTools
Optional. Input only. Immutable. A list of `Tools` the model may use to generate the next response
repeated .google.cloud.aiplatform.v1.Tool tools = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = INPUT_ONLY]; -
addTools
Optional. Input only. Immutable. A list of `Tools` the model may use to generate the next response
repeated .google.cloud.aiplatform.v1.Tool tools = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = INPUT_ONLY]; -
addTools
Optional. Input only. Immutable. A list of `Tools` the model may use to generate the next response
repeated .google.cloud.aiplatform.v1.Tool tools = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = INPUT_ONLY]; -
addAllTools
Optional. Input only. Immutable. A list of `Tools` the model may use to generate the next response
repeated .google.cloud.aiplatform.v1.Tool tools = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = INPUT_ONLY]; -
clearTools
Optional. Input only. Immutable. A list of `Tools` the model may use to generate the next response
repeated .google.cloud.aiplatform.v1.Tool tools = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = INPUT_ONLY]; -
removeTools
Optional. Input only. Immutable. A list of `Tools` the model may use to generate the next response
repeated .google.cloud.aiplatform.v1.Tool tools = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = INPUT_ONLY]; -
getToolsBuilder
Optional. Input only. Immutable. A list of `Tools` the model may use to generate the next response
repeated .google.cloud.aiplatform.v1.Tool tools = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = INPUT_ONLY]; -
getToolsOrBuilder
Optional. Input only. Immutable. A list of `Tools` the model may use to generate the next response
repeated .google.cloud.aiplatform.v1.Tool tools = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = INPUT_ONLY];- Specified by:
getToolsOrBuilderin interfaceCachedContentOrBuilder
-
getToolsOrBuilderList
Optional. Input only. Immutable. A list of `Tools` the model may use to generate the next response
repeated .google.cloud.aiplatform.v1.Tool tools = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = INPUT_ONLY];- Specified by:
getToolsOrBuilderListin interfaceCachedContentOrBuilder
-
addToolsBuilder
Optional. Input only. Immutable. A list of `Tools` the model may use to generate the next response
repeated .google.cloud.aiplatform.v1.Tool tools = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = INPUT_ONLY]; -
addToolsBuilder
Optional. Input only. Immutable. A list of `Tools` the model may use to generate the next response
repeated .google.cloud.aiplatform.v1.Tool tools = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = INPUT_ONLY]; -
getToolsBuilderList
Optional. Input only. Immutable. A list of `Tools` the model may use to generate the next response
repeated .google.cloud.aiplatform.v1.Tool tools = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = INPUT_ONLY]; -
hasToolConfig
public boolean hasToolConfig()Optional. Input only. Immutable. Tool config. This config is shared for all tools
.google.cloud.aiplatform.v1.ToolConfig tool_config = 6 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = INPUT_ONLY];- Specified by:
hasToolConfigin interfaceCachedContentOrBuilder- Returns:
- Whether the toolConfig field is set.
-
getToolConfig
Optional. Input only. Immutable. Tool config. This config is shared for all tools
.google.cloud.aiplatform.v1.ToolConfig tool_config = 6 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = INPUT_ONLY];- Specified by:
getToolConfigin interfaceCachedContentOrBuilder- Returns:
- The toolConfig.
-
setToolConfig
Optional. Input only. Immutable. Tool config. This config is shared for all tools
.google.cloud.aiplatform.v1.ToolConfig tool_config = 6 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = INPUT_ONLY]; -
setToolConfig
Optional. Input only. Immutable. Tool config. This config is shared for all tools
.google.cloud.aiplatform.v1.ToolConfig tool_config = 6 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = INPUT_ONLY]; -
mergeToolConfig
Optional. Input only. Immutable. Tool config. This config is shared for all tools
.google.cloud.aiplatform.v1.ToolConfig tool_config = 6 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = INPUT_ONLY]; -
clearToolConfig
Optional. Input only. Immutable. Tool config. This config is shared for all tools
.google.cloud.aiplatform.v1.ToolConfig tool_config = 6 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = INPUT_ONLY]; -
getToolConfigBuilder
Optional. Input only. Immutable. Tool config. This config is shared for all tools
.google.cloud.aiplatform.v1.ToolConfig tool_config = 6 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = INPUT_ONLY]; -
getToolConfigOrBuilder
Optional. Input only. Immutable. Tool config. This config is shared for all tools
.google.cloud.aiplatform.v1.ToolConfig tool_config = 6 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = INPUT_ONLY];- Specified by:
getToolConfigOrBuilderin interfaceCachedContentOrBuilder
-
hasCreateTime
public boolean hasCreateTime()Output only. Creation time of the cache entry.
.google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
hasCreateTimein interfaceCachedContentOrBuilder- Returns:
- Whether the createTime field is set.
-
getCreateTime
public com.google.protobuf.Timestamp getCreateTime()Output only. Creation time of the cache entry.
.google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getCreateTimein interfaceCachedContentOrBuilder- Returns:
- The createTime.
-
setCreateTime
Output only. Creation time of the cache entry.
.google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
setCreateTime
Output only. Creation time of the cache entry.
.google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
mergeCreateTime
Output only. Creation time of the cache entry.
.google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
clearCreateTime
Output only. Creation time of the cache entry.
.google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
getCreateTimeBuilder
public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder()Output only. Creation time of the cache entry.
.google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
getCreateTimeOrBuilder
public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder()Output only. Creation time of the cache entry.
.google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getCreateTimeOrBuilderin interfaceCachedContentOrBuilder
-
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];- Specified by:
hasUpdateTimein interfaceCachedContentOrBuilder- Returns:
- Whether the updateTime field is set.
-
getUpdateTime
public com.google.protobuf.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];- Specified by:
getUpdateTimein interfaceCachedContentOrBuilder- Returns:
- The updateTime.
-
setUpdateTime
Output only. When the cache entry was last updated in UTC time.
.google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
setUpdateTime
Output only. When the cache entry was last updated in UTC time.
.google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
mergeUpdateTime
Output only. When the cache entry was last updated in UTC time.
.google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
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]; -
getUpdateTimeBuilder
public com.google.protobuf.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]; -
getUpdateTimeOrBuilder
public com.google.protobuf.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];- Specified by:
getUpdateTimeOrBuilderin interfaceCachedContentOrBuilder
-
hasUsageMetadata
public boolean hasUsageMetadata()Output only. Metadata on the usage of the cached content.
.google.cloud.aiplatform.v1.CachedContent.UsageMetadata usage_metadata = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
hasUsageMetadatain interfaceCachedContentOrBuilder- Returns:
- Whether the usageMetadata field is set.
-
getUsageMetadata
Output only. Metadata on the usage of the cached content.
.google.cloud.aiplatform.v1.CachedContent.UsageMetadata usage_metadata = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getUsageMetadatain interfaceCachedContentOrBuilder- Returns:
- The usageMetadata.
-
setUsageMetadata
Output only. Metadata on the usage of the cached content.
.google.cloud.aiplatform.v1.CachedContent.UsageMetadata usage_metadata = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
setUsageMetadata
Output only. Metadata on the usage of the cached content.
.google.cloud.aiplatform.v1.CachedContent.UsageMetadata usage_metadata = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
mergeUsageMetadata
Output only. Metadata on the usage of the cached content.
.google.cloud.aiplatform.v1.CachedContent.UsageMetadata usage_metadata = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
clearUsageMetadata
Output only. Metadata on the usage of the cached content.
.google.cloud.aiplatform.v1.CachedContent.UsageMetadata usage_metadata = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
getUsageMetadataBuilder
Output only. Metadata on the usage of the cached content.
.google.cloud.aiplatform.v1.CachedContent.UsageMetadata usage_metadata = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
getUsageMetadataOrBuilder
Output only. Metadata on the usage of the cached content.
.google.cloud.aiplatform.v1.CachedContent.UsageMetadata usage_metadata = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getUsageMetadataOrBuilderin interfaceCachedContentOrBuilder
-
hasEncryptionSpec
public boolean hasEncryptionSpec()Input only. Immutable. Customer-managed encryption key spec for a `CachedContent`. If set, this `CachedContent` and all its sub-resources will be secured by this key.
.google.cloud.aiplatform.v1.EncryptionSpec encryption_spec = 13 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE];- Specified by:
hasEncryptionSpecin interfaceCachedContentOrBuilder- Returns:
- Whether the encryptionSpec field is set.
-
getEncryptionSpec
Input only. Immutable. Customer-managed encryption key spec for a `CachedContent`. If set, this `CachedContent` and all its sub-resources will be secured by this key.
.google.cloud.aiplatform.v1.EncryptionSpec encryption_spec = 13 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE];- Specified by:
getEncryptionSpecin interfaceCachedContentOrBuilder- Returns:
- The encryptionSpec.
-
setEncryptionSpec
Input only. Immutable. Customer-managed encryption key spec for a `CachedContent`. If set, this `CachedContent` and all its sub-resources will be secured by this key.
.google.cloud.aiplatform.v1.EncryptionSpec encryption_spec = 13 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; -
setEncryptionSpec
Input only. Immutable. Customer-managed encryption key spec for a `CachedContent`. If set, this `CachedContent` and all its sub-resources will be secured by this key.
.google.cloud.aiplatform.v1.EncryptionSpec encryption_spec = 13 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; -
mergeEncryptionSpec
Input only. Immutable. Customer-managed encryption key spec for a `CachedContent`. If set, this `CachedContent` and all its sub-resources will be secured by this key.
.google.cloud.aiplatform.v1.EncryptionSpec encryption_spec = 13 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; -
clearEncryptionSpec
Input only. Immutable. Customer-managed encryption key spec for a `CachedContent`. If set, this `CachedContent` and all its sub-resources will be secured by this key.
.google.cloud.aiplatform.v1.EncryptionSpec encryption_spec = 13 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; -
getEncryptionSpecBuilder
Input only. Immutable. Customer-managed encryption key spec for a `CachedContent`. If set, this `CachedContent` and all its sub-resources will be secured by this key.
.google.cloud.aiplatform.v1.EncryptionSpec encryption_spec = 13 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; -
getEncryptionSpecOrBuilder
Input only. Immutable. Customer-managed encryption key spec for a `CachedContent`. If set, this `CachedContent` and all its sub-resources will be secured by this key.
.google.cloud.aiplatform.v1.EncryptionSpec encryption_spec = 13 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE];- Specified by:
getEncryptionSpecOrBuilderin interfaceCachedContentOrBuilder
-