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
Nested ClassesModifier and TypeClassDescriptionstatic final classThis 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
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final intFields inherited from class com.google.protobuf.GeneratedMessageLite
unknownFieldsFields inherited from class com.google.protobuf.AbstractMessageLite
memoizedHashCode -
Method Summary
Modifier and TypeMethodDescriptionbooleancontainsHeaders(String key) The HTTP response headers.protected final ObjectdynamicMethod(com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, Object arg0, Object arg1) com.google.protobuf.DurationThe amount of time it takes the backend service to fully respond to a request.longgetCode()The HTTP response status code, such as `200` and `404`.static AttributeContext.ResponseDeprecated.intThe HTTP response headers.The HTTP response headers.getHeadersOrDefault(String key, String defaultValue) The HTTP response headers.getHeadersOrThrow(String key) The HTTP response headers.longgetSize()The HTTP response size in bytes.com.google.protobuf.TimestampgetTime()The timestamp when the `destination` service sends the last byte of the response.booleanThe amount of time it takes the backend service to fully respond to a request.booleanhasTime()The timestamp when the `destination` service sends the last byte of the response.newBuilder(AttributeContext.Response prototype) static AttributeContext.ResponseparseDelimitedFrom(InputStream input) static AttributeContext.ResponseparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static AttributeContext.ResponseparseFrom(byte[] data) static AttributeContext.ResponseparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static AttributeContext.ResponseparseFrom(com.google.protobuf.ByteString data) static AttributeContext.ResponseparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static AttributeContext.ResponseparseFrom(com.google.protobuf.CodedInputStream input) static AttributeContext.ResponseparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static AttributeContext.ResponseparseFrom(InputStream input) static AttributeContext.ResponseparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static AttributeContext.ResponseparseFrom(ByteBuffer data) static AttributeContext.ResponseparseFrom(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, writeToMethods inherited from class com.google.protobuf.AbstractMessageLite
addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods 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:
getCodein 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:
getSizein interfaceAttributeContext.ResponseOrBuilder- Returns:
- The size.
-
getHeadersCount
public int getHeadersCount()Description copied from interface:AttributeContext.ResponseOrBuilderThe 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:
getHeadersCountin 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:
containsHeadersin interfaceAttributeContext.ResponseOrBuilder
-
getHeaders
Deprecated.UsegetHeadersMap()instead.- Specified by:
getHeadersin 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:
getHeadersMapin 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:
getHeadersOrDefaultin 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:
getHeadersOrThrowin 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:
hasTimein 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:
getTimein 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:
hasBackendLatencyin 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:
getBackendLatencyin 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:
dynamicMethodin classcom.google.protobuf.GeneratedMessageLite<AttributeContext.Response,AttributeContext.Response.Builder>
-
getDefaultInstance
-
parser
-