Package com.google.rpc.context
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
Modifier and TypeClassDescriptionstatic 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
Modifier and TypeFieldDescriptionstatic 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 TypeMethodDescriptionboolean
containsHeaders
(String key) 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
getCode()
The HTTP response status code, such as `200` and `404`.static AttributeContext.Response
Deprecated.int
The HTTP response headers.The HTTP response headers.getHeadersOrDefault
(String key, String defaultValue) The HTTP response headers.getHeadersOrThrow
(String key) The HTTP response headers.long
getSize()
The HTTP response size in bytes.com.google.protobuf.Timestamp
getTime()
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
hasTime()
The timestamp when the `destination` service sends the last byte of the response.newBuilder
(AttributeContext.Response prototype) static AttributeContext.Response
parseDelimitedFrom
(InputStream input) static AttributeContext.Response
parseDelimitedFrom
(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static AttributeContext.Response
parseFrom
(byte[] data) static AttributeContext.Response
parseFrom
(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static AttributeContext.Response
parseFrom
(com.google.protobuf.ByteString data) static AttributeContext.Response
parseFrom
(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static AttributeContext.Response
parseFrom
(com.google.protobuf.CodedInputStream input) static AttributeContext.Response
parseFrom
(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static AttributeContext.Response
parseFrom
(InputStream input) static AttributeContext.Response
parseFrom
(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static AttributeContext.Response
parseFrom
(ByteBuffer data) static AttributeContext.Response
parseFrom
(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<AttributeContext.Response>
parser()
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
-
CODE_FIELD_NUMBER
public static final int CODE_FIELD_NUMBER- See Also:
-
SIZE_FIELD_NUMBER
public static final int SIZE_FIELD_NUMBER- See Also:
-
HEADERS_FIELD_NUMBER
public static final int HEADERS_FIELD_NUMBER- See Also:
-
TIME_FIELD_NUMBER
public static final int TIME_FIELD_NUMBER- See Also:
-
BACKEND_LATENCY_FIELD_NUMBER
public static final int BACKEND_LATENCY_FIELD_NUMBER- See Also:
-
-
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 interfaceAttributeContext.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 interfaceAttributeContext.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 interfaceAttributeContext.ResponseOrBuilder
-
containsHeaders
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 interfaceAttributeContext.ResponseOrBuilder
-
getHeaders
Deprecated.UsegetHeadersMap()
instead.- Specified by:
getHeaders
in interfaceAttributeContext.ResponseOrBuilder
-
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 interfaceAttributeContext.ResponseOrBuilder
-
getHeadersOrDefault
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 interfaceAttributeContext.ResponseOrBuilder
-
getHeadersOrThrow
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 interfaceAttributeContext.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 interfaceAttributeContext.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 interfaceAttributeContext.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 interfaceAttributeContext.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 interfaceAttributeContext.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
- Throws:
IOException
-
parseFrom
public static AttributeContext.Response parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- 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
-
newBuilder
-
dynamicMethod
protected final Object dynamicMethod(com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, Object arg0, Object arg1) - Specified by:
dynamicMethod
in classcom.google.protobuf.GeneratedMessageLite<AttributeContext.Response,
AttributeContext.Response.Builder>
-
getDefaultInstance
-
parser
-