public static final class AttributeContext.Response extends com.google.protobuf.GeneratedMessageV3 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| Modifier and Type | Class and Description |
|---|---|
static class |
AttributeContext.Response.Builder
This message defines attributes for a typical network response.
|
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage,BuilderType extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter| Modifier and Type | Field and Description |
|---|---|
static int |
BACKEND_LATENCY_FIELD_NUMBER |
static int |
CODE_FIELD_NUMBER |
static int |
HEADERS_FIELD_NUMBER |
static int |
SIZE_FIELD_NUMBER |
static int |
TIME_FIELD_NUMBER |
| Modifier and Type | Method and Description |
|---|---|
boolean |
containsHeaders(String key)
The HTTP response headers.
|
boolean |
equals(Object obj) |
com.google.protobuf.Duration |
getBackendLatency()
The length of time it takes the backend service to fully respond to a
request.
|
com.google.protobuf.DurationOrBuilder |
getBackendLatencyOrBuilder()
The length 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 |
getDefaultInstance() |
AttributeContext.Response |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
Map<String,String> |
getHeaders()
Deprecated.
|
int |
getHeadersCount()
The HTTP response headers.
|
Map<String,String> |
getHeadersMap()
The HTTP response headers.
|
String |
getHeadersOrDefault(String key,
String defaultValue)
The HTTP response headers.
|
String |
getHeadersOrThrow(String key)
The HTTP response headers.
|
com.google.protobuf.Parser<AttributeContext.Response> |
getParserForType() |
int |
getSerializedSize() |
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.
|
com.google.protobuf.TimestampOrBuilder |
getTimeOrBuilder()
The timestamp when the `destination` service sends the last byte of
the response.
|
com.google.protobuf.UnknownFieldSet |
getUnknownFields() |
boolean |
hasBackendLatency()
The length of time it takes the backend service to fully respond to a
request.
|
int |
hashCode() |
boolean |
hasTime()
The timestamp when the `destination` service sends the last byte of
the response.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
protected com.google.protobuf.MapField |
internalGetMapField(int number) |
boolean |
isInitialized() |
static AttributeContext.Response.Builder |
newBuilder() |
static AttributeContext.Response.Builder |
newBuilder(AttributeContext.Response prototype) |
AttributeContext.Response.Builder |
newBuilderForType() |
protected AttributeContext.Response.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
protected Object |
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) |
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(ByteBuffer data) |
static AttributeContext.Response |
parseFrom(ByteBuffer 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 com.google.protobuf.Parser<AttributeContext.Response> |
parser() |
AttributeContext.Response.Builder |
toBuilder() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, isStringEmpty, makeExtensionsImmutable, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagfindInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringaddAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToclone, finalize, getClass, notify, notifyAll, wait, wait, waitpublic static final int CODE_FIELD_NUMBER
public static final int SIZE_FIELD_NUMBER
public static final int HEADERS_FIELD_NUMBER
public static final int TIME_FIELD_NUMBER
public static final int BACKEND_LATENCY_FIELD_NUMBER
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
newInstance in class com.google.protobuf.GeneratedMessageV3public final com.google.protobuf.UnknownFieldSet getUnknownFields()
getUnknownFields in interface com.google.protobuf.MessageOrBuildergetUnknownFields in class com.google.protobuf.GeneratedMessageV3public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.MapField internalGetMapField(int number)
internalGetMapField in class com.google.protobuf.GeneratedMessageV3protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3public long getCode()
The HTTP response status code, such as `200` and `404`.
int64 code = 1;getCode in interface AttributeContext.ResponseOrBuilderpublic long getSize()
The HTTP response size in bytes. If unknown, it must be -1.
int64 size = 2;getSize in interface AttributeContext.ResponseOrBuilderpublic int getHeadersCount()
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;getHeadersCount in interface AttributeContext.ResponseOrBuilderpublic 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;containsHeaders in interface AttributeContext.ResponseOrBuilder@Deprecated public Map<String,String> getHeaders()
getHeadersMap() instead.getHeaders in interface AttributeContext.ResponseOrBuilderpublic 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;getHeadersMap in interface AttributeContext.ResponseOrBuilderpublic 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;getHeadersOrDefault in interface AttributeContext.ResponseOrBuilderpublic 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;getHeadersOrThrow in interface AttributeContext.ResponseOrBuilderpublic boolean hasTime()
The timestamp when the `destination` service sends the last byte of the response.
.google.protobuf.Timestamp time = 4;hasTime in interface AttributeContext.ResponseOrBuilderpublic com.google.protobuf.Timestamp getTime()
The timestamp when the `destination` service sends the last byte of the response.
.google.protobuf.Timestamp time = 4;getTime in interface AttributeContext.ResponseOrBuilderpublic com.google.protobuf.TimestampOrBuilder getTimeOrBuilder()
The timestamp when the `destination` service sends the last byte of the response.
.google.protobuf.Timestamp time = 4;getTimeOrBuilder in interface AttributeContext.ResponseOrBuilderpublic boolean hasBackendLatency()
The length 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;hasBackendLatency in interface AttributeContext.ResponseOrBuilderpublic com.google.protobuf.Duration getBackendLatency()
The length 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;getBackendLatency in interface AttributeContext.ResponseOrBuilderpublic com.google.protobuf.DurationOrBuilder getBackendLatencyOrBuilder()
The length 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;getBackendLatencyOrBuilder in interface AttributeContext.ResponseOrBuilderpublic final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3public void writeTo(com.google.protobuf.CodedOutputStream output)
throws IOException
writeTo in interface com.google.protobuf.MessageLitewriteTo in class com.google.protobuf.GeneratedMessageV3IOExceptionpublic int getSerializedSize()
getSerializedSize in interface com.google.protobuf.MessageLitegetSerializedSize in class com.google.protobuf.GeneratedMessageV3public boolean equals(Object obj)
equals in interface com.google.protobuf.Messageequals in class com.google.protobuf.AbstractMessagepublic int hashCode()
hashCode in interface com.google.protobuf.MessagehashCode in class com.google.protobuf.AbstractMessagepublic static AttributeContext.Response parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static AttributeContext.Response parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static AttributeContext.Response parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static AttributeContext.Response parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static AttributeContext.Response parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static AttributeContext.Response parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static AttributeContext.Response parseFrom(InputStream input) throws IOException
IOExceptionpublic static AttributeContext.Response parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static AttributeContext.Response parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static AttributeContext.Response parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static AttributeContext.Response parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOExceptionpublic static AttributeContext.Response parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic AttributeContext.Response.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static AttributeContext.Response.Builder newBuilder()
public static AttributeContext.Response.Builder newBuilder(AttributeContext.Response prototype)
public AttributeContext.Response.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected AttributeContext.Response.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessageV3public static AttributeContext.Response getDefaultInstance()
public static com.google.protobuf.Parser<AttributeContext.Response> parser()
public com.google.protobuf.Parser<AttributeContext.Response> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessageV3public AttributeContext.Response getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderCopyright © 2021 Google LLC. All rights reserved.