Package com.google.cloud.aiplatform.v1
Interface CachedContentOrBuilder
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
CachedContent,CachedContent.Builder
@Generated
public interface CachedContentOrBuilder
extends com.google.protobuf.MessageOrBuilder
-
Method Summary
Modifier and TypeMethodDescriptiongetContents(int index) Optional.intOptional.Optional.getContentsOrBuilder(int index) Optional.List<? extends ContentOrBuilder>Optional.com.google.protobuf.TimestampOutput only.com.google.protobuf.TimestampOrBuilderOutput only.Optional.com.google.protobuf.ByteStringOptional.Input only.Input only.com.google.protobuf.TimestampTimestamp 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.getTools(int index) Optional.intOptional.Optional.getToolsOrBuilder(int index) Optional.List<? extends ToolOrBuilder>Optional.com.google.protobuf.DurationgetTtl()Input only.com.google.protobuf.DurationOrBuilderInput only.com.google.protobuf.TimestampOutput only.com.google.protobuf.TimestampOrBuilderOutput 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.Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder
isInitializedMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
hasExpireTime
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:
- Whether the expireTime field is set.
-
getExpireTime
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;- Returns:
- The expireTime.
-
getExpireTimeOrBuilder
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; -
hasTtl
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:
- Whether the ttl field is set.
-
getTtl
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];- Returns:
- The ttl.
-
getTtlOrBuilder
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]; -
getName
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:
- The name.
-
getNameBytes
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];- Returns:
- The bytes for name.
-
getDisplayName
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:
- The displayName.
-
getDisplayNameBytes
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];- Returns:
- The bytes for displayName.
-
getModel
String 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];- Returns:
- The model.
-
getModelBytes
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];- Returns:
- The bytes for model.
-
hasSystemInstruction
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];- Returns:
- Whether the systemInstruction field is set.
-
getSystemInstruction
Content 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];- Returns:
- The systemInstruction.
-
getSystemInstructionOrBuilder
ContentOrBuilder 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]; -
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]; -
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]; -
getContentsCount
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]; -
getContentsOrBuilderList
List<? extends ContentOrBuilder> 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]; -
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]; -
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]; -
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]; -
getToolsCount
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]; -
getToolsOrBuilderList
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.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]; -
hasToolConfig
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];- Returns:
- Whether the toolConfig field is set.
-
getToolConfig
ToolConfig 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];- Returns:
- The toolConfig.
-
getToolConfigOrBuilder
ToolConfigOrBuilder 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]; -
hasCreateTime
boolean hasCreateTime()Output only. Creation time of the cache entry.
.google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- Whether the createTime field is set.
-
getCreateTime
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];- Returns:
- The createTime.
-
getCreateTimeOrBuilder
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]; -
hasUpdateTime
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:
- Whether the updateTime field is set.
-
getUpdateTime
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];- Returns:
- The updateTime.
-
getUpdateTimeOrBuilder
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]; -
hasUsageMetadata
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];- Returns:
- Whether the usageMetadata field is set.
-
getUsageMetadata
CachedContent.UsageMetadata 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];- Returns:
- The usageMetadata.
-
getUsageMetadataOrBuilder
CachedContent.UsageMetadataOrBuilder 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]; -
hasEncryptionSpec
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];- Returns:
- Whether the encryptionSpec field is set.
-
getEncryptionSpec
EncryptionSpec 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];- Returns:
- The encryptionSpec.
-
getEncryptionSpecOrBuilder
EncryptionSpecOrBuilder 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]; -
getExpirationCase
CachedContent.ExpirationCase getExpirationCase()
-