Send feedback
  
   
 
  
    
      Class ServiceContext (0.124.15-beta)
    
    
       
    
    
      
      Stay organized with collections
     
    
      
      Save and categorize content based on your preferences.
     
    
  
      
     
  
  
   
  
    
  
  
    
    
    
  Version 0.124.15-betakeyboard_arrow_down  
  
 
    
    
    
    
      
  
  
  
    
public   final   class  ServiceContext   extends   GeneratedMessageV3   implements   ServiceContextOrBuilder  
   
   Describes a running service that sends errors.
 Its version changes over time and multiple versions can run in parallel.
 Protobuf type google.devtools.clouderrorreporting.v1beta1.ServiceContext
 
  
  
  
  Static Fields
   
  RESOURCE_TYPE_FIELD_NUMBER 
  
    
public   static   final   int   RESOURCE_TYPE_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   ServiceContext   getDefaultInstance ()  
   
  Returns 
  
   
  getDescriptor() 
  
    
public   static   final   Descriptors . Descriptor   getDescriptor ()  
   
  Returns 
  
   
  newBuilder() 
  
    
public   static   ServiceContext . Builder   newBuilder ()  
   
  Returns 
  
   
  newBuilder(ServiceContext prototype) 
  
    
public   static   ServiceContext . Builder   newBuilder ( ServiceContext   prototype )  
   
  Parameter 
  
  Returns 
  
   
  parseDelimitedFrom(InputStream input) 
  
    
public   static   ServiceContext   parseDelimitedFrom ( InputStream   input )  
   
  Parameter 
  
  Returns 
  
  Exceptions 
  
   
  parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry) 
  
    
public   static   ServiceContext   parseDelimitedFrom ( InputStream   input ,   ExtensionRegistryLite   extensionRegistry )  
   
  Parameters 
  
  Returns 
  
  Exceptions 
  
   
  parseFrom(byte[] data) 
  
    
public   static   ServiceContext   parseFrom ( byte []   data )  
   
  Parameter 
  
    
      
        Name  
        Description  
       
      
        data  
        byte [] 
       
     
  
  Returns 
  
  Exceptions 
  
   
  parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry) 
  
    
public   static   ServiceContext   parseFrom ( byte []   data ,   ExtensionRegistryLite   extensionRegistry )  
   
  Parameters 
  
  Returns 
  
  Exceptions 
  
   
  parseFrom(ByteString data) 
  
    
public   static   ServiceContext   parseFrom ( ByteString   data )  
   
  Parameter 
  
  Returns 
  
  Exceptions 
  
   
  parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry) 
  
    
public   static   ServiceContext   parseFrom ( ByteString   data ,   ExtensionRegistryLite   extensionRegistry )  
   
  Parameters 
  
  Returns 
  
  Exceptions 
  
   
  parseFrom(CodedInputStream input) 
  
    
public   static   ServiceContext   parseFrom ( CodedInputStream   input )  
   
  Parameter 
  
  Returns 
  
  Exceptions 
  
   
  parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) 
  
    
public   static   ServiceContext   parseFrom ( CodedInputStream   input ,   ExtensionRegistryLite   extensionRegistry )  
   
  Parameters 
  
  Returns 
  
  Exceptions 
  
   
  parseFrom(InputStream input) 
  
    
public   static   ServiceContext   parseFrom ( InputStream   input )  
   
  Parameter 
  
  Returns 
  
  Exceptions 
  
   
  parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry) 
  
    
public   static   ServiceContext   parseFrom ( InputStream   input ,   ExtensionRegistryLite   extensionRegistry )  
   
  Parameters 
  
  Returns 
  
  Exceptions 
  
   
  parseFrom(ByteBuffer data) 
  
    
public   static   ServiceContext   parseFrom ( ByteBuffer   data )  
   
  Parameter 
  
  Returns 
  
  Exceptions 
  
   
  parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry) 
  
    
public   static   ServiceContext   parseFrom ( ByteBuffer   data ,   ExtensionRegistryLite   extensionRegistry )  
   
  Parameters 
  
  Returns 
  
  Exceptions 
  
   
  parser() 
  
    
public   static   Parser<ServiceContext>   parser ()  
   
  Returns 
  
  Methods
   
   
  equals(Object obj) 
  
    
public   boolean   equals ( Object   obj )  
   
  Parameter 
  
  Returns 
  
  Overrides 
  
   
  getDefaultInstanceForType() 
  
    
public   ServiceContext   getDefaultInstanceForType ()  
   
  Returns 
  
   
  getParserForType() 
  
    
public   Parser<ServiceContext>   getParserForType ()  
   
  Returns 
  
  Overrides 
  
   
  getResourceType() 
  
    
public   String   getResourceType ()  
   
  
  Returns 
  
    
      
        Type  
        Description  
       
      
        String  
        The resourceType.
 
       
     
  
   
  getResourceTypeBytes() 
  
    
public   ByteString   getResourceTypeBytes ()  
   
  
  Returns 
  
    
      
        Type  
        Description  
       
      
        ByteString  
        The bytes for resourceType.
 
       
     
  
   
  getSerializedSize() 
  
    
public   int   getSerializedSize ()  
   
  Returns 
  
  Overrides 
  
   
  getService() 
  
    
public   String   getService ()  
   
   An identifier of the service, such as the name of the
 executable, job, or Google App Engine service name. This field is expected
 to have a low number of values that are relatively stable over time, as
 opposed to version, which can be changed whenever new code is deployed.
 Contains the service name for error reports extracted from Google
 App Engine logs or default if the App Engine default service is used.
 string service = 2;
 
  Returns 
  
    
      
        Type  
        Description  
       
      
        String  
        The service.
 
       
     
  
   
  getServiceBytes() 
  
    
public   ByteString   getServiceBytes ()  
   
   An identifier of the service, such as the name of the
 executable, job, or Google App Engine service name. This field is expected
 to have a low number of values that are relatively stable over time, as
 opposed to version, which can be changed whenever new code is deployed.
 Contains the service name for error reports extracted from Google
 App Engine logs or default if the App Engine default service is used.
 string service = 2;
 
  Returns 
  
    
      
        Type  
        Description  
       
      
        ByteString  
        The bytes for service.
 
       
     
  
   
  getUnknownFields() 
  
    
public   final   UnknownFieldSet   getUnknownFields ()  
   
  Returns 
  
  Overrides 
  
   
  getVersion() 
  
    
public   String   getVersion ()  
   
   Represents the source code version that the developer provided,
 which could represent a version label or a Git SHA-1 hash, for example.
 For App Engine standard environment, the version is set to the version of
 the app.
 string version = 3;
 
  Returns 
  
    
      
        Type  
        Description  
       
      
        String  
        The version.
 
       
     
  
   
  getVersionBytes() 
  
    
public   ByteString   getVersionBytes ()  
   
   Represents the source code version that the developer provided,
 which could represent a version label or a Git SHA-1 hash, for example.
 For App Engine standard environment, the version is set to the version of
 the app.
 string version = 3;
 
  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   ServiceContext . Builder   newBuilderForType ()  
   
  Returns 
  
   
  newBuilderForType(GeneratedMessageV3.BuilderParent parent) 
  
    
protected   ServiceContext . Builder   newBuilderForType ( GeneratedMessageV3 . BuilderParent   parent )  
   
  Parameter 
  
  Returns 
  
  Overrides 
  
   
  newInstance(GeneratedMessageV3.UnusedPrivateParameter unused) 
  
    
protected   Object   newInstance ( GeneratedMessageV3 . UnusedPrivateParameter   unused )  
   
  Parameter 
  
  Returns 
  
  Overrides 
  
   
  toBuilder() 
  
    
public   ServiceContext . 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."],[],[]]