Class GenerateMemoriesRequest.Builder (3.68.0)

public static final class GenerateMemoriesRequest.Builder extends GeneratedMessageV3.Builder<GenerateMemoriesRequest.Builder> implements GenerateMemoriesRequestOrBuilder

Request message for MemoryBankService.GenerateMemories.

Protobuf type google.cloud.aiplatform.v1beta1.GenerateMemoriesRequest

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public GenerateMemoriesRequest build()
Returns
Type Description
GenerateMemoriesRequest

buildPartial()

public GenerateMemoriesRequest buildPartial()
Returns
Type Description
GenerateMemoriesRequest

clear()

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

clearDirectContentsSource()

public GenerateMemoriesRequest.Builder clearDirectContentsSource()

Defines a direct source of content as the source content from which to generate memories.

.google.cloud.aiplatform.v1beta1.GenerateMemoriesRequest.DirectContentsSource direct_contents_source = 3;

Returns
Type Description
GenerateMemoriesRequest.Builder

clearDisableConsolidation()

public GenerateMemoriesRequest.Builder clearDisableConsolidation()

Optional. If true, generated memories will not be consolidated with existing memories; all generated memories will be added as new memories regardless of whether they are duplicates of or contradictory to existing memories. By default, memory consolidation is enabled.

bool disable_consolidation = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
GenerateMemoriesRequest.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearParent()

public GenerateMemoriesRequest.Builder clearParent()

Required. The resource name of the ReasoningEngine to generate memories for. Format: projects/{project}/locations/{location}/reasoningEngines/{reasoning_engine}

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
GenerateMemoriesRequest.Builder

This builder for chaining.

clearScope()

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

clearSource()

public GenerateMemoriesRequest.Builder clearSource()
Returns
Type Description
GenerateMemoriesRequest.Builder

clearVertexSessionSource()

public GenerateMemoriesRequest.Builder clearVertexSessionSource()

Defines a Vertex Session as the source content from which to generate memories.

.google.cloud.aiplatform.v1beta1.GenerateMemoriesRequest.VertexSessionSource vertex_session_source = 2;

Returns
Type Description
GenerateMemoriesRequest.Builder

clone()

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

containsScope(String key)

public boolean containsScope(String key)

Optional. The scope of the memories that should be generated. Memories will be consolidated across memories with the same scope. Must be provided unless the scope is defined in the source content. If scope is provided, it will override the scope defined in the source content. Scope values cannot contain the wildcard character '*'.

map<string, string> scope = 8 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
key String
Returns
Type Description
boolean

getDefaultInstanceForType()

public GenerateMemoriesRequest getDefaultInstanceForType()
Returns
Type Description
GenerateMemoriesRequest

getDescriptorForType()

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

getDirectContentsSource()

public GenerateMemoriesRequest.DirectContentsSource getDirectContentsSource()

Defines a direct source of content as the source content from which to generate memories.

.google.cloud.aiplatform.v1beta1.GenerateMemoriesRequest.DirectContentsSource direct_contents_source = 3;

Returns
Type Description
GenerateMemoriesRequest.DirectContentsSource

The directContentsSource.

getDirectContentsSourceBuilder()

public GenerateMemoriesRequest.DirectContentsSource.Builder getDirectContentsSourceBuilder()

Defines a direct source of content as the source content from which to generate memories.

.google.cloud.aiplatform.v1beta1.GenerateMemoriesRequest.DirectContentsSource direct_contents_source = 3;

Returns
Type Description
GenerateMemoriesRequest.DirectContentsSource.Builder

getDirectContentsSourceOrBuilder()

public GenerateMemoriesRequest.DirectContentsSourceOrBuilder getDirectContentsSourceOrBuilder()

Defines a direct source of content as the source content from which to generate memories.

.google.cloud.aiplatform.v1beta1.GenerateMemoriesRequest.DirectContentsSource direct_contents_source = 3;

Returns
Type Description
GenerateMemoriesRequest.DirectContentsSourceOrBuilder

getDisableConsolidation()

public boolean getDisableConsolidation()

Optional. If true, generated memories will not be consolidated with existing memories; all generated memories will be added as new memories regardless of whether they are duplicates of or contradictory to existing memories. By default, memory consolidation is enabled.

bool disable_consolidation = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

The disableConsolidation.

getMutableScope() (deprecated)

public Map<String,String> getMutableScope()

Use alternate mutation accessors instead.

Returns
Type Description
Map<String,String>

getParent()

public String getParent()

Required. The resource name of the ReasoningEngine to generate memories for. Format: projects/{project}/locations/{location}/reasoningEngines/{reasoning_engine}

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
String

The parent.

getParentBytes()

public ByteString getParentBytes()

Required. The resource name of the ReasoningEngine to generate memories for. Format: projects/{project}/locations/{location}/reasoningEngines/{reasoning_engine}

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
ByteString

The bytes for parent.

getScope() (deprecated)

public Map<String,String> getScope()

Use #getScopeMap() instead.

Returns
Type Description
Map<String,String>

getScopeCount()

public int getScopeCount()

Optional. The scope of the memories that should be generated. Memories will be consolidated across memories with the same scope. Must be provided unless the scope is defined in the source content. If scope is provided, it will override the scope defined in the source content. Scope values cannot contain the wildcard character '*'.

map<string, string> scope = 8 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

getScopeMap()

public Map<String,String> getScopeMap()

Optional. The scope of the memories that should be generated. Memories will be consolidated across memories with the same scope. Must be provided unless the scope is defined in the source content. If scope is provided, it will override the scope defined in the source content. Scope values cannot contain the wildcard character '*'.

map<string, string> scope = 8 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Map<String,String>

getScopeOrDefault(String key, String defaultValue)

public String getScopeOrDefault(String key, String defaultValue)

Optional. The scope of the memories that should be generated. Memories will be consolidated across memories with the same scope. Must be provided unless the scope is defined in the source content. If scope is provided, it will override the scope defined in the source content. Scope values cannot contain the wildcard character '*'.

map<string, string> scope = 8 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
key String
defaultValue String
Returns
Type Description
String

getScopeOrThrow(String key)

public String getScopeOrThrow(String key)

Optional. The scope of the memories that should be generated. Memories will be consolidated across memories with the same scope. Must be provided unless the scope is defined in the source content. If scope is provided, it will override the scope defined in the source content. Scope values cannot contain the wildcard character '*'.

map<string, string> scope = 8 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
key String
Returns
Type Description
String

getSourceCase()

public GenerateMemoriesRequest.SourceCase getSourceCase()
Returns
Type Description
GenerateMemoriesRequest.SourceCase

getVertexSessionSource()

public GenerateMemoriesRequest.VertexSessionSource getVertexSessionSource()

Defines a Vertex Session as the source content from which to generate memories.

.google.cloud.aiplatform.v1beta1.GenerateMemoriesRequest.VertexSessionSource vertex_session_source = 2;

Returns
Type Description
GenerateMemoriesRequest.VertexSessionSource

The vertexSessionSource.

getVertexSessionSourceBuilder()

public GenerateMemoriesRequest.VertexSessionSource.Builder getVertexSessionSourceBuilder()

Defines a Vertex Session as the source content from which to generate memories.

.google.cloud.aiplatform.v1beta1.GenerateMemoriesRequest.VertexSessionSource vertex_session_source = 2;

Returns
Type Description
GenerateMemoriesRequest.VertexSessionSource.Builder

getVertexSessionSourceOrBuilder()

public GenerateMemoriesRequest.VertexSessionSourceOrBuilder getVertexSessionSourceOrBuilder()

Defines a Vertex Session as the source content from which to generate memories.

.google.cloud.aiplatform.v1beta1.GenerateMemoriesRequest.VertexSessionSource vertex_session_source = 2;

Returns
Type Description
GenerateMemoriesRequest.VertexSessionSourceOrBuilder

hasDirectContentsSource()

public boolean hasDirectContentsSource()

Defines a direct source of content as the source content from which to generate memories.

.google.cloud.aiplatform.v1beta1.GenerateMemoriesRequest.DirectContentsSource direct_contents_source = 3;

Returns
Type Description
boolean

Whether the directContentsSource field is set.

hasVertexSessionSource()

public boolean hasVertexSessionSource()

Defines a Vertex Session as the source content from which to generate memories.

.google.cloud.aiplatform.v1beta1.GenerateMemoriesRequest.VertexSessionSource vertex_session_source = 2;

Returns
Type Description
boolean

Whether the vertexSessionSource 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

mergeDirectContentsSource(GenerateMemoriesRequest.DirectContentsSource value)

public GenerateMemoriesRequest.Builder mergeDirectContentsSource(GenerateMemoriesRequest.DirectContentsSource value)

Defines a direct source of content as the source content from which to generate memories.

.google.cloud.aiplatform.v1beta1.GenerateMemoriesRequest.DirectContentsSource direct_contents_source = 3;

Parameter
Name Description
value GenerateMemoriesRequest.DirectContentsSource
Returns
Type Description
GenerateMemoriesRequest.Builder

mergeFrom(GenerateMemoriesRequest other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

mergeVertexSessionSource(GenerateMemoriesRequest.VertexSessionSource value)

public GenerateMemoriesRequest.Builder mergeVertexSessionSource(GenerateMemoriesRequest.VertexSessionSource value)

Defines a Vertex Session as the source content from which to generate memories.

.google.cloud.aiplatform.v1beta1.GenerateMemoriesRequest.VertexSessionSource vertex_session_source = 2;

Parameter
Name Description
value GenerateMemoriesRequest.VertexSessionSource
Returns
Type Description
GenerateMemoriesRequest.Builder

putAllScope(Map<String,String> values)

public GenerateMemoriesRequest.Builder putAllScope(Map<String,String> values)

Optional. The scope of the memories that should be generated. Memories will be consolidated across memories with the same scope. Must be provided unless the scope is defined in the source content. If scope is provided, it will override the scope defined in the source content. Scope values cannot contain the wildcard character '*'.

map<string, string> scope = 8 [(.google.api.field_behavior) = OPTIONAL];

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

putScope(String key, String value)

public GenerateMemoriesRequest.Builder putScope(String key, String value)

Optional. The scope of the memories that should be generated. Memories will be consolidated across memories with the same scope. Must be provided unless the scope is defined in the source content. If scope is provided, it will override the scope defined in the source content. Scope values cannot contain the wildcard character '*'.

map<string, string> scope = 8 [(.google.api.field_behavior) = OPTIONAL];

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

removeScope(String key)

public GenerateMemoriesRequest.Builder removeScope(String key)

Optional. The scope of the memories that should be generated. Memories will be consolidated across memories with the same scope. Must be provided unless the scope is defined in the source content. If scope is provided, it will override the scope defined in the source content. Scope values cannot contain the wildcard character '*'.

map<string, string> scope = 8 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
key String
Returns
Type Description
GenerateMemoriesRequest.Builder

setDirectContentsSource(GenerateMemoriesRequest.DirectContentsSource value)

public GenerateMemoriesRequest.Builder setDirectContentsSource(GenerateMemoriesRequest.DirectContentsSource value)

Defines a direct source of content as the source content from which to generate memories.

.google.cloud.aiplatform.v1beta1.GenerateMemoriesRequest.DirectContentsSource direct_contents_source = 3;

Parameter
Name Description
value GenerateMemoriesRequest.DirectContentsSource
Returns
Type Description
GenerateMemoriesRequest.Builder

setDirectContentsSource(GenerateMemoriesRequest.DirectContentsSource.Builder builderForValue)

public GenerateMemoriesRequest.Builder setDirectContentsSource(GenerateMemoriesRequest.DirectContentsSource.Builder builderForValue)

Defines a direct source of content as the source content from which to generate memories.

.google.cloud.aiplatform.v1beta1.GenerateMemoriesRequest.DirectContentsSource direct_contents_source = 3;

Parameter
Name Description
builderForValue GenerateMemoriesRequest.DirectContentsSource.Builder
Returns
Type Description
GenerateMemoriesRequest.Builder

setDisableConsolidation(boolean value)

public GenerateMemoriesRequest.Builder setDisableConsolidation(boolean value)

Optional. If true, generated memories will not be consolidated with existing memories; all generated memories will be added as new memories regardless of whether they are duplicates of or contradictory to existing memories. By default, memory consolidation is enabled.

bool disable_consolidation = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value boolean

The disableConsolidation to set.

Returns
Type Description
GenerateMemoriesRequest.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

setParent(String value)

public GenerateMemoriesRequest.Builder setParent(String value)

Required. The resource name of the ReasoningEngine to generate memories for. Format: projects/{project}/locations/{location}/reasoningEngines/{reasoning_engine}

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value String

The parent to set.

Returns
Type Description
GenerateMemoriesRequest.Builder

This builder for chaining.

setParentBytes(ByteString value)

public GenerateMemoriesRequest.Builder setParentBytes(ByteString value)

Required. The resource name of the ReasoningEngine to generate memories for. Format: projects/{project}/locations/{location}/reasoningEngines/{reasoning_engine}

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value ByteString

The bytes for parent to set.

Returns
Type Description
GenerateMemoriesRequest.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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

setVertexSessionSource(GenerateMemoriesRequest.VertexSessionSource value)

public GenerateMemoriesRequest.Builder setVertexSessionSource(GenerateMemoriesRequest.VertexSessionSource value)

Defines a Vertex Session as the source content from which to generate memories.

.google.cloud.aiplatform.v1beta1.GenerateMemoriesRequest.VertexSessionSource vertex_session_source = 2;

Parameter
Name Description
value GenerateMemoriesRequest.VertexSessionSource
Returns
Type Description
GenerateMemoriesRequest.Builder

setVertexSessionSource(GenerateMemoriesRequest.VertexSessionSource.Builder builderForValue)

public GenerateMemoriesRequest.Builder setVertexSessionSource(GenerateMemoriesRequest.VertexSessionSource.Builder builderForValue)

Defines a Vertex Session as the source content from which to generate memories.

.google.cloud.aiplatform.v1beta1.GenerateMemoriesRequest.VertexSessionSource vertex_session_source = 2;

Parameter
Name Description
builderForValue GenerateMemoriesRequest.VertexSessionSource.Builder
Returns
Type Description
GenerateMemoriesRequest.Builder