Class IndexEndpointName (1.3.0)

public sealed class IndexEndpointName : IResourceName, IEquatable<IndexEndpointName>

Resource name for the IndexEndpoint resource.

Inheritance

Object > IndexEndpointName

Namespace

Google.Cloud.AIPlatform.V1

Assembly

Google.Cloud.AIPlatform.V1.dll

Constructors

IndexEndpointName(String, String, String)

public IndexEndpointName(string projectId, string locationId, string indexEndpointId)

Constructs a new instance of a IndexEndpointName class from the component parts of pattern projects/{project}/locations/{location}/indexEndpoints/{index_endpoint}

Parameters
NameDescription
projectIdString

The Project ID. Must not be null or empty.

locationIdString

The Location ID. Must not be null or empty.

indexEndpointIdString

The IndexEndpoint ID. Must not be null or empty.

Properties

IndexEndpointId

public string IndexEndpointId { get; }

The IndexEndpoint ID. Will not be null, unless this instance contains an unparsed resource name.

Property Value
TypeDescription
String

IsKnownPattern

public bool IsKnownPattern { get; }

Whether this instance contains a resource name with a known pattern.

Property Value
TypeDescription
Boolean

LocationId

public string LocationId { get; }

The Location ID. Will not be null, unless this instance contains an unparsed resource name.

Property Value
TypeDescription
String

ProjectId

public string ProjectId { get; }

The Project ID. Will not be null, unless this instance contains an unparsed resource name.

Property Value
TypeDescription
String

Type

public IndexEndpointName.ResourceNameType Type { get; }

The IndexEndpointName.ResourceNameType of the contained resource name.

Property Value
TypeDescription
IndexEndpointName.ResourceNameType

UnparsedResource

public UnparsedResourceName UnparsedResource { get; }

The contained UnparsedResourceName. Only non-null if this instance contains an unparsed resource name.

Property Value
TypeDescription
UnparsedResourceName

Methods

Format(String, String, String)

public static string Format(string projectId, string locationId, string indexEndpointId)

Formats the IDs into the string representation of this IndexEndpointName with pattern projects/{project}/locations/{location}/indexEndpoints/{index_endpoint}.

Parameters
NameDescription
projectIdString

The Project ID. Must not be null or empty.

locationIdString

The Location ID. Must not be null or empty.

indexEndpointIdString

The IndexEndpoint ID. Must not be null or empty.

Returns
TypeDescription
String

The string representation of this IndexEndpointName with pattern projects/{project}/locations/{location}/indexEndpoints/{index_endpoint}.

FormatProjectLocationIndexEndpoint(String, String, String)

public static string FormatProjectLocationIndexEndpoint(string projectId, string locationId, string indexEndpointId)

Formats the IDs into the string representation of this IndexEndpointName with pattern projects/{project}/locations/{location}/indexEndpoints/{index_endpoint}.

Parameters
NameDescription
projectIdString

The Project ID. Must not be null or empty.

locationIdString

The Location ID. Must not be null or empty.

indexEndpointIdString

The IndexEndpoint ID. Must not be null or empty.

Returns
TypeDescription
String

The string representation of this IndexEndpointName with pattern projects/{project}/locations/{location}/indexEndpoints/{index_endpoint}.

FromProjectLocationIndexEndpoint(String, String, String)

public static IndexEndpointName FromProjectLocationIndexEndpoint(string projectId, string locationId, string indexEndpointId)

Creates a IndexEndpointName with the pattern projects/{project}/locations/{location}/indexEndpoints/{index_endpoint}.

Parameters
NameDescription
projectIdString

The Project ID. Must not be null or empty.

locationIdString

The Location ID. Must not be null or empty.

indexEndpointIdString

The IndexEndpoint ID. Must not be null or empty.

Returns
TypeDescription
IndexEndpointName

A new instance of IndexEndpointName constructed from the provided ids.

FromUnparsed(UnparsedResourceName)

public static IndexEndpointName FromUnparsed(UnparsedResourceName unparsedResourceName)

Creates a IndexEndpointName containing an unparsed resource name.

Parameter
NameDescription
unparsedResourceNameUnparsedResourceName

The unparsed resource name. Must not be null.

Returns
TypeDescription
IndexEndpointName

A new instance of IndexEndpointName containing the provided unparsedResourceName.

GetHashCode()

public override int GetHashCode()

Returns a hash code for this resource name.

Returns
TypeDescription
Int32
Overrides

Parse(String)

public static IndexEndpointName Parse(string indexEndpointName)

Parses the given resource name string into a new IndexEndpointName instance.

Parameter
NameDescription
indexEndpointNameString

The resource name in string form. Must not be null.

Returns
TypeDescription
IndexEndpointName

The parsed IndexEndpointName if successful.

Remarks

To parse successfully, the resource name must be formatted as one of the following:

  • projects/{project}/locations/{location}/indexEndpoints/{index_endpoint}

Parse(String, Boolean)

public static IndexEndpointName Parse(string indexEndpointName, bool allowUnparsed)

Parses the given resource name string into a new IndexEndpointName instance; optionally allowing an unparseable resource name.

Parameters
NameDescription
indexEndpointNameString

The resource name in string form. Must not be null.

allowUnparsedBoolean

If true will successfully store an unparseable resource name into the UnparsedResource property; otherwise will throw an ArgumentException if an unparseable resource name is specified.

Returns
TypeDescription
IndexEndpointName

The parsed IndexEndpointName if successful.

Remarks

To parse successfully, the resource name must be formatted as one of the following:

  • projects/{project}/locations/{location}/indexEndpoints/{index_endpoint}
Or may be in any format if allowUnparsed is true.

ToString()

public override string ToString()

The string representation of the resource name.

Returns
TypeDescription
String

The string representation of the resource name.

Overrides

TryParse(String, out IndexEndpointName)

public static bool TryParse(string indexEndpointName, out IndexEndpointName result)

Tries to parse the given resource name string into a new IndexEndpointName instance.

Parameters
NameDescription
indexEndpointNameString

The resource name in string form. Must not be null.

resultIndexEndpointName

When this method returns, the parsed IndexEndpointName, or null if parsing failed.

Returns
TypeDescription
Boolean

true if the name was parsed successfully; false otherwise.

Remarks

To parse successfully, the resource name must be formatted as one of the following:

  • projects/{project}/locations/{location}/indexEndpoints/{index_endpoint}

TryParse(String, Boolean, out IndexEndpointName)

public static bool TryParse(string indexEndpointName, bool allowUnparsed, out IndexEndpointName result)

Tries to parse the given resource name string into a new IndexEndpointName instance; optionally allowing an unparseable resource name.

Parameters
NameDescription
indexEndpointNameString

The resource name in string form. Must not be null.

allowUnparsedBoolean

If true will successfully store an unparseable resource name into the UnparsedResource property; otherwise will throw an ArgumentException if an unparseable resource name is specified.

resultIndexEndpointName

When this method returns, the parsed IndexEndpointName, or null if parsing failed.

Returns
TypeDescription
Boolean

true if the name was parsed successfully; false otherwise.

Remarks

To parse successfully, the resource name must be formatted as one of the following:

  • projects/{project}/locations/{location}/indexEndpoints/{index_endpoint}
Or may be in any format if allowUnparsed is true.

Operators

Equality(IndexEndpointName, IndexEndpointName)

public static bool operator ==(IndexEndpointName a, IndexEndpointName b)
Parameters
NameDescription
aIndexEndpointName
bIndexEndpointName
Returns
TypeDescription
Boolean

Inequality(IndexEndpointName, IndexEndpointName)

public static bool operator !=(IndexEndpointName a, IndexEndpointName b)
Parameters
NameDescription
aIndexEndpointName
bIndexEndpointName
Returns
TypeDescription
Boolean