public static final class AttributeContext.Request.Builder extends 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 type google.rpc.context.AttributeContext.Request
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > AttributeContext.Request.BuilderImplements
AttributeContext.RequestOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Type | Description |
Descriptor |
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public AttributeContext.Request.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Name | Description |
field | FieldDescriptor |
value | Object |
Type | Description |
AttributeContext.Request.Builder |
build()
public AttributeContext.Request build()
Type | Description |
AttributeContext.Request |
buildPartial()
public AttributeContext.Request buildPartial()
Type | Description |
AttributeContext.Request |
clear()
public AttributeContext.Request.Builder clear()
Type | Description |
AttributeContext.Request.Builder |
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;
Type | Description |
AttributeContext.Request.Builder |
clearField(Descriptors.FieldDescriptor field)
public AttributeContext.Request.Builder clearField(Descriptors.FieldDescriptor field)
Name | Description |
field | FieldDescriptor |
Type | Description |
AttributeContext.Request.Builder |
clearHeaders()
public AttributeContext.Request.Builder clearHeaders()
Type | Description |
AttributeContext.Request.Builder |
clearHost()
public AttributeContext.Request.Builder clearHost()
The HTTP request Host
header value.
string host = 5;
Type | Description |
AttributeContext.Request.Builder | 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;
Type | Description |
AttributeContext.Request.Builder | This builder for chaining. |
clearMethod()
public AttributeContext.Request.Builder clearMethod()
The HTTP request method, such as GET
, POST
.
string method = 2;
Type | Description |
AttributeContext.Request.Builder | This builder for chaining. |
clearOneof(Descriptors.OneofDescriptor oneof)
public AttributeContext.Request.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Name | Description |
oneof | OneofDescriptor |
Type | Description |
AttributeContext.Request.Builder |
clearPath()
public AttributeContext.Request.Builder clearPath()
The HTTP URL path.
string path = 4;
Type | Description |
AttributeContext.Request.Builder | 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;
Type | Description |
AttributeContext.Request.Builder | 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;
Type | Description |
AttributeContext.Request.Builder | 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;
Type | Description |
AttributeContext.Request.Builder | This builder for chaining. |
clearScheme()
public AttributeContext.Request.Builder clearScheme()
The HTTP URL scheme, such as http
and https
.
string scheme = 6;
Type | Description |
AttributeContext.Request.Builder | 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;
Type | Description |
AttributeContext.Request.Builder | This builder for chaining. |
clearTime()
public AttributeContext.Request.Builder clearTime()
The timestamp when the destination
service receives the last byte of
the request.
.google.protobuf.Timestamp time = 9;
Type | Description |
AttributeContext.Request.Builder |
clone()
public AttributeContext.Request.Builder clone()
Type | Description |
AttributeContext.Request.Builder |
containsHeaders(String key)
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;
Name | Description |
key | String |
Type | Description |
boolean |
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;
Type | Description |
AttributeContext.Auth | The auth. |
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;
Type | Description |
AttributeContext.Auth.Builder |
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;
Type | Description |
AttributeContext.AuthOrBuilder |
getDefaultInstanceForType()
public AttributeContext.Request getDefaultInstanceForType()
Type | Description |
AttributeContext.Request |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Type | Description |
Descriptor |
getHeaders()
public Map<String,String> getHeaders()
Use #getHeadersMap() instead.
Type | Description |
Map<String,String> |
getHeadersCount()
public int getHeadersCount()
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;
Type | Description |
int |
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;
Type | Description |
Map<String,String> |
getHeadersOrDefault(String key, String defaultValue)
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;
Name | Description |
key | String |
defaultValue | String |
Type | Description |
String |
getHeadersOrThrow(String key)
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;
Name | Description |
key | String |
Type | Description |
String |
getHost()
public String getHost()
The HTTP request Host
header value.
string host = 5;
Type | Description |
String | The host. |
getHostBytes()
public ByteString getHostBytes()
The HTTP request Host
header value.
string host = 5;
Type | Description |
ByteString | The bytes for host. |
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;
Type | Description |
String | The id. |
getIdBytes()
public 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;
Type | Description |
ByteString | The bytes for id. |
getMethod()
public String getMethod()
The HTTP request method, such as GET
, POST
.
string method = 2;
Type | Description |
String | The method. |
getMethodBytes()
public ByteString getMethodBytes()
The HTTP request method, such as GET
, POST
.
string method = 2;
Type | Description |
ByteString | The bytes for method. |
getMutableHeaders()
public Map<String,String> getMutableHeaders()
Use alternate mutation accessors instead.
Type | Description |
Map<String,String> |
getPath()
public String getPath()
The HTTP URL path.
string path = 4;
Type | Description |
String | The path. |
getPathBytes()
public ByteString getPathBytes()
The HTTP URL path.
string path = 4;
Type | Description |
ByteString | The bytes for path. |
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;
Type | Description |
String | The protocol. |
getProtocolBytes()
public 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;
Type | Description |
ByteString | The bytes for protocol. |
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;
Type | Description |
String | The query. |
getQueryBytes()
public 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;
Type | Description |
ByteString | The bytes for query. |
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;
Type | Description |
String | The reason. |
getReasonBytes()
public ByteString getReasonBytes()
A special parameter for request reason. It is used by security systems to associate auditing information with a request.
string reason = 12;
Type | Description |
ByteString | The bytes for reason. |
getScheme()
public String getScheme()
The HTTP URL scheme, such as http
and https
.
string scheme = 6;
Type | Description |
String | The scheme. |
getSchemeBytes()
public ByteString getSchemeBytes()
The HTTP URL scheme, such as http
and https
.
string scheme = 6;
Type | Description |
ByteString | The bytes for scheme. |
getSize()
public long getSize()
The HTTP request size in bytes. If unknown, it must be -1.
int64 size = 10;
Type | Description |
long | The size. |
getTime()
public Timestamp getTime()
The timestamp when the destination
service receives the last byte of
the request.
.google.protobuf.Timestamp time = 9;
Type | Description |
Timestamp | The time. |
getTimeBuilder()
public Timestamp.Builder getTimeBuilder()
The timestamp when the destination
service receives the last byte of
the request.
.google.protobuf.Timestamp time = 9;
Type | Description |
Builder |
getTimeOrBuilder()
public TimestampOrBuilder getTimeOrBuilder()
The timestamp when the destination
service receives the last byte of
the request.
.google.protobuf.Timestamp time = 9;
Type | Description |
TimestampOrBuilder |
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;
Type | Description |
boolean | Whether the auth field is set. |
hasTime()
public boolean hasTime()
The timestamp when the destination
service receives the last byte of
the request.
.google.protobuf.Timestamp time = 9;
Type | Description |
boolean | Whether the time field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Type | Description |
FieldAccessorTable |
internalGetMapField(int number)
protected MapField internalGetMapField(int number)
Name | Description |
number | int |
Type | Description |
MapField |
internalGetMutableMapField(int number)
protected MapField internalGetMutableMapField(int number)
Name | Description |
number | int |
Type | Description |
MapField |
isInitialized()
public final boolean isInitialized()
Type | Description |
boolean |
mergeAuth(AttributeContext.Auth value)
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;
Name | Description |
value | AttributeContext.Auth |
Type | Description |
AttributeContext.Request.Builder |
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public AttributeContext.Request.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Name | Description |
input | CodedInputStream |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
AttributeContext.Request.Builder |
Type | Description |
IOException |
mergeFrom(Message other)
public AttributeContext.Request.Builder mergeFrom(Message other)
Name | Description |
other | Message |
Type | Description |
AttributeContext.Request.Builder |
mergeFrom(AttributeContext.Request other)
public AttributeContext.Request.Builder mergeFrom(AttributeContext.Request other)
Name | Description |
other | AttributeContext.Request |
Type | Description |
AttributeContext.Request.Builder |
mergeTime(Timestamp value)
public AttributeContext.Request.Builder mergeTime(Timestamp value)
The timestamp when the destination
service receives the last byte of
the request.
.google.protobuf.Timestamp time = 9;
Name | Description |
value | Timestamp |
Type | Description |
AttributeContext.Request.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final AttributeContext.Request.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Name | Description |
unknownFields | UnknownFieldSet |
Type | Description |
AttributeContext.Request.Builder |
putAllHeaders(Map<String,String> values)
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;
Name | Description |
values | Map<String,String> |
Type | Description |
AttributeContext.Request.Builder |
putHeaders(String key, String value)
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;
Name | Description |
key | String |
value | String |
Type | Description |
AttributeContext.Request.Builder |
removeHeaders(String key)
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;
Name | Description |
key | String |
Type | Description |
AttributeContext.Request.Builder |
setAuth(AttributeContext.Auth value)
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;
Name | Description |
value | AttributeContext.Auth |
Type | Description |
AttributeContext.Request.Builder |
setAuth(AttributeContext.Auth.Builder builderForValue)
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;
Name | Description |
builderForValue | AttributeContext.Auth.Builder |
Type | Description |
AttributeContext.Request.Builder |
setField(Descriptors.FieldDescriptor field, Object value)
public AttributeContext.Request.Builder setField(Descriptors.FieldDescriptor field, Object value)
Name | Description |
field | FieldDescriptor |
value | Object |
Type | Description |
AttributeContext.Request.Builder |
setHost(String value)
public AttributeContext.Request.Builder setHost(String value)
The HTTP request Host
header value.
string host = 5;
Name | Description |
value | String The host to set. |
Type | Description |
AttributeContext.Request.Builder | This builder for chaining. |
setHostBytes(ByteString value)
public AttributeContext.Request.Builder setHostBytes(ByteString value)
The HTTP request Host
header value.
string host = 5;
Name | Description |
value | ByteString The bytes for host to set. |
Type | Description |
AttributeContext.Request.Builder | This builder for chaining. |
setId(String value)
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;
Name | Description |
value | String The id to set. |
Type | Description |
AttributeContext.Request.Builder | This builder for chaining. |
setIdBytes(ByteString value)
public AttributeContext.Request.Builder setIdBytes(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;
Name | Description |
value | ByteString The bytes for id to set. |
Type | Description |
AttributeContext.Request.Builder | This builder for chaining. |
setMethod(String value)
public AttributeContext.Request.Builder setMethod(String value)
The HTTP request method, such as GET
, POST
.
string method = 2;
Name | Description |
value | String The method to set. |
Type | Description |
AttributeContext.Request.Builder | This builder for chaining. |
setMethodBytes(ByteString value)
public AttributeContext.Request.Builder setMethodBytes(ByteString value)
The HTTP request method, such as GET
, POST
.
string method = 2;
Name | Description |
value | ByteString The bytes for method to set. |
Type | Description |
AttributeContext.Request.Builder | This builder for chaining. |
setPath(String value)
public AttributeContext.Request.Builder setPath(String value)
The HTTP URL path.
string path = 4;
Name | Description |
value | String The path to set. |
Type | Description |
AttributeContext.Request.Builder | This builder for chaining. |
setPathBytes(ByteString value)
public AttributeContext.Request.Builder setPathBytes(ByteString value)
The HTTP URL path.
string path = 4;
Name | Description |
value | ByteString The bytes for path to set. |
Type | Description |
AttributeContext.Request.Builder | This builder for chaining. |
setProtocol(String value)
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;
Name | Description |
value | String The protocol to set. |
Type | Description |
AttributeContext.Request.Builder | This builder for chaining. |
setProtocolBytes(ByteString value)
public AttributeContext.Request.Builder setProtocolBytes(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;
Name | Description |
value | ByteString The bytes for protocol to set. |
Type | Description |
AttributeContext.Request.Builder | This builder for chaining. |
setQuery(String value)
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;
Name | Description |
value | String The query to set. |
Type | Description |
AttributeContext.Request.Builder | This builder for chaining. |
setQueryBytes(ByteString value)
public AttributeContext.Request.Builder setQueryBytes(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;
Name | Description |
value | ByteString The bytes for query to set. |
Type | Description |
AttributeContext.Request.Builder | This builder for chaining. |
setReason(String value)
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;
Name | Description |
value | String The reason to set. |
Type | Description |
AttributeContext.Request.Builder | This builder for chaining. |
setReasonBytes(ByteString value)
public AttributeContext.Request.Builder setReasonBytes(ByteString value)
A special parameter for request reason. It is used by security systems to associate auditing information with a request.
string reason = 12;
Name | Description |
value | ByteString The bytes for reason to set. |
Type | Description |
AttributeContext.Request.Builder | This builder for chaining. |
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public AttributeContext.Request.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Name | Description |
field | FieldDescriptor |
index | int |
value | Object |
Type | Description |
AttributeContext.Request.Builder |
setScheme(String value)
public AttributeContext.Request.Builder setScheme(String value)
The HTTP URL scheme, such as http
and https
.
string scheme = 6;
Name | Description |
value | String The scheme to set. |
Type | Description |
AttributeContext.Request.Builder | This builder for chaining. |
setSchemeBytes(ByteString value)
public AttributeContext.Request.Builder setSchemeBytes(ByteString value)
The HTTP URL scheme, such as http
and https
.
string scheme = 6;
Name | Description |
value | ByteString The bytes for scheme to set. |
Type | Description |
AttributeContext.Request.Builder | This builder for chaining. |
setSize(long value)
public AttributeContext.Request.Builder setSize(long value)
The HTTP request size in bytes. If unknown, it must be -1.
int64 size = 10;
Name | Description |
value | long The size to set. |
Type | Description |
AttributeContext.Request.Builder | This builder for chaining. |
setTime(Timestamp value)
public AttributeContext.Request.Builder setTime(Timestamp value)
The timestamp when the destination
service receives the last byte of
the request.
.google.protobuf.Timestamp time = 9;
Name | Description |
value | Timestamp |
Type | Description |
AttributeContext.Request.Builder |
setTime(Timestamp.Builder builderForValue)
public AttributeContext.Request.Builder setTime(Timestamp.Builder builderForValue)
The timestamp when the destination
service receives the last byte of
the request.
.google.protobuf.Timestamp time = 9;
Name | Description |
builderForValue | Builder |
Type | Description |
AttributeContext.Request.Builder |
setUnknownFields(UnknownFieldSet unknownFields)
public final AttributeContext.Request.Builder setUnknownFields(UnknownFieldSet unknownFields)
Name | Description |
unknownFields | UnknownFieldSet |
Type | Description |
AttributeContext.Request.Builder |