Package com.google.rpc.context
Class AttributeContext.Response.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderType>
-
- com.google.protobuf.GeneratedMessageV3.Builder<AttributeContext.Response.Builder>
-
- com.google.rpc.context.AttributeContext.Response.Builder
-
- All Implemented Interfaces:
com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,AttributeContext.ResponseOrBuilder,java.lang.Cloneable
- Enclosing class:
- AttributeContext.Response
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 typegoogle.rpc.context.AttributeContext.Response
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description AttributeContext.Response.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)AttributeContext.Responsebuild()AttributeContext.ResponsebuildPartial()AttributeContext.Response.Builderclear()AttributeContext.Response.BuilderclearBackendLatency()The length of time it takes the backend service to fully respond to a request.AttributeContext.Response.BuilderclearCode()The HTTP response status code, such as `200` and `404`.AttributeContext.Response.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)AttributeContext.Response.BuilderclearHeaders()AttributeContext.Response.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)AttributeContext.Response.BuilderclearSize()The HTTP response size in bytes.AttributeContext.Response.BuilderclearTime()The timestamp when the `destination` service sends the last byte of the response.AttributeContext.Response.Builderclone()booleancontainsHeaders(java.lang.String key)The HTTP response headers.com.google.protobuf.DurationgetBackendLatency()The length of time it takes the backend service to fully respond to a request.com.google.protobuf.Duration.BuildergetBackendLatencyBuilder()The length of time it takes the backend service to fully respond to a request.com.google.protobuf.DurationOrBuildergetBackendLatencyOrBuilder()The length of time it takes the backend service to fully respond to a request.longgetCode()The HTTP response status code, such as `200` and `404`.AttributeContext.ResponsegetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()java.util.Map<java.lang.String,java.lang.String>getHeaders()Deprecated.intgetHeadersCount()The HTTP response headers.java.util.Map<java.lang.String,java.lang.String>getHeadersMap()The HTTP response headers.java.lang.StringgetHeadersOrDefault(java.lang.String key, java.lang.String defaultValue)The HTTP response headers.java.lang.StringgetHeadersOrThrow(java.lang.String key)The HTTP response headers.java.util.Map<java.lang.String,java.lang.String>getMutableHeaders()Deprecated.longgetSize()The HTTP response size in bytes.com.google.protobuf.TimestampgetTime()The timestamp when the `destination` service sends the last byte of the response.com.google.protobuf.Timestamp.BuildergetTimeBuilder()The timestamp when the `destination` service sends the last byte of the response.com.google.protobuf.TimestampOrBuildergetTimeOrBuilder()The timestamp when the `destination` service sends the last byte of the response.booleanhasBackendLatency()The length 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.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()protected com.google.protobuf.MapFieldinternalGetMapField(int number)protected com.google.protobuf.MapFieldinternalGetMutableMapField(int number)booleanisInitialized()AttributeContext.Response.BuildermergeBackendLatency(com.google.protobuf.Duration value)The length of time it takes the backend service to fully respond to a request.AttributeContext.Response.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)AttributeContext.Response.BuildermergeFrom(com.google.protobuf.Message other)AttributeContext.Response.BuildermergeFrom(AttributeContext.Response other)AttributeContext.Response.BuildermergeTime(com.google.protobuf.Timestamp value)The timestamp when the `destination` service sends the last byte of the response.AttributeContext.Response.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)AttributeContext.Response.BuilderputAllHeaders(java.util.Map<java.lang.String,java.lang.String> values)The HTTP response headers.AttributeContext.Response.BuilderputHeaders(java.lang.String key, java.lang.String value)The HTTP response headers.AttributeContext.Response.BuilderremoveHeaders(java.lang.String key)The HTTP response headers.AttributeContext.Response.BuildersetBackendLatency(com.google.protobuf.Duration value)The length of time it takes the backend service to fully respond to a request.AttributeContext.Response.BuildersetBackendLatency(com.google.protobuf.Duration.Builder builderForValue)The length of time it takes the backend service to fully respond to a request.AttributeContext.Response.BuildersetCode(long value)The HTTP response status code, such as `200` and `404`.AttributeContext.Response.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)AttributeContext.Response.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)AttributeContext.Response.BuildersetSize(long value)The HTTP response size in bytes.AttributeContext.Response.BuildersetTime(com.google.protobuf.Timestamp value)The timestamp when the `destination` service sends the last byte of the response.AttributeContext.Response.BuildersetTime(com.google.protobuf.Timestamp.Builder builderForValue)The timestamp when the `destination` service sends the last byte of the response.AttributeContext.Response.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetMapField
protected com.google.protobuf.MapField internalGetMapField(int number)
- Overrides:
internalGetMapFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<AttributeContext.Response.Builder>
-
internalGetMutableMapField
protected com.google.protobuf.MapField internalGetMutableMapField(int number)
- Overrides:
internalGetMutableMapFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<AttributeContext.Response.Builder>
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<AttributeContext.Response.Builder>
-
clear
public AttributeContext.Response.Builder clear()
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<AttributeContext.Response.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessageV3.Builder<AttributeContext.Response.Builder>
-
getDefaultInstanceForType
public AttributeContext.Response getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public AttributeContext.Response build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public AttributeContext.Response buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public AttributeContext.Response.Builder clone()
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<AttributeContext.Response.Builder>
-
setField
public AttributeContext.Response.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
- Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<AttributeContext.Response.Builder>
-
clearField
public AttributeContext.Response.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<AttributeContext.Response.Builder>
-
clearOneof
public AttributeContext.Response.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<AttributeContext.Response.Builder>
-
setRepeatedField
public AttributeContext.Response.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)
- Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<AttributeContext.Response.Builder>
-
addRepeatedField
public AttributeContext.Response.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
- Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<AttributeContext.Response.Builder>
-
mergeFrom
public AttributeContext.Response.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<AttributeContext.Response.Builder>
-
mergeFrom
public AttributeContext.Response.Builder mergeFrom(AttributeContext.Response other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<AttributeContext.Response.Builder>
-
mergeFrom
public AttributeContext.Response.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<AttributeContext.Response.Builder>- Throws:
java.io.IOException
-
getCode
public long getCode()
The HTTP response status code, such as `200` and `404`.
int64 code = 1;- Specified by:
getCodein interfaceAttributeContext.ResponseOrBuilder- Returns:
- The code.
-
setCode
public AttributeContext.Response.Builder setCode(long value)
The HTTP response status code, such as `200` and `404`.
int64 code = 1;- Parameters:
value- The code to set.- Returns:
- This builder for chaining.
-
clearCode
public AttributeContext.Response.Builder clearCode()
The HTTP response status code, such as `200` and `404`.
int64 code = 1;- Returns:
- This builder for chaining.
-
getSize
public long getSize()
The HTTP response size in bytes. If unknown, it must be -1.
int64 size = 2;- Specified by:
getSizein interfaceAttributeContext.ResponseOrBuilder- Returns:
- The size.
-
setSize
public AttributeContext.Response.Builder setSize(long value)
The HTTP response size in bytes. If unknown, it must be -1.
int64 size = 2;- Parameters:
value- The size to set.- Returns:
- This builder for chaining.
-
clearSize
public AttributeContext.Response.Builder clearSize()
The HTTP response size in bytes. If unknown, it must be -1.
int64 size = 2;- Returns:
- This builder for chaining.
-
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;- Specified by:
getHeadersCountin interfaceAttributeContext.ResponseOrBuilder
-
containsHeaders
public boolean containsHeaders(java.lang.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;- Specified by:
containsHeadersin interfaceAttributeContext.ResponseOrBuilder
-
getHeaders
@Deprecated public java.util.Map<java.lang.String,java.lang.String> getHeaders()
Deprecated.UsegetHeadersMap()instead.- Specified by:
getHeadersin interfaceAttributeContext.ResponseOrBuilder
-
getHeadersMap
public java.util.Map<java.lang.String,java.lang.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;- Specified by:
getHeadersMapin interfaceAttributeContext.ResponseOrBuilder
-
getHeadersOrDefault
public java.lang.String getHeadersOrDefault(java.lang.String key, java.lang.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;- Specified by:
getHeadersOrDefaultin interfaceAttributeContext.ResponseOrBuilder
-
getHeadersOrThrow
public java.lang.String getHeadersOrThrow(java.lang.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;- Specified by:
getHeadersOrThrowin interfaceAttributeContext.ResponseOrBuilder
-
clearHeaders
public AttributeContext.Response.Builder clearHeaders()
-
removeHeaders
public AttributeContext.Response.Builder removeHeaders(java.lang.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;
-
getMutableHeaders
@Deprecated public java.util.Map<java.lang.String,java.lang.String> getMutableHeaders()
Deprecated.Use alternate mutation accessors instead.
-
putHeaders
public AttributeContext.Response.Builder putHeaders(java.lang.String key, java.lang.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;
-
putAllHeaders
public AttributeContext.Response.Builder putAllHeaders(java.util.Map<java.lang.String,java.lang.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;
-
hasTime
public boolean hasTime()
The timestamp when the `destination` service sends the last byte of the response.
.google.protobuf.Timestamp time = 4;- 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;- Specified by:
getTimein interfaceAttributeContext.ResponseOrBuilder- Returns:
- The time.
-
setTime
public 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;
-
setTime
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;
-
mergeTime
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;
-
clearTime
public AttributeContext.Response.Builder clearTime()
The timestamp when the `destination` service sends the last byte of the response.
.google.protobuf.Timestamp time = 4;
-
getTimeBuilder
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;
-
getTimeOrBuilder
public com.google.protobuf.TimestampOrBuilder getTimeOrBuilder()
The timestamp when the `destination` service sends the last byte of the response.
.google.protobuf.Timestamp time = 4;- Specified by:
getTimeOrBuilderin interfaceAttributeContext.ResponseOrBuilder
-
hasBackendLatency
public 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;- Specified by:
hasBackendLatencyin interfaceAttributeContext.ResponseOrBuilder- Returns:
- Whether the backendLatency field is set.
-
getBackendLatency
public 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;- Specified by:
getBackendLatencyin interfaceAttributeContext.ResponseOrBuilder- Returns:
- The backendLatency.
-
setBackendLatency
public 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;
-
setBackendLatency
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;
-
mergeBackendLatency
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;
-
clearBackendLatency
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;
-
getBackendLatencyBuilder
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;
-
getBackendLatencyOrBuilder
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;- Specified by:
getBackendLatencyOrBuilderin interfaceAttributeContext.ResponseOrBuilder
-
setUnknownFields
public final AttributeContext.Response.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<AttributeContext.Response.Builder>
-
mergeUnknownFields
public final AttributeContext.Response.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<AttributeContext.Response.Builder>
-
-