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
,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.Builder
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
AttributeContext.Request
build()
AttributeContext.Request
buildPartial()
AttributeContext.Request.Builder
clear()
AttributeContext.Request.Builder
clearAuth()
The request authentication.AttributeContext.Request.Builder
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
AttributeContext.Request.Builder
clearHeaders()
AttributeContext.Request.Builder
clearHost()
The HTTP request `Host` header value.AttributeContext.Request.Builder
clearId()
The unique ID for a request, which can be propagated to downstream systems.AttributeContext.Request.Builder
clearMethod()
The HTTP request method, such as `GET`, `POST`.AttributeContext.Request.Builder
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
AttributeContext.Request.Builder
clearPath()
The HTTP URL path, excluding the query parameters.AttributeContext.Request.Builder
clearProtocol()
The network protocol used with the request, such as "http/1.1", "spdy/3", "h2", "h2c", "webrtc", "tcp", "udp", "quic".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.AttributeContext.Request.Builder
clearReason()
A special parameter for request reason.AttributeContext.Request.Builder
clearScheme()
The HTTP URL scheme, such as `http` and `https`.AttributeContext.Request.Builder
clearSize()
The HTTP request size in bytes.AttributeContext.Request.Builder
clearTime()
The timestamp when the `destination` service receives the last byte of the request.AttributeContext.Request.Builder
clone()
boolean
containsHeaders(String key)
The HTTP request headers.AttributeContext.Auth
getAuth()
The request authentication.AttributeContext.Auth.Builder
getAuthBuilder()
The request authentication.AttributeContext.AuthOrBuilder
getAuthOrBuilder()
The request authentication.AttributeContext.Request
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
com.google.protobuf.Descriptors.Descriptor
getDescriptorForType()
Map<String,String>
getHeaders()
Deprecated.int
getHeadersCount()
The HTTP request headers.Map<String,String>
getHeadersMap()
The HTTP request headers.String
getHeadersOrDefault(String key, String defaultValue)
The HTTP request headers.String
getHeadersOrThrow(String key)
The HTTP request headers.String
getHost()
The HTTP request `Host` header value.com.google.protobuf.ByteString
getHostBytes()
The HTTP request `Host` header value.String
getId()
The unique ID for a request, which can be propagated to downstream systems.com.google.protobuf.ByteString
getIdBytes()
The unique ID for a request, which can be propagated to downstream systems.String
getMethod()
The HTTP request method, such as `GET`, `POST`.com.google.protobuf.ByteString
getMethodBytes()
The HTTP request method, such as `GET`, `POST`.Map<String,String>
getMutableHeaders()
Deprecated.String
getPath()
The HTTP URL path, excluding the query parameters.com.google.protobuf.ByteString
getPathBytes()
The HTTP URL path, excluding the query parameters.String
getProtocol()
The network protocol used with the request, such as "http/1.1", "spdy/3", "h2", "h2c", "webrtc", "tcp", "udp", "quic".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".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.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.String
getReason()
A special parameter for request reason.com.google.protobuf.ByteString
getReasonBytes()
A special parameter for request reason.String
getScheme()
The HTTP URL scheme, such as `http` and `https`.com.google.protobuf.ByteString
getSchemeBytes()
The HTTP URL scheme, such as `http` and `https`.long
getSize()
The HTTP request size in bytes.com.google.protobuf.Timestamp
getTime()
The timestamp when the `destination` service receives the last byte of the request.com.google.protobuf.Timestamp.Builder
getTimeBuilder()
The timestamp when the `destination` service receives the last byte of the request.com.google.protobuf.TimestampOrBuilder
getTimeOrBuilder()
The timestamp when the `destination` service receives the last byte of the request.boolean
hasAuth()
The request authentication.boolean
hasTime()
The timestamp when the `destination` service receives the last byte of the request.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.Request.Builder
mergeAuth(AttributeContext.Auth value)
The request authentication.AttributeContext.Request.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
AttributeContext.Request.Builder
mergeFrom(com.google.protobuf.Message other)
AttributeContext.Request.Builder
mergeFrom(AttributeContext.Request other)
AttributeContext.Request.Builder
mergeTime(com.google.protobuf.Timestamp value)
The timestamp when the `destination` service receives the last byte of the request.AttributeContext.Request.Builder
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
AttributeContext.Request.Builder
putAllHeaders(Map<String,String> values)
The HTTP request headers.AttributeContext.Request.Builder
putHeaders(String key, String value)
The HTTP request headers.AttributeContext.Request.Builder
removeHeaders(String key)
The HTTP request headers.AttributeContext.Request.Builder
setAuth(AttributeContext.Auth value)
The request authentication.AttributeContext.Request.Builder
setAuth(AttributeContext.Auth.Builder builderForValue)
The request authentication.AttributeContext.Request.Builder
setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
AttributeContext.Request.Builder
setHost(String value)
The HTTP request `Host` header value.AttributeContext.Request.Builder
setHostBytes(com.google.protobuf.ByteString value)
The HTTP request `Host` header value.AttributeContext.Request.Builder
setId(String value)
The unique ID for a request, which can be propagated to downstream systems.AttributeContext.Request.Builder
setIdBytes(com.google.protobuf.ByteString value)
The unique ID for a request, which can be propagated to downstream systems.AttributeContext.Request.Builder
setMethod(String value)
The HTTP request method, such as `GET`, `POST`.AttributeContext.Request.Builder
setMethodBytes(com.google.protobuf.ByteString value)
The HTTP request method, such as `GET`, `POST`.AttributeContext.Request.Builder
setPath(String value)
The HTTP URL path, excluding the query parameters.AttributeContext.Request.Builder
setPathBytes(com.google.protobuf.ByteString value)
The HTTP URL path, excluding the query parameters.AttributeContext.Request.Builder
setProtocol(String value)
The network protocol used with the request, such as "http/1.1", "spdy/3", "h2", "h2c", "webrtc", "tcp", "udp", "quic".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".AttributeContext.Request.Builder
setQuery(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.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.AttributeContext.Request.Builder
setReason(String value)
A special parameter for request reason.AttributeContext.Request.Builder
setReasonBytes(com.google.protobuf.ByteString value)
A special parameter for request reason.AttributeContext.Request.Builder
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
AttributeContext.Request.Builder
setScheme(String value)
The HTTP URL scheme, such as `http` and `https`.AttributeContext.Request.Builder
setSchemeBytes(com.google.protobuf.ByteString value)
The HTTP URL scheme, such as `http` and `https`.AttributeContext.Request.Builder
setSize(long value)
The HTTP request size in bytes.AttributeContext.Request.Builder
setTime(com.google.protobuf.Timestamp value)
The timestamp when the `destination` service receives the last byte of the request.AttributeContext.Request.Builder
setTime(com.google.protobuf.Timestamp.Builder builderForValue)
The timestamp when the `destination` service receives the last byte of the request.AttributeContext.Request.Builder
setUnknownFields(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:
internalGetMapField
in classcom.google.protobuf.GeneratedMessageV3.Builder<AttributeContext.Request.Builder>
-
internalGetMutableMapField
protected com.google.protobuf.MapField internalGetMutableMapField(int number)
- Overrides:
internalGetMutableMapField
in classcom.google.protobuf.GeneratedMessageV3.Builder<AttributeContext.Request.Builder>
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<AttributeContext.Request.Builder>
-
clear
public AttributeContext.Request.Builder clear()
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<AttributeContext.Request.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<AttributeContext.Request.Builder>
-
getDefaultInstanceForType
public AttributeContext.Request getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public AttributeContext.Request build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public AttributeContext.Request buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public AttributeContext.Request.Builder clone()
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<AttributeContext.Request.Builder>
-
setField
public AttributeContext.Request.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<AttributeContext.Request.Builder>
-
clearField
public AttributeContext.Request.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<AttributeContext.Request.Builder>
-
clearOneof
public AttributeContext.Request.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.google.protobuf.GeneratedMessageV3.Builder<AttributeContext.Request.Builder>
-
setRepeatedField
public AttributeContext.Request.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<AttributeContext.Request.Builder>
-
addRepeatedField
public AttributeContext.Request.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<AttributeContext.Request.Builder>
-
mergeFrom
public AttributeContext.Request.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<AttributeContext.Request.Builder>
-
mergeFrom
public AttributeContext.Request.Builder mergeFrom(AttributeContext.Request other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in 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 IOException
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<AttributeContext.Request.Builder>
- Throws:
IOException
-
getId
public 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:
getId
in 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:
getIdBytes
in interfaceAttributeContext.RequestOrBuilder
- Returns:
- The bytes for id.
-
setId
public AttributeContext.Request.Builder setId(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 String getMethod()
The HTTP request method, such as `GET`, `POST`.
string method = 2;
- Specified by:
getMethod
in 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:
getMethodBytes
in interfaceAttributeContext.RequestOrBuilder
- Returns:
- The bytes for method.
-
setMethod
public AttributeContext.Request.Builder setMethod(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.RequestOrBuilder
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:
getHeadersCount
in interfaceAttributeContext.RequestOrBuilder
-
containsHeaders
public boolean containsHeaders(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:
containsHeaders
in interfaceAttributeContext.RequestOrBuilder
-
getHeaders
@Deprecated public Map<String,String> getHeaders()
Deprecated.UsegetHeadersMap()
instead.- Specified by:
getHeaders
in interfaceAttributeContext.RequestOrBuilder
-
getHeadersMap
public Map<String,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:
getHeadersMap
in interfaceAttributeContext.RequestOrBuilder
-
getHeadersOrDefault
public String getHeadersOrDefault(String key, 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:
getHeadersOrDefault
in interfaceAttributeContext.RequestOrBuilder
-
getHeadersOrThrow
public String getHeadersOrThrow(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:
getHeadersOrThrow
in interfaceAttributeContext.RequestOrBuilder
-
clearHeaders
public AttributeContext.Request.Builder clearHeaders()
-
removeHeaders
public AttributeContext.Request.Builder removeHeaders(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 Map<String,String> getMutableHeaders()
Deprecated.Use alternate mutation accessors instead.
-
putHeaders
public AttributeContext.Request.Builder putHeaders(String key, 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(Map<String,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 String getPath()
The HTTP URL path, excluding the query parameters.
string path = 4;
- Specified by:
getPath
in interfaceAttributeContext.RequestOrBuilder
- Returns:
- The path.
-
getPathBytes
public com.google.protobuf.ByteString getPathBytes()
The HTTP URL path, excluding the query parameters.
string path = 4;
- Specified by:
getPathBytes
in interfaceAttributeContext.RequestOrBuilder
- Returns:
- The bytes for path.
-
setPath
public AttributeContext.Request.Builder setPath(String value)
The HTTP URL path, excluding the query parameters.
string path = 4;
- Parameters:
value
- The path to set.- Returns:
- This builder for chaining.
-
clearPath
public AttributeContext.Request.Builder clearPath()
The HTTP URL path, excluding the query parameters.
string path = 4;
- Returns:
- This builder for chaining.
-
setPathBytes
public AttributeContext.Request.Builder setPathBytes(com.google.protobuf.ByteString value)
The HTTP URL path, excluding the query parameters.
string path = 4;
- Parameters:
value
- The bytes for path to set.- Returns:
- This builder for chaining.
-
getHost
public String getHost()
The HTTP request `Host` header value.
string host = 5;
- Specified by:
getHost
in interfaceAttributeContext.RequestOrBuilder
- Returns:
- The host.
-
getHostBytes
public com.google.protobuf.ByteString getHostBytes()
The HTTP request `Host` header value.
string host = 5;
- Specified by:
getHostBytes
in interfaceAttributeContext.RequestOrBuilder
- Returns:
- The bytes for host.
-
setHost
public AttributeContext.Request.Builder setHost(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 String getScheme()
The HTTP URL scheme, such as `http` and `https`.
string scheme = 6;
- Specified by:
getScheme
in 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:
getSchemeBytes
in interfaceAttributeContext.RequestOrBuilder
- Returns:
- The bytes for scheme.
-
setScheme
public AttributeContext.Request.Builder setScheme(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 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:
getQuery
in 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:
getQueryBytes
in interfaceAttributeContext.RequestOrBuilder
- Returns:
- The bytes for query.
-
setQuery
public AttributeContext.Request.Builder setQuery(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:
hasTime
in 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:
getTime
in 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:
getTimeOrBuilder
in interfaceAttributeContext.RequestOrBuilder
-
getSize
public long getSize()
The HTTP request size in bytes. If unknown, it must be -1.
int64 size = 10;
- Specified by:
getSize
in 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 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:
getProtocol
in 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:
getProtocolBytes
in interfaceAttributeContext.RequestOrBuilder
- Returns:
- The bytes for protocol.
-
setProtocol
public AttributeContext.Request.Builder setProtocol(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 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:
getReason
in 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:
getReasonBytes
in interfaceAttributeContext.RequestOrBuilder
- Returns:
- The bytes for reason.
-
setReason
public AttributeContext.Request.Builder setReason(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:
hasAuth
in 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:
getAuth
in 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:
getAuthOrBuilder
in interfaceAttributeContext.RequestOrBuilder
-
setUnknownFields
public final AttributeContext.Request.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<AttributeContext.Request.Builder>
-
mergeUnknownFields
public final AttributeContext.Request.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<AttributeContext.Request.Builder>
-
-