Class AttributeContext.Types.Api (2.10.0)

public sealed class AttributeContext.Types.Api : IMessage<AttributeContext.Types.Api>, IEquatable<AttributeContext.Types.Api>, IDeepCloneable<AttributeContext.Types.Api>, IBufferMessage, IMessage

This message defines attributes associated with API operations, such as a network API request. The terminology is based on the conventions used by Google APIs, Istio, and OpenAPI.

Inheritance

object > AttributeContext.Types.Api

Namespace

Google.Rpc.Context

Assembly

Google.Api.CommonProtos.dll

Constructors

Api()

public Api()

Api(Api)

public Api(AttributeContext.Types.Api other)
Parameter
NameDescription
otherAttributeContextTypesApi

Fields

OperationFieldNumber

public const int OperationFieldNumber = 2

Field number for the "operation" field.

Field Value
TypeDescription
int

ProtocolFieldNumber

public const int ProtocolFieldNumber = 3

Field number for the "protocol" field.

Field Value
TypeDescription
int

ServiceFieldNumber

public const int ServiceFieldNumber = 1

Field number for the "service" field.

Field Value
TypeDescription
int

VersionFieldNumber

public const int VersionFieldNumber = 4

Field number for the "version" field.

Field Value
TypeDescription
int

Properties

Descriptor

public static MessageDescriptor Descriptor { get; }
Property Value
TypeDescription
MessageDescriptor

Operation

public string Operation { get; set; }

The API operation name. For gRPC requests, it is the fully qualified API method name, such as "google.pubsub.v1.Publisher.Publish". For OpenAPI requests, it is the operationId, such as "getPet".

Property Value
TypeDescription
string

Parser

public static MessageParser<AttributeContext.Types.Api> Parser { get; }
Property Value
TypeDescription
MessageParserAttributeContextTypesApi

Protocol

public string Protocol { get; set; }

The API protocol used for sending the request, such as "http", "https", "grpc", or "internal".

Property Value
TypeDescription
string

Service

public string Service { get; set; }

The API service name. It is a logical identifier for a networked API, such as "pubsub.googleapis.com". The naming syntax depends on the API management system being used for handling the request.

Property Value
TypeDescription
string

Version

public string Version { get; set; }

The API version associated with the API operation above, such as "v1" or "v1alpha1".

Property Value
TypeDescription
string

Methods

CalculateSize()

public int CalculateSize()
Returns
TypeDescription
int

Clone()

public AttributeContext.Types.Api Clone()
Returns
TypeDescription
AttributeContextTypesApi

Equals(Api)

public bool Equals(AttributeContext.Types.Api other)
Parameter
NameDescription
otherAttributeContextTypesApi
Returns
TypeDescription
bool

Equals(object)

public override bool Equals(object other)
Parameter
NameDescription
otherobject
Returns
TypeDescription
bool
Overrides

GetHashCode()

public override int GetHashCode()
Returns
TypeDescription
int
Overrides

MergeFrom(CodedInputStream)

public void MergeFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream

MergeFrom(Api)

public void MergeFrom(AttributeContext.Types.Api other)
Parameter
NameDescription
otherAttributeContextTypesApi

ToString()

public override string ToString()
Returns
TypeDescription
string
Overrides

WriteTo(CodedOutputStream)

public void WriteTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream