public sealed class AnalyzedInvocationName : IResourceName, IEquatable<AnalyzedInvocationName>Reference documentation and code samples for the Vertex AI v1 API class AnalyzedInvocationName.
Resource name for the AnalyzedInvocation resource.
Namespace
Google.Cloud.AIPlatform.V1Assembly
Google.Cloud.AIPlatform.V1.dll
Constructors
AnalyzedInvocationName(string, string, string, string, string)
public AnalyzedInvocationName(string projectId, string locationId, string monitoredAgentId, string analyzedSessionId, string analyzedInvocationId)Constructs a new instance of a AnalyzedInvocationName class from the component parts of
pattern
projects/{project}/locations/{location}/monitoredAgents/{monitored_agent}/analyzedSessions/{analyzed_session}/analyzedInvocations/{analyzed_invocation}
| Parameters | |
|---|---|
| Name | Description |
projectId |
stringThe |
locationId |
stringThe |
monitoredAgentId |
stringThe |
analyzedSessionId |
stringThe |
analyzedInvocationId |
stringThe |
Properties
AnalyzedInvocationId
public string AnalyzedInvocationId { get; }The AnalyzedInvocation ID. Will not be null, unless this instance contains an unparsed
resource name.
| Property Value | |
|---|---|
| Type | Description |
string |
|
AnalyzedSessionId
public string AnalyzedSessionId { get; }The AnalyzedSession ID. Will not be null, unless this instance contains an unparsed resource
name.
| Property Value | |
|---|---|
| Type | Description |
string |
|
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. Will not be null, unless this instance contains an unparsed resource name.
| Property Value | |
|---|---|
| Type | Description |
string |
|
MonitoredAgentId
public string MonitoredAgentId { get; }The MonitoredAgent ID. Will not be null, unless this instance contains an unparsed resource
name.
| Property Value | |
|---|---|
| Type | Description |
string |
|
ProjectId
public string ProjectId { get; }The Project ID. Will not be null, unless this instance contains an unparsed resource name.
| Property Value | |
|---|---|
| Type | Description |
string |
|
Type
public AnalyzedInvocationName.ResourceNameType Type { get; }The AnalyzedInvocationName.ResourceNameType of the contained resource name.
| Property Value | |
|---|---|
| Type | Description |
AnalyzedInvocationNameResourceNameType |
|
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 monitoredAgentId, string analyzedSessionId, string analyzedInvocationId)Formats the IDs into the string representation of this AnalyzedInvocationName with pattern
projects/{project}/locations/{location}/monitoredAgents/{monitored_agent}/analyzedSessions/{analyzed_session}/analyzedInvocations/{analyzed_invocation}
.
| Parameters | |
|---|---|
| Name | Description |
projectId |
stringThe |
locationId |
stringThe |
monitoredAgentId |
stringThe |
analyzedSessionId |
stringThe |
analyzedInvocationId |
stringThe |
| Returns | |
|---|---|
| Type | Description |
string |
The string representation of this AnalyzedInvocationName with pattern
|
FormatProjectLocationMonitoredAgentAnalyzedSessionAnalyzedInvocation(string, string, string, string, string)
public static string FormatProjectLocationMonitoredAgentAnalyzedSessionAnalyzedInvocation(string projectId, string locationId, string monitoredAgentId, string analyzedSessionId, string analyzedInvocationId)Formats the IDs into the string representation of this AnalyzedInvocationName with pattern
projects/{project}/locations/{location}/monitoredAgents/{monitored_agent}/analyzedSessions/{analyzed_session}/analyzedInvocations/{analyzed_invocation}
.
| Parameters | |
|---|---|
| Name | Description |
projectId |
stringThe |
locationId |
stringThe |
monitoredAgentId |
stringThe |
analyzedSessionId |
stringThe |
analyzedInvocationId |
stringThe |
| Returns | |
|---|---|
| Type | Description |
string |
The string representation of this AnalyzedInvocationName with pattern
|
FromProjectLocationMonitoredAgentAnalyzedSessionAnalyzedInvocation(string, string, string, string, string)
public static AnalyzedInvocationName FromProjectLocationMonitoredAgentAnalyzedSessionAnalyzedInvocation(string projectId, string locationId, string monitoredAgentId, string analyzedSessionId, string analyzedInvocationId)Creates a AnalyzedInvocationName with the pattern
projects/{project}/locations/{location}/monitoredAgents/{monitored_agent}/analyzedSessions/{analyzed_session}/analyzedInvocations/{analyzed_invocation}
.
| Parameters | |
|---|---|
| Name | Description |
projectId |
stringThe |
locationId |
stringThe |
monitoredAgentId |
stringThe |
analyzedSessionId |
stringThe |
analyzedInvocationId |
stringThe |
| Returns | |
|---|---|
| Type | Description |
AnalyzedInvocationName |
A new instance of AnalyzedInvocationName constructed from the provided ids. |
FromUnparsed(UnparsedResourceName)
public static AnalyzedInvocationName FromUnparsed(UnparsedResourceName unparsedResourceName)Creates a AnalyzedInvocationName containing an unparsed resource name.
| Parameter | |
|---|---|
| Name | Description |
unparsedResourceName |
UnparsedResourceNameThe unparsed resource name. Must not be |
| Returns | |
|---|---|
| Type | Description |
AnalyzedInvocationName |
A new instance of AnalyzedInvocationName containing the provided
|
GetHashCode()
public override int GetHashCode()Returns a hash code for this resource name.
| Returns | |
|---|---|
| Type | Description |
int |
|
Parse(string)
public static AnalyzedInvocationName Parse(string analyzedInvocationName)Parses the given resource name string into a new AnalyzedInvocationName instance.
| Parameter | |
|---|---|
| Name | Description |
analyzedInvocationName |
stringThe resource name in string form. Must not be |
| Returns | |
|---|---|
| Type | Description |
AnalyzedInvocationName |
The parsed AnalyzedInvocationName if successful. |
To parse successfully, the resource name must be formatted as one of the following:
-
projects/{project}/locations/{location}/monitoredAgents/{monitored_agent}/analyzedSessions/{analyzed_session}/analyzedInvocations/{analyzed_invocation}
Parse(string, bool)
public static AnalyzedInvocationName Parse(string analyzedInvocationName, bool allowUnparsed)Parses the given resource name string into a new AnalyzedInvocationName instance; optionally allowing an unparseable resource name.
| Parameters | |
|---|---|
| Name | Description |
analyzedInvocationName |
stringThe resource name in string form. Must not be |
allowUnparsed |
boolIf |
| Returns | |
|---|---|
| Type | Description |
AnalyzedInvocationName |
The parsed AnalyzedInvocationName if successful. |
To parse successfully, the resource name must be formatted as one of the following:
-
projects/{project}/locations/{location}/monitoredAgents/{monitored_agent}/analyzedSessions/{analyzed_session}/analyzedInvocations/{analyzed_invocation}
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 AnalyzedInvocationName)
public static bool TryParse(string analyzedInvocationName, out AnalyzedInvocationName result)Tries to parse the given resource name string into a new AnalyzedInvocationName instance.
| Parameters | |
|---|---|
| Name | Description |
analyzedInvocationName |
stringThe resource name in string form. Must not be |
result |
AnalyzedInvocationNameWhen this method returns, the parsed AnalyzedInvocationName, or |
| Returns | |
|---|---|
| Type | Description |
bool |
|
To parse successfully, the resource name must be formatted as one of the following:
-
projects/{project}/locations/{location}/monitoredAgents/{monitored_agent}/analyzedSessions/{analyzed_session}/analyzedInvocations/{analyzed_invocation}
TryParse(string, bool, out AnalyzedInvocationName)
public static bool TryParse(string analyzedInvocationName, bool allowUnparsed, out AnalyzedInvocationName result)Tries to parse the given resource name string into a new AnalyzedInvocationName instance; optionally allowing an unparseable resource name.
| Parameters | |
|---|---|
| Name | Description |
analyzedInvocationName |
stringThe resource name in string form. Must not be |
allowUnparsed |
boolIf |
result |
AnalyzedInvocationNameWhen this method returns, the parsed AnalyzedInvocationName, or |
| Returns | |
|---|---|
| Type | Description |
bool |
|
To parse successfully, the resource name must be formatted as one of the following:
-
projects/{project}/locations/{location}/monitoredAgents/{monitored_agent}/analyzedSessions/{analyzed_session}/analyzedInvocations/{analyzed_invocation}
Or may be in any format if allowUnparsed is true.
Operators
operator ==(AnalyzedInvocationName, AnalyzedInvocationName)
public static bool operator ==(AnalyzedInvocationName a, AnalyzedInvocationName b)Determines whether two specified resource names have the same value.
| Parameters | |
|---|---|
| Name | Description |
a |
AnalyzedInvocationNameThe first resource name to compare, or null. |
b |
AnalyzedInvocationNameThe second resource name to compare, or null. |
| Returns | |
|---|---|
| Type | Description |
bool |
true if the value of |
operator !=(AnalyzedInvocationName, AnalyzedInvocationName)
public static bool operator !=(AnalyzedInvocationName a, AnalyzedInvocationName b)Determines whether two specified resource names have different values.
| Parameters | |
|---|---|
| Name | Description |
a |
AnalyzedInvocationNameThe first resource name to compare, or null. |
b |
AnalyzedInvocationNameThe second resource name to compare, or null. |
| Returns | |
|---|---|
| Type | Description |
bool |
true if the value of |