Interface AttributeContext.ResponseOrBuilder (2.14.1)

public static interface AttributeContext.ResponseOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

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;

Parameter
NameDescription
keyString
Returns
TypeDescription
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;

Returns
TypeDescription
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;

Returns
TypeDescription
DurationOrBuilder

getCode()

public abstract long getCode()

The HTTP response status code, such as 200 and 404.

int64 code = 1;

Returns
TypeDescription
long

The code.

getHeaders()

public abstract Map<String,String> getHeaders()

Use #getHeadersMap() instead.

Returns
TypeDescription
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;

Returns
TypeDescription
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;

Returns
TypeDescription
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;

Parameters
NameDescription
keyString
defaultValueString
Returns
TypeDescription
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;

Parameter
NameDescription
keyString
Returns
TypeDescription
String

getSize()

public abstract long getSize()

The HTTP response size in bytes. If unknown, it must be -1.

int64 size = 2;

Returns
TypeDescription
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;

Returns
TypeDescription
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;

Returns
TypeDescription
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;

Returns
TypeDescription
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;

Returns
TypeDescription
boolean

Whether the time field is set.