public static final class AttributeContext.Request extends GeneratedMessageV3 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
Static Fields
AUTH_FIELD_NUMBER
public static final int AUTH_FIELD_NUMBER
Field Value
public static final int HEADERS_FIELD_NUMBER
Field Value
HOST_FIELD_NUMBER
public static final int HOST_FIELD_NUMBER
Field Value
ID_FIELD_NUMBER
public static final int ID_FIELD_NUMBER
Field Value
METHOD_FIELD_NUMBER
public static final int METHOD_FIELD_NUMBER
Field Value
PATH_FIELD_NUMBER
public static final int PATH_FIELD_NUMBER
Field Value
PROTOCOL_FIELD_NUMBER
public static final int PROTOCOL_FIELD_NUMBER
Field Value
QUERY_FIELD_NUMBER
public static final int QUERY_FIELD_NUMBER
Field Value
REASON_FIELD_NUMBER
public static final int REASON_FIELD_NUMBER
Field Value
SCHEME_FIELD_NUMBER
public static final int SCHEME_FIELD_NUMBER
Field Value
SIZE_FIELD_NUMBER
public static final int SIZE_FIELD_NUMBER
Field Value
TIME_FIELD_NUMBER
public static final int TIME_FIELD_NUMBER
Field Value
Static Methods
getDefaultInstance()
public static AttributeContext.Request getDefaultInstance()
Returns
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
newBuilder()
public static AttributeContext.Request.Builder newBuilder()
Returns
newBuilder(AttributeContext.Request prototype)
public static AttributeContext.Request.Builder newBuilder(AttributeContext.Request prototype)
Parameter
Returns
parseDelimitedFrom(InputStream input)
public static AttributeContext.Request parseDelimitedFrom(InputStream input)
Parameter
Returns
Exceptions
parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static AttributeContext.Request parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(byte[] data)
public static AttributeContext.Request parseFrom(byte[] data)
Parameter
Name | Description |
data | byte[]
|
Returns
Exceptions
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static AttributeContext.Request parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteString data)
public static AttributeContext.Request parseFrom(ByteString data)
Parameter
Returns
Exceptions
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static AttributeContext.Request parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(CodedInputStream input)
public static AttributeContext.Request parseFrom(CodedInputStream input)
Parameter
Returns
Exceptions
parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static AttributeContext.Request parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(InputStream input)
public static AttributeContext.Request parseFrom(InputStream input)
Parameter
Returns
Exceptions
parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static AttributeContext.Request parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteBuffer data)
public static AttributeContext.Request parseFrom(ByteBuffer data)
Parameter
Returns
Exceptions
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static AttributeContext.Request parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parser()
public static Parser<AttributeContext.Request> parser()
Returns
Methods
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;
Parameter
Returns
equals(Object obj)
public boolean equals(Object obj)
Parameter
Returns
Overrides
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;
Returns
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;
Returns
getDefaultInstanceForType()
public AttributeContext.Request getDefaultInstanceForType()
Returns
public Map<String,String> getHeaders()
Returns
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;
Returns
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;
Returns
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;
Parameters
Returns
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;
Parameter
Returns
getHost()
The HTTP request Host
header value.
string host = 5;
Returns
Type | Description |
String | The host.
|
getHostBytes()
public ByteString getHostBytes()
The HTTP request Host
header value.
string host = 5;
Returns
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;
Returns
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;
Returns
getMethod()
public String getMethod()
The HTTP request method, such as GET
, POST
.
string method = 2;
Returns
Type | Description |
String | The method.
|
getMethodBytes()
public ByteString getMethodBytes()
The HTTP request method, such as GET
, POST
.
string method = 2;
Returns
getParserForType()
public Parser<AttributeContext.Request> getParserForType()
Returns
Overrides
getPath()
The HTTP URL path.
string path = 4;
Returns
Type | Description |
String | The path.
|
getPathBytes()
public ByteString getPathBytes()
The HTTP URL path.
string path = 4;
Returns
getProtocol()
public String getProtocol()
Returns
Type | Description |
String | The protocol.
|
getProtocolBytes()
public ByteString getProtocolBytes()
Returns
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;
Returns
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;
Returns
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;
Returns
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;
Returns
getScheme()
public String getScheme()
The HTTP URL scheme, such as http
and https
.
string scheme = 6;
Returns
Type | Description |
String | The scheme.
|
getSchemeBytes()
public ByteString getSchemeBytes()
The HTTP URL scheme, such as http
and https
.
string scheme = 6;
Returns
getSerializedSize()
public int getSerializedSize()
Returns
Overrides
getSize()
The HTTP request size in bytes. If unknown, it must be -1.
int64 size = 10;
Returns
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;
Returns
getTimeOrBuilder()
public TimestampOrBuilder getTimeOrBuilder()
The timestamp when the destination
service receives the last byte of
the request.
.google.protobuf.Timestamp time = 9;
Returns
getUnknownFields()
public final UnknownFieldSet getUnknownFields()
Returns
Overrides
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;
Returns
Type | Description |
boolean | Whether the auth field is set.
|
hasTime()
The timestamp when the destination
service receives the last byte of
the request.
.google.protobuf.Timestamp time = 9;
Returns
Type | Description |
boolean | Whether the time field is set.
|
hashCode()
Returns
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
internalGetMapField(int number)
protected MapField internalGetMapField(int number)
Parameter
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
newBuilderForType()
public AttributeContext.Request.Builder newBuilderForType()
Returns
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected AttributeContext.Request.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Returns
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Returns
Overrides
toBuilder()
public AttributeContext.Request.Builder toBuilder()
Returns
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Parameter
Overrides
Exceptions