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
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
public static final Descriptors.Descriptor getDescriptor()
Methods
public GenerateMemoriesRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
public GenerateMemoriesRequest build()
public GenerateMemoriesRequest buildPartial()
public GenerateMemoriesRequest.Builder clear()
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;
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];
public GenerateMemoriesRequest.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
public GenerateMemoriesRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
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) = { ... }
public GenerateMemoriesRequest.Builder clearScope()
public GenerateMemoriesRequest.Builder clearSource()
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;
public GenerateMemoriesRequest.Builder clone()
Overrides
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
|
public GenerateMemoriesRequest getDefaultInstanceForType()
public Descriptors.Descriptor getDescriptorForType()
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;
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;
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;
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.
|
public Map<String,String> getMutableScope()
Use alternate mutation accessors instead.
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.
|
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.
|
public Map<String,String> getScope()
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 |
|
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];
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];
Returns |
Type |
Description |
String |
|
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 |
|
public GenerateMemoriesRequest.SourceCase getSourceCase()
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;
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;
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;
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.
|
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.
|
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
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)
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)
public final boolean isInitialized()
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;
public GenerateMemoriesRequest.Builder mergeFrom(GenerateMemoriesRequest other)
public GenerateMemoriesRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
public GenerateMemoriesRequest.Builder mergeFrom(Message other)
Parameter |
Name |
Description |
other |
Message
|
Overrides
public final GenerateMemoriesRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Overrides
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;
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];
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];
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
|
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;
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;
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.
|
public GenerateMemoriesRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Overrides
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.
|
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.
|
public GenerateMemoriesRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
public final GenerateMemoriesRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides
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;
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;