Package com.google.rpc.context
Class AttributeContext.Request.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderType>
-
- com.google.protobuf.GeneratedMessageV3.Builder<AttributeContext.Request.Builder>
-
- com.google.rpc.context.AttributeContext.Request.Builder
-
- All Implemented Interfaces:
com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,AttributeContext.RequestOrBuilder,java.lang.Cloneable
- Enclosing class:
- AttributeContext.Request
public static final class AttributeContext.Request.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<AttributeContext.Request.Builder> implements AttributeContext.RequestOrBuilder
This message defines attributes for an HTTP request. If the actual request is not an HTTP request, the runtime system should try to map the actual request to an equivalent HTTP request.
Protobuf typegoogle.rpc.context.AttributeContext.Request
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description AttributeContext.Request.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)AttributeContext.Requestbuild()AttributeContext.RequestbuildPartial()AttributeContext.Request.Builderclear()AttributeContext.Request.BuilderclearAuth()The request authentication.AttributeContext.Request.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)AttributeContext.Request.BuilderclearHeaders()AttributeContext.Request.BuilderclearHost()The HTTP request `Host` header value.AttributeContext.Request.BuilderclearId()The unique ID for a request, which can be propagated to downstream systems.AttributeContext.Request.BuilderclearMethod()The HTTP request method, such as `GET`, `POST`.AttributeContext.Request.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)AttributeContext.Request.BuilderclearPath()The HTTP URL path.AttributeContext.Request.BuilderclearProtocol()The network protocol used with the request, such as "http/1.1", "spdy/3", "h2", "h2c", "webrtc", "tcp", "udp", "quic".AttributeContext.Request.BuilderclearQuery()The HTTP URL query in the format of `name1=value1&name2=value2`, as it appears in the first line of the HTTP request.AttributeContext.Request.BuilderclearReason()A special parameter for request reason.AttributeContext.Request.BuilderclearScheme()The HTTP URL scheme, such as `http` and `https`.AttributeContext.Request.BuilderclearSize()The HTTP request size in bytes.AttributeContext.Request.BuilderclearTime()The timestamp when the `destination` service receives the last byte of the request.AttributeContext.Request.Builderclone()booleancontainsHeaders(java.lang.String key)The HTTP request headers.AttributeContext.AuthgetAuth()The request authentication.AttributeContext.Auth.BuildergetAuthBuilder()The request authentication.AttributeContext.AuthOrBuildergetAuthOrBuilder()The request authentication.AttributeContext.RequestgetDefaultInstanceForType()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 request headers.java.util.Map<java.lang.String,java.lang.String>getHeadersMap()The HTTP request headers.java.lang.StringgetHeadersOrDefault(java.lang.String key, java.lang.String defaultValue)The HTTP request headers.java.lang.StringgetHeadersOrThrow(java.lang.String key)The HTTP request headers.java.lang.StringgetHost()The HTTP request `Host` header value.com.google.protobuf.ByteStringgetHostBytes()The HTTP request `Host` header value.java.lang.StringgetId()The unique ID for a request, which can be propagated to downstream systems.com.google.protobuf.ByteStringgetIdBytes()The unique ID for a request, which can be propagated to downstream systems.java.lang.StringgetMethod()The HTTP request method, such as `GET`, `POST`.com.google.protobuf.ByteStringgetMethodBytes()The HTTP request method, such as `GET`, `POST`.java.util.Map<java.lang.String,java.lang.String>getMutableHeaders()Deprecated.java.lang.StringgetPath()The HTTP URL path.com.google.protobuf.ByteStringgetPathBytes()The HTTP URL path.java.lang.StringgetProtocol()The network protocol used with the request, such as "http/1.1", "spdy/3", "h2", "h2c", "webrtc", "tcp", "udp", "quic".com.google.protobuf.ByteStringgetProtocolBytes()The network protocol used with the request, such as "http/1.1", "spdy/3", "h2", "h2c", "webrtc", "tcp", "udp", "quic".java.lang.StringgetQuery()The HTTP URL query in the format of `name1=value1&name2=value2`, as it appears in the first line of the HTTP request.com.google.protobuf.ByteStringgetQueryBytes()The HTTP URL query in the format of `name1=value1&name2=value2`, as it appears in the first line of the HTTP request.java.lang.StringgetReason()A special parameter for request reason.com.google.protobuf.ByteStringgetReasonBytes()A special parameter for request reason.java.lang.StringgetScheme()The HTTP URL scheme, such as `http` and `https`.com.google.protobuf.ByteStringgetSchemeBytes()The HTTP URL scheme, such as `http` and `https`.longgetSize()The HTTP request size in bytes.com.google.protobuf.TimestampgetTime()The timestamp when the `destination` service receives the last byte of the request.com.google.protobuf.Timestamp.BuildergetTimeBuilder()The timestamp when the `destination` service receives the last byte of the request.com.google.protobuf.TimestampOrBuildergetTimeOrBuilder()The timestamp when the `destination` service receives the last byte of the request.booleanhasAuth()The request authentication.booleanhasTime()The timestamp when the `destination` service receives the last byte of the request.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()protected com.google.protobuf.MapFieldinternalGetMapField(int number)protected com.google.protobuf.MapFieldinternalGetMutableMapField(int number)booleanisInitialized()AttributeContext.Request.BuildermergeAuth(AttributeContext.Auth value)The request authentication.AttributeContext.Request.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)AttributeContext.Request.BuildermergeFrom(com.google.protobuf.Message other)AttributeContext.Request.BuildermergeFrom(AttributeContext.Request other)AttributeContext.Request.BuildermergeTime(com.google.protobuf.Timestamp value)The timestamp when the `destination` service receives the last byte of the request.AttributeContext.Request.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)AttributeContext.Request.BuilderputAllHeaders(java.util.Map<java.lang.String,java.lang.String> values)The HTTP request headers.AttributeContext.Request.BuilderputHeaders(java.lang.String key, java.lang.String value)The HTTP request headers.AttributeContext.Request.BuilderremoveHeaders(java.lang.String key)The HTTP request headers.AttributeContext.Request.BuildersetAuth(AttributeContext.Auth value)The request authentication.AttributeContext.Request.BuildersetAuth(AttributeContext.Auth.Builder builderForValue)The request authentication.AttributeContext.Request.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)AttributeContext.Request.BuildersetHost(java.lang.String value)The HTTP request `Host` header value.AttributeContext.Request.BuildersetHostBytes(com.google.protobuf.ByteString value)The HTTP request `Host` header value.AttributeContext.Request.BuildersetId(java.lang.String value)The unique ID for a request, which can be propagated to downstream systems.AttributeContext.Request.BuildersetIdBytes(com.google.protobuf.ByteString value)The unique ID for a request, which can be propagated to downstream systems.AttributeContext.Request.BuildersetMethod(java.lang.String value)The HTTP request method, such as `GET`, `POST`.AttributeContext.Request.BuildersetMethodBytes(com.google.protobuf.ByteString value)The HTTP request method, such as `GET`, `POST`.AttributeContext.Request.BuildersetPath(java.lang.String value)The HTTP URL path.AttributeContext.Request.BuildersetPathBytes(com.google.protobuf.ByteString value)The HTTP URL path.AttributeContext.Request.BuildersetProtocol(java.lang.String value)The network protocol used with the request, such as "http/1.1", "spdy/3", "h2", "h2c", "webrtc", "tcp", "udp", "quic".AttributeContext.Request.BuildersetProtocolBytes(com.google.protobuf.ByteString value)The network protocol used with the request, such as "http/1.1", "spdy/3", "h2", "h2c", "webrtc", "tcp", "udp", "quic".AttributeContext.Request.BuildersetQuery(java.lang.String value)The HTTP URL query in the format of `name1=value1&name2=value2`, as it appears in the first line of the HTTP request.AttributeContext.Request.BuildersetQueryBytes(com.google.protobuf.ByteString value)The HTTP URL query in the format of `name1=value1&name2=value2`, as it appears in the first line of the HTTP request.AttributeContext.Request.BuildersetReason(java.lang.String value)A special parameter for request reason.AttributeContext.Request.BuildersetReasonBytes(com.google.protobuf.ByteString value)A special parameter for request reason.AttributeContext.Request.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)AttributeContext.Request.BuildersetScheme(java.lang.String value)The HTTP URL scheme, such as `http` and `https`.AttributeContext.Request.BuildersetSchemeBytes(com.google.protobuf.ByteString value)The HTTP URL scheme, such as `http` and `https`.AttributeContext.Request.BuildersetSize(long value)The HTTP request size in bytes.AttributeContext.Request.BuildersetTime(com.google.protobuf.Timestamp value)The timestamp when the `destination` service receives the last byte of the request.AttributeContext.Request.BuildersetTime(com.google.protobuf.Timestamp.Builder builderForValue)The timestamp when the `destination` service receives the last byte of the request.AttributeContext.Request.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.Request.Builder>
-
internalGetMutableMapField
protected com.google.protobuf.MapField internalGetMutableMapField(int number)
- Overrides:
internalGetMutableMapFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<AttributeContext.Request.Builder>
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<AttributeContext.Request.Builder>
-
clear
public AttributeContext.Request.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.Request.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.Request.Builder>
-
getDefaultInstanceForType
public AttributeContext.Request getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public AttributeContext.Request build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public AttributeContext.Request buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public AttributeContext.Request.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.Request.Builder>
-
setField
public AttributeContext.Request.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.Request.Builder>
-
clearField
public AttributeContext.Request.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<AttributeContext.Request.Builder>
-
clearOneof
public AttributeContext.Request.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<AttributeContext.Request.Builder>
-
setRepeatedField
public AttributeContext.Request.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.Request.Builder>
-
addRepeatedField
public AttributeContext.Request.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.Request.Builder>
-
mergeFrom
public AttributeContext.Request.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<AttributeContext.Request.Builder>
-
mergeFrom
public AttributeContext.Request.Builder mergeFrom(AttributeContext.Request other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<AttributeContext.Request.Builder>
-
mergeFrom
public AttributeContext.Request.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.Request.Builder>- Throws:
java.io.IOException
-
getId
public java.lang.String getId()
The unique ID for a request, which can be propagated to downstream systems. The ID should have low probability of collision within a single day for a specific service.
string id = 1;- Specified by:
getIdin interfaceAttributeContext.RequestOrBuilder- Returns:
- The id.
-
getIdBytes
public com.google.protobuf.ByteString getIdBytes()
The unique ID for a request, which can be propagated to downstream systems. The ID should have low probability of collision within a single day for a specific service.
string id = 1;- Specified by:
getIdBytesin interfaceAttributeContext.RequestOrBuilder- Returns:
- The bytes for id.
-
setId
public AttributeContext.Request.Builder setId(java.lang.String value)
The unique ID for a request, which can be propagated to downstream systems. The ID should have low probability of collision within a single day for a specific service.
string id = 1;- Parameters:
value- The id to set.- Returns:
- This builder for chaining.
-
clearId
public AttributeContext.Request.Builder clearId()
The unique ID for a request, which can be propagated to downstream systems. The ID should have low probability of collision within a single day for a specific service.
string id = 1;- Returns:
- This builder for chaining.
-
setIdBytes
public AttributeContext.Request.Builder setIdBytes(com.google.protobuf.ByteString value)
The unique ID for a request, which can be propagated to downstream systems. The ID should have low probability of collision within a single day for a specific service.
string id = 1;- Parameters:
value- The bytes for id to set.- Returns:
- This builder for chaining.
-
getMethod
public java.lang.String getMethod()
The HTTP request method, such as `GET`, `POST`.
string method = 2;- Specified by:
getMethodin interfaceAttributeContext.RequestOrBuilder- Returns:
- The method.
-
getMethodBytes
public com.google.protobuf.ByteString getMethodBytes()
The HTTP request method, such as `GET`, `POST`.
string method = 2;- Specified by:
getMethodBytesin interfaceAttributeContext.RequestOrBuilder- Returns:
- The bytes for method.
-
setMethod
public AttributeContext.Request.Builder setMethod(java.lang.String value)
The HTTP request method, such as `GET`, `POST`.
string method = 2;- Parameters:
value- The method to set.- Returns:
- This builder for chaining.
-
clearMethod
public AttributeContext.Request.Builder clearMethod()
The HTTP request method, such as `GET`, `POST`.
string method = 2;- Returns:
- This builder for chaining.
-
setMethodBytes
public AttributeContext.Request.Builder setMethodBytes(com.google.protobuf.ByteString value)
The HTTP request method, such as `GET`, `POST`.
string method = 2;- Parameters:
value- The bytes for method to set.- Returns:
- This builder for chaining.
-
getHeadersCount
public int getHeadersCount()
Description copied from interface:AttributeContext.RequestOrBuilderThe HTTP request headers. If multiple headers share the same key, they must be merged according to the HTTP spec. All header keys must be lowercased, because HTTP header keys are case-insensitive.
map<string, string> headers = 3;- Specified by:
getHeadersCountin interfaceAttributeContext.RequestOrBuilder
-
containsHeaders
public boolean containsHeaders(java.lang.String key)
The HTTP request headers. If multiple headers share the same key, they must be merged according to the HTTP spec. All header keys must be lowercased, because HTTP header keys are case-insensitive.
map<string, string> headers = 3;- Specified by:
containsHeadersin interfaceAttributeContext.RequestOrBuilder
-
getHeaders
@Deprecated public java.util.Map<java.lang.String,java.lang.String> getHeaders()
Deprecated.UsegetHeadersMap()instead.- Specified by:
getHeadersin interfaceAttributeContext.RequestOrBuilder
-
getHeadersMap
public java.util.Map<java.lang.String,java.lang.String> getHeadersMap()
The HTTP request headers. If multiple headers share the same key, they must be merged according to the HTTP spec. All header keys must be lowercased, because HTTP header keys are case-insensitive.
map<string, string> headers = 3;- Specified by:
getHeadersMapin interfaceAttributeContext.RequestOrBuilder
-
getHeadersOrDefault
public java.lang.String getHeadersOrDefault(java.lang.String key, java.lang.String defaultValue)The HTTP request headers. If multiple headers share the same key, they must be merged according to the HTTP spec. All header keys must be lowercased, because HTTP header keys are case-insensitive.
map<string, string> headers = 3;- Specified by:
getHeadersOrDefaultin interfaceAttributeContext.RequestOrBuilder
-
getHeadersOrThrow
public java.lang.String getHeadersOrThrow(java.lang.String key)
The HTTP request headers. If multiple headers share the same key, they must be merged according to the HTTP spec. All header keys must be lowercased, because HTTP header keys are case-insensitive.
map<string, string> headers = 3;- Specified by:
getHeadersOrThrowin interfaceAttributeContext.RequestOrBuilder
-
clearHeaders
public AttributeContext.Request.Builder clearHeaders()
-
removeHeaders
public AttributeContext.Request.Builder removeHeaders(java.lang.String key)
The HTTP request headers. If multiple headers share the same key, they must be merged according to the 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.Request.Builder putHeaders(java.lang.String key, java.lang.String value)
The HTTP request headers. If multiple headers share the same key, they must be merged according to the HTTP spec. All header keys must be lowercased, because HTTP header keys are case-insensitive.
map<string, string> headers = 3;
-
putAllHeaders
public AttributeContext.Request.Builder putAllHeaders(java.util.Map<java.lang.String,java.lang.String> values)
The HTTP request headers. If multiple headers share the same key, they must be merged according to the HTTP spec. All header keys must be lowercased, because HTTP header keys are case-insensitive.
map<string, string> headers = 3;
-
getPath
public java.lang.String getPath()
The HTTP URL path.
string path = 4;- Specified by:
getPathin interfaceAttributeContext.RequestOrBuilder- Returns:
- The path.
-
getPathBytes
public com.google.protobuf.ByteString getPathBytes()
The HTTP URL path.
string path = 4;- Specified by:
getPathBytesin interfaceAttributeContext.RequestOrBuilder- Returns:
- The bytes for path.
-
setPath
public AttributeContext.Request.Builder setPath(java.lang.String value)
The HTTP URL path.
string path = 4;- Parameters:
value- The path to set.- Returns:
- This builder for chaining.
-
clearPath
public AttributeContext.Request.Builder clearPath()
The HTTP URL path.
string path = 4;- Returns:
- This builder for chaining.
-
setPathBytes
public AttributeContext.Request.Builder setPathBytes(com.google.protobuf.ByteString value)
The HTTP URL path.
string path = 4;- Parameters:
value- The bytes for path to set.- Returns:
- This builder for chaining.
-
getHost
public java.lang.String getHost()
The HTTP request `Host` header value.
string host = 5;- Specified by:
getHostin interfaceAttributeContext.RequestOrBuilder- Returns:
- The host.
-
getHostBytes
public com.google.protobuf.ByteString getHostBytes()
The HTTP request `Host` header value.
string host = 5;- Specified by:
getHostBytesin interfaceAttributeContext.RequestOrBuilder- Returns:
- The bytes for host.
-
setHost
public AttributeContext.Request.Builder setHost(java.lang.String value)
The HTTP request `Host` header value.
string host = 5;- Parameters:
value- The host to set.- Returns:
- This builder for chaining.
-
clearHost
public AttributeContext.Request.Builder clearHost()
The HTTP request `Host` header value.
string host = 5;- Returns:
- This builder for chaining.
-
setHostBytes
public AttributeContext.Request.Builder setHostBytes(com.google.protobuf.ByteString value)
The HTTP request `Host` header value.
string host = 5;- Parameters:
value- The bytes for host to set.- Returns:
- This builder for chaining.
-
getScheme
public java.lang.String getScheme()
The HTTP URL scheme, such as `http` and `https`.
string scheme = 6;- Specified by:
getSchemein interfaceAttributeContext.RequestOrBuilder- Returns:
- The scheme.
-
getSchemeBytes
public com.google.protobuf.ByteString getSchemeBytes()
The HTTP URL scheme, such as `http` and `https`.
string scheme = 6;- Specified by:
getSchemeBytesin interfaceAttributeContext.RequestOrBuilder- Returns:
- The bytes for scheme.
-
setScheme
public AttributeContext.Request.Builder setScheme(java.lang.String value)
The HTTP URL scheme, such as `http` and `https`.
string scheme = 6;- Parameters:
value- The scheme to set.- Returns:
- This builder for chaining.
-
clearScheme
public AttributeContext.Request.Builder clearScheme()
The HTTP URL scheme, such as `http` and `https`.
string scheme = 6;- Returns:
- This builder for chaining.
-
setSchemeBytes
public AttributeContext.Request.Builder setSchemeBytes(com.google.protobuf.ByteString value)
The HTTP URL scheme, such as `http` and `https`.
string scheme = 6;- Parameters:
value- The bytes for scheme to set.- Returns:
- This builder for chaining.
-
getQuery
public java.lang.String getQuery()
The HTTP URL query in the format of `name1=value1&name2=value2`, as it appears in the first line of the HTTP request. No decoding is performed.
string query = 7;- Specified by:
getQueryin interfaceAttributeContext.RequestOrBuilder- Returns:
- The query.
-
getQueryBytes
public com.google.protobuf.ByteString getQueryBytes()
The HTTP URL query in the format of `name1=value1&name2=value2`, as it appears in the first line of the HTTP request. No decoding is performed.
string query = 7;- Specified by:
getQueryBytesin interfaceAttributeContext.RequestOrBuilder- Returns:
- The bytes for query.
-
setQuery
public AttributeContext.Request.Builder setQuery(java.lang.String value)
The HTTP URL query in the format of `name1=value1&name2=value2`, as it appears in the first line of the HTTP request. No decoding is performed.
string query = 7;- Parameters:
value- The query to set.- Returns:
- This builder for chaining.
-
clearQuery
public AttributeContext.Request.Builder clearQuery()
The HTTP URL query in the format of `name1=value1&name2=value2`, as it appears in the first line of the HTTP request. No decoding is performed.
string query = 7;- Returns:
- This builder for chaining.
-
setQueryBytes
public AttributeContext.Request.Builder setQueryBytes(com.google.protobuf.ByteString value)
The HTTP URL query in the format of `name1=value1&name2=value2`, as it appears in the first line of the HTTP request. No decoding is performed.
string query = 7;- Parameters:
value- The bytes for query to set.- Returns:
- This builder for chaining.
-
hasTime
public boolean hasTime()
The timestamp when the `destination` service receives the last byte of the request.
.google.protobuf.Timestamp time = 9;- Specified by:
hasTimein interfaceAttributeContext.RequestOrBuilder- Returns:
- Whether the time field is set.
-
getTime
public com.google.protobuf.Timestamp getTime()
The timestamp when the `destination` service receives the last byte of the request.
.google.protobuf.Timestamp time = 9;- Specified by:
getTimein interfaceAttributeContext.RequestOrBuilder- Returns:
- The time.
-
setTime
public AttributeContext.Request.Builder setTime(com.google.protobuf.Timestamp value)
The timestamp when the `destination` service receives the last byte of the request.
.google.protobuf.Timestamp time = 9;
-
setTime
public AttributeContext.Request.Builder setTime(com.google.protobuf.Timestamp.Builder builderForValue)
The timestamp when the `destination` service receives the last byte of the request.
.google.protobuf.Timestamp time = 9;
-
mergeTime
public AttributeContext.Request.Builder mergeTime(com.google.protobuf.Timestamp value)
The timestamp when the `destination` service receives the last byte of the request.
.google.protobuf.Timestamp time = 9;
-
clearTime
public AttributeContext.Request.Builder clearTime()
The timestamp when the `destination` service receives the last byte of the request.
.google.protobuf.Timestamp time = 9;
-
getTimeBuilder
public com.google.protobuf.Timestamp.Builder getTimeBuilder()
The timestamp when the `destination` service receives the last byte of the request.
.google.protobuf.Timestamp time = 9;
-
getTimeOrBuilder
public com.google.protobuf.TimestampOrBuilder getTimeOrBuilder()
The timestamp when the `destination` service receives the last byte of the request.
.google.protobuf.Timestamp time = 9;- Specified by:
getTimeOrBuilderin interfaceAttributeContext.RequestOrBuilder
-
getSize
public long getSize()
The HTTP request size in bytes. If unknown, it must be -1.
int64 size = 10;- Specified by:
getSizein interfaceAttributeContext.RequestOrBuilder- Returns:
- The size.
-
setSize
public AttributeContext.Request.Builder setSize(long value)
The HTTP request size in bytes. If unknown, it must be -1.
int64 size = 10;- Parameters:
value- The size to set.- Returns:
- This builder for chaining.
-
clearSize
public AttributeContext.Request.Builder clearSize()
The HTTP request size in bytes. If unknown, it must be -1.
int64 size = 10;- Returns:
- This builder for chaining.
-
getProtocol
public java.lang.String getProtocol()
The network protocol used with the request, such as "http/1.1", "spdy/3", "h2", "h2c", "webrtc", "tcp", "udp", "quic". See https://www.iana.org/assignments/tls-extensiontype-values/tls-extensiontype-values.xhtml#alpn-protocol-ids for details.
string protocol = 11;- Specified by:
getProtocolin interfaceAttributeContext.RequestOrBuilder- Returns:
- The protocol.
-
getProtocolBytes
public com.google.protobuf.ByteString getProtocolBytes()
The network protocol used with the request, such as "http/1.1", "spdy/3", "h2", "h2c", "webrtc", "tcp", "udp", "quic". See https://www.iana.org/assignments/tls-extensiontype-values/tls-extensiontype-values.xhtml#alpn-protocol-ids for details.
string protocol = 11;- Specified by:
getProtocolBytesin interfaceAttributeContext.RequestOrBuilder- Returns:
- The bytes for protocol.
-
setProtocol
public AttributeContext.Request.Builder setProtocol(java.lang.String value)
The network protocol used with the request, such as "http/1.1", "spdy/3", "h2", "h2c", "webrtc", "tcp", "udp", "quic". See https://www.iana.org/assignments/tls-extensiontype-values/tls-extensiontype-values.xhtml#alpn-protocol-ids for details.
string protocol = 11;- Parameters:
value- The protocol to set.- Returns:
- This builder for chaining.
-
clearProtocol
public AttributeContext.Request.Builder clearProtocol()
The network protocol used with the request, such as "http/1.1", "spdy/3", "h2", "h2c", "webrtc", "tcp", "udp", "quic". See https://www.iana.org/assignments/tls-extensiontype-values/tls-extensiontype-values.xhtml#alpn-protocol-ids for details.
string protocol = 11;- Returns:
- This builder for chaining.
-
setProtocolBytes
public AttributeContext.Request.Builder setProtocolBytes(com.google.protobuf.ByteString value)
The network protocol used with the request, such as "http/1.1", "spdy/3", "h2", "h2c", "webrtc", "tcp", "udp", "quic". See https://www.iana.org/assignments/tls-extensiontype-values/tls-extensiontype-values.xhtml#alpn-protocol-ids for details.
string protocol = 11;- Parameters:
value- The bytes for protocol to set.- Returns:
- This builder for chaining.
-
getReason
public java.lang.String getReason()
A special parameter for request reason. It is used by security systems to associate auditing information with a request.
string reason = 12;- Specified by:
getReasonin interfaceAttributeContext.RequestOrBuilder- Returns:
- The reason.
-
getReasonBytes
public com.google.protobuf.ByteString getReasonBytes()
A special parameter for request reason. It is used by security systems to associate auditing information with a request.
string reason = 12;- Specified by:
getReasonBytesin interfaceAttributeContext.RequestOrBuilder- Returns:
- The bytes for reason.
-
setReason
public AttributeContext.Request.Builder setReason(java.lang.String value)
A special parameter for request reason. It is used by security systems to associate auditing information with a request.
string reason = 12;- Parameters:
value- The reason to set.- Returns:
- This builder for chaining.
-
clearReason
public AttributeContext.Request.Builder clearReason()
A special parameter for request reason. It is used by security systems to associate auditing information with a request.
string reason = 12;- Returns:
- This builder for chaining.
-
setReasonBytes
public AttributeContext.Request.Builder setReasonBytes(com.google.protobuf.ByteString value)
A special parameter for request reason. It is used by security systems to associate auditing information with a request.
string reason = 12;- Parameters:
value- The bytes for reason to set.- Returns:
- This builder for chaining.
-
hasAuth
public boolean hasAuth()
The request authentication. May be absent for unauthenticated requests. Derived from the HTTP request `Authorization` header or equivalent.
.google.rpc.context.AttributeContext.Auth auth = 13;- Specified by:
hasAuthin interfaceAttributeContext.RequestOrBuilder- Returns:
- Whether the auth field is set.
-
getAuth
public AttributeContext.Auth getAuth()
The request authentication. May be absent for unauthenticated requests. Derived from the HTTP request `Authorization` header or equivalent.
.google.rpc.context.AttributeContext.Auth auth = 13;- Specified by:
getAuthin interfaceAttributeContext.RequestOrBuilder- Returns:
- The auth.
-
setAuth
public AttributeContext.Request.Builder setAuth(AttributeContext.Auth value)
The request authentication. May be absent for unauthenticated requests. Derived from the HTTP request `Authorization` header or equivalent.
.google.rpc.context.AttributeContext.Auth auth = 13;
-
setAuth
public AttributeContext.Request.Builder setAuth(AttributeContext.Auth.Builder builderForValue)
The request authentication. May be absent for unauthenticated requests. Derived from the HTTP request `Authorization` header or equivalent.
.google.rpc.context.AttributeContext.Auth auth = 13;
-
mergeAuth
public AttributeContext.Request.Builder mergeAuth(AttributeContext.Auth value)
The request authentication. May be absent for unauthenticated requests. Derived from the HTTP request `Authorization` header or equivalent.
.google.rpc.context.AttributeContext.Auth auth = 13;
-
clearAuth
public AttributeContext.Request.Builder clearAuth()
The request authentication. May be absent for unauthenticated requests. Derived from the HTTP request `Authorization` header or equivalent.
.google.rpc.context.AttributeContext.Auth auth = 13;
-
getAuthBuilder
public AttributeContext.Auth.Builder getAuthBuilder()
The request authentication. May be absent for unauthenticated requests. Derived from the HTTP request `Authorization` header or equivalent.
.google.rpc.context.AttributeContext.Auth auth = 13;
-
getAuthOrBuilder
public AttributeContext.AuthOrBuilder getAuthOrBuilder()
The request authentication. May be absent for unauthenticated requests. Derived from the HTTP request `Authorization` header or equivalent.
.google.rpc.context.AttributeContext.Auth auth = 13;- Specified by:
getAuthOrBuilderin interfaceAttributeContext.RequestOrBuilder
-
setUnknownFields
public final AttributeContext.Request.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<AttributeContext.Request.Builder>
-
mergeUnknownFields
public final AttributeContext.Request.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<AttributeContext.Request.Builder>
-
-