public static final class AttributeContext.Response.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<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| Modifier and Type | Method and Description |
|---|---|
AttributeContext.Response.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
AttributeContext.Response |
build() |
AttributeContext.Response |
buildPartial() |
AttributeContext.Response.Builder |
clear() |
AttributeContext.Response.Builder |
clearBackendLatency()
The length of time it takes the backend service to fully respond to a
request.
|
AttributeContext.Response.Builder |
clearCode()
The HTTP response status code, such as `200` and `404`.
|
AttributeContext.Response.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
AttributeContext.Response.Builder |
clearHeaders() |
AttributeContext.Response.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
AttributeContext.Response.Builder |
clearSize()
The HTTP response size in bytes.
|
AttributeContext.Response.Builder |
clearTime()
The timestamp when the `destination` service sends the last byte of
the response.
|
AttributeContext.Response.Builder |
clone() |
boolean |
containsHeaders(String key)
The HTTP response headers.
|
com.google.protobuf.Duration |
getBackendLatency()
The length of time it takes the backend service to fully respond to a
request.
|
com.google.protobuf.Duration.Builder |
getBackendLatencyBuilder()
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`.
|
AttributeContext.Response |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
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.
|
Map<String,String> |
getMutableHeaders()
Deprecated.
|
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.Timestamp.Builder |
getTimeBuilder()
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.
|
boolean |
hasBackendLatency()
The length 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.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
protected com.google.protobuf.MapField |
internalGetMapField(int number) |
protected com.google.protobuf.MapField |
internalGetMutableMapField(int number) |
boolean |
isInitialized() |
AttributeContext.Response.Builder |
mergeBackendLatency(com.google.protobuf.Duration value)
The length of time it takes the backend service to fully respond to a
request.
|
AttributeContext.Response.Builder |
mergeFrom(AttributeContext.Response other) |
AttributeContext.Response.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
AttributeContext.Response.Builder |
mergeFrom(com.google.protobuf.Message other) |
AttributeContext.Response.Builder |
mergeTime(com.google.protobuf.Timestamp value)
The timestamp when the `destination` service sends the last byte of
the response.
|
AttributeContext.Response.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
AttributeContext.Response.Builder |
putAllHeaders(Map<String,String> values)
The HTTP response headers.
|
AttributeContext.Response.Builder |
putHeaders(String key,
String value)
The HTTP response headers.
|
AttributeContext.Response.Builder |
removeHeaders(String key)
The HTTP response headers.
|
AttributeContext.Response.Builder |
setBackendLatency(com.google.protobuf.Duration.Builder builderForValue)
The length of time it takes the backend service to fully respond to a
request.
|
AttributeContext.Response.Builder |
setBackendLatency(com.google.protobuf.Duration value)
The length of time it takes the backend service to fully respond to a
request.
|
AttributeContext.Response.Builder |
setCode(long value)
The HTTP response status code, such as `200` and `404`.
|
AttributeContext.Response.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
AttributeContext.Response.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
AttributeContext.Response.Builder |
setSize(long value)
The HTTP response size in bytes.
|
AttributeContext.Response.Builder |
setTime(com.google.protobuf.Timestamp.Builder builderForValue)
The timestamp when the `destination` service sends the last byte of
the response.
|
AttributeContext.Response.Builder |
setTime(com.google.protobuf.Timestamp value)
The timestamp when the `destination` service sends the last byte of
the response.
|
AttributeContext.Response.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitfindInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneofpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.MapField internalGetMapField(int number)
internalGetMapField in class com.google.protobuf.GeneratedMessageV3.Builder<AttributeContext.Response.Builder>protected com.google.protobuf.MapField internalGetMutableMapField(int number)
internalGetMutableMapField in class com.google.protobuf.GeneratedMessageV3.Builder<AttributeContext.Response.Builder>protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<AttributeContext.Response.Builder>public AttributeContext.Response.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<AttributeContext.Response.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<AttributeContext.Response.Builder>public AttributeContext.Response getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic AttributeContext.Response build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic AttributeContext.Response buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic AttributeContext.Response.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<AttributeContext.Response.Builder>public AttributeContext.Response.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField in interface com.google.protobuf.Message.BuildersetField in class com.google.protobuf.GeneratedMessageV3.Builder<AttributeContext.Response.Builder>public AttributeContext.Response.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<AttributeContext.Response.Builder>public AttributeContext.Response.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<AttributeContext.Response.Builder>public AttributeContext.Response.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField in interface com.google.protobuf.Message.BuildersetRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<AttributeContext.Response.Builder>public AttributeContext.Response.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField in interface com.google.protobuf.Message.BuilderaddRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<AttributeContext.Response.Builder>public AttributeContext.Response.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<AttributeContext.Response.Builder>public AttributeContext.Response.Builder mergeFrom(AttributeContext.Response other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<AttributeContext.Response.Builder>public AttributeContext.Response.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<AttributeContext.Response.Builder>IOExceptionpublic long getCode()
The HTTP response status code, such as `200` and `404`.
int64 code = 1;getCode in interface AttributeContext.ResponseOrBuilderpublic AttributeContext.Response.Builder setCode(long value)
The HTTP response status code, such as `200` and `404`.
int64 code = 1;value - The code to set.public AttributeContext.Response.Builder clearCode()
The HTTP response status code, such as `200` and `404`.
int64 code = 1;public long getSize()
The HTTP response size in bytes. If unknown, it must be -1.
int64 size = 2;getSize in interface AttributeContext.ResponseOrBuilderpublic AttributeContext.Response.Builder setSize(long value)
The HTTP response size in bytes. If unknown, it must be -1.
int64 size = 2;value - The size to set.public AttributeContext.Response.Builder clearSize()
The HTTP response size in bytes. If unknown, it must be -1.
int64 size = 2;public 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 AttributeContext.Response.Builder clearHeaders()
public AttributeContext.Response.Builder removeHeaders(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;@Deprecated public Map<String,String> getMutableHeaders()
public AttributeContext.Response.Builder putHeaders(String key, String value)
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;public AttributeContext.Response.Builder putAllHeaders(Map<String,String> values)
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;public 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 AttributeContext.Response.Builder setTime(com.google.protobuf.Timestamp value)
The timestamp when the `destination` service sends the last byte of the response.
.google.protobuf.Timestamp time = 4;public AttributeContext.Response.Builder setTime(com.google.protobuf.Timestamp.Builder builderForValue)
The timestamp when the `destination` service sends the last byte of the response.
.google.protobuf.Timestamp time = 4;public AttributeContext.Response.Builder mergeTime(com.google.protobuf.Timestamp value)
The timestamp when the `destination` service sends the last byte of the response.
.google.protobuf.Timestamp time = 4;public AttributeContext.Response.Builder clearTime()
The timestamp when the `destination` service sends the last byte of the response.
.google.protobuf.Timestamp time = 4;public com.google.protobuf.Timestamp.Builder getTimeBuilder()
The timestamp when the `destination` service sends the last byte of the response.
.google.protobuf.Timestamp time = 4;public 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 AttributeContext.Response.Builder setBackendLatency(com.google.protobuf.Duration value)
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;public AttributeContext.Response.Builder setBackendLatency(com.google.protobuf.Duration.Builder builderForValue)
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;public AttributeContext.Response.Builder mergeBackendLatency(com.google.protobuf.Duration value)
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;public AttributeContext.Response.Builder clearBackendLatency()
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;public com.google.protobuf.Duration.Builder getBackendLatencyBuilder()
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;public 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 AttributeContext.Response.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<AttributeContext.Response.Builder>public final AttributeContext.Response.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<AttributeContext.Response.Builder>Copyright © 2022 Google LLC. All rights reserved.