Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance. Project price only 1 $
You can buy this project and download/modify it how often you want.
/*
* 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;
/**
*
*
*
* Common audit log format for Google Cloud Platform API operations.
*
*
* Protobuf type {@code google.cloud.audit.AuditLog}
*/
public final class AuditLog extends org.apache.rocketmq.shaded.com.google.protobuf.GeneratedMessageV3
implements
// @@protoc_insertion_point(message_implements:google.cloud.audit.AuditLog)
AuditLogOrBuilder {
private static final long serialVersionUID = 0L;
// Use AuditLog.newBuilder() to construct.
private AuditLog(org.apache.rocketmq.shaded.com.google.protobuf.GeneratedMessageV3.Builder builder) {
super(builder);
}
private AuditLog() {
serviceName_ = "";
methodName_ = "";
resourceName_ = "";
authorizationInfo_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
return new AuditLog();
}
@java.lang.Override
public final org.apache.rocketmq.shaded.com.google.protobuf.UnknownFieldSet getUnknownFields() {
return this.unknownFields;
}
private AuditLog(
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();
}
int mutable_bitField0_ = 0;
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 18:
{
org.apache.rocketmq.shaded.com.google.rpc.Status.Builder subBuilder = null;
if (status_ != null) {
subBuilder = status_.toBuilder();
}
status_ = input.readMessage(org.apache.rocketmq.shaded.com.google.rpc.Status.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(status_);
status_ = subBuilder.buildPartial();
}
break;
}
case 26:
{
org.apache.rocketmq.shaded.com.google.cloud.audit.AuthenticationInfo.Builder subBuilder = null;
if (authenticationInfo_ != null) {
subBuilder = authenticationInfo_.toBuilder();
}
authenticationInfo_ =
input.readMessage(
org.apache.rocketmq.shaded.com.google.cloud.audit.AuthenticationInfo.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(authenticationInfo_);
authenticationInfo_ = subBuilder.buildPartial();
}
break;
}
case 34:
{
org.apache.rocketmq.shaded.com.google.cloud.audit.RequestMetadata.Builder subBuilder = null;
if (requestMetadata_ != null) {
subBuilder = requestMetadata_.toBuilder();
}
requestMetadata_ =
input.readMessage(
org.apache.rocketmq.shaded.com.google.cloud.audit.RequestMetadata.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(requestMetadata_);
requestMetadata_ = subBuilder.buildPartial();
}
break;
}
case 58:
{
java.lang.String s = input.readStringRequireUtf8();
serviceName_ = s;
break;
}
case 66:
{
java.lang.String s = input.readStringRequireUtf8();
methodName_ = s;
break;
}
case 74:
{
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
authorizationInfo_ =
new java.util.ArrayList();
mutable_bitField0_ |= 0x00000001;
}
authorizationInfo_.add(
input.readMessage(
org.apache.rocketmq.shaded.com.google.cloud.audit.AuthorizationInfo.parser(), extensionRegistry));
break;
}
case 90:
{
java.lang.String s = input.readStringRequireUtf8();
resourceName_ = s;
break;
}
case 96:
{
numResponseItems_ = input.readInt64();
break;
}
case 122:
{
org.apache.rocketmq.shaded.com.google.protobuf.Any.Builder subBuilder = null;
if (serviceData_ != null) {
subBuilder = serviceData_.toBuilder();
}
serviceData_ = input.readMessage(org.apache.rocketmq.shaded.com.google.protobuf.Any.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(serviceData_);
serviceData_ = subBuilder.buildPartial();
}
break;
}
case 130:
{
org.apache.rocketmq.shaded.com.google.protobuf.Struct.Builder subBuilder = null;
if (request_ != null) {
subBuilder = request_.toBuilder();
}
request_ = input.readMessage(org.apache.rocketmq.shaded.com.google.protobuf.Struct.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(request_);
request_ = subBuilder.buildPartial();
}
break;
}
case 138:
{
org.apache.rocketmq.shaded.com.google.protobuf.Struct.Builder subBuilder = null;
if (response_ != null) {
subBuilder = response_.toBuilder();
}
response_ = input.readMessage(org.apache.rocketmq.shaded.com.google.protobuf.Struct.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(response_);
response_ = subBuilder.buildPartial();
}
break;
}
case 146:
{
org.apache.rocketmq.shaded.com.google.protobuf.Struct.Builder subBuilder = null;
if (metadata_ != null) {
subBuilder = metadata_.toBuilder();
}
metadata_ = input.readMessage(org.apache.rocketmq.shaded.com.google.protobuf.Struct.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(metadata_);
metadata_ = subBuilder.buildPartial();
}
break;
}
case 154:
{
org.apache.rocketmq.shaded.com.google.protobuf.Struct.Builder subBuilder = null;
if (resourceOriginalState_ != null) {
subBuilder = resourceOriginalState_.toBuilder();
}
resourceOriginalState_ =
input.readMessage(org.apache.rocketmq.shaded.com.google.protobuf.Struct.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(resourceOriginalState_);
resourceOriginalState_ = subBuilder.buildPartial();
}
break;
}
case 162:
{
org.apache.rocketmq.shaded.com.google.cloud.audit.ResourceLocation.Builder subBuilder = null;
if (resourceLocation_ != null) {
subBuilder = resourceLocation_.toBuilder();
}
resourceLocation_ =
input.readMessage(
org.apache.rocketmq.shaded.com.google.cloud.audit.ResourceLocation.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(resourceLocation_);
resourceLocation_ = 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 {
if (((mutable_bitField0_ & 0x00000001) != 0)) {
authorizationInfo_ = java.util.Collections.unmodifiableList(authorizationInfo_);
}
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_AuditLog_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_AuditLog_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.rocketmq.shaded.com.google.cloud.audit.AuditLog.class, org.apache.rocketmq.shaded.com.google.cloud.audit.AuditLog.Builder.class);
}
public static final int SERVICE_NAME_FIELD_NUMBER = 7;
private volatile java.lang.Object serviceName_;
/**
*
*
*
* The name of the API service performing the operation. For example,
* `"compute.googleapis.com"`.
*
* The name of the API service performing the operation. For example,
* `"compute.googleapis.com"`.
*
*
* string service_name = 7;
*
* @return The bytes for serviceName.
*/
@java.lang.Override
public org.apache.rocketmq.shaded.com.google.protobuf.ByteString getServiceNameBytes() {
java.lang.Object ref = serviceName_;
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);
serviceName_ = b;
return b;
} else {
return (org.apache.rocketmq.shaded.com.google.protobuf.ByteString) ref;
}
}
public static final int METHOD_NAME_FIELD_NUMBER = 8;
private volatile java.lang.Object methodName_;
/**
*
*
*
* The name of the service method or operation.
* For API calls, this should be the name of the API method.
* For example,
* "google.cloud.bigquery.v2.TableService.InsertTable"
* "google.logging.v2.ConfigServiceV2.CreateSink"
*
* The name of the service method or operation.
* For API calls, this should be the name of the API method.
* For example,
* "google.cloud.bigquery.v2.TableService.InsertTable"
* "google.logging.v2.ConfigServiceV2.CreateSink"
*
*
* string method_name = 8;
*
* @return The bytes for methodName.
*/
@java.lang.Override
public org.apache.rocketmq.shaded.com.google.protobuf.ByteString getMethodNameBytes() {
java.lang.Object ref = methodName_;
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);
methodName_ = b;
return b;
} else {
return (org.apache.rocketmq.shaded.com.google.protobuf.ByteString) ref;
}
}
public static final int RESOURCE_NAME_FIELD_NUMBER = 11;
private volatile java.lang.Object resourceName_;
/**
*
*
*
* The resource or collection that is the target of the operation.
* The name is a scheme-less URI, not including the API service name.
* For example:
* "projects/PROJECT_ID/zones/us-central1-a/instances"
* "projects/PROJECT_ID/datasets/DATASET_ID"
*
* The resource or collection that is the target of the operation.
* The name is a scheme-less URI, not including the API service name.
* For example:
* "projects/PROJECT_ID/zones/us-central1-a/instances"
* "projects/PROJECT_ID/datasets/DATASET_ID"
*
*
* string resource_name = 11;
*
* @return The bytes for resourceName.
*/
@java.lang.Override
public org.apache.rocketmq.shaded.com.google.protobuf.ByteString getResourceNameBytes() {
java.lang.Object ref = resourceName_;
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);
resourceName_ = b;
return b;
} else {
return (org.apache.rocketmq.shaded.com.google.protobuf.ByteString) ref;
}
}
public static final int RESOURCE_LOCATION_FIELD_NUMBER = 20;
private org.apache.rocketmq.shaded.com.google.cloud.audit.ResourceLocation resourceLocation_;
/**
*
*
*
* The resource location information.
*
*
* .google.cloud.audit.ResourceLocation resource_location = 20;
*
* @return Whether the resourceLocation field is set.
*/
@java.lang.Override
public boolean hasResourceLocation() {
return resourceLocation_ != null;
}
/**
*
*
*
*
* .google.cloud.audit.ResourceLocation resource_location = 20;
*/
@java.lang.Override
public org.apache.rocketmq.shaded.com.google.cloud.audit.ResourceLocationOrBuilder getResourceLocationOrBuilder() {
return getResourceLocation();
}
public static final int RESOURCE_ORIGINAL_STATE_FIELD_NUMBER = 19;
private org.apache.rocketmq.shaded.com.google.protobuf.Struct resourceOriginalState_;
/**
*
*
*
* The resource's original state before mutation. Present only for
* operations which have successfully modified the targeted resource(s).
* In general, this field should contain all changed fields, except those
* that are already been included in `request`, `response`, `metadata` or
* `service_data` fields.
* When the JSON object represented here has a proto equivalent,
* the proto name will be indicated in the `@type` property.
*
*
* .google.protobuf.Struct resource_original_state = 19;
*
* @return Whether the resourceOriginalState field is set.
*/
@java.lang.Override
public boolean hasResourceOriginalState() {
return resourceOriginalState_ != null;
}
/**
*
*
*
* The resource's original state before mutation. Present only for
* operations which have successfully modified the targeted resource(s).
* In general, this field should contain all changed fields, except those
* that are already been included in `request`, `response`, `metadata` or
* `service_data` fields.
* When the JSON object represented here has a proto equivalent,
* the proto name will be indicated in the `@type` property.
*
* The resource's original state before mutation. Present only for
* operations which have successfully modified the targeted resource(s).
* In general, this field should contain all changed fields, except those
* that are already been included in `request`, `response`, `metadata` or
* `service_data` fields.
* When the JSON object represented here has a proto equivalent,
* the proto name will be indicated in the `@type` property.
*
*
* .google.protobuf.Struct resource_original_state = 19;
*/
@java.lang.Override
public org.apache.rocketmq.shaded.com.google.protobuf.StructOrBuilder getResourceOriginalStateOrBuilder() {
return getResourceOriginalState();
}
public static final int NUM_RESPONSE_ITEMS_FIELD_NUMBER = 12;
private long numResponseItems_;
/**
*
*
*
* The number of items returned from a List or Query API method,
* if applicable.
*
*
* int64 num_response_items = 12;
*
* @return The numResponseItems.
*/
@java.lang.Override
public long getNumResponseItems() {
return numResponseItems_;
}
public static final int STATUS_FIELD_NUMBER = 2;
private org.apache.rocketmq.shaded.com.google.rpc.Status status_;
/**
*
*
*
* The status of the overall operation.
*
*
* .google.rpc.Status status = 2;
*
* @return Whether the status field is set.
*/
@java.lang.Override
public boolean hasStatus() {
return status_ != null;
}
/**
*
*
*
* The status of the overall operation.
*
*
* .google.rpc.Status status = 2;
*
* @return The status.
*/
@java.lang.Override
public org.apache.rocketmq.shaded.com.google.rpc.Status getStatus() {
return status_ == null ? org.apache.rocketmq.shaded.com.google.rpc.Status.getDefaultInstance() : status_;
}
/**
*
*
*
* The status of the overall operation.
*
*
* .google.rpc.Status status = 2;
*/
@java.lang.Override
public org.apache.rocketmq.shaded.com.google.rpc.StatusOrBuilder getStatusOrBuilder() {
return getStatus();
}
public static final int AUTHENTICATION_INFO_FIELD_NUMBER = 3;
private org.apache.rocketmq.shaded.com.google.cloud.audit.AuthenticationInfo authenticationInfo_;
/**
*
*
*
* Authentication information.
*
*
* .google.cloud.audit.AuthenticationInfo authentication_info = 3;
*
* @return Whether the authenticationInfo field is set.
*/
@java.lang.Override
public boolean hasAuthenticationInfo() {
return authenticationInfo_ != null;
}
/**
*
*
*
*
* .google.cloud.audit.AuthenticationInfo authentication_info = 3;
*/
@java.lang.Override
public org.apache.rocketmq.shaded.com.google.cloud.audit.AuthenticationInfoOrBuilder getAuthenticationInfoOrBuilder() {
return getAuthenticationInfo();
}
public static final int AUTHORIZATION_INFO_FIELD_NUMBER = 9;
private java.util.List authorizationInfo_;
/**
*
*
*
* Authorization information. If there are multiple
* resources or permissions involved, then there is
* one AuthorizationInfo element for each {resource, permission} tuple.
*
* Authorization information. If there are multiple
* resources or permissions involved, then there is
* one AuthorizationInfo element for each {resource, permission} tuple.
*
* Authorization information. If there are multiple
* resources or permissions involved, then there is
* one AuthorizationInfo element for each {resource, permission} tuple.
*
*
* repeated .google.cloud.audit.AuthorizationInfo authorization_info = 9;
*/
@java.lang.Override
public int getAuthorizationInfoCount() {
return authorizationInfo_.size();
}
/**
*
*
*
* Authorization information. If there are multiple
* resources or permissions involved, then there is
* one AuthorizationInfo element for each {resource, permission} tuple.
*
* Authorization information. If there are multiple
* resources or permissions involved, then there is
* one AuthorizationInfo element for each {resource, permission} tuple.
*
*
* repeated .google.cloud.audit.AuthorizationInfo authorization_info = 9;
*/
@java.lang.Override
public org.apache.rocketmq.shaded.com.google.cloud.audit.AuthorizationInfoOrBuilder getAuthorizationInfoOrBuilder(
int index) {
return authorizationInfo_.get(index);
}
public static final int REQUEST_METADATA_FIELD_NUMBER = 4;
private org.apache.rocketmq.shaded.com.google.cloud.audit.RequestMetadata requestMetadata_;
/**
*
*
*
* Metadata about the operation.
*
*
* .google.cloud.audit.RequestMetadata request_metadata = 4;
*
* @return Whether the requestMetadata field is set.
*/
@java.lang.Override
public boolean hasRequestMetadata() {
return requestMetadata_ != null;
}
/**
*
*
*
*
* .google.cloud.audit.RequestMetadata request_metadata = 4;
*/
@java.lang.Override
public org.apache.rocketmq.shaded.com.google.cloud.audit.RequestMetadataOrBuilder getRequestMetadataOrBuilder() {
return getRequestMetadata();
}
public static final int REQUEST_FIELD_NUMBER = 16;
private org.apache.rocketmq.shaded.com.google.protobuf.Struct request_;
/**
*
*
*
* The operation request. This may not include all request parameters,
* such as those that are too large, privacy-sensitive, or duplicated
* elsewhere in the log record.
* It should never include user-generated data, such as file contents.
* When the JSON object represented here has a proto equivalent, the proto
* name will be indicated in the `@type` property.
*
*
* .google.protobuf.Struct request = 16;
*
* @return Whether the request field is set.
*/
@java.lang.Override
public boolean hasRequest() {
return request_ != null;
}
/**
*
*
*
* The operation request. This may not include all request parameters,
* such as those that are too large, privacy-sensitive, or duplicated
* elsewhere in the log record.
* It should never include user-generated data, such as file contents.
* When the JSON object represented here has a proto equivalent, the proto
* name will be indicated in the `@type` property.
*
* The operation request. This may not include all request parameters,
* such as those that are too large, privacy-sensitive, or duplicated
* elsewhere in the log record.
* It should never include user-generated data, such as file contents.
* When the JSON object represented here has a proto equivalent, the proto
* name will be indicated in the `@type` property.
*
*
* .google.protobuf.Struct request = 16;
*/
@java.lang.Override
public org.apache.rocketmq.shaded.com.google.protobuf.StructOrBuilder getRequestOrBuilder() {
return getRequest();
}
public static final int RESPONSE_FIELD_NUMBER = 17;
private org.apache.rocketmq.shaded.com.google.protobuf.Struct response_;
/**
*
*
*
* The operation response. This may not include all response elements,
* such as those that are too large, privacy-sensitive, or duplicated
* elsewhere in the log record.
* It should never include user-generated data, such as file contents.
* When the JSON object represented here has a proto equivalent, the proto
* name will be indicated in the `@type` property.
*
*
* .google.protobuf.Struct response = 17;
*
* @return Whether the response field is set.
*/
@java.lang.Override
public boolean hasResponse() {
return response_ != null;
}
/**
*
*
*
* The operation response. This may not include all response elements,
* such as those that are too large, privacy-sensitive, or duplicated
* elsewhere in the log record.
* It should never include user-generated data, such as file contents.
* When the JSON object represented here has a proto equivalent, the proto
* name will be indicated in the `@type` property.
*
* The operation response. This may not include all response elements,
* such as those that are too large, privacy-sensitive, or duplicated
* elsewhere in the log record.
* It should never include user-generated data, such as file contents.
* When the JSON object represented here has a proto equivalent, the proto
* name will be indicated in the `@type` property.
*
*
* .google.protobuf.Struct response = 17;
*/
@java.lang.Override
public org.apache.rocketmq.shaded.com.google.protobuf.StructOrBuilder getResponseOrBuilder() {
return getResponse();
}
public static final int METADATA_FIELD_NUMBER = 18;
private org.apache.rocketmq.shaded.com.google.protobuf.Struct metadata_;
/**
*
*
*
* Other service-specific data about the request, response, and other
* information associated with the current audited event.
*
*
* .google.protobuf.Struct metadata = 18;
*
* @return Whether the metadata field is set.
*/
@java.lang.Override
public boolean hasMetadata() {
return metadata_ != null;
}
/**
*
*
*
* Other service-specific data about the request, response, and other
* information associated with the current audited event.
*
* The name of the API service performing the operation. For example,
* `"compute.googleapis.com"`.
*
*
* string service_name = 7;
*
* @return The bytes for serviceName.
*/
public org.apache.rocketmq.shaded.com.google.protobuf.ByteString getServiceNameBytes() {
java.lang.Object ref = serviceName_;
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);
serviceName_ = b;
return b;
} else {
return (org.apache.rocketmq.shaded.com.google.protobuf.ByteString) ref;
}
}
/**
*
*
*
* The name of the API service performing the operation. For example,
* `"compute.googleapis.com"`.
*
*
* string service_name = 7;
*
* @param value The serviceName to set.
* @return This builder for chaining.
*/
public Builder setServiceName(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
serviceName_ = value;
onChanged();
return this;
}
/**
*
*
*
* The name of the API service performing the operation. For example,
* `"compute.googleapis.com"`.
*
*
* string service_name = 7;
*
* @return This builder for chaining.
*/
public Builder clearServiceName() {
serviceName_ = getDefaultInstance().getServiceName();
onChanged();
return this;
}
/**
*
*
*
* The name of the API service performing the operation. For example,
* `"compute.googleapis.com"`.
*
*
* string service_name = 7;
*
* @param value The bytes for serviceName to set.
* @return This builder for chaining.
*/
public Builder setServiceNameBytes(org.apache.rocketmq.shaded.com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
serviceName_ = value;
onChanged();
return this;
}
private java.lang.Object methodName_ = "";
/**
*
*
*
* The name of the service method or operation.
* For API calls, this should be the name of the API method.
* For example,
* "google.cloud.bigquery.v2.TableService.InsertTable"
* "google.logging.v2.ConfigServiceV2.CreateSink"
*
* The name of the service method or operation.
* For API calls, this should be the name of the API method.
* For example,
* "google.cloud.bigquery.v2.TableService.InsertTable"
* "google.logging.v2.ConfigServiceV2.CreateSink"
*
*
* string method_name = 8;
*
* @return The bytes for methodName.
*/
public org.apache.rocketmq.shaded.com.google.protobuf.ByteString getMethodNameBytes() {
java.lang.Object ref = methodName_;
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);
methodName_ = b;
return b;
} else {
return (org.apache.rocketmq.shaded.com.google.protobuf.ByteString) ref;
}
}
/**
*
*
*
* The name of the service method or operation.
* For API calls, this should be the name of the API method.
* For example,
* "google.cloud.bigquery.v2.TableService.InsertTable"
* "google.logging.v2.ConfigServiceV2.CreateSink"
*
*
* string method_name = 8;
*
* @param value The methodName to set.
* @return This builder for chaining.
*/
public Builder setMethodName(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
methodName_ = value;
onChanged();
return this;
}
/**
*
*
*
* The name of the service method or operation.
* For API calls, this should be the name of the API method.
* For example,
* "google.cloud.bigquery.v2.TableService.InsertTable"
* "google.logging.v2.ConfigServiceV2.CreateSink"
*
*
* string method_name = 8;
*
* @return This builder for chaining.
*/
public Builder clearMethodName() {
methodName_ = getDefaultInstance().getMethodName();
onChanged();
return this;
}
/**
*
*
*
* The name of the service method or operation.
* For API calls, this should be the name of the API method.
* For example,
* "google.cloud.bigquery.v2.TableService.InsertTable"
* "google.logging.v2.ConfigServiceV2.CreateSink"
*
*
* string method_name = 8;
*
* @param value The bytes for methodName to set.
* @return This builder for chaining.
*/
public Builder setMethodNameBytes(org.apache.rocketmq.shaded.com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
methodName_ = value;
onChanged();
return this;
}
private java.lang.Object resourceName_ = "";
/**
*
*
*
* The resource or collection that is the target of the operation.
* The name is a scheme-less URI, not including the API service name.
* For example:
* "projects/PROJECT_ID/zones/us-central1-a/instances"
* "projects/PROJECT_ID/datasets/DATASET_ID"
*
* The resource or collection that is the target of the operation.
* The name is a scheme-less URI, not including the API service name.
* For example:
* "projects/PROJECT_ID/zones/us-central1-a/instances"
* "projects/PROJECT_ID/datasets/DATASET_ID"
*
*
* string resource_name = 11;
*
* @return The bytes for resourceName.
*/
public org.apache.rocketmq.shaded.com.google.protobuf.ByteString getResourceNameBytes() {
java.lang.Object ref = resourceName_;
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);
resourceName_ = b;
return b;
} else {
return (org.apache.rocketmq.shaded.com.google.protobuf.ByteString) ref;
}
}
/**
*
*
*
* The resource or collection that is the target of the operation.
* The name is a scheme-less URI, not including the API service name.
* For example:
* "projects/PROJECT_ID/zones/us-central1-a/instances"
* "projects/PROJECT_ID/datasets/DATASET_ID"
*
*
* string resource_name = 11;
*
* @param value The resourceName to set.
* @return This builder for chaining.
*/
public Builder setResourceName(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
resourceName_ = value;
onChanged();
return this;
}
/**
*
*
*
* The resource or collection that is the target of the operation.
* The name is a scheme-less URI, not including the API service name.
* For example:
* "projects/PROJECT_ID/zones/us-central1-a/instances"
* "projects/PROJECT_ID/datasets/DATASET_ID"
*
*
* string resource_name = 11;
*
* @return This builder for chaining.
*/
public Builder clearResourceName() {
resourceName_ = getDefaultInstance().getResourceName();
onChanged();
return this;
}
/**
*
*
*
* The resource or collection that is the target of the operation.
* The name is a scheme-less URI, not including the API service name.
* For example:
* "projects/PROJECT_ID/zones/us-central1-a/instances"
* "projects/PROJECT_ID/datasets/DATASET_ID"
*
*
* string resource_name = 11;
*
* @param value The bytes for resourceName to set.
* @return This builder for chaining.
*/
public Builder setResourceNameBytes(org.apache.rocketmq.shaded.com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
resourceName_ = value;
onChanged();
return this;
}
private org.apache.rocketmq.shaded.com.google.cloud.audit.ResourceLocation resourceLocation_;
private org.apache.rocketmq.shaded.com.google.protobuf.SingleFieldBuilderV3<
org.apache.rocketmq.shaded.com.google.cloud.audit.ResourceLocation,
org.apache.rocketmq.shaded.com.google.cloud.audit.ResourceLocation.Builder,
org.apache.rocketmq.shaded.com.google.cloud.audit.ResourceLocationOrBuilder>
resourceLocationBuilder_;
/**
*
*
*
* The resource location information.
*
*
* .google.cloud.audit.ResourceLocation resource_location = 20;
*
* @return Whether the resourceLocation field is set.
*/
public boolean hasResourceLocation() {
return resourceLocationBuilder_ != null || resourceLocation_ != null;
}
/**
*
*
*
* The resource's original state before mutation. Present only for
* operations which have successfully modified the targeted resource(s).
* In general, this field should contain all changed fields, except those
* that are already been included in `request`, `response`, `metadata` or
* `service_data` fields.
* When the JSON object represented here has a proto equivalent,
* the proto name will be indicated in the `@type` property.
*
*
* .google.protobuf.Struct resource_original_state = 19;
*
* @return Whether the resourceOriginalState field is set.
*/
public boolean hasResourceOriginalState() {
return resourceOriginalStateBuilder_ != null || resourceOriginalState_ != null;
}
/**
*
*
*
* The resource's original state before mutation. Present only for
* operations which have successfully modified the targeted resource(s).
* In general, this field should contain all changed fields, except those
* that are already been included in `request`, `response`, `metadata` or
* `service_data` fields.
* When the JSON object represented here has a proto equivalent,
* the proto name will be indicated in the `@type` property.
*
* The resource's original state before mutation. Present only for
* operations which have successfully modified the targeted resource(s).
* In general, this field should contain all changed fields, except those
* that are already been included in `request`, `response`, `metadata` or
* `service_data` fields.
* When the JSON object represented here has a proto equivalent,
* the proto name will be indicated in the `@type` property.
*
* The resource's original state before mutation. Present only for
* operations which have successfully modified the targeted resource(s).
* In general, this field should contain all changed fields, except those
* that are already been included in `request`, `response`, `metadata` or
* `service_data` fields.
* When the JSON object represented here has a proto equivalent,
* the proto name will be indicated in the `@type` property.
*
* The resource's original state before mutation. Present only for
* operations which have successfully modified the targeted resource(s).
* In general, this field should contain all changed fields, except those
* that are already been included in `request`, `response`, `metadata` or
* `service_data` fields.
* When the JSON object represented here has a proto equivalent,
* the proto name will be indicated in the `@type` property.
*
* The resource's original state before mutation. Present only for
* operations which have successfully modified the targeted resource(s).
* In general, this field should contain all changed fields, except those
* that are already been included in `request`, `response`, `metadata` or
* `service_data` fields.
* When the JSON object represented here has a proto equivalent,
* the proto name will be indicated in the `@type` property.
*
* The resource's original state before mutation. Present only for
* operations which have successfully modified the targeted resource(s).
* In general, this field should contain all changed fields, except those
* that are already been included in `request`, `response`, `metadata` or
* `service_data` fields.
* When the JSON object represented here has a proto equivalent,
* the proto name will be indicated in the `@type` property.
*
* The resource's original state before mutation. Present only for
* operations which have successfully modified the targeted resource(s).
* In general, this field should contain all changed fields, except those
* that are already been included in `request`, `response`, `metadata` or
* `service_data` fields.
* When the JSON object represented here has a proto equivalent,
* the proto name will be indicated in the `@type` property.
*
* The resource's original state before mutation. Present only for
* operations which have successfully modified the targeted resource(s).
* In general, this field should contain all changed fields, except those
* that are already been included in `request`, `response`, `metadata` or
* `service_data` fields.
* When the JSON object represented here has a proto equivalent,
* the proto name will be indicated in the `@type` property.
*
* Authorization information. If there are multiple
* resources or permissions involved, then there is
* one AuthorizationInfo element for each {resource, permission} tuple.
*
* Authorization information. If there are multiple
* resources or permissions involved, then there is
* one AuthorizationInfo element for each {resource, permission} tuple.
*
*
* repeated .google.cloud.audit.AuthorizationInfo authorization_info = 9;
*/
public int getAuthorizationInfoCount() {
if (authorizationInfoBuilder_ == null) {
return authorizationInfo_.size();
} else {
return authorizationInfoBuilder_.getCount();
}
}
/**
*
*
*
* Authorization information. If there are multiple
* resources or permissions involved, then there is
* one AuthorizationInfo element for each {resource, permission} tuple.
*
* Authorization information. If there are multiple
* resources or permissions involved, then there is
* one AuthorizationInfo element for each {resource, permission} tuple.
*
* Authorization information. If there are multiple
* resources or permissions involved, then there is
* one AuthorizationInfo element for each {resource, permission} tuple.
*
* Authorization information. If there are multiple
* resources or permissions involved, then there is
* one AuthorizationInfo element for each {resource, permission} tuple.
*
* Authorization information. If there are multiple
* resources or permissions involved, then there is
* one AuthorizationInfo element for each {resource, permission} tuple.
*
* Authorization information. If there are multiple
* resources or permissions involved, then there is
* one AuthorizationInfo element for each {resource, permission} tuple.
*
* Authorization information. If there are multiple
* resources or permissions involved, then there is
* one AuthorizationInfo element for each {resource, permission} tuple.
*
* Authorization information. If there are multiple
* resources or permissions involved, then there is
* one AuthorizationInfo element for each {resource, permission} tuple.
*
* Authorization information. If there are multiple
* resources or permissions involved, then there is
* one AuthorizationInfo element for each {resource, permission} tuple.
*
* Authorization information. If there are multiple
* resources or permissions involved, then there is
* one AuthorizationInfo element for each {resource, permission} tuple.
*
* Authorization information. If there are multiple
* resources or permissions involved, then there is
* one AuthorizationInfo element for each {resource, permission} tuple.
*
* Authorization information. If there are multiple
* resources or permissions involved, then there is
* one AuthorizationInfo element for each {resource, permission} tuple.
*
* Authorization information. If there are multiple
* resources or permissions involved, then there is
* one AuthorizationInfo element for each {resource, permission} tuple.
*
* Authorization information. If there are multiple
* resources or permissions involved, then there is
* one AuthorizationInfo element for each {resource, permission} tuple.
*
* Authorization information. If there are multiple
* resources or permissions involved, then there is
* one AuthorizationInfo element for each {resource, permission} tuple.
*
* Authorization information. If there are multiple
* resources or permissions involved, then there is
* one AuthorizationInfo element for each {resource, permission} tuple.
*
* The operation request. This may not include all request parameters,
* such as those that are too large, privacy-sensitive, or duplicated
* elsewhere in the log record.
* It should never include user-generated data, such as file contents.
* When the JSON object represented here has a proto equivalent, the proto
* name will be indicated in the `@type` property.
*
*
* .google.protobuf.Struct request = 16;
*
* @return Whether the request field is set.
*/
public boolean hasRequest() {
return requestBuilder_ != null || request_ != null;
}
/**
*
*
*
* The operation request. This may not include all request parameters,
* such as those that are too large, privacy-sensitive, or duplicated
* elsewhere in the log record.
* It should never include user-generated data, such as file contents.
* When the JSON object represented here has a proto equivalent, the proto
* name will be indicated in the `@type` property.
*
* The operation request. This may not include all request parameters,
* such as those that are too large, privacy-sensitive, or duplicated
* elsewhere in the log record.
* It should never include user-generated data, such as file contents.
* When the JSON object represented here has a proto equivalent, the proto
* name will be indicated in the `@type` property.
*
* The operation request. This may not include all request parameters,
* such as those that are too large, privacy-sensitive, or duplicated
* elsewhere in the log record.
* It should never include user-generated data, such as file contents.
* When the JSON object represented here has a proto equivalent, the proto
* name will be indicated in the `@type` property.
*
* The operation request. This may not include all request parameters,
* such as those that are too large, privacy-sensitive, or duplicated
* elsewhere in the log record.
* It should never include user-generated data, such as file contents.
* When the JSON object represented here has a proto equivalent, the proto
* name will be indicated in the `@type` property.
*
* The operation request. This may not include all request parameters,
* such as those that are too large, privacy-sensitive, or duplicated
* elsewhere in the log record.
* It should never include user-generated data, such as file contents.
* When the JSON object represented here has a proto equivalent, the proto
* name will be indicated in the `@type` property.
*
* The operation request. This may not include all request parameters,
* such as those that are too large, privacy-sensitive, or duplicated
* elsewhere in the log record.
* It should never include user-generated data, such as file contents.
* When the JSON object represented here has a proto equivalent, the proto
* name will be indicated in the `@type` property.
*
* The operation request. This may not include all request parameters,
* such as those that are too large, privacy-sensitive, or duplicated
* elsewhere in the log record.
* It should never include user-generated data, such as file contents.
* When the JSON object represented here has a proto equivalent, the proto
* name will be indicated in the `@type` property.
*
* The operation request. This may not include all request parameters,
* such as those that are too large, privacy-sensitive, or duplicated
* elsewhere in the log record.
* It should never include user-generated data, such as file contents.
* When the JSON object represented here has a proto equivalent, the proto
* name will be indicated in the `@type` property.
*
* The operation response. This may not include all response elements,
* such as those that are too large, privacy-sensitive, or duplicated
* elsewhere in the log record.
* It should never include user-generated data, such as file contents.
* When the JSON object represented here has a proto equivalent, the proto
* name will be indicated in the `@type` property.
*
*
* .google.protobuf.Struct response = 17;
*
* @return Whether the response field is set.
*/
public boolean hasResponse() {
return responseBuilder_ != null || response_ != null;
}
/**
*
*
*
* The operation response. This may not include all response elements,
* such as those that are too large, privacy-sensitive, or duplicated
* elsewhere in the log record.
* It should never include user-generated data, such as file contents.
* When the JSON object represented here has a proto equivalent, the proto
* name will be indicated in the `@type` property.
*
* The operation response. This may not include all response elements,
* such as those that are too large, privacy-sensitive, or duplicated
* elsewhere in the log record.
* It should never include user-generated data, such as file contents.
* When the JSON object represented here has a proto equivalent, the proto
* name will be indicated in the `@type` property.
*
* The operation response. This may not include all response elements,
* such as those that are too large, privacy-sensitive, or duplicated
* elsewhere in the log record.
* It should never include user-generated data, such as file contents.
* When the JSON object represented here has a proto equivalent, the proto
* name will be indicated in the `@type` property.
*
* The operation response. This may not include all response elements,
* such as those that are too large, privacy-sensitive, or duplicated
* elsewhere in the log record.
* It should never include user-generated data, such as file contents.
* When the JSON object represented here has a proto equivalent, the proto
* name will be indicated in the `@type` property.
*
* The operation response. This may not include all response elements,
* such as those that are too large, privacy-sensitive, or duplicated
* elsewhere in the log record.
* It should never include user-generated data, such as file contents.
* When the JSON object represented here has a proto equivalent, the proto
* name will be indicated in the `@type` property.
*
* The operation response. This may not include all response elements,
* such as those that are too large, privacy-sensitive, or duplicated
* elsewhere in the log record.
* It should never include user-generated data, such as file contents.
* When the JSON object represented here has a proto equivalent, the proto
* name will be indicated in the `@type` property.
*
* The operation response. This may not include all response elements,
* such as those that are too large, privacy-sensitive, or duplicated
* elsewhere in the log record.
* It should never include user-generated data, such as file contents.
* When the JSON object represented here has a proto equivalent, the proto
* name will be indicated in the `@type` property.
*
* The operation response. This may not include all response elements,
* such as those that are too large, privacy-sensitive, or duplicated
* elsewhere in the log record.
* It should never include user-generated data, such as file contents.
* When the JSON object represented here has a proto equivalent, the proto
* name will be indicated in the `@type` property.
*