public final class RequestMetadata extends GeneratedMessageV3 implements RequestMetadataOrBuilder
Metadata about the request.Protobuf type
google.cloud.audit.RequestMetadata| Modifier and Type | Class and Description |
|---|---|
static class |
RequestMetadata.Builder
Metadata about the request.
|
GeneratedMessageV3.BuilderParent, GeneratedMessageV3.ExtendableBuilder<MessageType extends GeneratedMessageV3.ExtendableMessage,BuilderType extends GeneratedMessageV3.ExtendableBuilder<MessageType,BuilderType>>, GeneratedMessageV3.ExtendableMessage<MessageType extends GeneratedMessageV3.ExtendableMessage>, GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends GeneratedMessageV3.ExtendableMessage>, GeneratedMessageV3.FieldAccessorTable| Modifier and Type | Field and Description |
|---|---|
static int |
CALLER_IP_FIELD_NUMBER |
static int |
CALLER_SUPPLIED_USER_AGENT_FIELD_NUMBER |
alwaysUseFieldBuilders, unknownFieldsmemoizedSizememoizedHashCodecanUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, internalGetMapField, makeExtensionsImmutable, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagfindInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringaddAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToclone, finalize, getClass, notify, notifyAll, wait, wait, waitfindInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneoftoByteArray, toByteString, writeDelimitedTo, writeTopublic static final int CALLER_IP_FIELD_NUMBER
public static final int CALLER_SUPPLIED_USER_AGENT_FIELD_NUMBER
public final UnknownFieldSet getUnknownFields()
getUnknownFields in interface MessageOrBuildergetUnknownFields in class GeneratedMessageV3public static final Descriptors.Descriptor getDescriptor()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class GeneratedMessageV3public java.lang.String getCallerIp()
The IP address of the caller.
string caller_ip = 1;getCallerIp in interface RequestMetadataOrBuilderpublic ByteString getCallerIpBytes()
The IP address of the caller.
string caller_ip = 1;getCallerIpBytes in interface RequestMetadataOrBuilderpublic java.lang.String getCallerSuppliedUserAgent()
The user agent of the caller.
This information is not authenticated and should be treated accordingly.
For example:
+ `google-api-python-client/1.4.0`:
The request was made by the Google API client for Python.
+ `Cloud SDK Command Line Tool apitools-client/1.0 gcloud/0.9.62`:
The request was made by the Google Cloud SDK CLI (gcloud).
+ `AppEngine-Google; (+http://code.google.com/appengine; appid:
s~my-project`:
The request was made from the `my-project` App Engine app.
string caller_supplied_user_agent = 2;getCallerSuppliedUserAgent in interface RequestMetadataOrBuilderpublic ByteString getCallerSuppliedUserAgentBytes()
The user agent of the caller.
This information is not authenticated and should be treated accordingly.
For example:
+ `google-api-python-client/1.4.0`:
The request was made by the Google API client for Python.
+ `Cloud SDK Command Line Tool apitools-client/1.0 gcloud/0.9.62`:
The request was made by the Google Cloud SDK CLI (gcloud).
+ `AppEngine-Google; (+http://code.google.com/appengine; appid:
s~my-project`:
The request was made from the `my-project` App Engine app.
string caller_supplied_user_agent = 2;getCallerSuppliedUserAgentBytes in interface RequestMetadataOrBuilderpublic final boolean isInitialized()
isInitialized in interface MessageLiteOrBuilderisInitialized in class GeneratedMessageV3public void writeTo(CodedOutputStream output) throws java.io.IOException
writeTo in interface MessageLitewriteTo in class GeneratedMessageV3java.io.IOExceptionpublic int getSerializedSize()
getSerializedSize in interface MessageLitegetSerializedSize in class GeneratedMessageV3public boolean equals(java.lang.Object obj)
equals in interface Messageequals in class AbstractMessagepublic int hashCode()
hashCode in interface MessagehashCode in class AbstractMessagepublic static RequestMetadata parseFrom(java.nio.ByteBuffer data) throws InvalidProtocolBufferException
InvalidProtocolBufferExceptionpublic static RequestMetadata parseFrom(java.nio.ByteBuffer data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferExceptionpublic static RequestMetadata parseFrom(ByteString data) throws InvalidProtocolBufferException
InvalidProtocolBufferExceptionpublic static RequestMetadata parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferExceptionpublic static RequestMetadata parseFrom(byte[] data) throws InvalidProtocolBufferException
InvalidProtocolBufferExceptionpublic static RequestMetadata parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferExceptionpublic static RequestMetadata parseFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOExceptionpublic static RequestMetadata parseFrom(java.io.InputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOExceptionpublic static RequestMetadata parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOExceptionpublic static RequestMetadata parseDelimitedFrom(java.io.InputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOExceptionpublic static RequestMetadata parseFrom(CodedInputStream input) throws java.io.IOException
java.io.IOExceptionpublic static RequestMetadata parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOExceptionpublic RequestMetadata.Builder newBuilderForType()
newBuilderForType in interface MessagenewBuilderForType in interface MessageLitepublic static RequestMetadata.Builder newBuilder()
public static RequestMetadata.Builder newBuilder(RequestMetadata prototype)
public RequestMetadata.Builder toBuilder()
toBuilder in interface MessagetoBuilder in interface MessageLiteprotected RequestMetadata.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class GeneratedMessageV3public static RequestMetadata getDefaultInstance()
public static Parser<RequestMetadata> parser()
public Parser<RequestMetadata> getParserForType()
getParserForType in interface MessagegetParserForType in interface MessageLitegetParserForType in class GeneratedMessageV3public RequestMetadata getDefaultInstanceForType()
getDefaultInstanceForType in interface MessageLiteOrBuildergetDefaultInstanceForType in interface MessageOrBuilder