public static final class RequestMetadata.Builder extends GeneratedMessageV3.Builder<RequestMetadata.Builder> implements RequestMetadataOrBuilder
Metadata about the request.Protobuf type
google.cloud.audit.RequestMetadatagetAllFields, 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, waitfindInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneofmergeFrompublic static final Descriptors.Descriptor getDescriptor()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class GeneratedMessageV3.Builder<RequestMetadata.Builder>public RequestMetadata.Builder clear()
clear in interface Message.Builderclear in interface MessageLite.Builderclear in class GeneratedMessageV3.Builder<RequestMetadata.Builder>public Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface Message.BuildergetDescriptorForType in interface MessageOrBuildergetDescriptorForType in class GeneratedMessageV3.Builder<RequestMetadata.Builder>public RequestMetadata getDefaultInstanceForType()
getDefaultInstanceForType in interface MessageLiteOrBuildergetDefaultInstanceForType in interface MessageOrBuilderpublic RequestMetadata build()
build in interface Message.Builderbuild in interface MessageLite.Builderpublic RequestMetadata buildPartial()
buildPartial in interface Message.BuilderbuildPartial in interface MessageLite.Builderpublic RequestMetadata.Builder clone()
clone in interface Message.Builderclone in interface MessageLite.Builderclone in class GeneratedMessageV3.Builder<RequestMetadata.Builder>public RequestMetadata.Builder setField(Descriptors.FieldDescriptor field, java.lang.Object value)
setField in interface Message.BuildersetField in class GeneratedMessageV3.Builder<RequestMetadata.Builder>public RequestMetadata.Builder clearField(Descriptors.FieldDescriptor field)
clearField in interface Message.BuilderclearField in class GeneratedMessageV3.Builder<RequestMetadata.Builder>public RequestMetadata.Builder clearOneof(Descriptors.OneofDescriptor oneof)
clearOneof in interface Message.BuilderclearOneof in class GeneratedMessageV3.Builder<RequestMetadata.Builder>public RequestMetadata.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, java.lang.Object value)
setRepeatedField in interface Message.BuildersetRepeatedField in class GeneratedMessageV3.Builder<RequestMetadata.Builder>public RequestMetadata.Builder addRepeatedField(Descriptors.FieldDescriptor field, java.lang.Object value)
addRepeatedField in interface Message.BuilderaddRepeatedField in class GeneratedMessageV3.Builder<RequestMetadata.Builder>public RequestMetadata.Builder mergeFrom(Message other)
mergeFrom in interface Message.BuildermergeFrom in class AbstractMessage.Builder<RequestMetadata.Builder>public RequestMetadata.Builder mergeFrom(RequestMetadata other)
public final boolean isInitialized()
isInitialized in interface MessageLiteOrBuilderisInitialized in class GeneratedMessageV3.Builder<RequestMetadata.Builder>public RequestMetadata.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
mergeFrom in interface Message.BuildermergeFrom in interface MessageLite.BuildermergeFrom in class 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 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(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 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(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(UnknownFieldSet unknownFields)
setUnknownFields in interface Message.BuildersetUnknownFields in class GeneratedMessageV3.Builder<RequestMetadata.Builder>public final RequestMetadata.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
mergeUnknownFields in interface Message.BuildermergeUnknownFields in class GeneratedMessageV3.Builder<RequestMetadata.Builder>