public static final class RequestMetadata.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<RequestMetadata.Builder> implements RequestMetadataOrBuilder
Metadata about the request.Protobuf type
google.cloud.audit.RequestMetadata| Modifier and Type | Method and Description |
|---|---|
RequestMetadata.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) |
RequestMetadata |
build() |
RequestMetadata |
buildPartial() |
RequestMetadata.Builder |
clear() |
RequestMetadata.Builder |
clearCallerIp()
The IP address of the caller.
|
RequestMetadata.Builder |
clearCallerSuppliedUserAgent()
The user agent of the caller.
|
RequestMetadata.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
RequestMetadata.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
RequestMetadata.Builder |
clone() |
java.lang.String |
getCallerIp()
The IP address of the caller.
|
com.google.protobuf.ByteString |
getCallerIpBytes()
The IP address of the caller.
|
java.lang.String |
getCallerSuppliedUserAgent()
The user agent of the caller.
|
com.google.protobuf.ByteString |
getCallerSuppliedUserAgentBytes()
The user agent of the caller.
|
RequestMetadata |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
RequestMetadata.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
RequestMetadata.Builder |
mergeFrom(com.google.protobuf.Message other) |
RequestMetadata.Builder |
mergeFrom(RequestMetadata other) |
RequestMetadata.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
RequestMetadata.Builder |
setCallerIp(java.lang.String value)
The IP address of the caller.
|
RequestMetadata.Builder |
setCallerIpBytes(com.google.protobuf.ByteString value)
The IP address of the caller.
|
RequestMetadata.Builder |
setCallerSuppliedUserAgent(java.lang.String value)
The user agent of the caller.
|
RequestMetadata.Builder |
setCallerSuppliedUserAgentBytes(com.google.protobuf.ByteString value)
The user agent of the caller.
|
RequestMetadata.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) |
RequestMetadata.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
java.lang.Object value) |
RequestMetadata.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<RequestMetadata.Builder>public RequestMetadata.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<RequestMetadata.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<RequestMetadata.Builder>public RequestMetadata getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic RequestMetadata build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic RequestMetadata buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic RequestMetadata.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<RequestMetadata.Builder>public RequestMetadata.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
setField in interface com.google.protobuf.Message.BuildersetField in class com.google.protobuf.GeneratedMessageV3.Builder<RequestMetadata.Builder>public RequestMetadata.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<RequestMetadata.Builder>public RequestMetadata.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<RequestMetadata.Builder>public RequestMetadata.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)
setRepeatedField in interface com.google.protobuf.Message.BuildersetRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<RequestMetadata.Builder>public RequestMetadata.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
addRepeatedField in interface com.google.protobuf.Message.BuilderaddRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<RequestMetadata.Builder>public RequestMetadata.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<RequestMetadata.Builder>public RequestMetadata.Builder mergeFrom(RequestMetadata other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<RequestMetadata.Builder>public RequestMetadata.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<RequestMetadata.Builder>java.io.IOExceptionpublic java.lang.String getCallerIp()
The IP address of the caller.
string caller_ip = 1;getCallerIp in interface RequestMetadataOrBuilderpublic com.google.protobuf.ByteString getCallerIpBytes()
The IP address of the caller.
string caller_ip = 1;getCallerIpBytes in interface RequestMetadataOrBuilderpublic RequestMetadata.Builder setCallerIp(java.lang.String value)
The IP address of the caller.
string caller_ip = 1;public RequestMetadata.Builder clearCallerIp()
The IP address of the caller.
string caller_ip = 1;public RequestMetadata.Builder setCallerIpBytes(com.google.protobuf.ByteString value)
The IP address of the caller.
string caller_ip = 1;public 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 com.google.protobuf.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 RequestMetadata.Builder setCallerSuppliedUserAgent(java.lang.String value)
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;public RequestMetadata.Builder clearCallerSuppliedUserAgent()
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;public RequestMetadata.Builder setCallerSuppliedUserAgentBytes(com.google.protobuf.ByteString value)
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;public final RequestMetadata.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<RequestMetadata.Builder>public final RequestMetadata.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<RequestMetadata.Builder>