public sealed class PlaybookName : IResourceName, IEquatable<PlaybookName>Reference documentation and code samples for the Dialogflow v3 API class PlaybookName.
Resource name for the Playbook resource.
Namespace
Google.Cloud.Dialogflow.Cx.V3Assembly
Google.Cloud.Dialogflow.Cx.V3.dll
Constructors
PlaybookName(string, string, string, string)
public PlaybookName(string projectId, string locationId, string agentId, string playbookId)Constructs a new instance of a PlaybookName class from the component parts of pattern
projects/{project}/locations/{location}/agents/{agent}/playbooks/{playbook}
| Parameters | |
|---|---|
| Name | Description |
projectId |
stringThe |
locationId |
stringThe |
agentId |
stringThe |
playbookId |
stringThe |
Properties
AgentId
public string AgentId { get; }The Agent 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 |
|
PlaybookId
public string PlaybookId { get; }The Playbook 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 PlaybookName.ResourceNameType Type { get; }The PlaybookName.ResourceNameType of the contained resource name.
| Property Value | |
|---|---|
| Type | Description |
PlaybookNameResourceNameType |
|
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)
public static string Format(string projectId, string locationId, string agentId, string playbookId)Formats the IDs into the string representation of this PlaybookName with pattern
projects/{project}/locations/{location}/agents/{agent}/playbooks/{playbook}.
| Parameters | |
|---|---|
| Name | Description |
projectId |
stringThe |
locationId |
stringThe |
agentId |
stringThe |
playbookId |
stringThe |
| Returns | |
|---|---|
| Type | Description |
string |
The string representation of this PlaybookName with pattern
|
FormatProjectLocationAgentPlaybook(string, string, string, string)
public static string FormatProjectLocationAgentPlaybook(string projectId, string locationId, string agentId, string playbookId)Formats the IDs into the string representation of this PlaybookName with pattern
projects/{project}/locations/{location}/agents/{agent}/playbooks/{playbook}.
| Parameters | |
|---|---|
| Name | Description |
projectId |
stringThe |
locationId |
stringThe |
agentId |
stringThe |
playbookId |
stringThe |
| Returns | |
|---|---|
| Type | Description |
string |
The string representation of this PlaybookName with pattern
|
FromProjectLocationAgentPlaybook(string, string, string, string)
public static PlaybookName FromProjectLocationAgentPlaybook(string projectId, string locationId, string agentId, string playbookId)Creates a PlaybookName with the pattern
projects/{project}/locations/{location}/agents/{agent}/playbooks/{playbook}.
| Parameters | |
|---|---|
| Name | Description |
projectId |
stringThe |
locationId |
stringThe |
agentId |
stringThe |
playbookId |
stringThe |
| Returns | |
|---|---|
| Type | Description |
PlaybookName |
A new instance of PlaybookName constructed from the provided ids. |
FromUnparsed(UnparsedResourceName)
public static PlaybookName FromUnparsed(UnparsedResourceName unparsedResourceName)Creates a PlaybookName containing an unparsed resource name.
| Parameter | |
|---|---|
| Name | Description |
unparsedResourceName |
UnparsedResourceNameThe unparsed resource name. Must not be |
| Returns | |
|---|---|
| Type | Description |
PlaybookName |
A new instance of PlaybookName containing the provided |
GetHashCode()
public override int GetHashCode()Returns a hash code for this resource name.
| Returns | |
|---|---|
| Type | Description |
int |
|
Parse(string)
public static PlaybookName Parse(string playbookName)Parses the given resource name string into a new PlaybookName instance.
| Parameter | |
|---|---|
| Name | Description |
playbookName |
stringThe resource name in string form. Must not be |
| Returns | |
|---|---|
| Type | Description |
PlaybookName |
The parsed PlaybookName if successful. |
To parse successfully, the resource name must be formatted as one of the following:
-
projects/{project}/locations/{location}/agents/{agent}/playbooks/{playbook}
Parse(string, bool)
public static PlaybookName Parse(string playbookName, bool allowUnparsed)Parses the given resource name string into a new PlaybookName instance; optionally allowing an unparseable resource name.
| Parameters | |
|---|---|
| Name | Description |
playbookName |
stringThe resource name in string form. Must not be |
allowUnparsed |
boolIf |
| Returns | |
|---|---|
| Type | Description |
PlaybookName |
The parsed PlaybookName if successful. |
To parse successfully, the resource name must be formatted as one of the following:
-
projects/{project}/locations/{location}/agents/{agent}/playbooks/{playbook}
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 PlaybookName)
public static bool TryParse(string playbookName, out PlaybookName result)Tries to parse the given resource name string into a new PlaybookName instance.
| Parameters | |
|---|---|
| Name | Description |
playbookName |
stringThe resource name in string form. Must not be |
result |
PlaybookNameWhen this method returns, the parsed PlaybookName, or |
| Returns | |
|---|---|
| Type | Description |
bool |
|
To parse successfully, the resource name must be formatted as one of the following:
-
projects/{project}/locations/{location}/agents/{agent}/playbooks/{playbook}
TryParse(string, bool, out PlaybookName)
public static bool TryParse(string playbookName, bool allowUnparsed, out PlaybookName result)Tries to parse the given resource name string into a new PlaybookName instance; optionally allowing an unparseable resource name.
| Parameters | |
|---|---|
| Name | Description |
playbookName |
stringThe resource name in string form. Must not be |
allowUnparsed |
boolIf |
result |
PlaybookNameWhen this method returns, the parsed PlaybookName, or |
| Returns | |
|---|---|
| Type | Description |
bool |
|
To parse successfully, the resource name must be formatted as one of the following:
-
projects/{project}/locations/{location}/agents/{agent}/playbooks/{playbook}
allowUnparsed is true.
Operators
operator ==(PlaybookName, PlaybookName)
public static bool operator ==(PlaybookName a, PlaybookName b)Determines whether two specified resource names have the same value.
| Parameters | |
|---|---|
| Name | Description |
a |
PlaybookNameThe first resource name to compare, or null. |
b |
PlaybookNameThe second resource name to compare, or null. |
| Returns | |
|---|---|
| Type | Description |
bool |
true if the value of |
operator !=(PlaybookName, PlaybookName)
public static bool operator !=(PlaybookName a, PlaybookName b)Determines whether two specified resource names have different values.
| Parameters | |
|---|---|
| Name | Description |
a |
PlaybookNameThe first resource name to compare, or null. |
b |
PlaybookNameThe second resource name to compare, or null. |
| Returns | |
|---|---|
| Type | Description |
bool |
true if the value of |