Class RequestInfo.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder<MessageType,BuilderType>
com.google.protobuf.GeneratedMessageLite.Builder<RequestInfo,RequestInfo.Builder>
com.google.rpc.RequestInfo.Builder
All Implemented Interfaces:
com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, RequestInfoOrBuilder, Cloneable
Enclosing class:
RequestInfo

public static final class RequestInfo.Builder extends com.google.protobuf.GeneratedMessageLite.Builder<RequestInfo,RequestInfo.Builder> implements RequestInfoOrBuilder
 Contains metadata about the request that clients can attach when filing a bug
 or providing other forms of feedback.
 
Protobuf type google.rpc.RequestInfo
  • Field Summary

    Fields inherited from class com.google.protobuf.GeneratedMessageLite.Builder

    instance
  • Method Summary

    Modifier and Type
    Method
    Description
    An opaque string that should only be interpreted by the service generating it.
    Any data that was used to serve this request.
    An opaque string that should only be interpreted by the service generating it.
    com.google.protobuf.ByteString
    An opaque string that should only be interpreted by the service generating it.
    Any data that was used to serve this request.
    com.google.protobuf.ByteString
    Any data that was used to serve this request.
    An opaque string that should only be interpreted by the service generating it.
    setRequestIdBytes(com.google.protobuf.ByteString value)
    An opaque string that should only be interpreted by the service generating it.
    Any data that was used to serve this request.
    setServingDataBytes(com.google.protobuf.ByteString value)
    Any data that was used to serve this request.

    Methods inherited from class com.google.protobuf.GeneratedMessageLite.Builder

    build, buildPartial, clear, clone, copyOnWrite, copyOnWriteInternal, getDefaultInstanceForType, internalMergeFrom, isInitialized, mergeFrom, mergeFrom, mergeFrom, mergeFrom

    Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder

    addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException

    Methods inherited from class java.lang.Object

    equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder

    getDefaultInstanceForType, isInitialized
  • Method Details

    • getRequestId

      public String getRequestId()
       An opaque string that should only be interpreted by the service generating
       it. For example, it can be used to identify requests in the service's logs.
       
      string request_id = 1 [json_name = "requestId"];
      Specified by:
      getRequestId in interface RequestInfoOrBuilder
      Returns:
      The requestId.
    • getRequestIdBytes

      public com.google.protobuf.ByteString getRequestIdBytes()
       An opaque string that should only be interpreted by the service generating
       it. For example, it can be used to identify requests in the service's logs.
       
      string request_id = 1 [json_name = "requestId"];
      Specified by:
      getRequestIdBytes in interface RequestInfoOrBuilder
      Returns:
      The bytes for requestId.
    • setRequestId

      public RequestInfo.Builder setRequestId(String value)
       An opaque string that should only be interpreted by the service generating
       it. For example, it can be used to identify requests in the service's logs.
       
      string request_id = 1 [json_name = "requestId"];
      Parameters:
      value - The requestId to set.
      Returns:
      This builder for chaining.
    • clearRequestId

      public RequestInfo.Builder clearRequestId()
       An opaque string that should only be interpreted by the service generating
       it. For example, it can be used to identify requests in the service's logs.
       
      string request_id = 1 [json_name = "requestId"];
      Returns:
      This builder for chaining.
    • setRequestIdBytes

      public RequestInfo.Builder setRequestIdBytes(com.google.protobuf.ByteString value)
       An opaque string that should only be interpreted by the service generating
       it. For example, it can be used to identify requests in the service's logs.
       
      string request_id = 1 [json_name = "requestId"];
      Parameters:
      value - The bytes for requestId to set.
      Returns:
      This builder for chaining.
    • getServingData

      public String getServingData()
       Any data that was used to serve this request. For example, an encrypted
       stack trace that can be sent back to the service provider for debugging.
       
      string serving_data = 2 [json_name = "servingData"];
      Specified by:
      getServingData in interface RequestInfoOrBuilder
      Returns:
      The servingData.
    • getServingDataBytes

      public com.google.protobuf.ByteString getServingDataBytes()
       Any data that was used to serve this request. For example, an encrypted
       stack trace that can be sent back to the service provider for debugging.
       
      string serving_data = 2 [json_name = "servingData"];
      Specified by:
      getServingDataBytes in interface RequestInfoOrBuilder
      Returns:
      The bytes for servingData.
    • setServingData

      public RequestInfo.Builder setServingData(String value)
       Any data that was used to serve this request. For example, an encrypted
       stack trace that can be sent back to the service provider for debugging.
       
      string serving_data = 2 [json_name = "servingData"];
      Parameters:
      value - The servingData to set.
      Returns:
      This builder for chaining.
    • clearServingData

      public RequestInfo.Builder clearServingData()
       Any data that was used to serve this request. For example, an encrypted
       stack trace that can be sent back to the service provider for debugging.
       
      string serving_data = 2 [json_name = "servingData"];
      Returns:
      This builder for chaining.
    • setServingDataBytes

      public RequestInfo.Builder setServingDataBytes(com.google.protobuf.ByteString value)
       Any data that was used to serve this request. For example, an encrypted
       stack trace that can be sent back to the service provider for debugging.
       
      string serving_data = 2 [json_name = "servingData"];
      Parameters:
      value - The bytes for servingData to set.
      Returns:
      This builder for chaining.