Class Memory.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<Memory.Builder>
com.google.cloud.aiplatform.v1beta1.Memory.Builder
All Implemented Interfaces:
MemoryOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
Memory

public static final class Memory.Builder extends com.google.protobuf.GeneratedMessage.Builder<Memory.Builder> implements MemoryOrBuilder
 A memory.
 
Protobuf type google.cloud.aiplatform.v1beta1.Memory
  • Method Details

    • getDescriptor

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

      protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
      Overrides:
      internalGetMapFieldReflection in class com.google.protobuf.GeneratedMessage.Builder<Memory.Builder>
    • internalGetMutableMapFieldReflection

      protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number)
      Overrides:
      internalGetMutableMapFieldReflection in class com.google.protobuf.GeneratedMessage.Builder<Memory.Builder>
    • internalGetFieldAccessorTable

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

      public Memory.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<Memory.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<Memory.Builder>
    • getDefaultInstanceForType

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

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

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

      public Memory.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<Memory.Builder>
    • mergeFrom

      public Memory.Builder mergeFrom(Memory other)
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.Builder<Memory.Builder>
    • mergeFrom

      public Memory.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<Memory.Builder>
      Throws:
      IOException
    • getExpirationCase

      public Memory.ExpirationCase getExpirationCase()
      Specified by:
      getExpirationCase in interface MemoryOrBuilder
    • clearExpiration

      public Memory.Builder clearExpiration()
    • hasExpireTime

      public boolean hasExpireTime()
       Optional. Timestamp of when this resource is considered expired.
       This is *always* provided on output, regardless of what `expiration` was
       sent on input.
       
      .google.protobuf.Timestamp expire_time = 13 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      hasExpireTime in interface MemoryOrBuilder
      Returns:
      Whether the expireTime field is set.
    • getExpireTime

      public com.google.protobuf.Timestamp getExpireTime()
       Optional. Timestamp of when this resource is considered expired.
       This is *always* provided on output, regardless of what `expiration` was
       sent on input.
       
      .google.protobuf.Timestamp expire_time = 13 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getExpireTime in interface MemoryOrBuilder
      Returns:
      The expireTime.
    • setExpireTime

      public Memory.Builder setExpireTime(com.google.protobuf.Timestamp value)
       Optional. Timestamp of when this resource is considered expired.
       This is *always* provided on output, regardless of what `expiration` was
       sent on input.
       
      .google.protobuf.Timestamp expire_time = 13 [(.google.api.field_behavior) = OPTIONAL];
    • setExpireTime

      public Memory.Builder setExpireTime(com.google.protobuf.Timestamp.Builder builderForValue)
       Optional. Timestamp of when this resource is considered expired.
       This is *always* provided on output, regardless of what `expiration` was
       sent on input.
       
      .google.protobuf.Timestamp expire_time = 13 [(.google.api.field_behavior) = OPTIONAL];
    • mergeExpireTime

      public Memory.Builder mergeExpireTime(com.google.protobuf.Timestamp value)
       Optional. Timestamp of when this resource is considered expired.
       This is *always* provided on output, regardless of what `expiration` was
       sent on input.
       
      .google.protobuf.Timestamp expire_time = 13 [(.google.api.field_behavior) = OPTIONAL];
    • clearExpireTime

      public Memory.Builder clearExpireTime()
       Optional. Timestamp of when this resource is considered expired.
       This is *always* provided on output, regardless of what `expiration` was
       sent on input.
       
      .google.protobuf.Timestamp expire_time = 13 [(.google.api.field_behavior) = OPTIONAL];
    • getExpireTimeBuilder

      public com.google.protobuf.Timestamp.Builder getExpireTimeBuilder()
       Optional. Timestamp of when this resource is considered expired.
       This is *always* provided on output, regardless of what `expiration` was
       sent on input.
       
      .google.protobuf.Timestamp expire_time = 13 [(.google.api.field_behavior) = OPTIONAL];
    • getExpireTimeOrBuilder

      public com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder()
       Optional. Timestamp of when this resource is considered expired.
       This is *always* provided on output, regardless of what `expiration` was
       sent on input.
       
      .google.protobuf.Timestamp expire_time = 13 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getExpireTimeOrBuilder in interface MemoryOrBuilder
    • hasTtl

      public boolean hasTtl()
       Optional. Input only. The TTL for this resource. The expiration time is
       computed: now + TTL.
       
      .google.protobuf.Duration ttl = 14 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      hasTtl in interface MemoryOrBuilder
      Returns:
      Whether the ttl field is set.
    • getTtl

      public com.google.protobuf.Duration getTtl()
       Optional. Input only. The TTL for this resource. The expiration time is
       computed: now + TTL.
       
      .google.protobuf.Duration ttl = 14 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getTtl in interface MemoryOrBuilder
      Returns:
      The ttl.
    • setTtl

      public Memory.Builder setTtl(com.google.protobuf.Duration value)
       Optional. Input only. The TTL for this resource. The expiration time is
       computed: now + TTL.
       
      .google.protobuf.Duration ttl = 14 [(.google.api.field_behavior) = OPTIONAL];
    • setTtl

      public Memory.Builder setTtl(com.google.protobuf.Duration.Builder builderForValue)
       Optional. Input only. The TTL for this resource. The expiration time is
       computed: now + TTL.
       
      .google.protobuf.Duration ttl = 14 [(.google.api.field_behavior) = OPTIONAL];
    • mergeTtl

      public Memory.Builder mergeTtl(com.google.protobuf.Duration value)
       Optional. Input only. The TTL for this resource. The expiration time is
       computed: now + TTL.
       
      .google.protobuf.Duration ttl = 14 [(.google.api.field_behavior) = OPTIONAL];
    • clearTtl

      public Memory.Builder clearTtl()
       Optional. Input only. The TTL for this resource. The expiration time is
       computed: now + TTL.
       
      .google.protobuf.Duration ttl = 14 [(.google.api.field_behavior) = OPTIONAL];
    • getTtlBuilder

      public com.google.protobuf.Duration.Builder getTtlBuilder()
       Optional. Input only. The TTL for this resource. The expiration time is
       computed: now + TTL.
       
      .google.protobuf.Duration ttl = 14 [(.google.api.field_behavior) = OPTIONAL];
    • getTtlOrBuilder

      public com.google.protobuf.DurationOrBuilder getTtlOrBuilder()
       Optional. Input only. The TTL for this resource. The expiration time is
       computed: now + TTL.
       
      .google.protobuf.Duration ttl = 14 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getTtlOrBuilder in interface MemoryOrBuilder
    • getName

      public String getName()
       Identifier. The resource name of the Memory.
       Format:
       `projects/{project}/locations/{location}/reasoningEngines/{reasoning_engine}/memories/{memory}`
       
      string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
      Specified by:
      getName in interface MemoryOrBuilder
      Returns:
      The name.
    • getNameBytes

      public com.google.protobuf.ByteString getNameBytes()
       Identifier. The resource name of the Memory.
       Format:
       `projects/{project}/locations/{location}/reasoningEngines/{reasoning_engine}/memories/{memory}`
       
      string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
      Specified by:
      getNameBytes in interface MemoryOrBuilder
      Returns:
      The bytes for name.
    • setName

      public Memory.Builder setName(String value)
       Identifier. The resource name of the Memory.
       Format:
       `projects/{project}/locations/{location}/reasoningEngines/{reasoning_engine}/memories/{memory}`
       
      string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
      Parameters:
      value - The name to set.
      Returns:
      This builder for chaining.
    • clearName

      public Memory.Builder clearName()
       Identifier. The resource name of the Memory.
       Format:
       `projects/{project}/locations/{location}/reasoningEngines/{reasoning_engine}/memories/{memory}`
       
      string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
      Returns:
      This builder for chaining.
    • setNameBytes

      public Memory.Builder setNameBytes(com.google.protobuf.ByteString value)
       Identifier. The resource name of the Memory.
       Format:
       `projects/{project}/locations/{location}/reasoningEngines/{reasoning_engine}/memories/{memory}`
       
      string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
      Parameters:
      value - The bytes for name to set.
      Returns:
      This builder for chaining.
    • getDisplayName

      public String getDisplayName()
       Optional. Display name of the Memory.
       
      string display_name = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getDisplayName in interface MemoryOrBuilder
      Returns:
      The displayName.
    • getDisplayNameBytes

      public com.google.protobuf.ByteString getDisplayNameBytes()
       Optional. Display name of the Memory.
       
      string display_name = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getDisplayNameBytes in interface MemoryOrBuilder
      Returns:
      The bytes for displayName.
    • setDisplayName

      public Memory.Builder setDisplayName(String value)
       Optional. Display name of the Memory.
       
      string display_name = 2 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The displayName to set.
      Returns:
      This builder for chaining.
    • clearDisplayName

      public Memory.Builder clearDisplayName()
       Optional. Display name of the Memory.
       
      string display_name = 2 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • setDisplayNameBytes

      public Memory.Builder setDisplayNameBytes(com.google.protobuf.ByteString value)
       Optional. Display name of the Memory.
       
      string display_name = 2 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The bytes for displayName to set.
      Returns:
      This builder for chaining.
    • getDescription

      public String getDescription()
       Optional. Description of the Memory.
       
      string description = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getDescription in interface MemoryOrBuilder
      Returns:
      The description.
    • getDescriptionBytes

      public com.google.protobuf.ByteString getDescriptionBytes()
       Optional. Description of the Memory.
       
      string description = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getDescriptionBytes in interface MemoryOrBuilder
      Returns:
      The bytes for description.
    • setDescription

      public Memory.Builder setDescription(String value)
       Optional. Description of the Memory.
       
      string description = 3 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The description to set.
      Returns:
      This builder for chaining.
    • clearDescription

      public Memory.Builder clearDescription()
       Optional. Description of the Memory.
       
      string description = 3 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • setDescriptionBytes

      public Memory.Builder setDescriptionBytes(com.google.protobuf.ByteString value)
       Optional. Description of the Memory.
       
      string description = 3 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The bytes for description to set.
      Returns:
      This builder for chaining.
    • hasCreateTime

      public boolean hasCreateTime()
       Output only. Timestamp when this Memory was created.
       
      .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      hasCreateTime in interface MemoryOrBuilder
      Returns:
      Whether the createTime field is set.
    • getCreateTime

      public com.google.protobuf.Timestamp getCreateTime()
       Output only. Timestamp when this Memory was created.
       
      .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getCreateTime in interface MemoryOrBuilder
      Returns:
      The createTime.
    • setCreateTime

      public Memory.Builder setCreateTime(com.google.protobuf.Timestamp value)
       Output only. Timestamp when this Memory was created.
       
      .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • setCreateTime

      public Memory.Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue)
       Output only. Timestamp when this Memory was created.
       
      .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • mergeCreateTime

      public Memory.Builder mergeCreateTime(com.google.protobuf.Timestamp value)
       Output only. Timestamp when this Memory was created.
       
      .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • clearCreateTime

      public Memory.Builder clearCreateTime()
       Output only. Timestamp when this Memory was created.
       
      .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getCreateTimeBuilder

      public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder()
       Output only. Timestamp when this Memory was created.
       
      .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getCreateTimeOrBuilder

      public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder()
       Output only. Timestamp when this Memory was created.
       
      .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getCreateTimeOrBuilder in interface MemoryOrBuilder
    • hasUpdateTime

      public boolean hasUpdateTime()
       Output only. Timestamp when this Memory was most recently updated.
       
      .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      hasUpdateTime in interface MemoryOrBuilder
      Returns:
      Whether the updateTime field is set.
    • getUpdateTime

      public com.google.protobuf.Timestamp getUpdateTime()
       Output only. Timestamp when this Memory was most recently updated.
       
      .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getUpdateTime in interface MemoryOrBuilder
      Returns:
      The updateTime.
    • setUpdateTime

      public Memory.Builder setUpdateTime(com.google.protobuf.Timestamp value)
       Output only. Timestamp when this Memory was most recently updated.
       
      .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • setUpdateTime

      public Memory.Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue)
       Output only. Timestamp when this Memory was most recently updated.
       
      .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • mergeUpdateTime

      public Memory.Builder mergeUpdateTime(com.google.protobuf.Timestamp value)
       Output only. Timestamp when this Memory was most recently updated.
       
      .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • clearUpdateTime

      public Memory.Builder clearUpdateTime()
       Output only. Timestamp when this Memory was most recently updated.
       
      .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getUpdateTimeBuilder

      public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder()
       Output only. Timestamp when this Memory was most recently updated.
       
      .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getUpdateTimeOrBuilder

      public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder()
       Output only. Timestamp when this Memory was most recently updated.
       
      .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getUpdateTimeOrBuilder in interface MemoryOrBuilder
    • getFact

      public String getFact()
       Required. Semantic knowledge extracted from the source content.
       
      string fact = 10 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getFact in interface MemoryOrBuilder
      Returns:
      The fact.
    • getFactBytes

      public com.google.protobuf.ByteString getFactBytes()
       Required. Semantic knowledge extracted from the source content.
       
      string fact = 10 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getFactBytes in interface MemoryOrBuilder
      Returns:
      The bytes for fact.
    • setFact

      public Memory.Builder setFact(String value)
       Required. Semantic knowledge extracted from the source content.
       
      string fact = 10 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The fact to set.
      Returns:
      This builder for chaining.
    • clearFact

      public Memory.Builder clearFact()
       Required. Semantic knowledge extracted from the source content.
       
      string fact = 10 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      This builder for chaining.
    • setFactBytes

      public Memory.Builder setFactBytes(com.google.protobuf.ByteString value)
       Required. Semantic knowledge extracted from the source content.
       
      string fact = 10 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The bytes for fact to set.
      Returns:
      This builder for chaining.
    • getScopeCount

      public int getScopeCount()
      Description copied from interface: MemoryOrBuilder
       Required. Immutable. The scope of the Memory. Memories are isolated
       within their scope. The scope is defined when creating or generating
       memories. Scope values cannot contain the wildcard character '*'.
       
      map<string, string> scope = 11 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getScopeCount in interface MemoryOrBuilder
    • containsScope

      public boolean containsScope(String key)
       Required. Immutable. The scope of the Memory. Memories are isolated
       within their scope. The scope is defined when creating or generating
       memories. Scope values cannot contain the wildcard character '*'.
       
      map<string, string> scope = 11 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      containsScope in interface MemoryOrBuilder
    • getScope

      @Deprecated public Map<String,String> getScope()
      Deprecated.
      Use getScopeMap() instead.
      Specified by:
      getScope in interface MemoryOrBuilder
    • getScopeMap

      public Map<String,String> getScopeMap()
       Required. Immutable. The scope of the Memory. Memories are isolated
       within their scope. The scope is defined when creating or generating
       memories. Scope values cannot contain the wildcard character '*'.
       
      map<string, string> scope = 11 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getScopeMap in interface MemoryOrBuilder
    • getScopeOrDefault

      public String getScopeOrDefault(String key, String defaultValue)
       Required. Immutable. The scope of the Memory. Memories are isolated
       within their scope. The scope is defined when creating or generating
       memories. Scope values cannot contain the wildcard character '*'.
       
      map<string, string> scope = 11 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getScopeOrDefault in interface MemoryOrBuilder
    • getScopeOrThrow

      public String getScopeOrThrow(String key)
       Required. Immutable. The scope of the Memory. Memories are isolated
       within their scope. The scope is defined when creating or generating
       memories. Scope values cannot contain the wildcard character '*'.
       
      map<string, string> scope = 11 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getScopeOrThrow in interface MemoryOrBuilder
    • clearScope

      public Memory.Builder clearScope()
    • removeScope

      public Memory.Builder removeScope(String key)
       Required. Immutable. The scope of the Memory. Memories are isolated
       within their scope. The scope is defined when creating or generating
       memories. Scope values cannot contain the wildcard character '*'.
       
      map<string, string> scope = 11 [(.google.api.field_behavior) = REQUIRED];
    • getMutableScope

      @Deprecated public Map<String,String> getMutableScope()
      Deprecated.
      Use alternate mutation accessors instead.
    • putScope

      public Memory.Builder putScope(String key, String value)
       Required. Immutable. The scope of the Memory. Memories are isolated
       within their scope. The scope is defined when creating or generating
       memories. Scope values cannot contain the wildcard character '*'.
       
      map<string, string> scope = 11 [(.google.api.field_behavior) = REQUIRED];
    • putAllScope

      public Memory.Builder putAllScope(Map<String,String> values)
       Required. Immutable. The scope of the Memory. Memories are isolated
       within their scope. The scope is defined when creating or generating
       memories. Scope values cannot contain the wildcard character '*'.
       
      map<string, string> scope = 11 [(.google.api.field_behavior) = REQUIRED];