Class AttributeContext.Types.Api (2.17.0)
Stay organized with collections
Save and categorize content based on your preferences.
Version latestkeyboard_arrow_down
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()
Api(Api)
public Api(AttributeContext.Types.Api other)
Fields
OperationFieldNumber
public const int OperationFieldNumber = 2
Field number for the "operation" field.
Field Value
Type
Description
int
ProtocolFieldNumber
public const int ProtocolFieldNumber = 3
Field number for the "protocol" field.
Field Value
Type
Description
int
ServiceFieldNumber
public const int ServiceFieldNumber = 1
Field number for the "service" field.
Field Value
Type
Description
int
VersionFieldNumber
public const int VersionFieldNumber = 4
Field number for the "version" field.
Field Value
Type
Description
int
Properties
Descriptor
public static MessageDescriptor Descriptor { get; }
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
Type
Description
string
Parser
public static MessageParser<AttributeContext.Types.Api> Parser { get; }
Protocol
public string Protocol { get; set; }
The API protocol used for sending the request, such as "http", "https",
"grpc", or "internal".
Property Value
Type
Description
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
Type
Description
string
Version
public string Version { get; set; }
The API version associated with the API operation above, such as "v1" or
"v1alpha1".
Property Value
Type
Description
string
Methods
CalculateSize()
public int CalculateSize()
Returns
Type
Description
int
Clone()
public AttributeContext.Types.Api Clone()
Equals(Api)
public bool Equals(AttributeContext.Types.Api other)
Returns
Type
Description
bool
Equals(object)
public override bool Equals(object other)
Parameter
Name
Description
other
object
Returns
Type
Description
bool
Overrides
GetHashCode()
public override int GetHashCode()
Returns
Type
Description
int
Overrides
MergeFrom(CodedInputStream)
public void MergeFrom(CodedInputStream input)
MergeFrom(Api)
public void MergeFrom(AttributeContext.Types.Api other)
ToString()
public override string ToString()
Returns
Type
Description
string
Overrides
WriteTo(CodedOutputStream)
public void WriteTo(CodedOutputStream output)
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2026-03-09 UTC.
[null,null,["Last updated 2026-03-09 UTC."],[],[]]