implements
// @@protoc_insertion_point(builder_implements:google.cloud.audit.RequestMetadata)
org.apache.rocketmq.shaded.com.google.cloud.audit.RequestMetadataOrBuilder {
public static final org.apache.rocketmq.shaded.com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return org.apache.rocketmq.shaded.com.google.cloud.audit.AuditLogProto
.internal_static_google_cloud_audit_RequestMetadata_descriptor;
}
@java.lang.Override
protected org.apache.rocketmq.shaded.com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.rocketmq.shaded.com.google.cloud.audit.AuditLogProto
.internal_static_google_cloud_audit_RequestMetadata_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.rocketmq.shaded.com.google.cloud.audit.RequestMetadata.class,
org.apache.rocketmq.shaded.com.google.cloud.audit.RequestMetadata.Builder.class);
}
// Construct using org.apache.rocketmq.shaded.com.google.cloud.audit.RequestMetadata.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(org.apache.rocketmq.shaded.com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (org.apache.rocketmq.shaded.com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
}
@java.lang.Override
public Builder clear() {
super.clear();
callerIp_ = "";
callerSuppliedUserAgent_ = "";
callerNetwork_ = "";
if (requestAttributesBuilder_ == null) {
requestAttributes_ = null;
} else {
requestAttributes_ = null;
requestAttributesBuilder_ = null;
}
if (destinationAttributesBuilder_ == null) {
destinationAttributes_ = null;
} else {
destinationAttributes_ = null;
destinationAttributesBuilder_ = null;
}
return this;
}
@java.lang.Override
public org.apache.rocketmq.shaded.com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
return org.apache.rocketmq.shaded.com.google.cloud.audit.AuditLogProto
.internal_static_google_cloud_audit_RequestMetadata_descriptor;
}
@java.lang.Override
public org.apache.rocketmq.shaded.com.google.cloud.audit.RequestMetadata getDefaultInstanceForType() {
return org.apache.rocketmq.shaded.com.google.cloud.audit.RequestMetadata.getDefaultInstance();
}
@java.lang.Override
public org.apache.rocketmq.shaded.com.google.cloud.audit.RequestMetadata build() {
org.apache.rocketmq.shaded.com.google.cloud.audit.RequestMetadata result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public org.apache.rocketmq.shaded.com.google.cloud.audit.RequestMetadata buildPartial() {
org.apache.rocketmq.shaded.com.google.cloud.audit.RequestMetadata result =
new org.apache.rocketmq.shaded.com.google.cloud.audit.RequestMetadata(this);
result.callerIp_ = callerIp_;
result.callerSuppliedUserAgent_ = callerSuppliedUserAgent_;
result.callerNetwork_ = callerNetwork_;
if (requestAttributesBuilder_ == null) {
result.requestAttributes_ = requestAttributes_;
} else {
result.requestAttributes_ = requestAttributesBuilder_.build();
}
if (destinationAttributesBuilder_ == null) {
result.destinationAttributes_ = destinationAttributes_;
} else {
result.destinationAttributes_ = destinationAttributesBuilder_.build();
}
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
org.apache.rocketmq.shaded.com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(org.apache.rocketmq.shaded.com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(org.apache.rocketmq.shaded.com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
org.apache.rocketmq.shaded.com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
org.apache.rocketmq.shaded.com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(org.apache.rocketmq.shaded.com.google.protobuf.Message other) {
if (other instanceof org.apache.rocketmq.shaded.com.google.cloud.audit.RequestMetadata) {
return mergeFrom((org.apache.rocketmq.shaded.com.google.cloud.audit.RequestMetadata) other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.apache.rocketmq.shaded.com.google.cloud.audit.RequestMetadata other) {
if (other == org.apache.rocketmq.shaded.com.google.cloud.audit.RequestMetadata.getDefaultInstance()) return this;
if (!other.getCallerIp().isEmpty()) {
callerIp_ = other.callerIp_;
onChanged();
}
if (!other.getCallerSuppliedUserAgent().isEmpty()) {
callerSuppliedUserAgent_ = other.callerSuppliedUserAgent_;
onChanged();
}
if (!other.getCallerNetwork().isEmpty()) {
callerNetwork_ = other.callerNetwork_;
onChanged();
}
if (other.hasRequestAttributes()) {
mergeRequestAttributes(other.getRequestAttributes());
}
if (other.hasDestinationAttributes()) {
mergeDestinationAttributes(other.getDestinationAttributes());
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
org.apache.rocketmq.shaded.com.google.protobuf.CodedInputStream input,
org.apache.rocketmq.shaded.com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
org.apache.rocketmq.shaded.com.google.cloud.audit.RequestMetadata parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (org.apache.rocketmq.shaded.com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.apache.rocketmq.shaded.com.google.cloud.audit.RequestMetadata) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private java.lang.Object callerIp_ = "";
/**
*
*
*
* 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.
*
*
* string caller_ip = 1;
*
* @return The callerIp.
*/
public java.lang.String getCallerIp() {
java.lang.Object ref = callerIp_;
if (!(ref instanceof java.lang.String)) {
org.apache.rocketmq.shaded.com.google.protobuf.ByteString bs = (org.apache.rocketmq.shaded.com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
callerIp_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
*
*
* 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.
*
*
* string caller_ip = 1;
*
* @return The bytes for callerIp.
*/
public org.apache.rocketmq.shaded.com.google.protobuf.ByteString getCallerIpBytes() {
java.lang.Object ref = callerIp_;
if (ref instanceof String) {
org.apache.rocketmq.shaded.com.google.protobuf.ByteString b =
org.apache.rocketmq.shaded.com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
callerIp_ = b;
return b;
} else {
return (org.apache.rocketmq.shaded.com.google.protobuf.ByteString) ref;
}
}
/**
*
*
*
* 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.
*
*
* string caller_ip = 1;
*
* @param value The callerIp to set.
* @return This builder for chaining.
*/
public Builder setCallerIp(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
callerIp_ = value;
onChanged();
return this;
}
/**
*
*
*
* 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.
*
*
* string caller_ip = 1;
*
* @return This builder for chaining.
*/
public Builder clearCallerIp() {
callerIp_ = getDefaultInstance().getCallerIp();
onChanged();
return this;
}
/**
*
*
*
* 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.
*
*
* string caller_ip = 1;
*
* @param value The bytes for callerIp to set.
* @return This builder for chaining.
*/
public Builder setCallerIpBytes(org.apache.rocketmq.shaded.com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
callerIp_ = value;
onChanged();
return this;
}
private java.lang.Object callerSuppliedUserAgent_ = "";
/**
*
*
*
* 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;
*
* @return The callerSuppliedUserAgent.
*/
public java.lang.String getCallerSuppliedUserAgent() {
java.lang.Object ref = callerSuppliedUserAgent_;
if (!(ref instanceof java.lang.String)) {
org.apache.rocketmq.shaded.com.google.protobuf.ByteString bs = (org.apache.rocketmq.shaded.com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
callerSuppliedUserAgent_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
*
*
* 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;
*
* @return The bytes for callerSuppliedUserAgent.
*/
public org.apache.rocketmq.shaded.com.google.protobuf.ByteString getCallerSuppliedUserAgentBytes() {
java.lang.Object ref = callerSuppliedUserAgent_;
if (ref instanceof String) {
org.apache.rocketmq.shaded.com.google.protobuf.ByteString b =
org.apache.rocketmq.shaded.com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
callerSuppliedUserAgent_ = b;
return b;
} else {
return (org.apache.rocketmq.shaded.com.google.protobuf.ByteString) ref;
}
}
/**
*
*
*
* 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;
*
* @param value The callerSuppliedUserAgent to set.
* @return This builder for chaining.
*/
public Builder setCallerSuppliedUserAgent(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
callerSuppliedUserAgent_ = value;
onChanged();
return this;
}
/**
*
*
*
* 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;
*
* @return This builder for chaining.
*/
public Builder clearCallerSuppliedUserAgent() {
callerSuppliedUserAgent_ = getDefaultInstance().getCallerSuppliedUserAgent();
onChanged();
return this;
}
/**
*
*
*
* 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;
*
* @param value The bytes for callerSuppliedUserAgent to set.
* @return This builder for chaining.
*/
public Builder setCallerSuppliedUserAgentBytes(org.apache.rocketmq.shaded.com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
callerSuppliedUserAgent_ = value;
onChanged();
return this;
}
private java.lang.Object callerNetwork_ = "";
/**
*
*
*
* 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"
*
*
* string caller_network = 3;
*
* @return The callerNetwork.
*/
public java.lang.String getCallerNetwork() {
java.lang.Object ref = callerNetwork_;
if (!(ref instanceof java.lang.String)) {
org.apache.rocketmq.shaded.com.google.protobuf.ByteString bs = (org.apache.rocketmq.shaded.com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
callerNetwork_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
*
*
* 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"
*
*
* string caller_network = 3;
*
* @return The bytes for callerNetwork.
*/
public org.apache.rocketmq.shaded.com.google.protobuf.ByteString getCallerNetworkBytes() {
java.lang.Object ref = callerNetwork_;
if (ref instanceof String) {
org.apache.rocketmq.shaded.com.google.protobuf.ByteString b =
org.apache.rocketmq.shaded.com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
callerNetwork_ = b;
return b;
} else {
return (org.apache.rocketmq.shaded.com.google.protobuf.ByteString) ref;
}
}
/**
*
*
*
* 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"
*
*
* string caller_network = 3;
*
* @param value The callerNetwork to set.
* @return This builder for chaining.
*/
public Builder setCallerNetwork(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
callerNetwork_ = value;
onChanged();
return this;
}
/**
*
*
*
* 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"
*
*
* string caller_network = 3;
*
* @return This builder for chaining.
*/
public Builder clearCallerNetwork() {
callerNetwork_ = getDefaultInstance().getCallerNetwork();
onChanged();
return this;
}
/**
*
*
*
* 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"
*
*
* string caller_network = 3;
*
* @param value The bytes for callerNetwork to set.
* @return This builder for chaining.
*/
public Builder setCallerNetworkBytes(org.apache.rocketmq.shaded.com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
callerNetwork_ = value;
onChanged();
return this;
}
private org.apache.rocketmq.shaded.com.google.rpc.context.AttributeContext.Request requestAttributes_;
private org.apache.rocketmq.shaded.com.google.protobuf.SingleFieldBuilderV3<
org.apache.rocketmq.shaded.com.google.rpc.context.AttributeContext.Request,
org.apache.rocketmq.shaded.com.google.rpc.context.AttributeContext.Request.Builder,
org.apache.rocketmq.shaded.com.google.rpc.context.AttributeContext.RequestOrBuilder>
requestAttributesBuilder_;
/**
*
*
*
* 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`.
*
*
* .google.rpc.context.AttributeContext.Request request_attributes = 7;
*
* @return Whether the requestAttributes field is set.
*/
public boolean hasRequestAttributes() {
return requestAttributesBuilder_ != null || requestAttributes_ != null;
}
/**
*
*
*
* 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`.
*
*
* .google.rpc.context.AttributeContext.Request request_attributes = 7;
*
* @return The requestAttributes.
*/
public org.apache.rocketmq.shaded.com.google.rpc.context.AttributeContext.Request getRequestAttributes() {
if (requestAttributesBuilder_ == null) {
return requestAttributes_ == null
? org.apache.rocketmq.shaded.com.google.rpc.context.AttributeContext.Request.getDefaultInstance()
: requestAttributes_;
} else {
return requestAttributesBuilder_.getMessage();
}
}
/**
*
*
*
* 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`.
*
*
* .google.rpc.context.AttributeContext.Request request_attributes = 7;
*/
public Builder setRequestAttributes(org.apache.rocketmq.shaded.com.google.rpc.context.AttributeContext.Request value) {
if (requestAttributesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
requestAttributes_ = value;
onChanged();
} else {
requestAttributesBuilder_.setMessage(value);
}
return this;
}
/**
*
*
*
* 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`.
*
*
* .google.rpc.context.AttributeContext.Request request_attributes = 7;
*/
public Builder setRequestAttributes(
org.apache.rocketmq.shaded.com.google.rpc.context.AttributeContext.Request.Builder builderForValue) {
if (requestAttributesBuilder_ == null) {
requestAttributes_ = builderForValue.build();
onChanged();
} else {
requestAttributesBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
*
*
* 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`.
*
*
* .google.rpc.context.AttributeContext.Request request_attributes = 7;
*/
public Builder mergeRequestAttributes(org.apache.rocketmq.shaded.com.google.rpc.context.AttributeContext.Request value) {
if (requestAttributesBuilder_ == null) {
if (requestAttributes_ != null) {
requestAttributes_ =
org.apache.rocketmq.shaded.com.google.rpc.context.AttributeContext.Request.newBuilder(requestAttributes_)
.mergeFrom(value)
.buildPartial();
} else {
requestAttributes_ = value;
}
onChanged();
} else {
requestAttributesBuilder_.mergeFrom(value);
}
return this;
}
/**
*
*
*
* 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`.
*
*
* .google.rpc.context.AttributeContext.Request request_attributes = 7;
*/
public Builder clearRequestAttributes() {
if (requestAttributesBuilder_ == null) {
requestAttributes_ = null;
onChanged();
} else {
requestAttributes_ = null;
requestAttributesBuilder_ = null;
}
return this;
}
/**
*
*
*
* 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`.
*
*
* .google.rpc.context.AttributeContext.Request request_attributes = 7;
*/
public org.apache.rocketmq.shaded.com.google.rpc.context.AttributeContext.Request.Builder getRequestAttributesBuilder() {
onChanged();
return getRequestAttributesFieldBuilder().getBuilder();
}
/**
*
*
*
* 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`.
*
*
* .google.rpc.context.AttributeContext.Request request_attributes = 7;
*/
public org.apache.rocketmq.shaded.com.google.rpc.context.AttributeContext.RequestOrBuilder
getRequestAttributesOrBuilder() {
if (requestAttributesBuilder_ != null) {
return requestAttributesBuilder_.getMessageOrBuilder();
} else {
return requestAttributes_ == null
? org.apache.rocketmq.shaded.com.google.rpc.context.AttributeContext.Request.getDefaultInstance()
: requestAttributes_;
}
}
/**
*
*
*
* 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`.
*
*
* .google.rpc.context.AttributeContext.Request request_attributes = 7;
*/
private org.apache.rocketmq.shaded.com.google.protobuf.SingleFieldBuilderV3<
org.apache.rocketmq.shaded.com.google.rpc.context.AttributeContext.Request,
org.apache.rocketmq.shaded.com.google.rpc.context.AttributeContext.Request.Builder,
org.apache.rocketmq.shaded.com.google.rpc.context.AttributeContext.RequestOrBuilder>
getRequestAttributesFieldBuilder() {
if (requestAttributesBuilder_ == null) {
requestAttributesBuilder_ =
new org.apache.rocketmq.shaded.com.google.protobuf.SingleFieldBuilderV3<
org.apache.rocketmq.shaded.com.google.rpc.context.AttributeContext.Request,
org.apache.rocketmq.shaded.com.google.rpc.context.AttributeContext.Request.Builder,
org.apache.rocketmq.shaded.com.google.rpc.context.AttributeContext.RequestOrBuilder>(
getRequestAttributes(), getParentForChildren(), isClean());
requestAttributes_ = null;
}
return requestAttributesBuilder_;
}
private org.apache.rocketmq.shaded.com.google.rpc.context.AttributeContext.Peer destinationAttributes_;
private org.apache.rocketmq.shaded.com.google.protobuf.SingleFieldBuilderV3<
org.apache.rocketmq.shaded.com.google.rpc.context.AttributeContext.Peer,
org.apache.rocketmq.shaded.com.google.rpc.context.AttributeContext.Peer.Builder,
org.apache.rocketmq.shaded.com.google.rpc.context.AttributeContext.PeerOrBuilder>
destinationAttributesBuilder_;
/**
*
*
*
* 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.
*
*
* .google.rpc.context.AttributeContext.Peer destination_attributes = 8;
*
* @return Whether the destinationAttributes field is set.
*/
public boolean hasDestinationAttributes() {
return destinationAttributesBuilder_ != null || destinationAttributes_ != null;
}
/**
*
*
*
* 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.
*
*
* .google.rpc.context.AttributeContext.Peer destination_attributes = 8;
*
* @return The destinationAttributes.
*/
public org.apache.rocketmq.shaded.com.google.rpc.context.AttributeContext.Peer getDestinationAttributes() {
if (destinationAttributesBuilder_ == null) {
return destinationAttributes_ == null
? org.apache.rocketmq.shaded.com.google.rpc.context.AttributeContext.Peer.getDefaultInstance()
: destinationAttributes_;
} else {
return destinationAttributesBuilder_.getMessage();
}
}
/**
*
*
*
* 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.
*
*
* .google.rpc.context.AttributeContext.Peer destination_attributes = 8;
*/
public Builder setDestinationAttributes(org.apache.rocketmq.shaded.com.google.rpc.context.AttributeContext.Peer value) {
if (destinationAttributesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
destinationAttributes_ = value;
onChanged();
} else {
destinationAttributesBuilder_.setMessage(value);
}
return this;
}
/**
*
*
*
* 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.
*
*
* .google.rpc.context.AttributeContext.Peer destination_attributes = 8;
*/
public Builder setDestinationAttributes(
org.apache.rocketmq.shaded.com.google.rpc.context.AttributeContext.Peer.Builder builderForValue) {
if (destinationAttributesBuilder_ == null) {
destinationAttributes_ = builderForValue.build();
onChanged();
} else {
destinationAttributesBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
*
*
* 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.
*
*
* .google.rpc.context.AttributeContext.Peer destination_attributes = 8;
*/
public Builder mergeDestinationAttributes(org.apache.rocketmq.shaded.com.google.rpc.context.AttributeContext.Peer value) {
if (destinationAttributesBuilder_ == null) {
if (destinationAttributes_ != null) {
destinationAttributes_ =
org.apache.rocketmq.shaded.com.google.rpc.context.AttributeContext.Peer.newBuilder(destinationAttributes_)
.mergeFrom(value)
.buildPartial();
} else {
destinationAttributes_ = value;
}
onChanged();
} else {
destinationAttributesBuilder_.mergeFrom(value);
}
return this;
}
/**
*
*
*
* 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.
*
*
* .google.rpc.context.AttributeContext.Peer destination_attributes = 8;
*/
public Builder clearDestinationAttributes() {
if (destinationAttributesBuilder_ == null) {
destinationAttributes_ = null;
onChanged();
} else {
destinationAttributes_ = null;
destinationAttributesBuilder_ = null;
}
return this;
}
/**
*
*
*
* 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.
*
*
* .google.rpc.context.AttributeContext.Peer destination_attributes = 8;
*/
public org.apache.rocketmq.shaded.com.google.rpc.context.AttributeContext.Peer.Builder getDestinationAttributesBuilder() {
onChanged();
return getDestinationAttributesFieldBuilder().getBuilder();
}
/**
*
*
*
* 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.
*
*
* .google.rpc.context.AttributeContext.Peer destination_attributes = 8;
*/
public org.apache.rocketmq.shaded.com.google.rpc.context.AttributeContext.PeerOrBuilder
getDestinationAttributesOrBuilder() {
if (destinationAttributesBuilder_ != null) {
return destinationAttributesBuilder_.getMessageOrBuilder();
} else {
return destinationAttributes_ == null
? org.apache.rocketmq.shaded.com.google.rpc.context.AttributeContext.Peer.getDefaultInstance()
: destinationAttributes_;
}
}
/**
*
*
*
* 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.
*
*
* .google.rpc.context.AttributeContext.Peer destination_attributes = 8;
*/
private org.apache.rocketmq.shaded.com.google.protobuf.SingleFieldBuilderV3<
org.apache.rocketmq.shaded.com.google.rpc.context.AttributeContext.Peer,
org.apache.rocketmq.shaded.com.google.rpc.context.AttributeContext.Peer.Builder,
org.apache.rocketmq.shaded.com.google.rpc.context.AttributeContext.PeerOrBuilder>
getDestinationAttributesFieldBuilder() {
if (destinationAttributesBuilder_ == null) {
destinationAttributesBuilder_ =
new org.apache.rocketmq.shaded.com.google.protobuf.SingleFieldBuilderV3<
org.apache.rocketmq.shaded.com.google.rpc.context.AttributeContext.Peer,
org.apache.rocketmq.shaded.com.google.rpc.context.AttributeContext.Peer.Builder,
org.apache.rocketmq.shaded.com.google.rpc.context.AttributeContext.PeerOrBuilder>(
getDestinationAttributes(), getParentForChildren(), isClean());
destinationAttributes_ = null;
}
return destinationAttributesBuilder_;
}
@java.lang.Override
public final Builder setUnknownFields(final org.apache.rocketmq.shaded.com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final org.apache.rocketmq.shaded.com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:google.cloud.audit.RequestMetadata)
}
// @@protoc_insertion_point(class_scope:google.cloud.audit.RequestMetadata)
private static final org.apache.rocketmq.shaded.com.google.cloud.audit.RequestMetadata DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.apache.rocketmq.shaded.com.google.cloud.audit.RequestMetadata();
}
public static org.apache.rocketmq.shaded.com.google.cloud.audit.RequestMetadata getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final org.apache.rocketmq.shaded.com.google.protobuf.Parser PARSER =
new org.apache.rocketmq.shaded.com.google.protobuf.AbstractParser() {
@java.lang.Override
public RequestMetadata parsePartialFrom(
org.apache.rocketmq.shaded.com.google.protobuf.CodedInputStream input,
org.apache.rocketmq.shaded.com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws org.apache.rocketmq.shaded.com.google.protobuf.InvalidProtocolBufferException {
return new RequestMetadata(input, extensionRegistry);
}
};
public static org.apache.rocketmq.shaded.com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public org.apache.rocketmq.shaded.com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public org.apache.rocketmq.shaded.com.google.cloud.audit.RequestMetadata getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}