Class GetCurrentIdentityResponse
- Namespace
- Temporalio.Api.Cloud.CloudService.V1
- Assembly
- Temporalio.dll
public sealed class GetCurrentIdentityResponse : IMessage<GetCurrentIdentityResponse>, IEquatable<GetCurrentIdentityResponse>, IDeepCloneable<GetCurrentIdentityResponse>, IBufferMessage, IMessage
- Inheritance
-
GetCurrentIdentityResponse
- Implements
-
IMessage<GetCurrentIdentityResponse>IDeepCloneable<GetCurrentIdentityResponse>IBufferMessageIMessage
- Inherited Members
Constructors
GetCurrentIdentityResponse()
public GetCurrentIdentityResponse()
GetCurrentIdentityResponse(GetCurrentIdentityResponse)
public GetCurrentIdentityResponse(GetCurrentIdentityResponse other)
Parameters
Fields
PrincipalApiKeyFieldNumber
Field number for the "principal_api_key" field.
public const int PrincipalApiKeyFieldNumber = 3
Field Value
ServiceAccountFieldNumber
Field number for the "service_account" field.
public const int ServiceAccountFieldNumber = 2
Field Value
UserFieldNumber
Field number for the "user" field.
public const int UserFieldNumber = 1
Field Value
Properties
Descriptor
public static MessageDescriptor Descriptor { get; }
Property Value
- MessageDescriptor
Parser
public static MessageParser<GetCurrentIdentityResponse> Parser { get; }
Property Value
- MessageParser<GetCurrentIdentityResponse>
PrincipalApiKey
The API key info used to authenticate the request, if any
public ApiKey PrincipalApiKey { get; set; }
Property Value
PrincipalCase
public GetCurrentIdentityResponse.PrincipalOneofCase PrincipalCase { get; }
Property Value
ServiceAccount
The user is a service account
public ServiceAccount ServiceAccount { get; set; }
Property Value
User
The user is a regular user
public User User { get; set; }
Property Value
Methods
CalculateSize()
Calculates the size of this message in Protocol Buffer wire format, in bytes.
public int CalculateSize()
Returns
- int
The number of bytes required to write this message to a coded output stream.
ClearPrincipal()
public void ClearPrincipal()
Clone()
Creates a deep clone of this object.
public GetCurrentIdentityResponse Clone()
Returns
- GetCurrentIdentityResponse
A deep clone of this object.
Equals(object)
Determines whether the specified object is equal to the current object.
public override bool Equals(object other)
Parameters
otherobject
Returns
Equals(GetCurrentIdentityResponse)
Indicates whether the current object is equal to another object of the same type.
public bool Equals(GetCurrentIdentityResponse other)
Parameters
otherGetCurrentIdentityResponseAn object to compare with this object.
Returns
GetHashCode()
Serves as the default hash function.
public override int GetHashCode()
Returns
- int
A hash code for the current object.
MergeFrom(CodedInputStream)
Merges the data from the specified coded input stream with the current message.
public void MergeFrom(CodedInputStream input)
Parameters
inputCodedInputStream
Remarks
See the user guide for precise merge semantics.
MergeFrom(GetCurrentIdentityResponse)
Merges the given message into this one.
public void MergeFrom(GetCurrentIdentityResponse other)
Parameters
Remarks
See the user guide for precise merge semantics.
ToString()
Returns a string that represents the current object.
public override string ToString()
Returns
- string
A string that represents the current object.
WriteTo(CodedOutputStream)
Writes the data to the given coded output stream.
public void WriteTo(CodedOutputStream output)
Parameters
outputCodedOutputStreamCoded output stream to write the data to. Must not be null.