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

com.google.cloud.securitycenter.v1.ResourceValueConfig Maven / Gradle / Ivy

There is a newer version: 2.63.0
Show newest version
/*
 * 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/securitycenter/v1/resource_value_config.proto

// Protobuf Java Version: 3.25.5
package com.google.cloud.securitycenter.v1;

/**
 *
 *
 * 
 * A resource value configuration (RVC) is a mapping configuration of user's
 * resources to resource values. Used in Attack path simulations.
 * 
* * Protobuf type {@code google.cloud.securitycenter.v1.ResourceValueConfig} */ public final class ResourceValueConfig extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.securitycenter.v1.ResourceValueConfig) ResourceValueConfigOrBuilder { private static final long serialVersionUID = 0L; // Use ResourceValueConfig.newBuilder() to construct. private ResourceValueConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ResourceValueConfig() { name_ = ""; resourceValue_ = 0; tagValues_ = com.google.protobuf.LazyStringArrayList.emptyList(); resourceType_ = ""; scope_ = ""; description_ = ""; cloudProvider_ = 0; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ResourceValueConfig(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.securitycenter.v1.ResourceValueConfigProto .internal_static_google_cloud_securitycenter_v1_ResourceValueConfig_descriptor; } @SuppressWarnings({"rawtypes"}) @java.lang.Override protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( int number) { switch (number) { case 6: return internalGetResourceLabelsSelector(); default: throw new RuntimeException("Invalid map field number: " + number); } } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.securitycenter.v1.ResourceValueConfigProto .internal_static_google_cloud_securitycenter_v1_ResourceValueConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.cloud.securitycenter.v1.ResourceValueConfig.class, com.google.cloud.securitycenter.v1.ResourceValueConfig.Builder.class); } public interface SensitiveDataProtectionMappingOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.securitycenter.v1.ResourceValueConfig.SensitiveDataProtectionMapping) com.google.protobuf.MessageOrBuilder { /** * * *
     * Resource value mapping for high-sensitivity Sensitive Data Protection
     * findings
     * 
* * .google.cloud.securitycenter.v1.ResourceValue high_sensitivity_mapping = 1; * * @return The enum numeric value on the wire for highSensitivityMapping. */ int getHighSensitivityMappingValue(); /** * * *
     * Resource value mapping for high-sensitivity Sensitive Data Protection
     * findings
     * 
* * .google.cloud.securitycenter.v1.ResourceValue high_sensitivity_mapping = 1; * * @return The highSensitivityMapping. */ com.google.cloud.securitycenter.v1.ResourceValue getHighSensitivityMapping(); /** * * *
     * Resource value mapping for medium-sensitivity Sensitive Data Protection
     * findings
     * 
* * .google.cloud.securitycenter.v1.ResourceValue medium_sensitivity_mapping = 2; * * @return The enum numeric value on the wire for mediumSensitivityMapping. */ int getMediumSensitivityMappingValue(); /** * * *
     * Resource value mapping for medium-sensitivity Sensitive Data Protection
     * findings
     * 
* * .google.cloud.securitycenter.v1.ResourceValue medium_sensitivity_mapping = 2; * * @return The mediumSensitivityMapping. */ com.google.cloud.securitycenter.v1.ResourceValue getMediumSensitivityMapping(); } /** * * *
   * Resource value mapping for Sensitive Data Protection findings.
   * If any of these mappings have a resource value that is not unspecified,
   * the resource_value field will be ignored when reading this configuration.
   * 
* * Protobuf type {@code * google.cloud.securitycenter.v1.ResourceValueConfig.SensitiveDataProtectionMapping} */ public static final class SensitiveDataProtectionMapping extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.securitycenter.v1.ResourceValueConfig.SensitiveDataProtectionMapping) SensitiveDataProtectionMappingOrBuilder { private static final long serialVersionUID = 0L; // Use SensitiveDataProtectionMapping.newBuilder() to construct. private SensitiveDataProtectionMapping( com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private SensitiveDataProtectionMapping() { highSensitivityMapping_ = 0; mediumSensitivityMapping_ = 0; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new SensitiveDataProtectionMapping(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.securitycenter.v1.ResourceValueConfigProto .internal_static_google_cloud_securitycenter_v1_ResourceValueConfig_SensitiveDataProtectionMapping_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.securitycenter.v1.ResourceValueConfigProto .internal_static_google_cloud_securitycenter_v1_ResourceValueConfig_SensitiveDataProtectionMapping_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.cloud.securitycenter.v1.ResourceValueConfig.SensitiveDataProtectionMapping .class, com.google.cloud.securitycenter.v1.ResourceValueConfig.SensitiveDataProtectionMapping .Builder.class); } public static final int HIGH_SENSITIVITY_MAPPING_FIELD_NUMBER = 1; private int highSensitivityMapping_ = 0; /** * * *
     * Resource value mapping for high-sensitivity Sensitive Data Protection
     * findings
     * 
* * .google.cloud.securitycenter.v1.ResourceValue high_sensitivity_mapping = 1; * * @return The enum numeric value on the wire for highSensitivityMapping. */ @java.lang.Override public int getHighSensitivityMappingValue() { return highSensitivityMapping_; } /** * * *
     * Resource value mapping for high-sensitivity Sensitive Data Protection
     * findings
     * 
* * .google.cloud.securitycenter.v1.ResourceValue high_sensitivity_mapping = 1; * * @return The highSensitivityMapping. */ @java.lang.Override public com.google.cloud.securitycenter.v1.ResourceValue getHighSensitivityMapping() { com.google.cloud.securitycenter.v1.ResourceValue result = com.google.cloud.securitycenter.v1.ResourceValue.forNumber(highSensitivityMapping_); return result == null ? com.google.cloud.securitycenter.v1.ResourceValue.UNRECOGNIZED : result; } public static final int MEDIUM_SENSITIVITY_MAPPING_FIELD_NUMBER = 2; private int mediumSensitivityMapping_ = 0; /** * * *
     * Resource value mapping for medium-sensitivity Sensitive Data Protection
     * findings
     * 
* * .google.cloud.securitycenter.v1.ResourceValue medium_sensitivity_mapping = 2; * * @return The enum numeric value on the wire for mediumSensitivityMapping. */ @java.lang.Override public int getMediumSensitivityMappingValue() { return mediumSensitivityMapping_; } /** * * *
     * Resource value mapping for medium-sensitivity Sensitive Data Protection
     * findings
     * 
* * .google.cloud.securitycenter.v1.ResourceValue medium_sensitivity_mapping = 2; * * @return The mediumSensitivityMapping. */ @java.lang.Override public com.google.cloud.securitycenter.v1.ResourceValue getMediumSensitivityMapping() { com.google.cloud.securitycenter.v1.ResourceValue result = com.google.cloud.securitycenter.v1.ResourceValue.forNumber(mediumSensitivityMapping_); return result == null ? com.google.cloud.securitycenter.v1.ResourceValue.UNRECOGNIZED : result; } 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(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (highSensitivityMapping_ != com.google.cloud.securitycenter.v1.ResourceValue.RESOURCE_VALUE_UNSPECIFIED .getNumber()) { output.writeEnum(1, highSensitivityMapping_); } if (mediumSensitivityMapping_ != com.google.cloud.securitycenter.v1.ResourceValue.RESOURCE_VALUE_UNSPECIFIED .getNumber()) { output.writeEnum(2, mediumSensitivityMapping_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (highSensitivityMapping_ != com.google.cloud.securitycenter.v1.ResourceValue.RESOURCE_VALUE_UNSPECIFIED .getNumber()) { size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, highSensitivityMapping_); } if (mediumSensitivityMapping_ != com.google.cloud.securitycenter.v1.ResourceValue.RESOURCE_VALUE_UNSPECIFIED .getNumber()) { size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, mediumSensitivityMapping_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.google.cloud.securitycenter.v1.ResourceValueConfig.SensitiveDataProtectionMapping)) { return super.equals(obj); } com.google.cloud.securitycenter.v1.ResourceValueConfig.SensitiveDataProtectionMapping other = (com.google.cloud.securitycenter.v1.ResourceValueConfig.SensitiveDataProtectionMapping) obj; if (highSensitivityMapping_ != other.highSensitivityMapping_) return false; if (mediumSensitivityMapping_ != other.mediumSensitivityMapping_) return false; if (!getUnknownFields().equals(other.getUnknownFields())) 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) + HIGH_SENSITIVITY_MAPPING_FIELD_NUMBER; hash = (53 * hash) + highSensitivityMapping_; hash = (37 * hash) + MEDIUM_SENSITIVITY_MAPPING_FIELD_NUMBER; hash = (53 * hash) + mediumSensitivityMapping_; hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.securitycenter.v1.ResourceValueConfig .SensitiveDataProtectionMapping parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.cloud.securitycenter.v1.ResourceValueConfig .SensitiveDataProtectionMapping parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.cloud.securitycenter.v1.ResourceValueConfig .SensitiveDataProtectionMapping parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.cloud.securitycenter.v1.ResourceValueConfig .SensitiveDataProtectionMapping parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.cloud.securitycenter.v1.ResourceValueConfig .SensitiveDataProtectionMapping parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.cloud.securitycenter.v1.ResourceValueConfig .SensitiveDataProtectionMapping parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.cloud.securitycenter.v1.ResourceValueConfig .SensitiveDataProtectionMapping parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static com.google.cloud.securitycenter.v1.ResourceValueConfig .SensitiveDataProtectionMapping parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException( PARSER, input, extensionRegistry); } public static com.google.cloud.securitycenter.v1.ResourceValueConfig .SensitiveDataProtectionMapping parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.securitycenter.v1.ResourceValueConfig .SensitiveDataProtectionMapping parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( PARSER, input, extensionRegistry); } public static com.google.cloud.securitycenter.v1.ResourceValueConfig .SensitiveDataProtectionMapping parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static com.google.cloud.securitycenter.v1.ResourceValueConfig .SensitiveDataProtectionMapping parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return 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( com.google.cloud.securitycenter.v1.ResourceValueConfig.SensitiveDataProtectionMapping 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( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * * *
     * Resource value mapping for Sensitive Data Protection findings.
     * If any of these mappings have a resource value that is not unspecified,
     * the resource_value field will be ignored when reading this configuration.
     * 
* * Protobuf type {@code * google.cloud.securitycenter.v1.ResourceValueConfig.SensitiveDataProtectionMapping} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.securitycenter.v1.ResourceValueConfig.SensitiveDataProtectionMapping) com.google.cloud.securitycenter.v1.ResourceValueConfig .SensitiveDataProtectionMappingOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.securitycenter.v1.ResourceValueConfigProto .internal_static_google_cloud_securitycenter_v1_ResourceValueConfig_SensitiveDataProtectionMapping_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.securitycenter.v1.ResourceValueConfigProto .internal_static_google_cloud_securitycenter_v1_ResourceValueConfig_SensitiveDataProtectionMapping_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.cloud.securitycenter.v1.ResourceValueConfig .SensitiveDataProtectionMapping.class, com.google.cloud.securitycenter.v1.ResourceValueConfig .SensitiveDataProtectionMapping.Builder.class); } // Construct using // com.google.cloud.securitycenter.v1.ResourceValueConfig.SensitiveDataProtectionMapping.newBuilder() private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; highSensitivityMapping_ = 0; mediumSensitivityMapping_ = 0; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.cloud.securitycenter.v1.ResourceValueConfigProto .internal_static_google_cloud_securitycenter_v1_ResourceValueConfig_SensitiveDataProtectionMapping_descriptor; } @java.lang.Override public com.google.cloud.securitycenter.v1.ResourceValueConfig.SensitiveDataProtectionMapping getDefaultInstanceForType() { return com.google.cloud.securitycenter.v1.ResourceValueConfig.SensitiveDataProtectionMapping .getDefaultInstance(); } @java.lang.Override public com.google.cloud.securitycenter.v1.ResourceValueConfig.SensitiveDataProtectionMapping build() { com.google.cloud.securitycenter.v1.ResourceValueConfig.SensitiveDataProtectionMapping result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.cloud.securitycenter.v1.ResourceValueConfig.SensitiveDataProtectionMapping buildPartial() { com.google.cloud.securitycenter.v1.ResourceValueConfig.SensitiveDataProtectionMapping result = new com.google.cloud.securitycenter.v1.ResourceValueConfig .SensitiveDataProtectionMapping(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0( com.google.cloud.securitycenter.v1.ResourceValueConfig.SensitiveDataProtectionMapping result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.highSensitivityMapping_ = highSensitivityMapping_; } if (((from_bitField0_ & 0x00000002) != 0)) { result.mediumSensitivityMapping_ = mediumSensitivityMapping_; } } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.securitycenter.v1.ResourceValueConfig.SensitiveDataProtectionMapping) { return mergeFrom( (com.google.cloud.securitycenter.v1.ResourceValueConfig .SensitiveDataProtectionMapping) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom( com.google.cloud.securitycenter.v1.ResourceValueConfig.SensitiveDataProtectionMapping other) { if (other == com.google.cloud.securitycenter.v1.ResourceValueConfig.SensitiveDataProtectionMapping .getDefaultInstance()) return this; if (other.highSensitivityMapping_ != 0) { setHighSensitivityMappingValue(other.getHighSensitivityMappingValue()); } if (other.mediumSensitivityMapping_ != 0) { setMediumSensitivityMappingValue(other.getMediumSensitivityMappingValue()); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 8: { highSensitivityMapping_ = input.readEnum(); bitField0_ |= 0x00000001; break; } // case 8 case 16: { mediumSensitivityMapping_ = input.readEnum(); bitField0_ |= 0x00000002; break; } // case 16 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private int highSensitivityMapping_ = 0; /** * * *
       * Resource value mapping for high-sensitivity Sensitive Data Protection
       * findings
       * 
* * .google.cloud.securitycenter.v1.ResourceValue high_sensitivity_mapping = 1; * * @return The enum numeric value on the wire for highSensitivityMapping. */ @java.lang.Override public int getHighSensitivityMappingValue() { return highSensitivityMapping_; } /** * * *
       * Resource value mapping for high-sensitivity Sensitive Data Protection
       * findings
       * 
* * .google.cloud.securitycenter.v1.ResourceValue high_sensitivity_mapping = 1; * * @param value The enum numeric value on the wire for highSensitivityMapping to set. * @return This builder for chaining. */ public Builder setHighSensitivityMappingValue(int value) { highSensitivityMapping_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** * * *
       * Resource value mapping for high-sensitivity Sensitive Data Protection
       * findings
       * 
* * .google.cloud.securitycenter.v1.ResourceValue high_sensitivity_mapping = 1; * * @return The highSensitivityMapping. */ @java.lang.Override public com.google.cloud.securitycenter.v1.ResourceValue getHighSensitivityMapping() { com.google.cloud.securitycenter.v1.ResourceValue result = com.google.cloud.securitycenter.v1.ResourceValue.forNumber(highSensitivityMapping_); return result == null ? com.google.cloud.securitycenter.v1.ResourceValue.UNRECOGNIZED : result; } /** * * *
       * Resource value mapping for high-sensitivity Sensitive Data Protection
       * findings
       * 
* * .google.cloud.securitycenter.v1.ResourceValue high_sensitivity_mapping = 1; * * @param value The highSensitivityMapping to set. * @return This builder for chaining. */ public Builder setHighSensitivityMapping( com.google.cloud.securitycenter.v1.ResourceValue value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; highSensitivityMapping_ = value.getNumber(); onChanged(); return this; } /** * * *
       * Resource value mapping for high-sensitivity Sensitive Data Protection
       * findings
       * 
* * .google.cloud.securitycenter.v1.ResourceValue high_sensitivity_mapping = 1; * * @return This builder for chaining. */ public Builder clearHighSensitivityMapping() { bitField0_ = (bitField0_ & ~0x00000001); highSensitivityMapping_ = 0; onChanged(); return this; } private int mediumSensitivityMapping_ = 0; /** * * *
       * Resource value mapping for medium-sensitivity Sensitive Data Protection
       * findings
       * 
* * .google.cloud.securitycenter.v1.ResourceValue medium_sensitivity_mapping = 2; * * @return The enum numeric value on the wire for mediumSensitivityMapping. */ @java.lang.Override public int getMediumSensitivityMappingValue() { return mediumSensitivityMapping_; } /** * * *
       * Resource value mapping for medium-sensitivity Sensitive Data Protection
       * findings
       * 
* * .google.cloud.securitycenter.v1.ResourceValue medium_sensitivity_mapping = 2; * * @param value The enum numeric value on the wire for mediumSensitivityMapping to set. * @return This builder for chaining. */ public Builder setMediumSensitivityMappingValue(int value) { mediumSensitivityMapping_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** * * *
       * Resource value mapping for medium-sensitivity Sensitive Data Protection
       * findings
       * 
* * .google.cloud.securitycenter.v1.ResourceValue medium_sensitivity_mapping = 2; * * @return The mediumSensitivityMapping. */ @java.lang.Override public com.google.cloud.securitycenter.v1.ResourceValue getMediumSensitivityMapping() { com.google.cloud.securitycenter.v1.ResourceValue result = com.google.cloud.securitycenter.v1.ResourceValue.forNumber(mediumSensitivityMapping_); return result == null ? com.google.cloud.securitycenter.v1.ResourceValue.UNRECOGNIZED : result; } /** * * *
       * Resource value mapping for medium-sensitivity Sensitive Data Protection
       * findings
       * 
* * .google.cloud.securitycenter.v1.ResourceValue medium_sensitivity_mapping = 2; * * @param value The mediumSensitivityMapping to set. * @return This builder for chaining. */ public Builder setMediumSensitivityMapping( com.google.cloud.securitycenter.v1.ResourceValue value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; mediumSensitivityMapping_ = value.getNumber(); onChanged(); return this; } /** * * *
       * Resource value mapping for medium-sensitivity Sensitive Data Protection
       * findings
       * 
* * .google.cloud.securitycenter.v1.ResourceValue medium_sensitivity_mapping = 2; * * @return This builder for chaining. */ public Builder clearMediumSensitivityMapping() { bitField0_ = (bitField0_ & ~0x00000002); mediumSensitivityMapping_ = 0; onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:google.cloud.securitycenter.v1.ResourceValueConfig.SensitiveDataProtectionMapping) } // @@protoc_insertion_point(class_scope:google.cloud.securitycenter.v1.ResourceValueConfig.SensitiveDataProtectionMapping) private static final com.google.cloud.securitycenter.v1.ResourceValueConfig .SensitiveDataProtectionMapping DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.securitycenter.v1.ResourceValueConfig .SensitiveDataProtectionMapping(); } public static com.google.cloud.securitycenter.v1.ResourceValueConfig .SensitiveDataProtectionMapping getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public SensitiveDataProtectionMapping parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException() .setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public com.google.cloud.securitycenter.v1.ResourceValueConfig.SensitiveDataProtectionMapping getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } private int bitField0_; public static final int NAME_FIELD_NUMBER = 1; @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** * * *
   * Name for the resource value configuration
   * 
* * string name = 1; * * @return The name. */ @java.lang.Override public java.lang.String getName() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** * * *
   * Name for the resource value configuration
   * 
* * string name = 1; * * @return The bytes for name. */ @java.lang.Override public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int RESOURCE_VALUE_FIELD_NUMBER = 2; private int resourceValue_ = 0; /** * * *
   * Required. Resource value level this expression represents
   * 
* * * .google.cloud.securitycenter.v1.ResourceValue resource_value = 2 [(.google.api.field_behavior) = REQUIRED]; * * * @return The enum numeric value on the wire for resourceValue. */ @java.lang.Override public int getResourceValueValue() { return resourceValue_; } /** * * *
   * Required. Resource value level this expression represents
   * 
* * * .google.cloud.securitycenter.v1.ResourceValue resource_value = 2 [(.google.api.field_behavior) = REQUIRED]; * * * @return The resourceValue. */ @java.lang.Override public com.google.cloud.securitycenter.v1.ResourceValue getResourceValue() { com.google.cloud.securitycenter.v1.ResourceValue result = com.google.cloud.securitycenter.v1.ResourceValue.forNumber(resourceValue_); return result == null ? com.google.cloud.securitycenter.v1.ResourceValue.UNRECOGNIZED : result; } public static final int TAG_VALUES_FIELD_NUMBER = 3; @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList tagValues_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** * * *
   * Required. Tag values combined with `AND` to check against.
   * Values in the form "tagValues/123"
   * Example: `[ "tagValues/123", "tagValues/456", "tagValues/789" ]`
   * https://cloud.google.com/resource-manager/docs/tags/tags-creating-and-managing
   * 
* * repeated string tag_values = 3 [(.google.api.field_behavior) = REQUIRED]; * * @return A list containing the tagValues. */ public com.google.protobuf.ProtocolStringList getTagValuesList() { return tagValues_; } /** * * *
   * Required. Tag values combined with `AND` to check against.
   * Values in the form "tagValues/123"
   * Example: `[ "tagValues/123", "tagValues/456", "tagValues/789" ]`
   * https://cloud.google.com/resource-manager/docs/tags/tags-creating-and-managing
   * 
* * repeated string tag_values = 3 [(.google.api.field_behavior) = REQUIRED]; * * @return The count of tagValues. */ public int getTagValuesCount() { return tagValues_.size(); } /** * * *
   * Required. Tag values combined with `AND` to check against.
   * Values in the form "tagValues/123"
   * Example: `[ "tagValues/123", "tagValues/456", "tagValues/789" ]`
   * https://cloud.google.com/resource-manager/docs/tags/tags-creating-and-managing
   * 
* * repeated string tag_values = 3 [(.google.api.field_behavior) = REQUIRED]; * * @param index The index of the element to return. * @return The tagValues at the given index. */ public java.lang.String getTagValues(int index) { return tagValues_.get(index); } /** * * *
   * Required. Tag values combined with `AND` to check against.
   * Values in the form "tagValues/123"
   * Example: `[ "tagValues/123", "tagValues/456", "tagValues/789" ]`
   * https://cloud.google.com/resource-manager/docs/tags/tags-creating-and-managing
   * 
* * repeated string tag_values = 3 [(.google.api.field_behavior) = REQUIRED]; * * @param index The index of the value to return. * @return The bytes of the tagValues at the given index. */ public com.google.protobuf.ByteString getTagValuesBytes(int index) { return tagValues_.getByteString(index); } public static final int RESOURCE_TYPE_FIELD_NUMBER = 4; @SuppressWarnings("serial") private volatile java.lang.Object resourceType_ = ""; /** * * *
   * Apply resource_value only to resources that match resource_type.
   * resource_type will be checked with `AND` of other resources.
   * For example, "storage.googleapis.com/Bucket" with resource_value "HIGH"
   * will apply "HIGH" value only to "storage.googleapis.com/Bucket" resources.
   * 
* * string resource_type = 4; * * @return The resourceType. */ @java.lang.Override public java.lang.String getResourceType() { java.lang.Object ref = resourceType_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); resourceType_ = s; return s; } } /** * * *
   * Apply resource_value only to resources that match resource_type.
   * resource_type will be checked with `AND` of other resources.
   * For example, "storage.googleapis.com/Bucket" with resource_value "HIGH"
   * will apply "HIGH" value only to "storage.googleapis.com/Bucket" resources.
   * 
* * string resource_type = 4; * * @return The bytes for resourceType. */ @java.lang.Override public com.google.protobuf.ByteString getResourceTypeBytes() { java.lang.Object ref = resourceType_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); resourceType_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int SCOPE_FIELD_NUMBER = 5; @SuppressWarnings("serial") private volatile java.lang.Object scope_ = ""; /** * * *
   * Project or folder to scope this configuration to.
   * For example, "project/456" would apply this configuration only to resources
   * in "project/456" scope will be checked with `AND` of other
   * resources.
   * 
* * string scope = 5; * * @return The scope. */ @java.lang.Override public java.lang.String getScope() { java.lang.Object ref = scope_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); scope_ = s; return s; } } /** * * *
   * Project or folder to scope this configuration to.
   * For example, "project/456" would apply this configuration only to resources
   * in "project/456" scope will be checked with `AND` of other
   * resources.
   * 
* * string scope = 5; * * @return The bytes for scope. */ @java.lang.Override public com.google.protobuf.ByteString getScopeBytes() { java.lang.Object ref = scope_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); scope_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int RESOURCE_LABELS_SELECTOR_FIELD_NUMBER = 6; private static final class ResourceLabelsSelectorDefaultEntryHolder { static final com.google.protobuf.MapEntry defaultEntry = com.google.protobuf.MapEntry.newDefaultInstance( com.google.cloud.securitycenter.v1.ResourceValueConfigProto .internal_static_google_cloud_securitycenter_v1_ResourceValueConfig_ResourceLabelsSelectorEntry_descriptor, com.google.protobuf.WireFormat.FieldType.STRING, "", com.google.protobuf.WireFormat.FieldType.STRING, ""); } @SuppressWarnings("serial") private com.google.protobuf.MapField resourceLabelsSelector_; private com.google.protobuf.MapField internalGetResourceLabelsSelector() { if (resourceLabelsSelector_ == null) { return com.google.protobuf.MapField.emptyMapField( ResourceLabelsSelectorDefaultEntryHolder.defaultEntry); } return resourceLabelsSelector_; } public int getResourceLabelsSelectorCount() { return internalGetResourceLabelsSelector().getMap().size(); } /** * * *
   * List of resource labels to search for, evaluated with `AND`.
   * For example, `"resource_labels_selector": {"key": "value", "env": "prod"}`
   * will match resources with labels "key": "value" `AND` "env":
   * "prod"
   * https://cloud.google.com/resource-manager/docs/creating-managing-labels
   * 
* * map<string, string> resource_labels_selector = 6; */ @java.lang.Override public boolean containsResourceLabelsSelector(java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } return internalGetResourceLabelsSelector().getMap().containsKey(key); } /** Use {@link #getResourceLabelsSelectorMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getResourceLabelsSelector() { return getResourceLabelsSelectorMap(); } /** * * *
   * List of resource labels to search for, evaluated with `AND`.
   * For example, `"resource_labels_selector": {"key": "value", "env": "prod"}`
   * will match resources with labels "key": "value" `AND` "env":
   * "prod"
   * https://cloud.google.com/resource-manager/docs/creating-managing-labels
   * 
* * map<string, string> resource_labels_selector = 6; */ @java.lang.Override public java.util.Map getResourceLabelsSelectorMap() { return internalGetResourceLabelsSelector().getMap(); } /** * * *
   * List of resource labels to search for, evaluated with `AND`.
   * For example, `"resource_labels_selector": {"key": "value", "env": "prod"}`
   * will match resources with labels "key": "value" `AND` "env":
   * "prod"
   * https://cloud.google.com/resource-manager/docs/creating-managing-labels
   * 
* * map<string, string> resource_labels_selector = 6; */ @java.lang.Override public /* nullable */ java.lang.String getResourceLabelsSelectorOrDefault( java.lang.String key, /* nullable */ java.lang.String defaultValue) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetResourceLabelsSelector().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** * * *
   * List of resource labels to search for, evaluated with `AND`.
   * For example, `"resource_labels_selector": {"key": "value", "env": "prod"}`
   * will match resources with labels "key": "value" `AND` "env":
   * "prod"
   * https://cloud.google.com/resource-manager/docs/creating-managing-labels
   * 
* * map<string, string> resource_labels_selector = 6; */ @java.lang.Override public java.lang.String getResourceLabelsSelectorOrThrow(java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetResourceLabelsSelector().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } public static final int DESCRIPTION_FIELD_NUMBER = 7; @SuppressWarnings("serial") private volatile java.lang.Object description_ = ""; /** * * *
   * Description of the resource value configuration.
   * 
* * string description = 7; * * @return The description. */ @java.lang.Override public java.lang.String getDescription() { java.lang.Object ref = description_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; } } /** * * *
   * Description of the resource value configuration.
   * 
* * string description = 7; * * @return The bytes for description. */ @java.lang.Override public com.google.protobuf.ByteString getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); description_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int CREATE_TIME_FIELD_NUMBER = 8; private com.google.protobuf.Timestamp createTime_; /** * * *
   * Output only. Timestamp this resource value configuration was created.
   * 
* * .google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return Whether the createTime field is set. */ @java.lang.Override public boolean hasCreateTime() { return ((bitField0_ & 0x00000001) != 0); } /** * * *
   * Output only. Timestamp this resource value configuration was created.
   * 
* * .google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return The createTime. */ @java.lang.Override public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** * * *
   * Output only. Timestamp this resource value configuration was created.
   * 
* * .google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } public static final int UPDATE_TIME_FIELD_NUMBER = 9; private com.google.protobuf.Timestamp updateTime_; /** * * *
   * Output only. Timestamp this resource value configuration was last updated.
   * 
* * .google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return Whether the updateTime field is set. */ @java.lang.Override public boolean hasUpdateTime() { return ((bitField0_ & 0x00000002) != 0); } /** * * *
   * Output only. Timestamp this resource value configuration was last updated.
   * 
* * .google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return The updateTime. */ @java.lang.Override public com.google.protobuf.Timestamp getUpdateTime() { return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } /** * * *
   * Output only. Timestamp this resource value configuration was last updated.
   * 
* * .google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } public static final int CLOUD_PROVIDER_FIELD_NUMBER = 10; private int cloudProvider_ = 0; /** * * *
   * Cloud provider this configuration applies to
   * 
* * .google.cloud.securitycenter.v1.CloudProvider cloud_provider = 10; * * @return The enum numeric value on the wire for cloudProvider. */ @java.lang.Override public int getCloudProviderValue() { return cloudProvider_; } /** * * *
   * Cloud provider this configuration applies to
   * 
* * .google.cloud.securitycenter.v1.CloudProvider cloud_provider = 10; * * @return The cloudProvider. */ @java.lang.Override public com.google.cloud.securitycenter.v1.CloudProvider getCloudProvider() { com.google.cloud.securitycenter.v1.CloudProvider result = com.google.cloud.securitycenter.v1.CloudProvider.forNumber(cloudProvider_); return result == null ? com.google.cloud.securitycenter.v1.CloudProvider.UNRECOGNIZED : result; } public static final int SENSITIVE_DATA_PROTECTION_MAPPING_FIELD_NUMBER = 11; private com.google.cloud.securitycenter.v1.ResourceValueConfig.SensitiveDataProtectionMapping sensitiveDataProtectionMapping_; /** * * *
   * A mapping of the sensitivity on Sensitive Data Protection finding to
   * resource values. This mapping can only be used in combination with a
   * resource_type that is related to BigQuery, e.g.
   * "bigquery.googleapis.com/Dataset".
   * 
* * * .google.cloud.securitycenter.v1.ResourceValueConfig.SensitiveDataProtectionMapping sensitive_data_protection_mapping = 11; * * * @return Whether the sensitiveDataProtectionMapping field is set. */ @java.lang.Override public boolean hasSensitiveDataProtectionMapping() { return ((bitField0_ & 0x00000004) != 0); } /** * * *
   * A mapping of the sensitivity on Sensitive Data Protection finding to
   * resource values. This mapping can only be used in combination with a
   * resource_type that is related to BigQuery, e.g.
   * "bigquery.googleapis.com/Dataset".
   * 
* * * .google.cloud.securitycenter.v1.ResourceValueConfig.SensitiveDataProtectionMapping sensitive_data_protection_mapping = 11; * * * @return The sensitiveDataProtectionMapping. */ @java.lang.Override public com.google.cloud.securitycenter.v1.ResourceValueConfig.SensitiveDataProtectionMapping getSensitiveDataProtectionMapping() { return sensitiveDataProtectionMapping_ == null ? com.google.cloud.securitycenter.v1.ResourceValueConfig.SensitiveDataProtectionMapping .getDefaultInstance() : sensitiveDataProtectionMapping_; } /** * * *
   * A mapping of the sensitivity on Sensitive Data Protection finding to
   * resource values. This mapping can only be used in combination with a
   * resource_type that is related to BigQuery, e.g.
   * "bigquery.googleapis.com/Dataset".
   * 
* * * .google.cloud.securitycenter.v1.ResourceValueConfig.SensitiveDataProtectionMapping sensitive_data_protection_mapping = 11; * */ @java.lang.Override public com.google.cloud.securitycenter.v1.ResourceValueConfig .SensitiveDataProtectionMappingOrBuilder getSensitiveDataProtectionMappingOrBuilder() { return sensitiveDataProtectionMapping_ == null ? com.google.cloud.securitycenter.v1.ResourceValueConfig.SensitiveDataProtectionMapping .getDefaultInstance() : sensitiveDataProtectionMapping_; } 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(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } if (resourceValue_ != com.google.cloud.securitycenter.v1.ResourceValue.RESOURCE_VALUE_UNSPECIFIED .getNumber()) { output.writeEnum(2, resourceValue_); } for (int i = 0; i < tagValues_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, tagValues_.getRaw(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(resourceType_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, resourceType_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(scope_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 5, scope_); } com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( output, internalGetResourceLabelsSelector(), ResourceLabelsSelectorDefaultEntryHolder.defaultEntry, 6); if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 7, description_); } if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(8, getCreateTime()); } if (((bitField0_ & 0x00000002) != 0)) { output.writeMessage(9, getUpdateTime()); } if (cloudProvider_ != com.google.cloud.securitycenter.v1.CloudProvider.CLOUD_PROVIDER_UNSPECIFIED .getNumber()) { output.writeEnum(10, cloudProvider_); } if (((bitField0_ & 0x00000004) != 0)) { output.writeMessage(11, getSensitiveDataProtectionMapping()); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (resourceValue_ != com.google.cloud.securitycenter.v1.ResourceValue.RESOURCE_VALUE_UNSPECIFIED .getNumber()) { size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, resourceValue_); } { int dataSize = 0; for (int i = 0; i < tagValues_.size(); i++) { dataSize += computeStringSizeNoTag(tagValues_.getRaw(i)); } size += dataSize; size += 1 * getTagValuesList().size(); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(resourceType_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, resourceType_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(scope_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, scope_); } for (java.util.Map.Entry entry : internalGetResourceLabelsSelector().getMap().entrySet()) { com.google.protobuf.MapEntry resourceLabelsSelector__ = ResourceLabelsSelectorDefaultEntryHolder.defaultEntry .newBuilderForType() .setKey(entry.getKey()) .setValue(entry.getValue()) .build(); size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, resourceLabelsSelector__); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, description_); } if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, getCreateTime()); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, getUpdateTime()); } if (cloudProvider_ != com.google.cloud.securitycenter.v1.CloudProvider.CLOUD_PROVIDER_UNSPECIFIED .getNumber()) { size += com.google.protobuf.CodedOutputStream.computeEnumSize(10, cloudProvider_); } if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize( 11, getSensitiveDataProtectionMapping()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.google.cloud.securitycenter.v1.ResourceValueConfig)) { return super.equals(obj); } com.google.cloud.securitycenter.v1.ResourceValueConfig other = (com.google.cloud.securitycenter.v1.ResourceValueConfig) obj; if (!getName().equals(other.getName())) return false; if (resourceValue_ != other.resourceValue_) return false; if (!getTagValuesList().equals(other.getTagValuesList())) return false; if (!getResourceType().equals(other.getResourceType())) return false; if (!getScope().equals(other.getScope())) return false; if (!internalGetResourceLabelsSelector().equals(other.internalGetResourceLabelsSelector())) return false; if (!getDescription().equals(other.getDescription())) return false; if (hasCreateTime() != other.hasCreateTime()) return false; if (hasCreateTime()) { if (!getCreateTime().equals(other.getCreateTime())) return false; } if (hasUpdateTime() != other.hasUpdateTime()) return false; if (hasUpdateTime()) { if (!getUpdateTime().equals(other.getUpdateTime())) return false; } if (cloudProvider_ != other.cloudProvider_) return false; if (hasSensitiveDataProtectionMapping() != other.hasSensitiveDataProtectionMapping()) return false; if (hasSensitiveDataProtectionMapping()) { if (!getSensitiveDataProtectionMapping().equals(other.getSensitiveDataProtectionMapping())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) 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) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); hash = (37 * hash) + RESOURCE_VALUE_FIELD_NUMBER; hash = (53 * hash) + resourceValue_; if (getTagValuesCount() > 0) { hash = (37 * hash) + TAG_VALUES_FIELD_NUMBER; hash = (53 * hash) + getTagValuesList().hashCode(); } hash = (37 * hash) + RESOURCE_TYPE_FIELD_NUMBER; hash = (53 * hash) + getResourceType().hashCode(); hash = (37 * hash) + SCOPE_FIELD_NUMBER; hash = (53 * hash) + getScope().hashCode(); if (!internalGetResourceLabelsSelector().getMap().isEmpty()) { hash = (37 * hash) + RESOURCE_LABELS_SELECTOR_FIELD_NUMBER; hash = (53 * hash) + internalGetResourceLabelsSelector().hashCode(); } hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; hash = (53 * hash) + getDescription().hashCode(); if (hasCreateTime()) { hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER; hash = (53 * hash) + getCreateTime().hashCode(); } if (hasUpdateTime()) { hash = (37 * hash) + UPDATE_TIME_FIELD_NUMBER; hash = (53 * hash) + getUpdateTime().hashCode(); } hash = (37 * hash) + CLOUD_PROVIDER_FIELD_NUMBER; hash = (53 * hash) + cloudProvider_; if (hasSensitiveDataProtectionMapping()) { hash = (37 * hash) + SENSITIVE_DATA_PROTECTION_MAPPING_FIELD_NUMBER; hash = (53 * hash) + getSensitiveDataProtectionMapping().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.securitycenter.v1.ResourceValueConfig parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.cloud.securitycenter.v1.ResourceValueConfig parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.cloud.securitycenter.v1.ResourceValueConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.cloud.securitycenter.v1.ResourceValueConfig parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.cloud.securitycenter.v1.ResourceValueConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.cloud.securitycenter.v1.ResourceValueConfig parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.cloud.securitycenter.v1.ResourceValueConfig parseFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static com.google.cloud.securitycenter.v1.ResourceValueConfig parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException( PARSER, input, extensionRegistry); } public static com.google.cloud.securitycenter.v1.ResourceValueConfig parseDelimitedFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.securitycenter.v1.ResourceValueConfig parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( PARSER, input, extensionRegistry); } public static com.google.cloud.securitycenter.v1.ResourceValueConfig parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static com.google.cloud.securitycenter.v1.ResourceValueConfig parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return 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( com.google.cloud.securitycenter.v1.ResourceValueConfig 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(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * * *
   * A resource value configuration (RVC) is a mapping configuration of user's
   * resources to resource values. Used in Attack path simulations.
   * 
* * Protobuf type {@code google.cloud.securitycenter.v1.ResourceValueConfig} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.securitycenter.v1.ResourceValueConfig) com.google.cloud.securitycenter.v1.ResourceValueConfigOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.securitycenter.v1.ResourceValueConfigProto .internal_static_google_cloud_securitycenter_v1_ResourceValueConfig_descriptor; } @SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( int number) { switch (number) { case 6: return internalGetResourceLabelsSelector(); default: throw new RuntimeException("Invalid map field number: " + number); } } @SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection( int number) { switch (number) { case 6: return internalGetMutableResourceLabelsSelector(); default: throw new RuntimeException("Invalid map field number: " + number); } } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.securitycenter.v1.ResourceValueConfigProto .internal_static_google_cloud_securitycenter_v1_ResourceValueConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.cloud.securitycenter.v1.ResourceValueConfig.class, com.google.cloud.securitycenter.v1.ResourceValueConfig.Builder.class); } // Construct using com.google.cloud.securitycenter.v1.ResourceValueConfig.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getCreateTimeFieldBuilder(); getUpdateTimeFieldBuilder(); getSensitiveDataProtectionMappingFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; name_ = ""; resourceValue_ = 0; tagValues_ = com.google.protobuf.LazyStringArrayList.emptyList(); resourceType_ = ""; scope_ = ""; internalGetMutableResourceLabelsSelector().clear(); description_ = ""; createTime_ = null; if (createTimeBuilder_ != null) { createTimeBuilder_.dispose(); createTimeBuilder_ = null; } updateTime_ = null; if (updateTimeBuilder_ != null) { updateTimeBuilder_.dispose(); updateTimeBuilder_ = null; } cloudProvider_ = 0; sensitiveDataProtectionMapping_ = null; if (sensitiveDataProtectionMappingBuilder_ != null) { sensitiveDataProtectionMappingBuilder_.dispose(); sensitiveDataProtectionMappingBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.cloud.securitycenter.v1.ResourceValueConfigProto .internal_static_google_cloud_securitycenter_v1_ResourceValueConfig_descriptor; } @java.lang.Override public com.google.cloud.securitycenter.v1.ResourceValueConfig getDefaultInstanceForType() { return com.google.cloud.securitycenter.v1.ResourceValueConfig.getDefaultInstance(); } @java.lang.Override public com.google.cloud.securitycenter.v1.ResourceValueConfig build() { com.google.cloud.securitycenter.v1.ResourceValueConfig result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.cloud.securitycenter.v1.ResourceValueConfig buildPartial() { com.google.cloud.securitycenter.v1.ResourceValueConfig result = new com.google.cloud.securitycenter.v1.ResourceValueConfig(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(com.google.cloud.securitycenter.v1.ResourceValueConfig result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.name_ = name_; } if (((from_bitField0_ & 0x00000002) != 0)) { result.resourceValue_ = resourceValue_; } if (((from_bitField0_ & 0x00000004) != 0)) { tagValues_.makeImmutable(); result.tagValues_ = tagValues_; } if (((from_bitField0_ & 0x00000008) != 0)) { result.resourceType_ = resourceType_; } if (((from_bitField0_ & 0x00000010) != 0)) { result.scope_ = scope_; } if (((from_bitField0_ & 0x00000020) != 0)) { result.resourceLabelsSelector_ = internalGetResourceLabelsSelector(); result.resourceLabelsSelector_.makeImmutable(); } if (((from_bitField0_ & 0x00000040) != 0)) { result.description_ = description_; } int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000080) != 0)) { result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000100) != 0)) { result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build(); to_bitField0_ |= 0x00000002; } if (((from_bitField0_ & 0x00000200) != 0)) { result.cloudProvider_ = cloudProvider_; } if (((from_bitField0_ & 0x00000400) != 0)) { result.sensitiveDataProtectionMapping_ = sensitiveDataProtectionMappingBuilder_ == null ? sensitiveDataProtectionMapping_ : sensitiveDataProtectionMappingBuilder_.build(); to_bitField0_ |= 0x00000004; } result.bitField0_ |= to_bitField0_; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.securitycenter.v1.ResourceValueConfig) { return mergeFrom((com.google.cloud.securitycenter.v1.ResourceValueConfig) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.cloud.securitycenter.v1.ResourceValueConfig other) { if (other == com.google.cloud.securitycenter.v1.ResourceValueConfig.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; onChanged(); } if (other.resourceValue_ != 0) { setResourceValueValue(other.getResourceValueValue()); } if (!other.tagValues_.isEmpty()) { if (tagValues_.isEmpty()) { tagValues_ = other.tagValues_; bitField0_ |= 0x00000004; } else { ensureTagValuesIsMutable(); tagValues_.addAll(other.tagValues_); } onChanged(); } if (!other.getResourceType().isEmpty()) { resourceType_ = other.resourceType_; bitField0_ |= 0x00000008; onChanged(); } if (!other.getScope().isEmpty()) { scope_ = other.scope_; bitField0_ |= 0x00000010; onChanged(); } internalGetMutableResourceLabelsSelector() .mergeFrom(other.internalGetResourceLabelsSelector()); bitField0_ |= 0x00000020; if (!other.getDescription().isEmpty()) { description_ = other.description_; bitField0_ |= 0x00000040; onChanged(); } if (other.hasCreateTime()) { mergeCreateTime(other.getCreateTime()); } if (other.hasUpdateTime()) { mergeUpdateTime(other.getUpdateTime()); } if (other.cloudProvider_ != 0) { setCloudProviderValue(other.getCloudProviderValue()); } if (other.hasSensitiveDataProtectionMapping()) { mergeSensitiveDataProtectionMapping(other.getSensitiveDataProtectionMapping()); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { name_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000001; break; } // case 10 case 16: { resourceValue_ = input.readEnum(); bitField0_ |= 0x00000002; break; } // case 16 case 26: { java.lang.String s = input.readStringRequireUtf8(); ensureTagValuesIsMutable(); tagValues_.add(s); break; } // case 26 case 34: { resourceType_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000008; break; } // case 34 case 42: { scope_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000010; break; } // case 42 case 50: { com.google.protobuf.MapEntry resourceLabelsSelector__ = input.readMessage( ResourceLabelsSelectorDefaultEntryHolder.defaultEntry .getParserForType(), extensionRegistry); internalGetMutableResourceLabelsSelector() .getMutableMap() .put(resourceLabelsSelector__.getKey(), resourceLabelsSelector__.getValue()); bitField0_ |= 0x00000020; break; } // case 50 case 58: { description_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000040; break; } // case 58 case 66: { input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000080; break; } // case 66 case 74: { input.readMessage(getUpdateTimeFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000100; break; } // case 74 case 80: { cloudProvider_ = input.readEnum(); bitField0_ |= 0x00000200; break; } // case 80 case 90: { input.readMessage( getSensitiveDataProtectionMappingFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000400; break; } // case 90 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private java.lang.Object name_ = ""; /** * * *
     * Name for the resource value configuration
     * 
* * string name = 1; * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } else { return (java.lang.String) ref; } } /** * * *
     * Name for the resource value configuration
     * 
* * string name = 1; * * @return The bytes for name. */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
     * Name for the resource value configuration
     * 
* * string name = 1; * * @param value The name to set. * @return This builder for chaining. */ public Builder setName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** * * *
     * Name for the resource value configuration
     * 
* * string name = 1; * * @return This builder for chaining. */ public Builder clearName() { name_ = getDefaultInstance().getName(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** * * *
     * Name for the resource value configuration
     * 
* * string name = 1; * * @param value The bytes for name to set. * @return This builder for chaining. */ public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } private int resourceValue_ = 0; /** * * *
     * Required. Resource value level this expression represents
     * 
* * * .google.cloud.securitycenter.v1.ResourceValue resource_value = 2 [(.google.api.field_behavior) = REQUIRED]; * * * @return The enum numeric value on the wire for resourceValue. */ @java.lang.Override public int getResourceValueValue() { return resourceValue_; } /** * * *
     * Required. Resource value level this expression represents
     * 
* * * .google.cloud.securitycenter.v1.ResourceValue resource_value = 2 [(.google.api.field_behavior) = REQUIRED]; * * * @param value The enum numeric value on the wire for resourceValue to set. * @return This builder for chaining. */ public Builder setResourceValueValue(int value) { resourceValue_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** * * *
     * Required. Resource value level this expression represents
     * 
* * * .google.cloud.securitycenter.v1.ResourceValue resource_value = 2 [(.google.api.field_behavior) = REQUIRED]; * * * @return The resourceValue. */ @java.lang.Override public com.google.cloud.securitycenter.v1.ResourceValue getResourceValue() { com.google.cloud.securitycenter.v1.ResourceValue result = com.google.cloud.securitycenter.v1.ResourceValue.forNumber(resourceValue_); return result == null ? com.google.cloud.securitycenter.v1.ResourceValue.UNRECOGNIZED : result; } /** * * *
     * Required. Resource value level this expression represents
     * 
* * * .google.cloud.securitycenter.v1.ResourceValue resource_value = 2 [(.google.api.field_behavior) = REQUIRED]; * * * @param value The resourceValue to set. * @return This builder for chaining. */ public Builder setResourceValue(com.google.cloud.securitycenter.v1.ResourceValue value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; resourceValue_ = value.getNumber(); onChanged(); return this; } /** * * *
     * Required. Resource value level this expression represents
     * 
* * * .google.cloud.securitycenter.v1.ResourceValue resource_value = 2 [(.google.api.field_behavior) = REQUIRED]; * * * @return This builder for chaining. */ public Builder clearResourceValue() { bitField0_ = (bitField0_ & ~0x00000002); resourceValue_ = 0; onChanged(); return this; } private com.google.protobuf.LazyStringArrayList tagValues_ = com.google.protobuf.LazyStringArrayList.emptyList(); private void ensureTagValuesIsMutable() { if (!tagValues_.isModifiable()) { tagValues_ = new com.google.protobuf.LazyStringArrayList(tagValues_); } bitField0_ |= 0x00000004; } /** * * *
     * Required. Tag values combined with `AND` to check against.
     * Values in the form "tagValues/123"
     * Example: `[ "tagValues/123", "tagValues/456", "tagValues/789" ]`
     * https://cloud.google.com/resource-manager/docs/tags/tags-creating-and-managing
     * 
* * repeated string tag_values = 3 [(.google.api.field_behavior) = REQUIRED]; * * @return A list containing the tagValues. */ public com.google.protobuf.ProtocolStringList getTagValuesList() { tagValues_.makeImmutable(); return tagValues_; } /** * * *
     * Required. Tag values combined with `AND` to check against.
     * Values in the form "tagValues/123"
     * Example: `[ "tagValues/123", "tagValues/456", "tagValues/789" ]`
     * https://cloud.google.com/resource-manager/docs/tags/tags-creating-and-managing
     * 
* * repeated string tag_values = 3 [(.google.api.field_behavior) = REQUIRED]; * * @return The count of tagValues. */ public int getTagValuesCount() { return tagValues_.size(); } /** * * *
     * Required. Tag values combined with `AND` to check against.
     * Values in the form "tagValues/123"
     * Example: `[ "tagValues/123", "tagValues/456", "tagValues/789" ]`
     * https://cloud.google.com/resource-manager/docs/tags/tags-creating-and-managing
     * 
* * repeated string tag_values = 3 [(.google.api.field_behavior) = REQUIRED]; * * @param index The index of the element to return. * @return The tagValues at the given index. */ public java.lang.String getTagValues(int index) { return tagValues_.get(index); } /** * * *
     * Required. Tag values combined with `AND` to check against.
     * Values in the form "tagValues/123"
     * Example: `[ "tagValues/123", "tagValues/456", "tagValues/789" ]`
     * https://cloud.google.com/resource-manager/docs/tags/tags-creating-and-managing
     * 
* * repeated string tag_values = 3 [(.google.api.field_behavior) = REQUIRED]; * * @param index The index of the value to return. * @return The bytes of the tagValues at the given index. */ public com.google.protobuf.ByteString getTagValuesBytes(int index) { return tagValues_.getByteString(index); } /** * * *
     * Required. Tag values combined with `AND` to check against.
     * Values in the form "tagValues/123"
     * Example: `[ "tagValues/123", "tagValues/456", "tagValues/789" ]`
     * https://cloud.google.com/resource-manager/docs/tags/tags-creating-and-managing
     * 
* * repeated string tag_values = 3 [(.google.api.field_behavior) = REQUIRED]; * * @param index The index to set the value at. * @param value The tagValues to set. * @return This builder for chaining. */ public Builder setTagValues(int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureTagValuesIsMutable(); tagValues_.set(index, value); bitField0_ |= 0x00000004; onChanged(); return this; } /** * * *
     * Required. Tag values combined with `AND` to check against.
     * Values in the form "tagValues/123"
     * Example: `[ "tagValues/123", "tagValues/456", "tagValues/789" ]`
     * https://cloud.google.com/resource-manager/docs/tags/tags-creating-and-managing
     * 
* * repeated string tag_values = 3 [(.google.api.field_behavior) = REQUIRED]; * * @param value The tagValues to add. * @return This builder for chaining. */ public Builder addTagValues(java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureTagValuesIsMutable(); tagValues_.add(value); bitField0_ |= 0x00000004; onChanged(); return this; } /** * * *
     * Required. Tag values combined with `AND` to check against.
     * Values in the form "tagValues/123"
     * Example: `[ "tagValues/123", "tagValues/456", "tagValues/789" ]`
     * https://cloud.google.com/resource-manager/docs/tags/tags-creating-and-managing
     * 
* * repeated string tag_values = 3 [(.google.api.field_behavior) = REQUIRED]; * * @param values The tagValues to add. * @return This builder for chaining. */ public Builder addAllTagValues(java.lang.Iterable values) { ensureTagValuesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll(values, tagValues_); bitField0_ |= 0x00000004; onChanged(); return this; } /** * * *
     * Required. Tag values combined with `AND` to check against.
     * Values in the form "tagValues/123"
     * Example: `[ "tagValues/123", "tagValues/456", "tagValues/789" ]`
     * https://cloud.google.com/resource-manager/docs/tags/tags-creating-and-managing
     * 
* * repeated string tag_values = 3 [(.google.api.field_behavior) = REQUIRED]; * * @return This builder for chaining. */ public Builder clearTagValues() { tagValues_ = com.google.protobuf.LazyStringArrayList.emptyList(); bitField0_ = (bitField0_ & ~0x00000004); ; onChanged(); return this; } /** * * *
     * Required. Tag values combined with `AND` to check against.
     * Values in the form "tagValues/123"
     * Example: `[ "tagValues/123", "tagValues/456", "tagValues/789" ]`
     * https://cloud.google.com/resource-manager/docs/tags/tags-creating-and-managing
     * 
* * repeated string tag_values = 3 [(.google.api.field_behavior) = REQUIRED]; * * @param value The bytes of the tagValues to add. * @return This builder for chaining. */ public Builder addTagValuesBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureTagValuesIsMutable(); tagValues_.add(value); bitField0_ |= 0x00000004; onChanged(); return this; } private java.lang.Object resourceType_ = ""; /** * * *
     * Apply resource_value only to resources that match resource_type.
     * resource_type will be checked with `AND` of other resources.
     * For example, "storage.googleapis.com/Bucket" with resource_value "HIGH"
     * will apply "HIGH" value only to "storage.googleapis.com/Bucket" resources.
     * 
* * string resource_type = 4; * * @return The resourceType. */ public java.lang.String getResourceType() { java.lang.Object ref = resourceType_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); resourceType_ = s; return s; } else { return (java.lang.String) ref; } } /** * * *
     * Apply resource_value only to resources that match resource_type.
     * resource_type will be checked with `AND` of other resources.
     * For example, "storage.googleapis.com/Bucket" with resource_value "HIGH"
     * will apply "HIGH" value only to "storage.googleapis.com/Bucket" resources.
     * 
* * string resource_type = 4; * * @return The bytes for resourceType. */ public com.google.protobuf.ByteString getResourceTypeBytes() { java.lang.Object ref = resourceType_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); resourceType_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
     * Apply resource_value only to resources that match resource_type.
     * resource_type will be checked with `AND` of other resources.
     * For example, "storage.googleapis.com/Bucket" with resource_value "HIGH"
     * will apply "HIGH" value only to "storage.googleapis.com/Bucket" resources.
     * 
* * string resource_type = 4; * * @param value The resourceType to set. * @return This builder for chaining. */ public Builder setResourceType(java.lang.String value) { if (value == null) { throw new NullPointerException(); } resourceType_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** * * *
     * Apply resource_value only to resources that match resource_type.
     * resource_type will be checked with `AND` of other resources.
     * For example, "storage.googleapis.com/Bucket" with resource_value "HIGH"
     * will apply "HIGH" value only to "storage.googleapis.com/Bucket" resources.
     * 
* * string resource_type = 4; * * @return This builder for chaining. */ public Builder clearResourceType() { resourceType_ = getDefaultInstance().getResourceType(); bitField0_ = (bitField0_ & ~0x00000008); onChanged(); return this; } /** * * *
     * Apply resource_value only to resources that match resource_type.
     * resource_type will be checked with `AND` of other resources.
     * For example, "storage.googleapis.com/Bucket" with resource_value "HIGH"
     * will apply "HIGH" value only to "storage.googleapis.com/Bucket" resources.
     * 
* * string resource_type = 4; * * @param value The bytes for resourceType to set. * @return This builder for chaining. */ public Builder setResourceTypeBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); resourceType_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } private java.lang.Object scope_ = ""; /** * * *
     * Project or folder to scope this configuration to.
     * For example, "project/456" would apply this configuration only to resources
     * in "project/456" scope will be checked with `AND` of other
     * resources.
     * 
* * string scope = 5; * * @return The scope. */ public java.lang.String getScope() { java.lang.Object ref = scope_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); scope_ = s; return s; } else { return (java.lang.String) ref; } } /** * * *
     * Project or folder to scope this configuration to.
     * For example, "project/456" would apply this configuration only to resources
     * in "project/456" scope will be checked with `AND` of other
     * resources.
     * 
* * string scope = 5; * * @return The bytes for scope. */ public com.google.protobuf.ByteString getScopeBytes() { java.lang.Object ref = scope_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); scope_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
     * Project or folder to scope this configuration to.
     * For example, "project/456" would apply this configuration only to resources
     * in "project/456" scope will be checked with `AND` of other
     * resources.
     * 
* * string scope = 5; * * @param value The scope to set. * @return This builder for chaining. */ public Builder setScope(java.lang.String value) { if (value == null) { throw new NullPointerException(); } scope_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** * * *
     * Project or folder to scope this configuration to.
     * For example, "project/456" would apply this configuration only to resources
     * in "project/456" scope will be checked with `AND` of other
     * resources.
     * 
* * string scope = 5; * * @return This builder for chaining. */ public Builder clearScope() { scope_ = getDefaultInstance().getScope(); bitField0_ = (bitField0_ & ~0x00000010); onChanged(); return this; } /** * * *
     * Project or folder to scope this configuration to.
     * For example, "project/456" would apply this configuration only to resources
     * in "project/456" scope will be checked with `AND` of other
     * resources.
     * 
* * string scope = 5; * * @param value The bytes for scope to set. * @return This builder for chaining. */ public Builder setScopeBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); scope_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } private com.google.protobuf.MapField resourceLabelsSelector_; private com.google.protobuf.MapField internalGetResourceLabelsSelector() { if (resourceLabelsSelector_ == null) { return com.google.protobuf.MapField.emptyMapField( ResourceLabelsSelectorDefaultEntryHolder.defaultEntry); } return resourceLabelsSelector_; } private com.google.protobuf.MapField internalGetMutableResourceLabelsSelector() { if (resourceLabelsSelector_ == null) { resourceLabelsSelector_ = com.google.protobuf.MapField.newMapField( ResourceLabelsSelectorDefaultEntryHolder.defaultEntry); } if (!resourceLabelsSelector_.isMutable()) { resourceLabelsSelector_ = resourceLabelsSelector_.copy(); } bitField0_ |= 0x00000020; onChanged(); return resourceLabelsSelector_; } public int getResourceLabelsSelectorCount() { return internalGetResourceLabelsSelector().getMap().size(); } /** * * *
     * List of resource labels to search for, evaluated with `AND`.
     * For example, `"resource_labels_selector": {"key": "value", "env": "prod"}`
     * will match resources with labels "key": "value" `AND` "env":
     * "prod"
     * https://cloud.google.com/resource-manager/docs/creating-managing-labels
     * 
* * map<string, string> resource_labels_selector = 6; */ @java.lang.Override public boolean containsResourceLabelsSelector(java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } return internalGetResourceLabelsSelector().getMap().containsKey(key); } /** Use {@link #getResourceLabelsSelectorMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getResourceLabelsSelector() { return getResourceLabelsSelectorMap(); } /** * * *
     * List of resource labels to search for, evaluated with `AND`.
     * For example, `"resource_labels_selector": {"key": "value", "env": "prod"}`
     * will match resources with labels "key": "value" `AND` "env":
     * "prod"
     * https://cloud.google.com/resource-manager/docs/creating-managing-labels
     * 
* * map<string, string> resource_labels_selector = 6; */ @java.lang.Override public java.util.Map getResourceLabelsSelectorMap() { return internalGetResourceLabelsSelector().getMap(); } /** * * *
     * List of resource labels to search for, evaluated with `AND`.
     * For example, `"resource_labels_selector": {"key": "value", "env": "prod"}`
     * will match resources with labels "key": "value" `AND` "env":
     * "prod"
     * https://cloud.google.com/resource-manager/docs/creating-managing-labels
     * 
* * map<string, string> resource_labels_selector = 6; */ @java.lang.Override public /* nullable */ java.lang.String getResourceLabelsSelectorOrDefault( java.lang.String key, /* nullable */ java.lang.String defaultValue) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetResourceLabelsSelector().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** * * *
     * List of resource labels to search for, evaluated with `AND`.
     * For example, `"resource_labels_selector": {"key": "value", "env": "prod"}`
     * will match resources with labels "key": "value" `AND` "env":
     * "prod"
     * https://cloud.google.com/resource-manager/docs/creating-managing-labels
     * 
* * map<string, string> resource_labels_selector = 6; */ @java.lang.Override public java.lang.String getResourceLabelsSelectorOrThrow(java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetResourceLabelsSelector().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } public Builder clearResourceLabelsSelector() { bitField0_ = (bitField0_ & ~0x00000020); internalGetMutableResourceLabelsSelector().getMutableMap().clear(); return this; } /** * * *
     * List of resource labels to search for, evaluated with `AND`.
     * For example, `"resource_labels_selector": {"key": "value", "env": "prod"}`
     * will match resources with labels "key": "value" `AND` "env":
     * "prod"
     * https://cloud.google.com/resource-manager/docs/creating-managing-labels
     * 
* * map<string, string> resource_labels_selector = 6; */ public Builder removeResourceLabelsSelector(java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } internalGetMutableResourceLabelsSelector().getMutableMap().remove(key); return this; } /** Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map getMutableResourceLabelsSelector() { bitField0_ |= 0x00000020; return internalGetMutableResourceLabelsSelector().getMutableMap(); } /** * * *
     * List of resource labels to search for, evaluated with `AND`.
     * For example, `"resource_labels_selector": {"key": "value", "env": "prod"}`
     * will match resources with labels "key": "value" `AND` "env":
     * "prod"
     * https://cloud.google.com/resource-manager/docs/creating-managing-labels
     * 
* * map<string, string> resource_labels_selector = 6; */ public Builder putResourceLabelsSelector(java.lang.String key, java.lang.String value) { if (key == null) { throw new NullPointerException("map key"); } if (value == null) { throw new NullPointerException("map value"); } internalGetMutableResourceLabelsSelector().getMutableMap().put(key, value); bitField0_ |= 0x00000020; return this; } /** * * *
     * List of resource labels to search for, evaluated with `AND`.
     * For example, `"resource_labels_selector": {"key": "value", "env": "prod"}`
     * will match resources with labels "key": "value" `AND` "env":
     * "prod"
     * https://cloud.google.com/resource-manager/docs/creating-managing-labels
     * 
* * map<string, string> resource_labels_selector = 6; */ public Builder putAllResourceLabelsSelector( java.util.Map values) { internalGetMutableResourceLabelsSelector().getMutableMap().putAll(values); bitField0_ |= 0x00000020; return this; } private java.lang.Object description_ = ""; /** * * *
     * Description of the resource value configuration.
     * 
* * string description = 7; * * @return The description. */ public java.lang.String getDescription() { java.lang.Object ref = description_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; } else { return (java.lang.String) ref; } } /** * * *
     * Description of the resource value configuration.
     * 
* * string description = 7; * * @return The bytes for description. */ public com.google.protobuf.ByteString getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); description_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
     * Description of the resource value configuration.
     * 
* * string description = 7; * * @param value The description to set. * @return This builder for chaining. */ public Builder setDescription(java.lang.String value) { if (value == null) { throw new NullPointerException(); } description_ = value; bitField0_ |= 0x00000040; onChanged(); return this; } /** * * *
     * Description of the resource value configuration.
     * 
* * string description = 7; * * @return This builder for chaining. */ public Builder clearDescription() { description_ = getDefaultInstance().getDescription(); bitField0_ = (bitField0_ & ~0x00000040); onChanged(); return this; } /** * * *
     * Description of the resource value configuration.
     * 
* * string description = 7; * * @param value The bytes for description to set. * @return This builder for chaining. */ public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); description_ = value; bitField0_ |= 0x00000040; onChanged(); return this; } private com.google.protobuf.Timestamp createTime_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> createTimeBuilder_; /** * * *
     * Output only. Timestamp this resource value configuration was created.
     * 
* * * .google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return Whether the createTime field is set. */ public boolean hasCreateTime() { return ((bitField0_ & 0x00000080) != 0); } /** * * *
     * Output only. Timestamp this resource value configuration was created.
     * 
* * * .google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return The createTime. */ public com.google.protobuf.Timestamp getCreateTime() { if (createTimeBuilder_ == null) { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } else { return createTimeBuilder_.getMessage(); } } /** * * *
     * Output only. Timestamp this resource value configuration was created.
     * 
* * * .google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public Builder setCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { if (value == null) { throw new NullPointerException(); } createTime_ = value; } else { createTimeBuilder_.setMessage(value); } bitField0_ |= 0x00000080; onChanged(); return this; } /** * * *
     * Output only. Timestamp this resource value configuration was created.
     * 
* * * .google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (createTimeBuilder_ == null) { createTime_ = builderForValue.build(); } else { createTimeBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000080; onChanged(); return this; } /** * * *
     * Output only. Timestamp this resource value configuration was created.
     * 
* * * .google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { if (((bitField0_ & 0x00000080) != 0) && createTime_ != null && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getCreateTimeBuilder().mergeFrom(value); } else { createTime_ = value; } } else { createTimeBuilder_.mergeFrom(value); } if (createTime_ != null) { bitField0_ |= 0x00000080; onChanged(); } return this; } /** * * *
     * Output only. Timestamp this resource value configuration was created.
     * 
* * * .google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public Builder clearCreateTime() { bitField0_ = (bitField0_ & ~0x00000080); createTime_ = null; if (createTimeBuilder_ != null) { createTimeBuilder_.dispose(); createTimeBuilder_ = null; } onChanged(); return this; } /** * * *
     * Output only. Timestamp this resource value configuration was created.
     * 
* * * .google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { bitField0_ |= 0x00000080; onChanged(); return getCreateTimeFieldBuilder().getBuilder(); } /** * * *
     * Output only. Timestamp this resource value configuration was created.
     * 
* * * .google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { if (createTimeBuilder_ != null) { return createTimeBuilder_.getMessageOrBuilder(); } else { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } } /** * * *
     * Output only. Timestamp this resource value configuration was created.
     * 
* * * .google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getCreateTimeFieldBuilder() { if (createTimeBuilder_ == null) { createTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( getCreateTime(), getParentForChildren(), isClean()); createTime_ = null; } return createTimeBuilder_; } private com.google.protobuf.Timestamp updateTime_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> updateTimeBuilder_; /** * * *
     * Output only. Timestamp this resource value configuration was last updated.
     * 
* * * .google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return Whether the updateTime field is set. */ public boolean hasUpdateTime() { return ((bitField0_ & 0x00000100) != 0); } /** * * *
     * Output only. Timestamp this resource value configuration was last updated.
     * 
* * * .google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return The updateTime. */ public com.google.protobuf.Timestamp getUpdateTime() { if (updateTimeBuilder_ == null) { return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } else { return updateTimeBuilder_.getMessage(); } } /** * * *
     * Output only. Timestamp this resource value configuration was last updated.
     * 
* * * .google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { if (value == null) { throw new NullPointerException(); } updateTime_ = value; } else { updateTimeBuilder_.setMessage(value); } bitField0_ |= 0x00000100; onChanged(); return this; } /** * * *
     * Output only. Timestamp this resource value configuration was last updated.
     * 
* * * .google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (updateTimeBuilder_ == null) { updateTime_ = builderForValue.build(); } else { updateTimeBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000100; onChanged(); return this; } /** * * *
     * Output only. Timestamp this resource value configuration was last updated.
     * 
* * * .google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { if (((bitField0_ & 0x00000100) != 0) && updateTime_ != null && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getUpdateTimeBuilder().mergeFrom(value); } else { updateTime_ = value; } } else { updateTimeBuilder_.mergeFrom(value); } if (updateTime_ != null) { bitField0_ |= 0x00000100; onChanged(); } return this; } /** * * *
     * Output only. Timestamp this resource value configuration was last updated.
     * 
* * * .google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public Builder clearUpdateTime() { bitField0_ = (bitField0_ & ~0x00000100); updateTime_ = null; if (updateTimeBuilder_ != null) { updateTimeBuilder_.dispose(); updateTimeBuilder_ = null; } onChanged(); return this; } /** * * *
     * Output only. Timestamp this resource value configuration was last updated.
     * 
* * * .google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { bitField0_ |= 0x00000100; onChanged(); return getUpdateTimeFieldBuilder().getBuilder(); } /** * * *
     * Output only. Timestamp this resource value configuration was last updated.
     * 
* * * .google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { if (updateTimeBuilder_ != null) { return updateTimeBuilder_.getMessageOrBuilder(); } else { return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } } /** * * *
     * Output only. Timestamp this resource value configuration was last updated.
     * 
* * * .google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getUpdateTimeFieldBuilder() { if (updateTimeBuilder_ == null) { updateTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( getUpdateTime(), getParentForChildren(), isClean()); updateTime_ = null; } return updateTimeBuilder_; } private int cloudProvider_ = 0; /** * * *
     * Cloud provider this configuration applies to
     * 
* * .google.cloud.securitycenter.v1.CloudProvider cloud_provider = 10; * * @return The enum numeric value on the wire for cloudProvider. */ @java.lang.Override public int getCloudProviderValue() { return cloudProvider_; } /** * * *
     * Cloud provider this configuration applies to
     * 
* * .google.cloud.securitycenter.v1.CloudProvider cloud_provider = 10; * * @param value The enum numeric value on the wire for cloudProvider to set. * @return This builder for chaining. */ public Builder setCloudProviderValue(int value) { cloudProvider_ = value; bitField0_ |= 0x00000200; onChanged(); return this; } /** * * *
     * Cloud provider this configuration applies to
     * 
* * .google.cloud.securitycenter.v1.CloudProvider cloud_provider = 10; * * @return The cloudProvider. */ @java.lang.Override public com.google.cloud.securitycenter.v1.CloudProvider getCloudProvider() { com.google.cloud.securitycenter.v1.CloudProvider result = com.google.cloud.securitycenter.v1.CloudProvider.forNumber(cloudProvider_); return result == null ? com.google.cloud.securitycenter.v1.CloudProvider.UNRECOGNIZED : result; } /** * * *
     * Cloud provider this configuration applies to
     * 
* * .google.cloud.securitycenter.v1.CloudProvider cloud_provider = 10; * * @param value The cloudProvider to set. * @return This builder for chaining. */ public Builder setCloudProvider(com.google.cloud.securitycenter.v1.CloudProvider value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000200; cloudProvider_ = value.getNumber(); onChanged(); return this; } /** * * *
     * Cloud provider this configuration applies to
     * 
* * .google.cloud.securitycenter.v1.CloudProvider cloud_provider = 10; * * @return This builder for chaining. */ public Builder clearCloudProvider() { bitField0_ = (bitField0_ & ~0x00000200); cloudProvider_ = 0; onChanged(); return this; } private com.google.cloud.securitycenter.v1.ResourceValueConfig.SensitiveDataProtectionMapping sensitiveDataProtectionMapping_; private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.securitycenter.v1.ResourceValueConfig.SensitiveDataProtectionMapping, com.google.cloud.securitycenter.v1.ResourceValueConfig.SensitiveDataProtectionMapping .Builder, com.google.cloud.securitycenter.v1.ResourceValueConfig .SensitiveDataProtectionMappingOrBuilder> sensitiveDataProtectionMappingBuilder_; /** * * *
     * A mapping of the sensitivity on Sensitive Data Protection finding to
     * resource values. This mapping can only be used in combination with a
     * resource_type that is related to BigQuery, e.g.
     * "bigquery.googleapis.com/Dataset".
     * 
* * * .google.cloud.securitycenter.v1.ResourceValueConfig.SensitiveDataProtectionMapping sensitive_data_protection_mapping = 11; * * * @return Whether the sensitiveDataProtectionMapping field is set. */ public boolean hasSensitiveDataProtectionMapping() { return ((bitField0_ & 0x00000400) != 0); } /** * * *
     * A mapping of the sensitivity on Sensitive Data Protection finding to
     * resource values. This mapping can only be used in combination with a
     * resource_type that is related to BigQuery, e.g.
     * "bigquery.googleapis.com/Dataset".
     * 
* * * .google.cloud.securitycenter.v1.ResourceValueConfig.SensitiveDataProtectionMapping sensitive_data_protection_mapping = 11; * * * @return The sensitiveDataProtectionMapping. */ public com.google.cloud.securitycenter.v1.ResourceValueConfig.SensitiveDataProtectionMapping getSensitiveDataProtectionMapping() { if (sensitiveDataProtectionMappingBuilder_ == null) { return sensitiveDataProtectionMapping_ == null ? com.google.cloud.securitycenter.v1.ResourceValueConfig.SensitiveDataProtectionMapping .getDefaultInstance() : sensitiveDataProtectionMapping_; } else { return sensitiveDataProtectionMappingBuilder_.getMessage(); } } /** * * *
     * A mapping of the sensitivity on Sensitive Data Protection finding to
     * resource values. This mapping can only be used in combination with a
     * resource_type that is related to BigQuery, e.g.
     * "bigquery.googleapis.com/Dataset".
     * 
* * * .google.cloud.securitycenter.v1.ResourceValueConfig.SensitiveDataProtectionMapping sensitive_data_protection_mapping = 11; * */ public Builder setSensitiveDataProtectionMapping( com.google.cloud.securitycenter.v1.ResourceValueConfig.SensitiveDataProtectionMapping value) { if (sensitiveDataProtectionMappingBuilder_ == null) { if (value == null) { throw new NullPointerException(); } sensitiveDataProtectionMapping_ = value; } else { sensitiveDataProtectionMappingBuilder_.setMessage(value); } bitField0_ |= 0x00000400; onChanged(); return this; } /** * * *
     * A mapping of the sensitivity on Sensitive Data Protection finding to
     * resource values. This mapping can only be used in combination with a
     * resource_type that is related to BigQuery, e.g.
     * "bigquery.googleapis.com/Dataset".
     * 
* * * .google.cloud.securitycenter.v1.ResourceValueConfig.SensitiveDataProtectionMapping sensitive_data_protection_mapping = 11; * */ public Builder setSensitiveDataProtectionMapping( com.google.cloud.securitycenter.v1.ResourceValueConfig.SensitiveDataProtectionMapping .Builder builderForValue) { if (sensitiveDataProtectionMappingBuilder_ == null) { sensitiveDataProtectionMapping_ = builderForValue.build(); } else { sensitiveDataProtectionMappingBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000400; onChanged(); return this; } /** * * *
     * A mapping of the sensitivity on Sensitive Data Protection finding to
     * resource values. This mapping can only be used in combination with a
     * resource_type that is related to BigQuery, e.g.
     * "bigquery.googleapis.com/Dataset".
     * 
* * * .google.cloud.securitycenter.v1.ResourceValueConfig.SensitiveDataProtectionMapping sensitive_data_protection_mapping = 11; * */ public Builder mergeSensitiveDataProtectionMapping( com.google.cloud.securitycenter.v1.ResourceValueConfig.SensitiveDataProtectionMapping value) { if (sensitiveDataProtectionMappingBuilder_ == null) { if (((bitField0_ & 0x00000400) != 0) && sensitiveDataProtectionMapping_ != null && sensitiveDataProtectionMapping_ != com.google.cloud.securitycenter.v1.ResourceValueConfig .SensitiveDataProtectionMapping.getDefaultInstance()) { getSensitiveDataProtectionMappingBuilder().mergeFrom(value); } else { sensitiveDataProtectionMapping_ = value; } } else { sensitiveDataProtectionMappingBuilder_.mergeFrom(value); } if (sensitiveDataProtectionMapping_ != null) { bitField0_ |= 0x00000400; onChanged(); } return this; } /** * * *
     * A mapping of the sensitivity on Sensitive Data Protection finding to
     * resource values. This mapping can only be used in combination with a
     * resource_type that is related to BigQuery, e.g.
     * "bigquery.googleapis.com/Dataset".
     * 
* * * .google.cloud.securitycenter.v1.ResourceValueConfig.SensitiveDataProtectionMapping sensitive_data_protection_mapping = 11; * */ public Builder clearSensitiveDataProtectionMapping() { bitField0_ = (bitField0_ & ~0x00000400); sensitiveDataProtectionMapping_ = null; if (sensitiveDataProtectionMappingBuilder_ != null) { sensitiveDataProtectionMappingBuilder_.dispose(); sensitiveDataProtectionMappingBuilder_ = null; } onChanged(); return this; } /** * * *
     * A mapping of the sensitivity on Sensitive Data Protection finding to
     * resource values. This mapping can only be used in combination with a
     * resource_type that is related to BigQuery, e.g.
     * "bigquery.googleapis.com/Dataset".
     * 
* * * .google.cloud.securitycenter.v1.ResourceValueConfig.SensitiveDataProtectionMapping sensitive_data_protection_mapping = 11; * */ public com.google.cloud.securitycenter.v1.ResourceValueConfig.SensitiveDataProtectionMapping .Builder getSensitiveDataProtectionMappingBuilder() { bitField0_ |= 0x00000400; onChanged(); return getSensitiveDataProtectionMappingFieldBuilder().getBuilder(); } /** * * *
     * A mapping of the sensitivity on Sensitive Data Protection finding to
     * resource values. This mapping can only be used in combination with a
     * resource_type that is related to BigQuery, e.g.
     * "bigquery.googleapis.com/Dataset".
     * 
* * * .google.cloud.securitycenter.v1.ResourceValueConfig.SensitiveDataProtectionMapping sensitive_data_protection_mapping = 11; * */ public com.google.cloud.securitycenter.v1.ResourceValueConfig .SensitiveDataProtectionMappingOrBuilder getSensitiveDataProtectionMappingOrBuilder() { if (sensitiveDataProtectionMappingBuilder_ != null) { return sensitiveDataProtectionMappingBuilder_.getMessageOrBuilder(); } else { return sensitiveDataProtectionMapping_ == null ? com.google.cloud.securitycenter.v1.ResourceValueConfig.SensitiveDataProtectionMapping .getDefaultInstance() : sensitiveDataProtectionMapping_; } } /** * * *
     * A mapping of the sensitivity on Sensitive Data Protection finding to
     * resource values. This mapping can only be used in combination with a
     * resource_type that is related to BigQuery, e.g.
     * "bigquery.googleapis.com/Dataset".
     * 
* * * .google.cloud.securitycenter.v1.ResourceValueConfig.SensitiveDataProtectionMapping sensitive_data_protection_mapping = 11; * */ private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.securitycenter.v1.ResourceValueConfig.SensitiveDataProtectionMapping, com.google.cloud.securitycenter.v1.ResourceValueConfig.SensitiveDataProtectionMapping .Builder, com.google.cloud.securitycenter.v1.ResourceValueConfig .SensitiveDataProtectionMappingOrBuilder> getSensitiveDataProtectionMappingFieldBuilder() { if (sensitiveDataProtectionMappingBuilder_ == null) { sensitiveDataProtectionMappingBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.securitycenter.v1.ResourceValueConfig .SensitiveDataProtectionMapping, com.google.cloud.securitycenter.v1.ResourceValueConfig .SensitiveDataProtectionMapping.Builder, com.google.cloud.securitycenter.v1.ResourceValueConfig .SensitiveDataProtectionMappingOrBuilder>( getSensitiveDataProtectionMapping(), getParentForChildren(), isClean()); sensitiveDataProtectionMapping_ = null; } return sensitiveDataProtectionMappingBuilder_; } @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:google.cloud.securitycenter.v1.ResourceValueConfig) } // @@protoc_insertion_point(class_scope:google.cloud.securitycenter.v1.ResourceValueConfig) private static final com.google.cloud.securitycenter.v1.ResourceValueConfig DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.securitycenter.v1.ResourceValueConfig(); } public static com.google.cloud.securitycenter.v1.ResourceValueConfig getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public ResourceValueConfig parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public com.google.cloud.securitycenter.v1.ResourceValueConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy