Class AttributeContext.Response

java.lang.Object
com.google.protobuf.AbstractMessageLite<MessageType,BuilderType>
com.google.protobuf.GeneratedMessageLite<AttributeContext.Response,AttributeContext.Response.Builder>
com.google.rpc.context.AttributeContext.Response
All Implemented Interfaces:
com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, AttributeContext.ResponseOrBuilder
Enclosing class:
AttributeContext

public static final class AttributeContext.Response extends com.google.protobuf.GeneratedMessageLite<AttributeContext.Response,AttributeContext.Response.Builder> implements AttributeContext.ResponseOrBuilder
 This message defines attributes for a typical network response. It
 generally models semantics of an HTTP response.
 
Protobuf type google.rpc.context.AttributeContext.Response
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static final class 
    This message defines attributes for a typical network response.

    Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageLite

    com.google.protobuf.GeneratedMessageLite.DefaultInstanceBasedParser<T extends com.google.protobuf.GeneratedMessageLite<T,?>>, com.google.protobuf.GeneratedMessageLite.ExtendableBuilder<MessageType extends com.google.protobuf.GeneratedMessageLite.ExtendableMessage<MessageType,BuilderType>,BuilderType extends com.google.protobuf.GeneratedMessageLite.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageLite.ExtendableMessage<MessageType extends com.google.protobuf.GeneratedMessageLite.ExtendableMessage<MessageType,BuilderType>,BuilderType extends com.google.protobuf.GeneratedMessageLite.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageLite.ExtendableMessageOrBuilder<MessageType extends com.google.protobuf.GeneratedMessageLite.ExtendableMessage<MessageType,BuilderType>,BuilderType extends com.google.protobuf.GeneratedMessageLite.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageLite.GeneratedExtension<ContainingType extends com.google.protobuf.MessageLite,Type extends Object>, com.google.protobuf.GeneratedMessageLite.MethodToInvoke, com.google.protobuf.GeneratedMessageLite.SerializedForm

    Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite

    com.google.protobuf.AbstractMessageLite.InternalOneOfEnum
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final int
     
    static final int
     
    static final int
     
    static final int
     
    static final int
     

    Fields inherited from class com.google.protobuf.GeneratedMessageLite

    unknownFields

    Fields inherited from class com.google.protobuf.AbstractMessageLite

    memoizedHashCode
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    The HTTP response headers.
    protected final Object
    dynamicMethod(com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, Object arg0, Object arg1)
     
    com.google.protobuf.Duration
    The amount of time it takes the backend service to fully respond to a request.
    long
    The HTTP response status code, such as `200` and `404`.
     
    Deprecated.
    int
    The HTTP response headers.
    The HTTP response headers.
    getHeadersOrDefault(String key, String defaultValue)
    The HTTP response headers.
    The HTTP response headers.
    long
    The HTTP response size in bytes.
    com.google.protobuf.Timestamp
    The timestamp when the `destination` service sends the last byte of the response.
    boolean
    The amount of time it takes the backend service to fully respond to a request.
    boolean
    The timestamp when the `destination` service sends the last byte of the response.
     
     
     
    parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    parseFrom(byte[] data)
     
    parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    parseFrom(com.google.protobuf.ByteString data)
     
    parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    parseFrom(com.google.protobuf.CodedInputStream input)
     
    parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
     
    parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
     
    parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    static com.google.protobuf.Parser<AttributeContext.Response>
     

    Methods inherited from class com.google.protobuf.GeneratedMessageLite

    createBuilder, createBuilder, dynamicMethod, dynamicMethod, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, emptyProtobufList, equals, getDefaultInstanceForType, getParserForType, getSerializedSize, hashCode, isInitialized, isInitialized, makeImmutable, mergeLengthDelimitedField, mergeUnknownFields, mergeVarintField, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBuilderForType, newMessageInfo, newRepeatedGeneratedExtension, newSingularGeneratedExtension, parseDelimitedFrom, parseDelimitedFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parsePartialFrom, parseUnknownField, registerDefaultInstance, toBuilder, toString, writeTo

    Methods inherited from class com.google.protobuf.AbstractMessageLite

    addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait

    Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder

    getDefaultInstanceForType, isInitialized
  • Field Details

  • Method Details

    • getCode

      public long getCode()
       The HTTP response status code, such as `200` and `404`.
       
      int64 code = 1 [json_name = "code"];
      Specified by:
      getCode in interface AttributeContext.ResponseOrBuilder
      Returns:
      The code.
    • getSize

      public long getSize()
       The HTTP response size in bytes. If unknown, it must be -1.
       
      int64 size = 2 [json_name = "size"];
      Specified by:
      getSize in interface AttributeContext.ResponseOrBuilder
      Returns:
      The size.
    • getHeadersCount

      public int getHeadersCount()
      Description copied from interface: AttributeContext.ResponseOrBuilder
       The HTTP response headers. If multiple headers share the same key, they
       must be merged according to HTTP spec. All header keys must be
       lowercased, because HTTP header keys are case-insensitive.
       
      map<string, string> headers = 3 [json_name = "headers"];
      Specified by:
      getHeadersCount in interface AttributeContext.ResponseOrBuilder
    • containsHeaders

      public boolean containsHeaders(String key)
       The HTTP response headers. If multiple headers share the same key, they
       must be merged according to HTTP spec. All header keys must be
       lowercased, because HTTP header keys are case-insensitive.
       
      map<string, string> headers = 3 [json_name = "headers"];
      Specified by:
      containsHeaders in interface AttributeContext.ResponseOrBuilder
    • getHeaders

      @Deprecated public Map<String,String> getHeaders()
      Deprecated.
      Use getHeadersMap() instead.
      Specified by:
      getHeaders in interface AttributeContext.ResponseOrBuilder
    • getHeadersMap

      public Map<String,String> getHeadersMap()
       The HTTP response headers. If multiple headers share the same key, they
       must be merged according to HTTP spec. All header keys must be
       lowercased, because HTTP header keys are case-insensitive.
       
      map<string, string> headers = 3 [json_name = "headers"];
      Specified by:
      getHeadersMap in interface AttributeContext.ResponseOrBuilder
    • getHeadersOrDefault

      public String getHeadersOrDefault(String key, String defaultValue)
       The HTTP response headers. If multiple headers share the same key, they
       must be merged according to HTTP spec. All header keys must be
       lowercased, because HTTP header keys are case-insensitive.
       
      map<string, string> headers = 3 [json_name = "headers"];
      Specified by:
      getHeadersOrDefault in interface AttributeContext.ResponseOrBuilder
    • getHeadersOrThrow

      public String getHeadersOrThrow(String key)
       The HTTP response headers. If multiple headers share the same key, they
       must be merged according to HTTP spec. All header keys must be
       lowercased, because HTTP header keys are case-insensitive.
       
      map<string, string> headers = 3 [json_name = "headers"];
      Specified by:
      getHeadersOrThrow in interface AttributeContext.ResponseOrBuilder
    • hasTime

      public boolean hasTime()
       The timestamp when the `destination` service sends the last byte of
       the response.
       
      .google.protobuf.Timestamp time = 4 [json_name = "time"];
      Specified by:
      hasTime in interface AttributeContext.ResponseOrBuilder
      Returns:
      Whether the time field is set.
    • getTime

      public com.google.protobuf.Timestamp getTime()
       The timestamp when the `destination` service sends the last byte of
       the response.
       
      .google.protobuf.Timestamp time = 4 [json_name = "time"];
      Specified by:
      getTime in interface AttributeContext.ResponseOrBuilder
      Returns:
      The time.
    • hasBackendLatency

      public boolean hasBackendLatency()
       The amount of time it takes the backend service to fully respond to a
       request. Measured from when the destination service starts to send the
       request to the backend until when the destination service receives the
       complete response from the backend.
       
      .google.protobuf.Duration backend_latency = 5 [json_name = "backendLatency"];
      Specified by:
      hasBackendLatency in interface AttributeContext.ResponseOrBuilder
      Returns:
      Whether the backendLatency field is set.
    • getBackendLatency

      public com.google.protobuf.Duration getBackendLatency()
       The amount of time it takes the backend service to fully respond to a
       request. Measured from when the destination service starts to send the
       request to the backend until when the destination service receives the
       complete response from the backend.
       
      .google.protobuf.Duration backend_latency = 5 [json_name = "backendLatency"];
      Specified by:
      getBackendLatency in interface AttributeContext.ResponseOrBuilder
      Returns:
      The backendLatency.
    • parseFrom

      public static AttributeContext.Response parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static AttributeContext.Response parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static AttributeContext.Response parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static AttributeContext.Response parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static AttributeContext.Response parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static AttributeContext.Response parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static AttributeContext.Response parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static AttributeContext.Response parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static AttributeContext.Response parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static AttributeContext.Response parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseFrom

      public static AttributeContext.Response parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static AttributeContext.Response parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • newBuilder

      public static AttributeContext.Response.Builder newBuilder()
    • newBuilder

      public static AttributeContext.Response.Builder newBuilder(AttributeContext.Response prototype)
    • dynamicMethod

      protected final Object dynamicMethod(com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, Object arg0, Object arg1)
      Specified by:
      dynamicMethod in class com.google.protobuf.GeneratedMessageLite<AttributeContext.Response,AttributeContext.Response.Builder>
    • getDefaultInstance

      public static AttributeContext.Response getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<AttributeContext.Response> parser()