com.google.cloud.audit.OrgPolicyViolationInfoOrBuilder Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of proto-google-common-protos Show documentation
Show all versions of proto-google-common-protos Show documentation
PROTO library for proto-google-common-protos
/*
* Copyright 2024 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
// Protobuf Java Version: 3.25.5
package com.google.cloud.audit;
public interface OrgPolicyViolationInfoOrBuilder
extends
// @@protoc_insertion_point(interface_extends:google.cloud.audit.OrgPolicyViolationInfo)
com.google.protobuf.MessageOrBuilder {
/**
*
*
*
* Optional. Resource payload that is currently in scope and is subjected to orgpolicy
* conditions. This payload may be the subset of the actual Resource that may
* come in the request. This payload should not contain any core content.
*
*
* .google.protobuf.Struct payload = 1 [(.google.api.field_behavior) = OPTIONAL];
*
* @return Whether the payload field is set.
*/
boolean hasPayload();
/**
*
*
*
* Optional. Resource payload that is currently in scope and is subjected to orgpolicy
* conditions. This payload may be the subset of the actual Resource that may
* come in the request. This payload should not contain any core content.
*
*
* .google.protobuf.Struct payload = 1 [(.google.api.field_behavior) = OPTIONAL];
*
* @return The payload.
*/
com.google.protobuf.Struct getPayload();
/**
*
*
*
* Optional. Resource payload that is currently in scope and is subjected to orgpolicy
* conditions. This payload may be the subset of the actual Resource that may
* come in the request. This payload should not contain any core content.
*
*
* .google.protobuf.Struct payload = 1 [(.google.api.field_behavior) = OPTIONAL];
*/
com.google.protobuf.StructOrBuilder getPayloadOrBuilder();
/**
*
*
*
* Optional. Resource type that the orgpolicy is checked against.
* Example: compute.googleapis.com/Instance, store.googleapis.com/bucket
*
*
* string resource_type = 2 [(.google.api.field_behavior) = OPTIONAL];
*
* @return The resourceType.
*/
java.lang.String getResourceType();
/**
*
*
*
* Optional. Resource type that the orgpolicy is checked against.
* Example: compute.googleapis.com/Instance, store.googleapis.com/bucket
*
*
* string resource_type = 2 [(.google.api.field_behavior) = OPTIONAL];
*
* @return The bytes for resourceType.
*/
com.google.protobuf.ByteString getResourceTypeBytes();
/**
*
*
*
* Optional. Tags referenced on the resource at the time of evaluation. These also
* include the federated tags, if they are supplied in the CheckOrgPolicy
* or CheckCustomConstraints Requests.
*
* Optional field as of now. These tags are the Cloud tags that are
* available on the resource during the policy evaluation and will
* be available as part of the OrgPolicy check response for logging purposes.
*
*
* map<string, string> resource_tags = 3 [(.google.api.field_behavior) = OPTIONAL];
*
*/
int getResourceTagsCount();
/**
*
*
*
* Optional. Tags referenced on the resource at the time of evaluation. These also
* include the federated tags, if they are supplied in the CheckOrgPolicy
* or CheckCustomConstraints Requests.
*
* Optional field as of now. These tags are the Cloud tags that are
* available on the resource during the policy evaluation and will
* be available as part of the OrgPolicy check response for logging purposes.
*
*
* map<string, string> resource_tags = 3 [(.google.api.field_behavior) = OPTIONAL];
*
*/
boolean containsResourceTags(java.lang.String key);
/** Use {@link #getResourceTagsMap()} instead. */
@java.lang.Deprecated
java.util.Map getResourceTags();
/**
*
*
*
* Optional. Tags referenced on the resource at the time of evaluation. These also
* include the federated tags, if they are supplied in the CheckOrgPolicy
* or CheckCustomConstraints Requests.
*
* Optional field as of now. These tags are the Cloud tags that are
* available on the resource during the policy evaluation and will
* be available as part of the OrgPolicy check response for logging purposes.
*
*
* map<string, string> resource_tags = 3 [(.google.api.field_behavior) = OPTIONAL];
*
*/
java.util.Map getResourceTagsMap();
/**
*
*
*
* Optional. Tags referenced on the resource at the time of evaluation. These also
* include the federated tags, if they are supplied in the CheckOrgPolicy
* or CheckCustomConstraints Requests.
*
* Optional field as of now. These tags are the Cloud tags that are
* available on the resource during the policy evaluation and will
* be available as part of the OrgPolicy check response for logging purposes.
*
*
* map<string, string> resource_tags = 3 [(.google.api.field_behavior) = OPTIONAL];
*
*/
/* nullable */
java.lang.String getResourceTagsOrDefault(
java.lang.String key,
/* nullable */
java.lang.String defaultValue);
/**
*
*
*
* Optional. Tags referenced on the resource at the time of evaluation. These also
* include the federated tags, if they are supplied in the CheckOrgPolicy
* or CheckCustomConstraints Requests.
*
* Optional field as of now. These tags are the Cloud tags that are
* available on the resource during the policy evaluation and will
* be available as part of the OrgPolicy check response for logging purposes.
*
*
* map<string, string> resource_tags = 3 [(.google.api.field_behavior) = OPTIONAL];
*
*/
java.lang.String getResourceTagsOrThrow(java.lang.String key);
/**
*
*
*
* Optional. Policy violations
*
*
*
* repeated .google.cloud.audit.ViolationInfo violation_info = 4 [(.google.api.field_behavior) = OPTIONAL];
*
*/
java.util.List getViolationInfoList();
/**
*
*
*
* Optional. Policy violations
*
*
*
* repeated .google.cloud.audit.ViolationInfo violation_info = 4 [(.google.api.field_behavior) = OPTIONAL];
*
*/
com.google.cloud.audit.ViolationInfo getViolationInfo(int index);
/**
*
*
*
* Optional. Policy violations
*
*
*
* repeated .google.cloud.audit.ViolationInfo violation_info = 4 [(.google.api.field_behavior) = OPTIONAL];
*
*/
int getViolationInfoCount();
/**
*
*
*
* Optional. Policy violations
*
*
*
* repeated .google.cloud.audit.ViolationInfo violation_info = 4 [(.google.api.field_behavior) = OPTIONAL];
*
*/
java.util.List extends com.google.cloud.audit.ViolationInfoOrBuilder>
getViolationInfoOrBuilderList();
/**
*
*
*
* Optional. Policy violations
*
*
*
* repeated .google.cloud.audit.ViolationInfo violation_info = 4 [(.google.api.field_behavior) = OPTIONAL];
*
*/
com.google.cloud.audit.ViolationInfoOrBuilder getViolationInfoOrBuilder(int index);
}