Send feedback
  
   
 
  
    
      Class AttributeContext.Api (2.10.0)
    
    
       
    
    
      
      Stay organized with collections
     
    
      
      Save and categorize content based on your preferences.
     
    
  
      
     
  
  
   
  
    
  
  
    
    
    
  Version 2.10.0keyboard_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
 
  
  
  
  Static Fields
   
  OPERATION_FIELD_NUMBER 
  
    
public   static   final   int   OPERATION_FIELD_NUMBER  
   
  Field Value 
  
  PROTOCOL_FIELD_NUMBER 
  
    
public   static   final   int   PROTOCOL_FIELD_NUMBER  
   
  Field Value 
  
  SERVICE_FIELD_NUMBER 
  
    
public   static   final   int   SERVICE_FIELD_NUMBER  
   
  Field Value 
  
  VERSION_FIELD_NUMBER 
  
    
public   static   final   int   VERSION_FIELD_NUMBER  
   
  Field Value 
  
  Static Methods
   
   
  getDefaultInstance() 
  
    
public   static   AttributeContext . Api   getDefaultInstance ()  
   
  Returns 
  
   
  getDescriptor() 
  
    
public   static   final   Descriptors . Descriptor   getDescriptor ()  
   
  Returns 
  
   
  newBuilder() 
  
    
public   static   AttributeContext . Api . Builder   newBuilder ()  
   
  Returns 
  
   
  newBuilder(AttributeContext.Api prototype) 
  
    
public   static   AttributeContext . Api . Builder   newBuilder ( AttributeContext . Api   prototype )  
   
  Parameter 
  
  Returns 
  
   
  parseDelimitedFrom(InputStream input) 
  
    
public   static   AttributeContext . Api   parseDelimitedFrom ( InputStream   input )  
   
  Parameter 
  
  Returns 
  
  Exceptions 
  
   
  parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry) 
  
    
public   static   AttributeContext . Api   parseDelimitedFrom ( InputStream   input ,   ExtensionRegistryLite   extensionRegistry )  
   
  Parameters 
  
  Returns 
  
  Exceptions 
  
   
  parseFrom(byte[] data) 
  
    
public   static   AttributeContext . Api   parseFrom ( byte []   data )  
   
  Parameter 
  
    
      
        Name  
        Description  
       
      
        data  
        byte [] 
       
     
  
  Returns 
  
  Exceptions 
  
   
  parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry) 
  
    
public   static   AttributeContext . Api   parseFrom ( byte []   data ,   ExtensionRegistryLite   extensionRegistry )  
   
  Parameters 
  
  Returns 
  
  Exceptions 
  
   
  parseFrom(ByteString data) 
  
    
public   static   AttributeContext . Api   parseFrom ( ByteString   data )  
   
  Parameter 
  
  Returns 
  
  Exceptions 
  
   
  parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry) 
  
    
public   static   AttributeContext . Api   parseFrom ( ByteString   data ,   ExtensionRegistryLite   extensionRegistry )  
   
  Parameters 
  
  Returns 
  
  Exceptions 
  
   
  parseFrom(CodedInputStream input) 
  
    
public   static   AttributeContext . Api   parseFrom ( CodedInputStream   input )  
   
  Parameter 
  
  Returns 
  
  Exceptions 
  
   
  parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) 
  
    
public   static   AttributeContext . Api   parseFrom ( CodedInputStream   input ,   ExtensionRegistryLite   extensionRegistry )  
   
  Parameters 
  
  Returns 
  
  Exceptions 
  
   
  parseFrom(InputStream input) 
  
    
public   static   AttributeContext . Api   parseFrom ( InputStream   input )  
   
  Parameter 
  
  Returns 
  
  Exceptions 
  
   
  parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry) 
  
    
public   static   AttributeContext . Api   parseFrom ( InputStream   input ,   ExtensionRegistryLite   extensionRegistry )  
   
  Parameters 
  
  Returns 
  
  Exceptions 
  
   
  parseFrom(ByteBuffer data) 
  
    
public   static   AttributeContext . Api   parseFrom ( ByteBuffer   data )  
   
  Parameter 
  
  Returns 
  
  Exceptions 
  
   
  parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry) 
  
    
public   static   AttributeContext . Api   parseFrom ( ByteBuffer   data ,   ExtensionRegistryLite   extensionRegistry )  
   
  Parameters 
  
  Returns 
  
  Exceptions 
  
   
  parser() 
  
    
public   static   Parser<AttributeContext . Api >  parser ()  
   
  Returns 
  
  Methods
   
   
  equals(Object obj) 
  
    
public   boolean   equals ( Object   obj )  
   
  Parameter 
  
  Returns 
  
  Overrides 
  
   
  getDefaultInstanceForType() 
  
    
public   AttributeContext . Api   getDefaultInstanceForType ()  
   
  Returns 
  
   
  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 ()  
   
  Returns 
  
  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 
  
  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.
 
       
     
  
   
  getUnknownFields() 
  
    
public   final   UnknownFieldSet   getUnknownFields ()  
   
  Returns 
  
  Overrides 
  
   
  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 
  
  Overrides 
  
   
  internalGetFieldAccessorTable() 
  
    
protected   GeneratedMessageV3 . FieldAccessorTable   internalGetFieldAccessorTable ()  
   
  Returns 
  
  Overrides 
  
   
  isInitialized() 
  
    
public   final   boolean   isInitialized ()  
   
  Returns 
  
  Overrides 
  
   
  newBuilderForType() 
  
    
public   AttributeContext . Api . Builder   newBuilderForType ()  
   
  Returns 
  
   
  newBuilderForType(GeneratedMessageV3.BuilderParent parent) 
  
    
protected   AttributeContext . Api . Builder   newBuilderForType ( GeneratedMessageV3 . BuilderParent   parent )  
   
  Parameter 
  
  Returns 
  
  Overrides 
  
   
  newInstance(GeneratedMessageV3.UnusedPrivateParameter unused) 
  
    
protected   Object   newInstance ( GeneratedMessageV3 . UnusedPrivateParameter   unused )  
   
  Parameter 
  
  Returns 
  
  Overrides 
  
   
  toBuilder() 
  
    
public   AttributeContext . Api . Builder   toBuilder ()  
   
  Returns 
  
   
  writeTo(CodedOutputStream output) 
  
    
public   void   writeTo ( CodedOutputStream   output )  
   
  Parameter 
  
  Overrides 
  
  Exceptions 
  
 
     
    
  
  
  
     
  
 
  
    
    
      
    
     
  
       
         
  
  
    
    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-10-30 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-10-30 UTC."],[],[]]