public static interface AttributeContext.ResponseOrBuilder extends MessageOrBuilder
Implements
MessageOrBuilderMethods
containsHeaders(String key)
public abstract 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;
Name | Description |
key | String |
Type | Description |
boolean |
getBackendLatency()
public abstract 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;
Type | Description |
Duration | The backendLatency. |
getBackendLatencyOrBuilder()
public abstract DurationOrBuilder getBackendLatencyOrBuilder()
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;
Type | Description |
DurationOrBuilder |
getCode()
public abstract long getCode()
The HTTP response status code, such as 200
and 404
.
int64 code = 1;
Type | Description |
long | The code. |
getHeaders()
public abstract Map<String,String> getHeaders()
Use #getHeadersMap() instead.
Type | Description |
Map<String,String> |
getHeadersCount()
public abstract int getHeadersCount()
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;
Type | Description |
int |
getHeadersMap()
public abstract 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;
Type | Description |
Map<String,String> |
getHeadersOrDefault(String key, String defaultValue)
public abstract 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;
Name | Description |
key | String |
defaultValue | String |
Type | Description |
String |
getHeadersOrThrow(String key)
public abstract 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;
Name | Description |
key | String |
Type | Description |
String |
getSize()
public abstract long getSize()
The HTTP response size in bytes. If unknown, it must be -1.
int64 size = 2;
Type | Description |
long | The size. |
getTime()
public abstract Timestamp getTime()
The timestamp when the destination
service sends the last byte of
the response.
.google.protobuf.Timestamp time = 4;
Type | Description |
Timestamp | The time. |
getTimeOrBuilder()
public abstract TimestampOrBuilder getTimeOrBuilder()
The timestamp when the destination
service sends the last byte of
the response.
.google.protobuf.Timestamp time = 4;
Type | Description |
TimestampOrBuilder |
hasBackendLatency()
public abstract 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;
Type | Description |
boolean | Whether the backendLatency field is set. |
hasTime()
public abstract boolean hasTime()
The timestamp when the destination
service sends the last byte of
the response.
.google.protobuf.Timestamp time = 4;
Type | Description |
boolean | Whether the time field is set. |