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 Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<CachedContent.Builder>
    • clear

      public CachedContent.Builder clear()
      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<CachedContent.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<CachedContent.Builder>
    • getDefaultInstanceForType

      public CachedContent getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      public CachedContent build()
      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public CachedContent buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public CachedContent.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<CachedContent.Builder>
    • mergeFrom

      public CachedContent.Builder mergeFrom(CachedContent other)
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.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:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<CachedContent.Builder>
      Throws:
      IOException
    • getExpirationCase

      public CachedContent.ExpirationCase getExpirationCase()
      Specified by:
      getExpirationCase in interface CachedContentOrBuilder
    • clearExpiration

      public CachedContent.Builder 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:
      hasExpireTime in interface CachedContentOrBuilder
      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:
      getExpireTime in interface CachedContentOrBuilder
      Returns:
      The expireTime.
    • setExpireTime

      public CachedContent.Builder setExpireTime(com.google.protobuf.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;
    • setExpireTime

      public CachedContent.Builder setExpireTime(com.google.protobuf.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;
    • mergeExpireTime

      public CachedContent.Builder mergeExpireTime(com.google.protobuf.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;
    • 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;
    • 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:
      getExpireTimeOrBuilder in interface CachedContentOrBuilder
    • 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:
      hasTtl in interface CachedContentOrBuilder
      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:
      getTtl in interface CachedContentOrBuilder
      Returns:
      The ttl.
    • setTtl

      public CachedContent.Builder setTtl(com.google.protobuf.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];
    • setTtl

      public CachedContent.Builder setTtl(com.google.protobuf.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];
    • mergeTtl

      public CachedContent.Builder mergeTtl(com.google.protobuf.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];
    • 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];
    • 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:
      getTtlOrBuilder in interface CachedContentOrBuilder
    • getName

      public String getName()
       Immutable. Identifier. The server-generated resource name of the cached
       content Format:
       projects/{project}/locations/{location}/cachedContents/{cached_content}
       
      string name = 1 [(.google.api.field_behavior) = IDENTIFIER, (.google.api.field_behavior) = IMMUTABLE];
      Specified by:
      getName in interface CachedContentOrBuilder
      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:
      getNameBytes in interface CachedContentOrBuilder
      Returns:
      The bytes for name.
    • setName

      public CachedContent.Builder setName(String value)
       Immutable. Identifier. The server-generated resource name of the cached
       content Format:
       projects/{project}/locations/{location}/cachedContents/{cached_content}
       
      string name = 1 [(.google.api.field_behavior) = IDENTIFIER, (.google.api.field_behavior) = IMMUTABLE];
      Parameters:
      value - The name to set.
      Returns:
      This builder for chaining.
    • clearName

      public CachedContent.Builder clearName()
       Immutable. Identifier. The server-generated resource name of the cached
       content Format:
       projects/{project}/locations/{location}/cachedContents/{cached_content}
       
      string name = 1 [(.google.api.field_behavior) = IDENTIFIER, (.google.api.field_behavior) = IMMUTABLE];
      Returns:
      This builder for chaining.
    • setNameBytes

      public CachedContent.Builder setNameBytes(com.google.protobuf.ByteString value)
       Immutable. Identifier. The server-generated resource name of the cached
       content Format:
       projects/{project}/locations/{location}/cachedContents/{cached_content}
       
      string name = 1 [(.google.api.field_behavior) = IDENTIFIER, (.google.api.field_behavior) = IMMUTABLE];
      Parameters:
      value - The bytes for name to set.
      Returns:
      This builder for chaining.
    • getDisplayName

      public String getDisplayName()
       Optional. Immutable. The user-generated meaningful display name of the
       cached content.
       
      string display_name = 11 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE];
      Specified by:
      getDisplayName in interface CachedContentOrBuilder
      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:
      getDisplayNameBytes in interface CachedContentOrBuilder
      Returns:
      The bytes for displayName.
    • setDisplayName

      public CachedContent.Builder setDisplayName(String value)
       Optional. Immutable. The user-generated meaningful display name of the
       cached content.
       
      string display_name = 11 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE];
      Parameters:
      value - The displayName to set.
      Returns:
      This builder for chaining.
    • clearDisplayName

      public CachedContent.Builder clearDisplayName()
       Optional. Immutable. The user-generated meaningful display name of the
       cached content.
       
      string display_name = 11 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE];
      Returns:
      This builder for chaining.
    • setDisplayNameBytes

      public CachedContent.Builder setDisplayNameBytes(com.google.protobuf.ByteString value)
       Optional. Immutable. The user-generated meaningful display name of the
       cached content.
       
      string display_name = 11 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE];
      Parameters:
      value - The bytes for displayName to set.
      Returns:
      This builder for chaining.
    • getModel

      public 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];
      Specified by:
      getModel in interface CachedContentOrBuilder
      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:
      getModelBytes in interface CachedContentOrBuilder
      Returns:
      The bytes for model.
    • setModel

      public CachedContent.Builder setModel(String value)
       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

      public CachedContent.Builder 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

      public CachedContent.Builder setModelBytes(com.google.protobuf.ByteString value)
       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:
      hasSystemInstruction in interface CachedContentOrBuilder
      Returns:
      Whether the systemInstruction field is set.
    • getSystemInstruction

      public 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];
      Specified by:
      getSystemInstruction in interface CachedContentOrBuilder
      Returns:
      The systemInstruction.
    • setSystemInstruction

      public CachedContent.Builder setSystemInstruction(Content value)
       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

      public CachedContent.Builder setSystemInstruction(Content.Builder builderForValue)
       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

      public CachedContent.Builder mergeSystemInstruction(Content value)
       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

      public CachedContent.Builder 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

      public Content.Builder 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

      public 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];
      Specified by:
      getSystemInstructionOrBuilder in interface CachedContentOrBuilder
    • getContentsList

      public List<Content> 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:
      getContentsList in interface CachedContentOrBuilder
    • 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:
      getContentsCount in interface CachedContentOrBuilder
    • getContents

      public Content getContents(int index)
       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:
      getContents in interface CachedContentOrBuilder
    • setContents

      public CachedContent.Builder setContents(int index, Content value)
       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

      public CachedContent.Builder setContents(int index, Content.Builder builderForValue)
       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

      public CachedContent.Builder addContents(Content value)
       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

      public CachedContent.Builder addContents(int index, Content value)
       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

      public CachedContent.Builder addContents(Content.Builder builderForValue)
       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

      public CachedContent.Builder addContents(int index, Content.Builder builderForValue)
       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

      public CachedContent.Builder addAllContents(Iterable<? extends Content> values)
       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

      public CachedContent.Builder 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

      public CachedContent.Builder removeContents(int index)
       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

      public Content.Builder getContentsBuilder(int index)
       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

      public ContentOrBuilder getContentsOrBuilder(int index)
       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:
      getContentsOrBuilder in interface CachedContentOrBuilder
    • getContentsOrBuilderList

      public 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];
      Specified by:
      getContentsOrBuilderList in interface CachedContentOrBuilder
    • addContentsBuilder

      public Content.Builder 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

      public Content.Builder addContentsBuilder(int index)
       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

      public List<Content.Builder> 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

      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.v1.Tool tools = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = INPUT_ONLY];
      Specified by:
      getToolsList in interface CachedContentOrBuilder
    • 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:
      getToolsCount in interface CachedContentOrBuilder
    • getTools

      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.v1.Tool tools = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = INPUT_ONLY];
      Specified by:
      getTools in interface CachedContentOrBuilder
    • setTools

      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.v1.Tool tools = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = INPUT_ONLY];
    • setTools

      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.v1.Tool tools = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = INPUT_ONLY];
    • addTools

      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.v1.Tool tools = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = INPUT_ONLY];
    • addTools

      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.v1.Tool tools = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = INPUT_ONLY];
    • addTools

      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.v1.Tool tools = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = INPUT_ONLY];
    • addTools

      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.v1.Tool tools = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = INPUT_ONLY];
    • addAllTools

      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.v1.Tool tools = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = INPUT_ONLY];
    • 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.v1.Tool tools = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = INPUT_ONLY];
    • removeTools

      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.v1.Tool tools = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = INPUT_ONLY];
    • getToolsBuilder

      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.v1.Tool tools = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = INPUT_ONLY];
    • getToolsOrBuilder

      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.v1.Tool tools = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = INPUT_ONLY];
      Specified by:
      getToolsOrBuilder in interface CachedContentOrBuilder
    • 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.v1.Tool tools = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = INPUT_ONLY];
      Specified by:
      getToolsOrBuilderList in interface CachedContentOrBuilder
    • 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.v1.Tool tools = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = INPUT_ONLY];
    • addToolsBuilder

      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.v1.Tool tools = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = INPUT_ONLY];
    • 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.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:
      hasToolConfig in interface CachedContentOrBuilder
      Returns:
      Whether the toolConfig field is set.
    • getToolConfig

      public 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];
      Specified by:
      getToolConfig in interface CachedContentOrBuilder
      Returns:
      The toolConfig.
    • setToolConfig

      public CachedContent.Builder setToolConfig(ToolConfig value)
       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

      public CachedContent.Builder setToolConfig(ToolConfig.Builder builderForValue)
       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

      public CachedContent.Builder mergeToolConfig(ToolConfig value)
       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

      public CachedContent.Builder 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

      public ToolConfig.Builder 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

      public 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];
      Specified by:
      getToolConfigOrBuilder in interface CachedContentOrBuilder
    • 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:
      hasCreateTime in interface CachedContentOrBuilder
      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:
      getCreateTime in interface CachedContentOrBuilder
      Returns:
      The createTime.
    • setCreateTime

      public CachedContent.Builder setCreateTime(com.google.protobuf.Timestamp value)
       Output only. Creation time of the cache entry.
       
      .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • setCreateTime

      public CachedContent.Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue)
       Output only. Creation time of the cache entry.
       
      .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • mergeCreateTime

      public CachedContent.Builder mergeCreateTime(com.google.protobuf.Timestamp value)
       Output only. Creation time of the cache entry.
       
      .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • clearCreateTime

      public CachedContent.Builder 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:
      getCreateTimeOrBuilder in interface CachedContentOrBuilder
    • 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:
      hasUpdateTime in interface CachedContentOrBuilder
      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:
      getUpdateTime in interface CachedContentOrBuilder
      Returns:
      The updateTime.
    • setUpdateTime

      public CachedContent.Builder setUpdateTime(com.google.protobuf.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];
    • setUpdateTime

      public CachedContent.Builder setUpdateTime(com.google.protobuf.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];
    • mergeUpdateTime

      public CachedContent.Builder mergeUpdateTime(com.google.protobuf.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];
    • 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];
    • 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:
      getUpdateTimeOrBuilder in interface CachedContentOrBuilder
    • 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:
      hasUsageMetadata in interface CachedContentOrBuilder
      Returns:
      Whether the usageMetadata field is set.
    • getUsageMetadata

      public 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];
      Specified by:
      getUsageMetadata in interface CachedContentOrBuilder
      Returns:
      The usageMetadata.
    • setUsageMetadata

      public CachedContent.Builder setUsageMetadata(CachedContent.UsageMetadata value)
       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

      public CachedContent.Builder setUsageMetadata(CachedContent.UsageMetadata.Builder builderForValue)
       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

      public CachedContent.Builder mergeUsageMetadata(CachedContent.UsageMetadata value)
       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

      public CachedContent.Builder 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

      public CachedContent.UsageMetadata.Builder 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

      public 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];
      Specified by:
      getUsageMetadataOrBuilder in interface CachedContentOrBuilder
    • 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:
      hasEncryptionSpec in interface CachedContentOrBuilder
      Returns:
      Whether the encryptionSpec field is set.
    • getEncryptionSpec

      public 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];
      Specified by:
      getEncryptionSpec in interface CachedContentOrBuilder
      Returns:
      The encryptionSpec.
    • setEncryptionSpec

      public CachedContent.Builder setEncryptionSpec(EncryptionSpec value)
       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

      public CachedContent.Builder setEncryptionSpec(EncryptionSpec.Builder builderForValue)
       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

      public CachedContent.Builder mergeEncryptionSpec(EncryptionSpec value)
       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

      public CachedContent.Builder 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

      public EncryptionSpec.Builder 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

      public 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];
      Specified by:
      getEncryptionSpecOrBuilder in interface CachedContentOrBuilder