Send feedback
Class AttributeContext.Api (2.50.1)
Stay organized with collections
Save and categorize content based on your preferences.
Version 2.50.1 keyboard_arrow_down
public static final class AttributeContext . Api extends GeneratedMessageV3 implements AttributeContext . ApiOrBuilder
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.
Protobuf type google.rpc.context.AttributeContext.Api
Inherited Members
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessageV3.<T>emptyList(java.lang.Class<T>)
com.google.protobuf.GeneratedMessageV3.internalGetMapFieldReflection(int)
Static Fields
OPERATION_FIELD_NUMBER
public static final int OPERATION_FIELD_NUMBER
Field Value
Type
Description
int
PROTOCOL_FIELD_NUMBER
public static final int PROTOCOL_FIELD_NUMBER
Field Value
Type
Description
int
SERVICE_FIELD_NUMBER
public static final int SERVICE_FIELD_NUMBER
Field Value
Type
Description
int
VERSION_FIELD_NUMBER
public static final int VERSION_FIELD_NUMBER
Field Value
Type
Description
int
Static Methods
getDefaultInstance()
public static AttributeContext . Api getDefaultInstance ()
getDescriptor()
public static final Descriptors . Descriptor getDescriptor ()
newBuilder()
public static AttributeContext . Api . Builder newBuilder ()
newBuilder(AttributeContext.Api prototype)
public static AttributeContext . Api . Builder newBuilder ( AttributeContext . Api prototype )
parseDelimitedFrom(InputStream input)
public static AttributeContext . Api parseDelimitedFrom ( InputStream input )
parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static AttributeContext . Api parseDelimitedFrom ( InputStream input , ExtensionRegistryLite extensionRegistry )
parseFrom(byte[] data)
public static AttributeContext . Api parseFrom ( byte [] data )
Parameter
Name
Description
data
byte []
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static AttributeContext . Api parseFrom ( byte [] data , ExtensionRegistryLite extensionRegistry )
parseFrom(ByteString data)
public static AttributeContext . Api parseFrom ( ByteString data )
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static AttributeContext . Api parseFrom ( ByteString data , ExtensionRegistryLite extensionRegistry )
parseFrom(CodedInputStream input)
public static AttributeContext . Api parseFrom ( CodedInputStream input )
parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static AttributeContext . Api parseFrom ( CodedInputStream input , ExtensionRegistryLite extensionRegistry )
parseFrom(InputStream input)
public static AttributeContext . Api parseFrom ( InputStream input )
parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static AttributeContext . Api parseFrom ( InputStream input , ExtensionRegistryLite extensionRegistry )
parseFrom(ByteBuffer data)
public static AttributeContext . Api parseFrom ( ByteBuffer data )
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static AttributeContext . Api parseFrom ( ByteBuffer data , ExtensionRegistryLite extensionRegistry )
parser()
public static Parser<AttributeContext . Api > parser ()
Methods
equals(Object obj)
public boolean equals ( Object obj )
Parameter
Name
Description
obj
Object
Overrides
getDefaultInstanceForType()
public AttributeContext . Api getDefaultInstanceForType ()
getOperation()
public String getOperation ()
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".
string operation = 2;
Returns
Type
Description
String
The operation.
getOperationBytes()
public ByteString getOperationBytes ()
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".
string operation = 2;
Returns
Type
Description
ByteString
The bytes for operation.
getParserForType()
public Parser<AttributeContext . Api > getParserForType ()
Overrides
getProtocol()
public String getProtocol ()
The API protocol used for sending the request, such as "http", "https",
"grpc", or "internal".
string protocol = 3;
Returns
Type
Description
String
The protocol.
getProtocolBytes()
public ByteString getProtocolBytes ()
The API protocol used for sending the request, such as "http", "https",
"grpc", or "internal".
string protocol = 3;
Returns
Type
Description
ByteString
The bytes for protocol.
getSerializedSize()
public int getSerializedSize ()
Returns
Type
Description
int
Overrides
getService()
public String getService ()
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.
string service = 1;
Returns
Type
Description
String
The service.
getServiceBytes()
public ByteString getServiceBytes ()
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.
string service = 1;
Returns
Type
Description
ByteString
The bytes for service.
getVersion()
public String getVersion ()
The API version associated with the API operation above, such as "v1" or
"v1alpha1".
string version = 4;
Returns
Type
Description
String
The version.
getVersionBytes()
public ByteString getVersionBytes ()
The API version associated with the API operation above, such as "v1" or
"v1alpha1".
string version = 4;
Returns
Type
Description
ByteString
The bytes for version.
hashCode()
Returns
Type
Description
int
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3 . FieldAccessorTable internalGetFieldAccessorTable ()
Overrides
isInitialized()
public final boolean isInitialized ()
Overrides
newBuilderForType()
public AttributeContext . Api . Builder newBuilderForType ()
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected AttributeContext . Api . Builder newBuilderForType ( GeneratedMessageV3 . BuilderParent parent )
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance ( GeneratedMessageV3 . UnusedPrivateParameter unused )
Returns
Type
Description
Object
Overrides
toBuilder()
public AttributeContext . Api . Builder toBuilder ()
writeTo(CodedOutputStream output)
public void writeTo ( CodedOutputStream output )
Overrides
Send feedback
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 2025-02-04 UTC.
Need to tell us more?
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-02-04 UTC."],[],[]]