Class Memory.Builder (3.69.0)

public static final class Memory.Builder extends GeneratedMessageV3.Builder<Memory.Builder> implements MemoryOrBuilder

A memory.

Protobuf type google.cloud.aiplatform.v1beta1.Memory

Implements

MemoryOrBuilder

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public Memory.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
Memory.Builder
Overrides

build()

public Memory build()
Returns
Type Description
Memory

buildPartial()

public Memory buildPartial()
Returns
Type Description
Memory

clear()

public Memory.Builder clear()
Returns
Type Description
Memory.Builder
Overrides

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];

Returns
Type Description
Memory.Builder

clearDescription()

public Memory.Builder clearDescription()

Optional. Description of the Memory.

string description = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Memory.Builder

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
Type Description
Memory.Builder

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
Type Description
Memory.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public Memory.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
Memory.Builder
Overrides

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
Type Description
Memory.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public Memory.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
Memory.Builder
Overrides

clearScope()

public Memory.Builder clearScope()
Returns
Type Description
Memory.Builder

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];

Returns
Type Description
Memory.Builder

clone()

public Memory.Builder clone()
Returns
Type Description
Memory.Builder
Overrides

containsScope(String key)

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];

Parameter
Name Description
key String
Returns
Type Description
boolean

getCreateTime()

public Timestamp getCreateTime()

Output only. Timestamp when this Memory was created.

.google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Timestamp

The createTime.

getCreateTimeBuilder()

public Timestamp.Builder getCreateTimeBuilder()

Output only. Timestamp when this Memory was created.

.google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Builder

getCreateTimeOrBuilder()

public TimestampOrBuilder getCreateTimeOrBuilder()

Output only. Timestamp when this Memory was created.

.google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
TimestampOrBuilder

getDefaultInstanceForType()

public Memory getDefaultInstanceForType()
Returns
Type Description
Memory

getDescription()

public String getDescription()

Optional. Description of the Memory.

string description = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The description.

getDescriptionBytes()

public ByteString getDescriptionBytes()

Optional. Description of the Memory.

string description = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for description.

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getDisplayName()

public String getDisplayName()

Optional. Display name of the Memory.

string display_name = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The displayName.

getDisplayNameBytes()

public ByteString getDisplayNameBytes()

Optional. Display name of the Memory.

string display_name = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for displayName.

getFact()

public String getFact()

Required. Semantic knowledge extracted from the source content.

string fact = 10 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The fact.

getFactBytes()

public ByteString getFactBytes()

Required. Semantic knowledge extracted from the source content.

string fact = 10 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for fact.

getMutableScope() (deprecated)

public Map<String,String> getMutableScope()

Use alternate mutation accessors instead.

Returns
Type Description
Map<String,String>

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];

Returns
Type Description
String

The name.

getNameBytes()

public 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];

Returns
Type Description
ByteString

The bytes for name.

getScope() (deprecated)

public Map<String,String> getScope()

Use #getScopeMap() instead.

Returns
Type Description
Map<String,String>

getScopeCount()

public int getScopeCount()

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];

Returns
Type Description
int

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];

Returns
Type Description
Map<String,String>

getScopeOrDefault(String key, String defaultValue)

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];

Parameters
Name Description
key String
defaultValue String
Returns
Type Description
String

getScopeOrThrow(String key)

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];

Parameter
Name Description
key String
Returns
Type Description
String

getUpdateTime()

public Timestamp getUpdateTime()

Output only. Timestamp when this Memory was most recently updated.

.google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Timestamp

The updateTime.

getUpdateTimeBuilder()

public 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];

Returns
Type Description
Builder

getUpdateTimeOrBuilder()

public TimestampOrBuilder getUpdateTimeOrBuilder()

Output only. Timestamp when this Memory was most recently updated.

.google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
TimestampOrBuilder

hasCreateTime()

public boolean hasCreateTime()

Output only. Timestamp when this Memory was created.

.google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the createTime field is set.

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];

Returns
Type Description
boolean

Whether the updateTime field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

internalGetMapFieldReflection(int number)

protected MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
Parameter
Name Description
number int
Returns
Type Description
com.google.protobuf.MapFieldReflectionAccessor
Overrides
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)

internalGetMutableMapFieldReflection(int number)

protected MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number)
Parameter
Name Description
number int
Returns
Type Description
com.google.protobuf.MapFieldReflectionAccessor
Overrides
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeCreateTime(Timestamp value)

public Memory.Builder mergeCreateTime(Timestamp value)

Output only. Timestamp when this Memory was created.

.google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Timestamp
Returns
Type Description
Memory.Builder

mergeFrom(Memory other)

public Memory.Builder mergeFrom(Memory other)
Parameter
Name Description
other Memory
Returns
Type Description
Memory.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public Memory.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Memory.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public Memory.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
Memory.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final Memory.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
Memory.Builder
Overrides

mergeUpdateTime(Timestamp value)

public Memory.Builder mergeUpdateTime(Timestamp value)

Output only. Timestamp when this Memory was most recently updated.

.google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Timestamp
Returns
Type Description
Memory.Builder

putAllScope(Map<String,String> values)

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];

Parameter
Name Description
values Map<String,String>
Returns
Type Description
Memory.Builder

putScope(String key, String value)

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];

Parameters
Name Description
key String
value String
Returns
Type Description
Memory.Builder

removeScope(String key)

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];

Parameter
Name Description
key String
Returns
Type Description
Memory.Builder

setCreateTime(Timestamp value)

public Memory.Builder setCreateTime(Timestamp value)

Output only. Timestamp when this Memory was created.

.google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Timestamp
Returns
Type Description
Memory.Builder

setCreateTime(Timestamp.Builder builderForValue)

public Memory.Builder setCreateTime(Timestamp.Builder builderForValue)

Output only. Timestamp when this Memory was created.

.google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
builderForValue Builder
Returns
Type Description
Memory.Builder

setDescription(String value)

public Memory.Builder setDescription(String value)

Optional. Description of the Memory.

string description = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value String

The description to set.

Returns
Type Description
Memory.Builder

This builder for chaining.

setDescriptionBytes(ByteString value)

public Memory.Builder setDescriptionBytes(ByteString value)

Optional. Description of the Memory.

string description = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ByteString

The bytes for description to set.

Returns
Type Description
Memory.Builder

This builder for chaining.

setDisplayName(String value)

public Memory.Builder setDisplayName(String value)

Optional. Display name of the Memory.

string display_name = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value String

The displayName to set.

Returns
Type Description
Memory.Builder

This builder for chaining.

setDisplayNameBytes(ByteString value)

public Memory.Builder setDisplayNameBytes(ByteString value)

Optional. Display name of the Memory.

string display_name = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ByteString

The bytes for displayName to set.

Returns
Type Description
Memory.Builder

This builder for chaining.

setFact(String value)

public Memory.Builder setFact(String value)

Required. Semantic knowledge extracted from the source content.

string fact = 10 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value String

The fact to set.

Returns
Type Description
Memory.Builder

This builder for chaining.

setFactBytes(ByteString value)

public Memory.Builder setFactBytes(ByteString value)

Required. Semantic knowledge extracted from the source content.

string fact = 10 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ByteString

The bytes for fact to set.

Returns
Type Description
Memory.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public Memory.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
Memory.Builder
Overrides

setName(String value)

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];

Parameter
Name Description
value String

The name to set.

Returns
Type Description
Memory.Builder

This builder for chaining.

setNameBytes(ByteString value)

public Memory.Builder setNameBytes(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];

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
Memory.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public Memory.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
Memory.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final Memory.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
Memory.Builder
Overrides

setUpdateTime(Timestamp value)

public Memory.Builder setUpdateTime(Timestamp value)

Output only. Timestamp when this Memory was most recently updated.

.google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Timestamp
Returns
Type Description
Memory.Builder

setUpdateTime(Timestamp.Builder builderForValue)

public Memory.Builder setUpdateTime(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];

Parameter
Name Description
builderForValue Builder
Returns
Type Description
Memory.Builder