public final class GenerateMemoriesRequest extends GeneratedMessageV3 implements GenerateMemoriesRequestOrBuilder
Request message for
MemoryBankService.GenerateMemories.
Protobuf type google.cloud.aiplatform.v1beta1.GenerateMemoriesRequest
Inherited Members
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessageV3.<T>emptyList(java.lang.Class<T>)
com.google.protobuf.GeneratedMessageV3.internalGetMapFieldReflection(int)
Static Fields
DIRECT_CONTENTS_SOURCE_FIELD_NUMBER
public static final int DIRECT_CONTENTS_SOURCE_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
public static final int DISABLE_CONSOLIDATION_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
public static final int PARENT_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
public static final int SCOPE_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
public static final int VERTEX_SESSION_SOURCE_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
Static Methods
public static GenerateMemoriesRequest getDefaultInstance()
public static final Descriptors.Descriptor getDescriptor()
public static GenerateMemoriesRequest.Builder newBuilder()
public static GenerateMemoriesRequest.Builder newBuilder(GenerateMemoriesRequest prototype)
public static GenerateMemoriesRequest parseDelimitedFrom(InputStream input)
public static GenerateMemoriesRequest parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static GenerateMemoriesRequest parseFrom(byte[] data)
Parameter |
Name |
Description |
data |
byte[]
|
public static GenerateMemoriesRequest parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static GenerateMemoriesRequest parseFrom(ByteString data)
public static GenerateMemoriesRequest parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static GenerateMemoriesRequest parseFrom(CodedInputStream input)
public static GenerateMemoriesRequest parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static GenerateMemoriesRequest parseFrom(InputStream input)
public static GenerateMemoriesRequest parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static GenerateMemoriesRequest parseFrom(ByteBuffer data)
public static GenerateMemoriesRequest parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static Parser<GenerateMemoriesRequest> parser()
Methods
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 boolean equals(Object obj)
Parameter |
Name |
Description |
obj |
Object
|
Overrides
public GenerateMemoriesRequest getDefaultInstanceForType()
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;
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 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 Parser<GenerateMemoriesRequest> getParserForType()
Overrides
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 int getSerializedSize()
Returns |
Type |
Description |
int |
|
Overrides
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.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.
|
Returns |
Type |
Description |
int |
|
Overrides
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.internalGetMapFieldReflection(int)
public final boolean isInitialized()
Overrides
public GenerateMemoriesRequest.Builder newBuilderForType()
protected GenerateMemoriesRequest.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Overrides
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Returns |
Type |
Description |
Object |
|
Overrides
public GenerateMemoriesRequest.Builder toBuilder()
public void writeTo(CodedOutputStream output)
Overrides