public sealed class MemoryRevisionName : IResourceName, IEquatable<MemoryRevisionName>Reference documentation and code samples for the Vertex AI v1beta1 API class MemoryRevisionName.
Resource name for the MemoryRevision resource.
Namespace
Google.Cloud.AIPlatform.V1Beta1Assembly
Google.Cloud.AIPlatform.V1Beta1.dll
Constructors
MemoryRevisionName(string, string, string, string, string)
public MemoryRevisionName(string projectId, string locationId, string reasoningEngineId, string memoryId, string memoryRevisionId)Constructs a new instance of a MemoryRevisionName class from the component parts of pattern
projects/{project}/locations/{location}/reasoningEngines/{reasoning_engine}/memories/{memory}/revisions/{memory_revision}
| Parameters | |
|---|---|
| Name | Description |
projectId |
stringThe |
locationId |
stringThe |
reasoningEngineId |
stringThe |
memoryId |
stringThe |
memoryRevisionId |
stringThe |
Properties
IsKnownPattern
public bool IsKnownPattern { get; }Whether this instance contains a resource name with a known pattern.
| Property Value | |
|---|---|
| Type | Description |
bool |
|
LocationId
public string LocationId { get; }The Location ID. May be null, depending on which resource name is contained by this instance.
| Property Value | |
|---|---|
| Type | Description |
string |
|
MemoryBankId
public string MemoryBankId { get; }The MemoryBank ID. May be null, depending on which resource name is contained by this
instance.
| Property Value | |
|---|---|
| Type | Description |
string |
|
MemoryId
public string MemoryId { get; }The Memory ID. May be null, depending on which resource name is contained by this instance.
| Property Value | |
|---|---|
| Type | Description |
string |
|
MemoryRevisionId
public string MemoryRevisionId { get; }The MemoryRevision ID. May be null, depending on which resource name is contained by this
instance.
| Property Value | |
|---|---|
| Type | Description |
string |
|
ProjectId
public string ProjectId { get; }The Project ID. May be null, depending on which resource name is contained by this instance.
| Property Value | |
|---|---|
| Type | Description |
string |
|
ReasoningEngineId
public string ReasoningEngineId { get; }The ReasoningEngine ID. May be null, depending on which resource name is contained by this
instance.
| Property Value | |
|---|---|
| Type | Description |
string |
|
Type
public MemoryRevisionName.ResourceNameType Type { get; }The MemoryRevisionName.ResourceNameType of the contained resource name.
| Property Value | |
|---|---|
| Type | Description |
MemoryRevisionNameResourceNameType |
|
UnparsedResource
public UnparsedResourceName UnparsedResource { get; }The contained UnparsedResourceName. Only non-null if this instance contains an
unparsed resource name.
| Property Value | |
|---|---|
| Type | Description |
UnparsedResourceName |
|
Methods
Format(string, string, string, string, string)
public static string Format(string projectId, string locationId, string reasoningEngineId, string memoryId, string memoryRevisionId)Formats the IDs into the string representation of this MemoryRevisionName with pattern
projects/{project}/locations/{location}/reasoningEngines/{reasoning_engine}/memories/{memory}/revisions/{memory_revision}
.
| Parameters | |
|---|---|
| Name | Description |
projectId |
stringThe |
locationId |
stringThe |
reasoningEngineId |
stringThe |
memoryId |
stringThe |
memoryRevisionId |
stringThe |
| Returns | |
|---|---|
| Type | Description |
string |
The string representation of this MemoryRevisionName with pattern
|
FormatProjectLocationMemoryBankMemoryMemoryRevision(string, string, string, string, string)
public static string FormatProjectLocationMemoryBankMemoryMemoryRevision(string projectId, string locationId, string memoryBankId, string memoryId, string memoryRevisionId)Formats the IDs into the string representation of this MemoryRevisionName with pattern
projects/{project}/locations/{location}/memoryBanks/{memory_bank}/memories/{memory}/revisions/{memory_revision}
.
| Parameters | |
|---|---|
| Name | Description |
projectId |
stringThe |
locationId |
stringThe |
memoryBankId |
stringThe |
memoryId |
stringThe |
memoryRevisionId |
stringThe |
| Returns | |
|---|---|
| Type | Description |
string |
The string representation of this MemoryRevisionName with pattern
|
FormatProjectLocationReasoningEngineMemoryMemoryRevision(string, string, string, string, string)
public static string FormatProjectLocationReasoningEngineMemoryMemoryRevision(string projectId, string locationId, string reasoningEngineId, string memoryId, string memoryRevisionId)Formats the IDs into the string representation of this MemoryRevisionName with pattern
projects/{project}/locations/{location}/reasoningEngines/{reasoning_engine}/memories/{memory}/revisions/{memory_revision}
.
| Parameters | |
|---|---|
| Name | Description |
projectId |
stringThe |
locationId |
stringThe |
reasoningEngineId |
stringThe |
memoryId |
stringThe |
memoryRevisionId |
stringThe |
| Returns | |
|---|---|
| Type | Description |
string |
The string representation of this MemoryRevisionName with pattern
|
FromProjectLocationMemoryBankMemoryMemoryRevision(string, string, string, string, string)
public static MemoryRevisionName FromProjectLocationMemoryBankMemoryMemoryRevision(string projectId, string locationId, string memoryBankId, string memoryId, string memoryRevisionId)Creates a MemoryRevisionName with the pattern
projects/{project}/locations/{location}/memoryBanks/{memory_bank}/memories/{memory}/revisions/{memory_revision}
.
| Parameters | |
|---|---|
| Name | Description |
projectId |
stringThe |
locationId |
stringThe |
memoryBankId |
stringThe |
memoryId |
stringThe |
memoryRevisionId |
stringThe |
| Returns | |
|---|---|
| Type | Description |
MemoryRevisionName |
A new instance of MemoryRevisionName constructed from the provided ids. |
FromProjectLocationReasoningEngineMemoryMemoryRevision(string, string, string, string, string)
public static MemoryRevisionName FromProjectLocationReasoningEngineMemoryMemoryRevision(string projectId, string locationId, string reasoningEngineId, string memoryId, string memoryRevisionId)Creates a MemoryRevisionName with the pattern
projects/{project}/locations/{location}/reasoningEngines/{reasoning_engine}/memories/{memory}/revisions/{memory_revision}
.
| Parameters | |
|---|---|
| Name | Description |
projectId |
stringThe |
locationId |
stringThe |
reasoningEngineId |
stringThe |
memoryId |
stringThe |
memoryRevisionId |
stringThe |
| Returns | |
|---|---|
| Type | Description |
MemoryRevisionName |
A new instance of MemoryRevisionName constructed from the provided ids. |
FromUnparsed(UnparsedResourceName)
public static MemoryRevisionName FromUnparsed(UnparsedResourceName unparsedResourceName)Creates a MemoryRevisionName containing an unparsed resource name.
| Parameter | |
|---|---|
| Name | Description |
unparsedResourceName |
UnparsedResourceNameThe unparsed resource name. Must not be |
| Returns | |
|---|---|
| Type | Description |
MemoryRevisionName |
A new instance of MemoryRevisionName containing the provided
|
GetHashCode()
public override int GetHashCode()Returns a hash code for this resource name.
| Returns | |
|---|---|
| Type | Description |
int |
|
Parse(string)
public static MemoryRevisionName Parse(string memoryRevisionName)Parses the given resource name string into a new MemoryRevisionName instance.
| Parameter | |
|---|---|
| Name | Description |
memoryRevisionName |
stringThe resource name in string form. Must not be |
| Returns | |
|---|---|
| Type | Description |
MemoryRevisionName |
The parsed MemoryRevisionName if successful. |
To parse successfully, the resource name must be formatted as one of the following:
-
projects/{project}/locations/{location}/reasoningEngines/{reasoning_engine}/memories/{memory}/revisions/{memory_revision} -
projects/{project}/locations/{location}/memoryBanks/{memory_bank}/memories/{memory}/revisions/{memory_revision}
Parse(string, bool)
public static MemoryRevisionName Parse(string memoryRevisionName, bool allowUnparsed)Parses the given resource name string into a new MemoryRevisionName instance; optionally allowing an unparseable resource name.
| Parameters | |
|---|---|
| Name | Description |
memoryRevisionName |
stringThe resource name in string form. Must not be |
allowUnparsed |
boolIf |
| Returns | |
|---|---|
| Type | Description |
MemoryRevisionName |
The parsed MemoryRevisionName if successful. |
To parse successfully, the resource name must be formatted as one of the following:
-
projects/{project}/locations/{location}/reasoningEngines/{reasoning_engine}/memories/{memory}/revisions/{memory_revision} -
projects/{project}/locations/{location}/memoryBanks/{memory_bank}/memories/{memory}/revisions/{memory_revision}
Or may be in any format if allowUnparsed is true.
ToString()
public override string ToString()The string representation of the resource name.
| Returns | |
|---|---|
| Type | Description |
string |
The string representation of the resource name. |
TryParse(string, out MemoryRevisionName)
public static bool TryParse(string memoryRevisionName, out MemoryRevisionName result)Tries to parse the given resource name string into a new MemoryRevisionName instance.
| Parameters | |
|---|---|
| Name | Description |
memoryRevisionName |
stringThe resource name in string form. Must not be |
result |
MemoryRevisionNameWhen this method returns, the parsed MemoryRevisionName, or |
| Returns | |
|---|---|
| Type | Description |
bool |
|
To parse successfully, the resource name must be formatted as one of the following:
-
projects/{project}/locations/{location}/reasoningEngines/{reasoning_engine}/memories/{memory}/revisions/{memory_revision} -
projects/{project}/locations/{location}/memoryBanks/{memory_bank}/memories/{memory}/revisions/{memory_revision}
TryParse(string, bool, out MemoryRevisionName)
public static bool TryParse(string memoryRevisionName, bool allowUnparsed, out MemoryRevisionName result)Tries to parse the given resource name string into a new MemoryRevisionName instance; optionally allowing an unparseable resource name.
| Parameters | |
|---|---|
| Name | Description |
memoryRevisionName |
stringThe resource name in string form. Must not be |
allowUnparsed |
boolIf |
result |
MemoryRevisionNameWhen this method returns, the parsed MemoryRevisionName, or |
| Returns | |
|---|---|
| Type | Description |
bool |
|
To parse successfully, the resource name must be formatted as one of the following:
-
projects/{project}/locations/{location}/reasoningEngines/{reasoning_engine}/memories/{memory}/revisions/{memory_revision} -
projects/{project}/locations/{location}/memoryBanks/{memory_bank}/memories/{memory}/revisions/{memory_revision}
Or may be in any format if allowUnparsed is true.
Operators
operator ==(MemoryRevisionName, MemoryRevisionName)
public static bool operator ==(MemoryRevisionName a, MemoryRevisionName b)Determines whether two specified resource names have the same value.
| Parameters | |
|---|---|
| Name | Description |
a |
MemoryRevisionNameThe first resource name to compare, or null. |
b |
MemoryRevisionNameThe second resource name to compare, or null. |
| Returns | |
|---|---|
| Type | Description |
bool |
true if the value of |
operator !=(MemoryRevisionName, MemoryRevisionName)
public static bool operator !=(MemoryRevisionName a, MemoryRevisionName b)Determines whether two specified resource names have different values.
| Parameters | |
|---|---|
| Name | Description |
a |
MemoryRevisionNameThe first resource name to compare, or null. |
b |
MemoryRevisionNameThe second resource name to compare, or null. |
| Returns | |
|---|---|
| Type | Description |
bool |
true if the value of |