All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.apache.rocketmq.shaded.com.google.cloud.audit.RequestMetadata Maven / Gradle / Ivy

There is a newer version: 5.0.7
Show newest version
/*
 * Copyright 2020 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     https://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: google/cloud/audit/audit_log.proto

package org.apache.rocketmq.shaded.com.google.cloud.audit;

/**
 *
 *
 * 
 * Metadata about the request.
 * 
* * Protobuf type {@code google.cloud.audit.RequestMetadata} */ public final class RequestMetadata extends org.apache.rocketmq.shaded.com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.audit.RequestMetadata) RequestMetadataOrBuilder { private static final long serialVersionUID = 0L; // Use RequestMetadata.newBuilder() to construct. private RequestMetadata(org.apache.rocketmq.shaded.com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private RequestMetadata() { callerIp_ = ""; callerSuppliedUserAgent_ = ""; callerNetwork_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new RequestMetadata(); } @java.lang.Override public final org.apache.rocketmq.shaded.com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private RequestMetadata( 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 { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } org.apache.rocketmq.shaded.com.google.protobuf.UnknownFieldSet.Builder unknownFields = org.apache.rocketmq.shaded.com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { java.lang.String s = input.readStringRequireUtf8(); callerIp_ = s; break; } case 18: { java.lang.String s = input.readStringRequireUtf8(); callerSuppliedUserAgent_ = s; break; } case 26: { java.lang.String s = input.readStringRequireUtf8(); callerNetwork_ = s; break; } case 58: { org.apache.rocketmq.shaded.com.google.rpc.context.AttributeContext.Request.Builder subBuilder = null; if (requestAttributes_ != null) { subBuilder = requestAttributes_.toBuilder(); } requestAttributes_ = input.readMessage( org.apache.rocketmq.shaded.com.google.rpc.context.AttributeContext.Request.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(requestAttributes_); requestAttributes_ = subBuilder.buildPartial(); } break; } case 66: { org.apache.rocketmq.shaded.com.google.rpc.context.AttributeContext.Peer.Builder subBuilder = null; if (destinationAttributes_ != null) { subBuilder = destinationAttributes_.toBuilder(); } destinationAttributes_ = input.readMessage( org.apache.rocketmq.shaded.com.google.rpc.context.AttributeContext.Peer.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(destinationAttributes_); destinationAttributes_ = subBuilder.buildPartial(); } break; } default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (org.apache.rocketmq.shaded.com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (org.apache.rocketmq.shaded.com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new org.apache.rocketmq.shaded.com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } 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); } public static final int CALLER_IP_FIELD_NUMBER = 1; private volatile 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. */ @java.lang.Override public java.lang.String getCallerIp() { java.lang.Object ref = callerIp_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { 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; } } /** * * *
   * 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. */ @java.lang.Override public org.apache.rocketmq.shaded.com.google.protobuf.ByteString getCallerIpBytes() { java.lang.Object ref = callerIp_; if (ref instanceof java.lang.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; } } public static final int CALLER_SUPPLIED_USER_AGENT_FIELD_NUMBER = 2; private volatile 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. */ @java.lang.Override public java.lang.String getCallerSuppliedUserAgent() { java.lang.Object ref = callerSuppliedUserAgent_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { 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; } } /** * * *
   * 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. */ @java.lang.Override public org.apache.rocketmq.shaded.com.google.protobuf.ByteString getCallerSuppliedUserAgentBytes() { java.lang.Object ref = callerSuppliedUserAgent_; if (ref instanceof java.lang.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; } } public static final int CALLER_NETWORK_FIELD_NUMBER = 3; private volatile 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. */ @java.lang.Override public java.lang.String getCallerNetwork() { java.lang.Object ref = callerNetwork_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { 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; } } /** * * *
   * 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. */ @java.lang.Override public org.apache.rocketmq.shaded.com.google.protobuf.ByteString getCallerNetworkBytes() { java.lang.Object ref = callerNetwork_; if (ref instanceof java.lang.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; } } public static final int REQUEST_ATTRIBUTES_FIELD_NUMBER = 7; private org.apache.rocketmq.shaded.com.google.rpc.context.AttributeContext.Request 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; * * @return Whether the requestAttributes field is set. */ @java.lang.Override public boolean hasRequestAttributes() { return 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. */ @java.lang.Override public org.apache.rocketmq.shaded.com.google.rpc.context.AttributeContext.Request getRequestAttributes() { 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; */ @java.lang.Override public org.apache.rocketmq.shaded.com.google.rpc.context.AttributeContext.RequestOrBuilder getRequestAttributesOrBuilder() { return getRequestAttributes(); } public static final int DESTINATION_ATTRIBUTES_FIELD_NUMBER = 8; private org.apache.rocketmq.shaded.com.google.rpc.context.AttributeContext.Peer 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; * * @return Whether the destinationAttributes field is set. */ @java.lang.Override public boolean hasDestinationAttributes() { return 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. */ @java.lang.Override public org.apache.rocketmq.shaded.com.google.rpc.context.AttributeContext.Peer getDestinationAttributes() { 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; */ @java.lang.Override public org.apache.rocketmq.shaded.com.google.rpc.context.AttributeContext.PeerOrBuilder getDestinationAttributesOrBuilder() { return getDestinationAttributes(); } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(org.apache.rocketmq.shaded.com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!org.apache.rocketmq.shaded.com.google.protobuf.GeneratedMessageV3.isStringEmpty(callerIp_)) { org.apache.rocketmq.shaded.com.google.protobuf.GeneratedMessageV3.writeString(output, 1, callerIp_); } if (!org.apache.rocketmq.shaded.com.google.protobuf.GeneratedMessageV3.isStringEmpty(callerSuppliedUserAgent_)) { org.apache.rocketmq.shaded.com.google.protobuf.GeneratedMessageV3.writeString(output, 2, callerSuppliedUserAgent_); } if (!org.apache.rocketmq.shaded.com.google.protobuf.GeneratedMessageV3.isStringEmpty(callerNetwork_)) { org.apache.rocketmq.shaded.com.google.protobuf.GeneratedMessageV3.writeString(output, 3, callerNetwork_); } if (requestAttributes_ != null) { output.writeMessage(7, getRequestAttributes()); } if (destinationAttributes_ != null) { output.writeMessage(8, getDestinationAttributes()); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!org.apache.rocketmq.shaded.com.google.protobuf.GeneratedMessageV3.isStringEmpty(callerIp_)) { size += org.apache.rocketmq.shaded.com.google.protobuf.GeneratedMessageV3.computeStringSize(1, callerIp_); } if (!org.apache.rocketmq.shaded.com.google.protobuf.GeneratedMessageV3.isStringEmpty(callerSuppliedUserAgent_)) { size += org.apache.rocketmq.shaded.com.google.protobuf.GeneratedMessageV3.computeStringSize(2, callerSuppliedUserAgent_); } if (!org.apache.rocketmq.shaded.com.google.protobuf.GeneratedMessageV3.isStringEmpty(callerNetwork_)) { size += org.apache.rocketmq.shaded.com.google.protobuf.GeneratedMessageV3.computeStringSize(3, callerNetwork_); } if (requestAttributes_ != null) { size += org.apache.rocketmq.shaded.com.google.protobuf.CodedOutputStream.computeMessageSize(7, getRequestAttributes()); } if (destinationAttributes_ != null) { size += org.apache.rocketmq.shaded.com.google.protobuf.CodedOutputStream.computeMessageSize(8, getDestinationAttributes()); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.apache.rocketmq.shaded.com.google.cloud.audit.RequestMetadata)) { return super.equals(obj); } org.apache.rocketmq.shaded.com.google.cloud.audit.RequestMetadata other = (org.apache.rocketmq.shaded.com.google.cloud.audit.RequestMetadata) obj; if (!getCallerIp().equals(other.getCallerIp())) return false; if (!getCallerSuppliedUserAgent().equals(other.getCallerSuppliedUserAgent())) return false; if (!getCallerNetwork().equals(other.getCallerNetwork())) return false; if (hasRequestAttributes() != other.hasRequestAttributes()) return false; if (hasRequestAttributes()) { if (!getRequestAttributes().equals(other.getRequestAttributes())) return false; } if (hasDestinationAttributes() != other.hasDestinationAttributes()) return false; if (hasDestinationAttributes()) { if (!getDestinationAttributes().equals(other.getDestinationAttributes())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + CALLER_IP_FIELD_NUMBER; hash = (53 * hash) + getCallerIp().hashCode(); hash = (37 * hash) + CALLER_SUPPLIED_USER_AGENT_FIELD_NUMBER; hash = (53 * hash) + getCallerSuppliedUserAgent().hashCode(); hash = (37 * hash) + CALLER_NETWORK_FIELD_NUMBER; hash = (53 * hash) + getCallerNetwork().hashCode(); if (hasRequestAttributes()) { hash = (37 * hash) + REQUEST_ATTRIBUTES_FIELD_NUMBER; hash = (53 * hash) + getRequestAttributes().hashCode(); } if (hasDestinationAttributes()) { hash = (37 * hash) + DESTINATION_ATTRIBUTES_FIELD_NUMBER; hash = (53 * hash) + getDestinationAttributes().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.apache.rocketmq.shaded.com.google.cloud.audit.RequestMetadata parseFrom(java.nio.ByteBuffer data) throws org.apache.rocketmq.shaded.com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.rocketmq.shaded.com.google.cloud.audit.RequestMetadata parseFrom( java.nio.ByteBuffer data, org.apache.rocketmq.shaded.com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws org.apache.rocketmq.shaded.com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.rocketmq.shaded.com.google.cloud.audit.RequestMetadata parseFrom( org.apache.rocketmq.shaded.com.google.protobuf.ByteString data) throws org.apache.rocketmq.shaded.com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.rocketmq.shaded.com.google.cloud.audit.RequestMetadata parseFrom( org.apache.rocketmq.shaded.com.google.protobuf.ByteString data, org.apache.rocketmq.shaded.com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws org.apache.rocketmq.shaded.com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.rocketmq.shaded.com.google.cloud.audit.RequestMetadata parseFrom(byte[] data) throws org.apache.rocketmq.shaded.com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.apache.rocketmq.shaded.com.google.cloud.audit.RequestMetadata parseFrom( byte[] data, org.apache.rocketmq.shaded.com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws org.apache.rocketmq.shaded.com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.apache.rocketmq.shaded.com.google.cloud.audit.RequestMetadata parseFrom(java.io.InputStream input) throws java.io.IOException { return org.apache.rocketmq.shaded.com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static org.apache.rocketmq.shaded.com.google.cloud.audit.RequestMetadata parseFrom( java.io.InputStream input, org.apache.rocketmq.shaded.com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return org.apache.rocketmq.shaded.com.google.protobuf.GeneratedMessageV3.parseWithIOException( PARSER, input, extensionRegistry); } public static org.apache.rocketmq.shaded.com.google.cloud.audit.RequestMetadata parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return org.apache.rocketmq.shaded.com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static org.apache.rocketmq.shaded.com.google.cloud.audit.RequestMetadata parseDelimitedFrom( java.io.InputStream input, org.apache.rocketmq.shaded.com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return org.apache.rocketmq.shaded.com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( PARSER, input, extensionRegistry); } public static org.apache.rocketmq.shaded.com.google.cloud.audit.RequestMetadata parseFrom( org.apache.rocketmq.shaded.com.google.protobuf.CodedInputStream input) throws java.io.IOException { return org.apache.rocketmq.shaded.com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static org.apache.rocketmq.shaded.com.google.cloud.audit.RequestMetadata parseFrom( org.apache.rocketmq.shaded.com.google.protobuf.CodedInputStream input, org.apache.rocketmq.shaded.com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return org.apache.rocketmq.shaded.com.google.protobuf.GeneratedMessageV3.parseWithIOException( PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(org.apache.rocketmq.shaded.com.google.cloud.audit.RequestMetadata prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType(org.apache.rocketmq.shaded.com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * * *
   * Metadata about the request.
   * 
* * Protobuf type {@code google.cloud.audit.RequestMetadata} */ public static final class Builder extends org.apache.rocketmq.shaded.com.google.protobuf.GeneratedMessageV3.Builder 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; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy