The IP address of the caller.
For caller from internet, this will be public IPv4 or IPv6 address.
For caller from a Compute Engine VM with external IP address, this
will be the VM's external IP address. For caller from a Compute
Engine VM without external IP address, if the VM is in the same
organization (or project) as the accessed resource, caller_ip will
be the VM's internal IPv4 address, otherwise the caller_ip will be
redacted to "gce-internal-ip".
See https://cloud.google.com/compute/docs/vpc/ for more information.
The IP address of the caller.
For caller from internet, this will be public IPv4 or IPv6 address.
For caller from a Compute Engine VM with external IP address, this
will be the VM's external IP address. For caller from a Compute
Engine VM without external IP address, if the VM is in the same
organization (or project) as the accessed resource, caller_ip will
be the VM's internal IPv4 address, otherwise the caller_ip will be
redacted to "gce-internal-ip".
See https://cloud.google.com/compute/docs/vpc/ for more information.
The network of the caller.
Set only if the network host project is part of the same GCP organization
(or project) as the accessed resource.
See https://cloud.google.com/compute/docs/vpc/ for more information.
This is a scheme-less URI full resource name. For example:
"//compute.googleapis.com/projects/PROJECT_ID/global/networks/NETWORK_ID"
The network of the caller.
Set only if the network host project is part of the same GCP organization
(or project) as the accessed resource.
See https://cloud.google.com/compute/docs/vpc/ for more information.
This is a scheme-less URI full resource name. For example:
"//compute.googleapis.com/projects/PROJECT_ID/global/networks/NETWORK_ID"
The destination of a network activity, such as accepting a TCP connection.
In a multi hop network activity, the destination represents the receiver of
the last hop. Only two fields are used in this message, Peer.port and
Peer.ip. These fields are optionally populated by those services utilizing
the IAM condition feature.
The destination of a network activity, such as accepting a TCP connection.
In a multi hop network activity, the destination represents the receiver of
the last hop. Only two fields are used in this message, Peer.port and
Peer.ip. These fields are optionally populated by those services utilizing
the IAM condition feature.
Request attributes used in IAM condition evaluation. This field contains
request attributes like request time and access levels associated with
the request.
To get the whole view of the attributes used in IAM
condition evaluation, the user must also look into
AuditLog.authentication_info.resource_attributes.
Request attributes used in IAM condition evaluation. This field contains
request attributes like request time and access levels associated with
the request.
To get the whole view of the attributes used in IAM
condition evaluation, the user must also look into
AuditLog.authentication_info.resource_attributes.
The destination of a network activity, such as accepting a TCP connection.
In a multi hop network activity, the destination represents the receiver of
the last hop. Only two fields are used in this message, Peer.port and
Peer.ip. These fields are optionally populated by those services utilizing
the IAM condition feature.
Request attributes used in IAM condition evaluation. This field contains
request attributes like request time and access levels associated with
the request.
To get the whole view of the attributes used in IAM
condition evaluation, the user must also look into
AuditLog.authentication_info.resource_attributes.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-07 UTC."],[],[],null,["# Interface RequestMetadataOrBuilder (0.16.0)\n\nVersion latestkeyboard_arrow_down\n\n- [0.16.0 (latest)](/java/docs/reference/google-cloudevent-types/latest/com.google.events.cloud.audit.v1.RequestMetadataOrBuilder)\n- [0.15.0](/java/docs/reference/google-cloudevent-types/0.15.0/com.google.events.cloud.audit.v1.RequestMetadataOrBuilder)\n- [0.14.1](/java/docs/reference/google-cloudevent-types/0.14.1/com.google.events.cloud.audit.v1.RequestMetadataOrBuilder) \n\n public interface RequestMetadataOrBuilder extends MessageOrBuilder\n\nImplements\n----------\n\n[MessageOrBuilder](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.MessageOrBuilder.html)\n\nMethods\n-------\n\n### getCallerIp()\n\n public abstract String getCallerIp()\n\nThe IP address of the caller.\nFor caller from internet, this will be public IPv4 or IPv6 address.\nFor caller from a Compute Engine VM with external IP address, this\nwill be the VM's external IP address. For caller from a Compute\nEngine VM without external IP address, if the VM is in the same\norganization (or project) as the accessed resource, `caller_ip` will\nbe the VM's internal IPv4 address, otherwise the `caller_ip` will be\nredacted to \"gce-internal-ip\".\nSee \u003chttps://cloud.google.com/compute/docs/vpc/\u003e for more information.\n\n`string caller_ip = 1;`\n\n### getCallerIpBytes()\n\n public abstract ByteString getCallerIpBytes()\n\nThe IP address of the caller.\nFor caller from internet, this will be public IPv4 or IPv6 address.\nFor caller from a Compute Engine VM with external IP address, this\nwill be the VM's external IP address. For caller from a Compute\nEngine VM without external IP address, if the VM is in the same\norganization (or project) as the accessed resource, `caller_ip` will\nbe the VM's internal IPv4 address, otherwise the `caller_ip` will be\nredacted to \"gce-internal-ip\".\nSee \u003chttps://cloud.google.com/compute/docs/vpc/\u003e for more information.\n\n`string caller_ip = 1;`\n\n### getCallerNetwork()\n\n public abstract String getCallerNetwork()\n\nThe network of the caller.\nSet only if the network host project is part of the same GCP organization\n(or project) as the accessed resource.\nSee \u003chttps://cloud.google.com/compute/docs/vpc/\u003e for more information.\nThis is a scheme-less URI full resource name. For example:\n\"//compute.googleapis.com/projects/PROJECT_ID/global/networks/NETWORK_ID\"\n\n`string caller_network = 3;`\n\n### getCallerNetworkBytes()\n\n public abstract ByteString getCallerNetworkBytes()\n\nThe network of the caller.\nSet only if the network host project is part of the same GCP organization\n(or project) as the accessed resource.\nSee \u003chttps://cloud.google.com/compute/docs/vpc/\u003e for more information.\nThis is a scheme-less URI full resource name. For example:\n\"//compute.googleapis.com/projects/PROJECT_ID/global/networks/NETWORK_ID\"\n\n`string caller_network = 3;`\n\n### getCallerSuppliedUserAgent()\n\n public abstract String getCallerSuppliedUserAgent()\n\nThe user agent of the caller.\nThis information is not authenticated and should be treated accordingly.\nFor example:\n\n- `google-api-python-client/1.4.0`: The request was made by the Google API client for Python.\n- `Cloud SDK Command Line Tool apitools-client/1.0 gcloud/0.9.62`: The request was made by the Google Cloud SDK CLI (gcloud).\n- `AppEngine-Google; (+`\u003chttp://code.google.com/appengine\u003e`; appid:\n s~my-project`: The request was made from the `my-project` App Engine app.\n\n`string caller_supplied_user_agent = 2;`\n\n### getCallerSuppliedUserAgentBytes()\n\n public abstract ByteString getCallerSuppliedUserAgentBytes()\n\nThe user agent of the caller.\nThis information is not authenticated and should be treated accordingly.\nFor example:\n\n- `google-api-python-client/1.4.0`: The request was made by the Google API client for Python.\n- `Cloud SDK Command Line Tool apitools-client/1.0 gcloud/0.9.62`: The request was made by the Google Cloud SDK CLI (gcloud).\n- `AppEngine-Google; (+`\u003chttp://code.google.com/appengine\u003e`; appid:\n s~my-project`: The request was made from the `my-project` App Engine app.\n\n`string caller_supplied_user_agent = 2;`\n\n### getDestinationAttributes()\n\n public abstract AttributeContext.Peer getDestinationAttributes()\n\nThe destination of a network activity, such as accepting a TCP connection.\nIn a multi hop network activity, the destination represents the receiver of\nthe last hop. Only two fields are used in this message, Peer.port and\nPeer.ip. These fields are optionally populated by those services utilizing\nthe IAM condition feature.\n\n`.google.rpc.context.AttributeContext.Peer destination_attributes = 8;`\n\n### getDestinationAttributesOrBuilder()\n\n public abstract AttributeContext.PeerOrBuilder getDestinationAttributesOrBuilder()\n\nThe destination of a network activity, such as accepting a TCP connection.\nIn a multi hop network activity, the destination represents the receiver of\nthe last hop. Only two fields are used in this message, Peer.port and\nPeer.ip. These fields are optionally populated by those services utilizing\nthe IAM condition feature.\n\n`.google.rpc.context.AttributeContext.Peer destination_attributes = 8;`\n\n### getRequestAttributes()\n\n public abstract AttributeContext.Request getRequestAttributes()\n\nRequest attributes used in IAM condition evaluation. This field contains\nrequest attributes like request time and access levels associated with\nthe request.\nTo get the whole view of the attributes used in IAM\ncondition evaluation, the user must also look into\n`AuditLog.authentication_info.resource_attributes`.\n\n`.google.rpc.context.AttributeContext.Request request_attributes = 7;`\n\n### getRequestAttributesOrBuilder()\n\n public abstract AttributeContext.RequestOrBuilder getRequestAttributesOrBuilder()\n\nRequest attributes used in IAM condition evaluation. This field contains\nrequest attributes like request time and access levels associated with\nthe request.\nTo get the whole view of the attributes used in IAM\ncondition evaluation, the user must also look into\n`AuditLog.authentication_info.resource_attributes`.\n\n`.google.rpc.context.AttributeContext.Request request_attributes = 7;`\n\n### hasDestinationAttributes()\n\n public abstract boolean hasDestinationAttributes()\n\nThe destination of a network activity, such as accepting a TCP connection.\nIn a multi hop network activity, the destination represents the receiver of\nthe last hop. Only two fields are used in this message, Peer.port and\nPeer.ip. These fields are optionally populated by those services utilizing\nthe IAM condition feature.\n\n`.google.rpc.context.AttributeContext.Peer destination_attributes = 8;`\n\n### hasRequestAttributes()\n\n public abstract boolean hasRequestAttributes()\n\nRequest attributes used in IAM condition evaluation. This field contains\nrequest attributes like request time and access levels associated with\nthe request.\nTo get the whole view of the attributes used in IAM\ncondition evaluation, the user must also look into\n`AuditLog.authentication_info.resource_attributes`.\n\n`.google.rpc.context.AttributeContext.Request request_attributes = 7;`"]]