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

com.google.cloud.securitycenter.v1p1beta1.Asset Maven / Gradle / Ivy

There is a newer version: 0.157.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/v1p1beta1/asset.proto

// Protobuf Java Version: 3.25.3
package com.google.cloud.securitycenter.v1p1beta1;

/**
 *
 *
 * 
 * Security Command Center representation of a Google Cloud
 * resource.
 *
 * The Asset is a Security Command Center resource that captures information
 * about a single Google Cloud resource. All modifications to an Asset are only
 * within the context of Security Command Center and don't affect the referenced
 * Google Cloud resource.
 * 
* * Protobuf type {@code google.cloud.securitycenter.v1p1beta1.Asset} */ public final class Asset extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.securitycenter.v1p1beta1.Asset) AssetOrBuilder { private static final long serialVersionUID = 0L; // Use Asset.newBuilder() to construct. private Asset(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Asset() { name_ = ""; canonicalName_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new Asset(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.securitycenter.v1p1beta1.AssetOuterClass .internal_static_google_cloud_securitycenter_v1p1beta1_Asset_descriptor; } @SuppressWarnings({"rawtypes"}) @java.lang.Override protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( int number) { switch (number) { case 7: return internalGetResourceProperties(); default: throw new RuntimeException("Invalid map field number: " + number); } } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.securitycenter.v1p1beta1.AssetOuterClass .internal_static_google_cloud_securitycenter_v1p1beta1_Asset_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.cloud.securitycenter.v1p1beta1.Asset.class, com.google.cloud.securitycenter.v1p1beta1.Asset.Builder.class); } public interface SecurityCenterPropertiesOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.securitycenter.v1p1beta1.Asset.SecurityCenterProperties) com.google.protobuf.MessageOrBuilder { /** * * *
     * The full resource name of the Google Cloud resource this asset
     * represents. This field is immutable after create time. See:
     * https://cloud.google.com/apis/design/resource_names#full_resource_name
     * 
* * string resource_name = 1; * * @return The resourceName. */ java.lang.String getResourceName(); /** * * *
     * The full resource name of the Google Cloud resource this asset
     * represents. This field is immutable after create time. See:
     * https://cloud.google.com/apis/design/resource_names#full_resource_name
     * 
* * string resource_name = 1; * * @return The bytes for resourceName. */ com.google.protobuf.ByteString getResourceNameBytes(); /** * * *
     * The type of the Google Cloud resource. Examples include: APPLICATION,
     * PROJECT, and ORGANIZATION. This is a case insensitive field defined by
     * Security Command Center and/or the producer of the resource and is
     * immutable after create time.
     * 
* * string resource_type = 2; * * @return The resourceType. */ java.lang.String getResourceType(); /** * * *
     * The type of the Google Cloud resource. Examples include: APPLICATION,
     * PROJECT, and ORGANIZATION. This is a case insensitive field defined by
     * Security Command Center and/or the producer of the resource and is
     * immutable after create time.
     * 
* * string resource_type = 2; * * @return The bytes for resourceType. */ com.google.protobuf.ByteString getResourceTypeBytes(); /** * * *
     * The full resource name of the immediate parent of the resource. See:
     * https://cloud.google.com/apis/design/resource_names#full_resource_name
     * 
* * string resource_parent = 3; * * @return The resourceParent. */ java.lang.String getResourceParent(); /** * * *
     * The full resource name of the immediate parent of the resource. See:
     * https://cloud.google.com/apis/design/resource_names#full_resource_name
     * 
* * string resource_parent = 3; * * @return The bytes for resourceParent. */ com.google.protobuf.ByteString getResourceParentBytes(); /** * * *
     * The full resource name of the project the resource belongs to. See:
     * https://cloud.google.com/apis/design/resource_names#full_resource_name
     * 
* * string resource_project = 4; * * @return The resourceProject. */ java.lang.String getResourceProject(); /** * * *
     * The full resource name of the project the resource belongs to. See:
     * https://cloud.google.com/apis/design/resource_names#full_resource_name
     * 
* * string resource_project = 4; * * @return The bytes for resourceProject. */ com.google.protobuf.ByteString getResourceProjectBytes(); /** * * *
     * Owners of the Google Cloud resource.
     * 
* * repeated string resource_owners = 5; * * @return A list containing the resourceOwners. */ java.util.List getResourceOwnersList(); /** * * *
     * Owners of the Google Cloud resource.
     * 
* * repeated string resource_owners = 5; * * @return The count of resourceOwners. */ int getResourceOwnersCount(); /** * * *
     * Owners of the Google Cloud resource.
     * 
* * repeated string resource_owners = 5; * * @param index The index of the element to return. * @return The resourceOwners at the given index. */ java.lang.String getResourceOwners(int index); /** * * *
     * Owners of the Google Cloud resource.
     * 
* * repeated string resource_owners = 5; * * @param index The index of the value to return. * @return The bytes of the resourceOwners at the given index. */ com.google.protobuf.ByteString getResourceOwnersBytes(int index); /** * * *
     * The user defined display name for this resource.
     * 
* * string resource_display_name = 6; * * @return The resourceDisplayName. */ java.lang.String getResourceDisplayName(); /** * * *
     * The user defined display name for this resource.
     * 
* * string resource_display_name = 6; * * @return The bytes for resourceDisplayName. */ com.google.protobuf.ByteString getResourceDisplayNameBytes(); /** * * *
     * The user defined display name for the parent of this resource.
     * 
* * string resource_parent_display_name = 7; * * @return The resourceParentDisplayName. */ java.lang.String getResourceParentDisplayName(); /** * * *
     * The user defined display name for the parent of this resource.
     * 
* * string resource_parent_display_name = 7; * * @return The bytes for resourceParentDisplayName. */ com.google.protobuf.ByteString getResourceParentDisplayNameBytes(); /** * * *
     * The user defined display name for the project of this resource.
     * 
* * string resource_project_display_name = 8; * * @return The resourceProjectDisplayName. */ java.lang.String getResourceProjectDisplayName(); /** * * *
     * The user defined display name for the project of this resource.
     * 
* * string resource_project_display_name = 8; * * @return The bytes for resourceProjectDisplayName. */ com.google.protobuf.ByteString getResourceProjectDisplayNameBytes(); /** * * *
     * Contains a Folder message for each folder in the assets ancestry.
     * The first folder is the deepest nested folder, and the last folder is the
     * folder directly under the Organization.
     * 
* * repeated .google.cloud.securitycenter.v1p1beta1.Folder folders = 10; */ java.util.List getFoldersList(); /** * * *
     * Contains a Folder message for each folder in the assets ancestry.
     * The first folder is the deepest nested folder, and the last folder is the
     * folder directly under the Organization.
     * 
* * repeated .google.cloud.securitycenter.v1p1beta1.Folder folders = 10; */ com.google.cloud.securitycenter.v1p1beta1.Folder getFolders(int index); /** * * *
     * Contains a Folder message for each folder in the assets ancestry.
     * The first folder is the deepest nested folder, and the last folder is the
     * folder directly under the Organization.
     * 
* * repeated .google.cloud.securitycenter.v1p1beta1.Folder folders = 10; */ int getFoldersCount(); /** * * *
     * Contains a Folder message for each folder in the assets ancestry.
     * The first folder is the deepest nested folder, and the last folder is the
     * folder directly under the Organization.
     * 
* * repeated .google.cloud.securitycenter.v1p1beta1.Folder folders = 10; */ java.util.List getFoldersOrBuilderList(); /** * * *
     * Contains a Folder message for each folder in the assets ancestry.
     * The first folder is the deepest nested folder, and the last folder is the
     * folder directly under the Organization.
     * 
* * repeated .google.cloud.securitycenter.v1p1beta1.Folder folders = 10; */ com.google.cloud.securitycenter.v1p1beta1.FolderOrBuilder getFoldersOrBuilder(int index); } /** * * *
   * Security Command Center managed properties. These properties are managed by
   * Security Command Center and cannot be modified by the user.
   * 
* * Protobuf type {@code google.cloud.securitycenter.v1p1beta1.Asset.SecurityCenterProperties} */ public static final class SecurityCenterProperties extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.securitycenter.v1p1beta1.Asset.SecurityCenterProperties) SecurityCenterPropertiesOrBuilder { private static final long serialVersionUID = 0L; // Use SecurityCenterProperties.newBuilder() to construct. private SecurityCenterProperties(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private SecurityCenterProperties() { resourceName_ = ""; resourceType_ = ""; resourceParent_ = ""; resourceProject_ = ""; resourceOwners_ = com.google.protobuf.LazyStringArrayList.emptyList(); resourceDisplayName_ = ""; resourceParentDisplayName_ = ""; resourceProjectDisplayName_ = ""; folders_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new SecurityCenterProperties(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.securitycenter.v1p1beta1.AssetOuterClass .internal_static_google_cloud_securitycenter_v1p1beta1_Asset_SecurityCenterProperties_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.securitycenter.v1p1beta1.AssetOuterClass .internal_static_google_cloud_securitycenter_v1p1beta1_Asset_SecurityCenterProperties_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.cloud.securitycenter.v1p1beta1.Asset.SecurityCenterProperties.class, com.google.cloud.securitycenter.v1p1beta1.Asset.SecurityCenterProperties.Builder .class); } public static final int RESOURCE_NAME_FIELD_NUMBER = 1; @SuppressWarnings("serial") private volatile java.lang.Object resourceName_ = ""; /** * * *
     * The full resource name of the Google Cloud resource this asset
     * represents. This field is immutable after create time. See:
     * https://cloud.google.com/apis/design/resource_names#full_resource_name
     * 
* * string resource_name = 1; * * @return The resourceName. */ @java.lang.Override public java.lang.String getResourceName() { java.lang.Object ref = resourceName_; 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(); resourceName_ = s; return s; } } /** * * *
     * The full resource name of the Google Cloud resource this asset
     * represents. This field is immutable after create time. See:
     * https://cloud.google.com/apis/design/resource_names#full_resource_name
     * 
* * string resource_name = 1; * * @return The bytes for resourceName. */ @java.lang.Override public com.google.protobuf.ByteString getResourceNameBytes() { java.lang.Object ref = resourceName_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); resourceName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int RESOURCE_TYPE_FIELD_NUMBER = 2; @SuppressWarnings("serial") private volatile java.lang.Object resourceType_ = ""; /** * * *
     * The type of the Google Cloud resource. Examples include: APPLICATION,
     * PROJECT, and ORGANIZATION. This is a case insensitive field defined by
     * Security Command Center and/or the producer of the resource and is
     * immutable after create time.
     * 
* * string resource_type = 2; * * @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; } } /** * * *
     * The type of the Google Cloud resource. Examples include: APPLICATION,
     * PROJECT, and ORGANIZATION. This is a case insensitive field defined by
     * Security Command Center and/or the producer of the resource and is
     * immutable after create time.
     * 
* * string resource_type = 2; * * @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 RESOURCE_PARENT_FIELD_NUMBER = 3; @SuppressWarnings("serial") private volatile java.lang.Object resourceParent_ = ""; /** * * *
     * The full resource name of the immediate parent of the resource. See:
     * https://cloud.google.com/apis/design/resource_names#full_resource_name
     * 
* * string resource_parent = 3; * * @return The resourceParent. */ @java.lang.Override public java.lang.String getResourceParent() { java.lang.Object ref = resourceParent_; 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(); resourceParent_ = s; return s; } } /** * * *
     * The full resource name of the immediate parent of the resource. See:
     * https://cloud.google.com/apis/design/resource_names#full_resource_name
     * 
* * string resource_parent = 3; * * @return The bytes for resourceParent. */ @java.lang.Override public com.google.protobuf.ByteString getResourceParentBytes() { java.lang.Object ref = resourceParent_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); resourceParent_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int RESOURCE_PROJECT_FIELD_NUMBER = 4; @SuppressWarnings("serial") private volatile java.lang.Object resourceProject_ = ""; /** * * *
     * The full resource name of the project the resource belongs to. See:
     * https://cloud.google.com/apis/design/resource_names#full_resource_name
     * 
* * string resource_project = 4; * * @return The resourceProject. */ @java.lang.Override public java.lang.String getResourceProject() { java.lang.Object ref = resourceProject_; 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(); resourceProject_ = s; return s; } } /** * * *
     * The full resource name of the project the resource belongs to. See:
     * https://cloud.google.com/apis/design/resource_names#full_resource_name
     * 
* * string resource_project = 4; * * @return The bytes for resourceProject. */ @java.lang.Override public com.google.protobuf.ByteString getResourceProjectBytes() { java.lang.Object ref = resourceProject_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); resourceProject_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int RESOURCE_OWNERS_FIELD_NUMBER = 5; @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList resourceOwners_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** * * *
     * Owners of the Google Cloud resource.
     * 
* * repeated string resource_owners = 5; * * @return A list containing the resourceOwners. */ public com.google.protobuf.ProtocolStringList getResourceOwnersList() { return resourceOwners_; } /** * * *
     * Owners of the Google Cloud resource.
     * 
* * repeated string resource_owners = 5; * * @return The count of resourceOwners. */ public int getResourceOwnersCount() { return resourceOwners_.size(); } /** * * *
     * Owners of the Google Cloud resource.
     * 
* * repeated string resource_owners = 5; * * @param index The index of the element to return. * @return The resourceOwners at the given index. */ public java.lang.String getResourceOwners(int index) { return resourceOwners_.get(index); } /** * * *
     * Owners of the Google Cloud resource.
     * 
* * repeated string resource_owners = 5; * * @param index The index of the value to return. * @return The bytes of the resourceOwners at the given index. */ public com.google.protobuf.ByteString getResourceOwnersBytes(int index) { return resourceOwners_.getByteString(index); } public static final int RESOURCE_DISPLAY_NAME_FIELD_NUMBER = 6; @SuppressWarnings("serial") private volatile java.lang.Object resourceDisplayName_ = ""; /** * * *
     * The user defined display name for this resource.
     * 
* * string resource_display_name = 6; * * @return The resourceDisplayName. */ @java.lang.Override public java.lang.String getResourceDisplayName() { java.lang.Object ref = resourceDisplayName_; 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(); resourceDisplayName_ = s; return s; } } /** * * *
     * The user defined display name for this resource.
     * 
* * string resource_display_name = 6; * * @return The bytes for resourceDisplayName. */ @java.lang.Override public com.google.protobuf.ByteString getResourceDisplayNameBytes() { java.lang.Object ref = resourceDisplayName_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); resourceDisplayName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int RESOURCE_PARENT_DISPLAY_NAME_FIELD_NUMBER = 7; @SuppressWarnings("serial") private volatile java.lang.Object resourceParentDisplayName_ = ""; /** * * *
     * The user defined display name for the parent of this resource.
     * 
* * string resource_parent_display_name = 7; * * @return The resourceParentDisplayName. */ @java.lang.Override public java.lang.String getResourceParentDisplayName() { java.lang.Object ref = resourceParentDisplayName_; 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(); resourceParentDisplayName_ = s; return s; } } /** * * *
     * The user defined display name for the parent of this resource.
     * 
* * string resource_parent_display_name = 7; * * @return The bytes for resourceParentDisplayName. */ @java.lang.Override public com.google.protobuf.ByteString getResourceParentDisplayNameBytes() { java.lang.Object ref = resourceParentDisplayName_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); resourceParentDisplayName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int RESOURCE_PROJECT_DISPLAY_NAME_FIELD_NUMBER = 8; @SuppressWarnings("serial") private volatile java.lang.Object resourceProjectDisplayName_ = ""; /** * * *
     * The user defined display name for the project of this resource.
     * 
* * string resource_project_display_name = 8; * * @return The resourceProjectDisplayName. */ @java.lang.Override public java.lang.String getResourceProjectDisplayName() { java.lang.Object ref = resourceProjectDisplayName_; 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(); resourceProjectDisplayName_ = s; return s; } } /** * * *
     * The user defined display name for the project of this resource.
     * 
* * string resource_project_display_name = 8; * * @return The bytes for resourceProjectDisplayName. */ @java.lang.Override public com.google.protobuf.ByteString getResourceProjectDisplayNameBytes() { java.lang.Object ref = resourceProjectDisplayName_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); resourceProjectDisplayName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int FOLDERS_FIELD_NUMBER = 10; @SuppressWarnings("serial") private java.util.List folders_; /** * * *
     * Contains a Folder message for each folder in the assets ancestry.
     * The first folder is the deepest nested folder, and the last folder is the
     * folder directly under the Organization.
     * 
* * repeated .google.cloud.securitycenter.v1p1beta1.Folder folders = 10; */ @java.lang.Override public java.util.List getFoldersList() { return folders_; } /** * * *
     * Contains a Folder message for each folder in the assets ancestry.
     * The first folder is the deepest nested folder, and the last folder is the
     * folder directly under the Organization.
     * 
* * repeated .google.cloud.securitycenter.v1p1beta1.Folder folders = 10; */ @java.lang.Override public java.util.List getFoldersOrBuilderList() { return folders_; } /** * * *
     * Contains a Folder message for each folder in the assets ancestry.
     * The first folder is the deepest nested folder, and the last folder is the
     * folder directly under the Organization.
     * 
* * repeated .google.cloud.securitycenter.v1p1beta1.Folder folders = 10; */ @java.lang.Override public int getFoldersCount() { return folders_.size(); } /** * * *
     * Contains a Folder message for each folder in the assets ancestry.
     * The first folder is the deepest nested folder, and the last folder is the
     * folder directly under the Organization.
     * 
* * repeated .google.cloud.securitycenter.v1p1beta1.Folder folders = 10; */ @java.lang.Override public com.google.cloud.securitycenter.v1p1beta1.Folder getFolders(int index) { return folders_.get(index); } /** * * *
     * Contains a Folder message for each folder in the assets ancestry.
     * The first folder is the deepest nested folder, and the last folder is the
     * folder directly under the Organization.
     * 
* * repeated .google.cloud.securitycenter.v1p1beta1.Folder folders = 10; */ @java.lang.Override public com.google.cloud.securitycenter.v1p1beta1.FolderOrBuilder getFoldersOrBuilder( int index) { return folders_.get(index); } 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(resourceName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, resourceName_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(resourceType_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, resourceType_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(resourceParent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, resourceParent_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(resourceProject_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, resourceProject_); } for (int i = 0; i < resourceOwners_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 5, resourceOwners_.getRaw(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(resourceDisplayName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 6, resourceDisplayName_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(resourceParentDisplayName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 7, resourceParentDisplayName_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(resourceProjectDisplayName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 8, resourceProjectDisplayName_); } for (int i = 0; i < folders_.size(); i++) { output.writeMessage(10, folders_.get(i)); } 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(resourceName_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, resourceName_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(resourceType_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, resourceType_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(resourceParent_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, resourceParent_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(resourceProject_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, resourceProject_); } { int dataSize = 0; for (int i = 0; i < resourceOwners_.size(); i++) { dataSize += computeStringSizeNoTag(resourceOwners_.getRaw(i)); } size += dataSize; size += 1 * getResourceOwnersList().size(); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(resourceDisplayName_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, resourceDisplayName_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(resourceParentDisplayName_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, resourceParentDisplayName_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(resourceProjectDisplayName_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize( 8, resourceProjectDisplayName_); } for (int i = 0; i < folders_.size(); i++) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(10, folders_.get(i)); } 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.v1p1beta1.Asset.SecurityCenterProperties)) { return super.equals(obj); } com.google.cloud.securitycenter.v1p1beta1.Asset.SecurityCenterProperties other = (com.google.cloud.securitycenter.v1p1beta1.Asset.SecurityCenterProperties) obj; if (!getResourceName().equals(other.getResourceName())) return false; if (!getResourceType().equals(other.getResourceType())) return false; if (!getResourceParent().equals(other.getResourceParent())) return false; if (!getResourceProject().equals(other.getResourceProject())) return false; if (!getResourceOwnersList().equals(other.getResourceOwnersList())) return false; if (!getResourceDisplayName().equals(other.getResourceDisplayName())) return false; if (!getResourceParentDisplayName().equals(other.getResourceParentDisplayName())) return false; if (!getResourceProjectDisplayName().equals(other.getResourceProjectDisplayName())) return false; if (!getFoldersList().equals(other.getFoldersList())) 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) + RESOURCE_NAME_FIELD_NUMBER; hash = (53 * hash) + getResourceName().hashCode(); hash = (37 * hash) + RESOURCE_TYPE_FIELD_NUMBER; hash = (53 * hash) + getResourceType().hashCode(); hash = (37 * hash) + RESOURCE_PARENT_FIELD_NUMBER; hash = (53 * hash) + getResourceParent().hashCode(); hash = (37 * hash) + RESOURCE_PROJECT_FIELD_NUMBER; hash = (53 * hash) + getResourceProject().hashCode(); if (getResourceOwnersCount() > 0) { hash = (37 * hash) + RESOURCE_OWNERS_FIELD_NUMBER; hash = (53 * hash) + getResourceOwnersList().hashCode(); } hash = (37 * hash) + RESOURCE_DISPLAY_NAME_FIELD_NUMBER; hash = (53 * hash) + getResourceDisplayName().hashCode(); hash = (37 * hash) + RESOURCE_PARENT_DISPLAY_NAME_FIELD_NUMBER; hash = (53 * hash) + getResourceParentDisplayName().hashCode(); hash = (37 * hash) + RESOURCE_PROJECT_DISPLAY_NAME_FIELD_NUMBER; hash = (53 * hash) + getResourceProjectDisplayName().hashCode(); if (getFoldersCount() > 0) { hash = (37 * hash) + FOLDERS_FIELD_NUMBER; hash = (53 * hash) + getFoldersList().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.securitycenter.v1p1beta1.Asset.SecurityCenterProperties parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.cloud.securitycenter.v1p1beta1.Asset.SecurityCenterProperties 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.v1p1beta1.Asset.SecurityCenterProperties parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.cloud.securitycenter.v1p1beta1.Asset.SecurityCenterProperties 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.v1p1beta1.Asset.SecurityCenterProperties parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.cloud.securitycenter.v1p1beta1.Asset.SecurityCenterProperties parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.cloud.securitycenter.v1p1beta1.Asset.SecurityCenterProperties parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static com.google.cloud.securitycenter.v1p1beta1.Asset.SecurityCenterProperties 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.v1p1beta1.Asset.SecurityCenterProperties parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.securitycenter.v1p1beta1.Asset.SecurityCenterProperties 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.v1p1beta1.Asset.SecurityCenterProperties parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static com.google.cloud.securitycenter.v1p1beta1.Asset.SecurityCenterProperties 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.v1p1beta1.Asset.SecurityCenterProperties 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; } /** * * *
     * Security Command Center managed properties. These properties are managed by
     * Security Command Center and cannot be modified by the user.
     * 
* * Protobuf type {@code google.cloud.securitycenter.v1p1beta1.Asset.SecurityCenterProperties} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.securitycenter.v1p1beta1.Asset.SecurityCenterProperties) com.google.cloud.securitycenter.v1p1beta1.Asset.SecurityCenterPropertiesOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.securitycenter.v1p1beta1.AssetOuterClass .internal_static_google_cloud_securitycenter_v1p1beta1_Asset_SecurityCenterProperties_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.securitycenter.v1p1beta1.AssetOuterClass .internal_static_google_cloud_securitycenter_v1p1beta1_Asset_SecurityCenterProperties_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.cloud.securitycenter.v1p1beta1.Asset.SecurityCenterProperties.class, com.google.cloud.securitycenter.v1p1beta1.Asset.SecurityCenterProperties.Builder .class); } // Construct using // com.google.cloud.securitycenter.v1p1beta1.Asset.SecurityCenterProperties.newBuilder() private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; resourceName_ = ""; resourceType_ = ""; resourceParent_ = ""; resourceProject_ = ""; resourceOwners_ = com.google.protobuf.LazyStringArrayList.emptyList(); resourceDisplayName_ = ""; resourceParentDisplayName_ = ""; resourceProjectDisplayName_ = ""; if (foldersBuilder_ == null) { folders_ = java.util.Collections.emptyList(); } else { folders_ = null; foldersBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000100); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.cloud.securitycenter.v1p1beta1.AssetOuterClass .internal_static_google_cloud_securitycenter_v1p1beta1_Asset_SecurityCenterProperties_descriptor; } @java.lang.Override public com.google.cloud.securitycenter.v1p1beta1.Asset.SecurityCenterProperties getDefaultInstanceForType() { return com.google.cloud.securitycenter.v1p1beta1.Asset.SecurityCenterProperties .getDefaultInstance(); } @java.lang.Override public com.google.cloud.securitycenter.v1p1beta1.Asset.SecurityCenterProperties build() { com.google.cloud.securitycenter.v1p1beta1.Asset.SecurityCenterProperties result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.cloud.securitycenter.v1p1beta1.Asset.SecurityCenterProperties buildPartial() { com.google.cloud.securitycenter.v1p1beta1.Asset.SecurityCenterProperties result = new com.google.cloud.securitycenter.v1p1beta1.Asset.SecurityCenterProperties(this); buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartialRepeatedFields( com.google.cloud.securitycenter.v1p1beta1.Asset.SecurityCenterProperties result) { if (foldersBuilder_ == null) { if (((bitField0_ & 0x00000100) != 0)) { folders_ = java.util.Collections.unmodifiableList(folders_); bitField0_ = (bitField0_ & ~0x00000100); } result.folders_ = folders_; } else { result.folders_ = foldersBuilder_.build(); } } private void buildPartial0( com.google.cloud.securitycenter.v1p1beta1.Asset.SecurityCenterProperties result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.resourceName_ = resourceName_; } if (((from_bitField0_ & 0x00000002) != 0)) { result.resourceType_ = resourceType_; } if (((from_bitField0_ & 0x00000004) != 0)) { result.resourceParent_ = resourceParent_; } if (((from_bitField0_ & 0x00000008) != 0)) { result.resourceProject_ = resourceProject_; } if (((from_bitField0_ & 0x00000010) != 0)) { resourceOwners_.makeImmutable(); result.resourceOwners_ = resourceOwners_; } if (((from_bitField0_ & 0x00000020) != 0)) { result.resourceDisplayName_ = resourceDisplayName_; } if (((from_bitField0_ & 0x00000040) != 0)) { result.resourceParentDisplayName_ = resourceParentDisplayName_; } if (((from_bitField0_ & 0x00000080) != 0)) { result.resourceProjectDisplayName_ = resourceProjectDisplayName_; } } @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.v1p1beta1.Asset.SecurityCenterProperties) { return mergeFrom( (com.google.cloud.securitycenter.v1p1beta1.Asset.SecurityCenterProperties) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom( com.google.cloud.securitycenter.v1p1beta1.Asset.SecurityCenterProperties other) { if (other == com.google.cloud.securitycenter.v1p1beta1.Asset.SecurityCenterProperties .getDefaultInstance()) return this; if (!other.getResourceName().isEmpty()) { resourceName_ = other.resourceName_; bitField0_ |= 0x00000001; onChanged(); } if (!other.getResourceType().isEmpty()) { resourceType_ = other.resourceType_; bitField0_ |= 0x00000002; onChanged(); } if (!other.getResourceParent().isEmpty()) { resourceParent_ = other.resourceParent_; bitField0_ |= 0x00000004; onChanged(); } if (!other.getResourceProject().isEmpty()) { resourceProject_ = other.resourceProject_; bitField0_ |= 0x00000008; onChanged(); } if (!other.resourceOwners_.isEmpty()) { if (resourceOwners_.isEmpty()) { resourceOwners_ = other.resourceOwners_; bitField0_ |= 0x00000010; } else { ensureResourceOwnersIsMutable(); resourceOwners_.addAll(other.resourceOwners_); } onChanged(); } if (!other.getResourceDisplayName().isEmpty()) { resourceDisplayName_ = other.resourceDisplayName_; bitField0_ |= 0x00000020; onChanged(); } if (!other.getResourceParentDisplayName().isEmpty()) { resourceParentDisplayName_ = other.resourceParentDisplayName_; bitField0_ |= 0x00000040; onChanged(); } if (!other.getResourceProjectDisplayName().isEmpty()) { resourceProjectDisplayName_ = other.resourceProjectDisplayName_; bitField0_ |= 0x00000080; onChanged(); } if (foldersBuilder_ == null) { if (!other.folders_.isEmpty()) { if (folders_.isEmpty()) { folders_ = other.folders_; bitField0_ = (bitField0_ & ~0x00000100); } else { ensureFoldersIsMutable(); folders_.addAll(other.folders_); } onChanged(); } } else { if (!other.folders_.isEmpty()) { if (foldersBuilder_.isEmpty()) { foldersBuilder_.dispose(); foldersBuilder_ = null; folders_ = other.folders_; bitField0_ = (bitField0_ & ~0x00000100); foldersBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getFoldersFieldBuilder() : null; } else { foldersBuilder_.addAllMessages(other.folders_); } } } 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: { resourceName_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000001; break; } // case 10 case 18: { resourceType_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000002; break; } // case 18 case 26: { resourceParent_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000004; break; } // case 26 case 34: { resourceProject_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000008; break; } // case 34 case 42: { java.lang.String s = input.readStringRequireUtf8(); ensureResourceOwnersIsMutable(); resourceOwners_.add(s); break; } // case 42 case 50: { resourceDisplayName_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000020; break; } // case 50 case 58: { resourceParentDisplayName_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000040; break; } // case 58 case 66: { resourceProjectDisplayName_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000080; break; } // case 66 case 82: { com.google.cloud.securitycenter.v1p1beta1.Folder m = input.readMessage( com.google.cloud.securitycenter.v1p1beta1.Folder.parser(), extensionRegistry); if (foldersBuilder_ == null) { ensureFoldersIsMutable(); folders_.add(m); } else { foldersBuilder_.addMessage(m); } break; } // case 82 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 resourceName_ = ""; /** * * *
       * The full resource name of the Google Cloud resource this asset
       * represents. This field is immutable after create time. See:
       * https://cloud.google.com/apis/design/resource_names#full_resource_name
       * 
* * string resource_name = 1; * * @return The resourceName. */ public java.lang.String getResourceName() { java.lang.Object ref = resourceName_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); resourceName_ = s; return s; } else { return (java.lang.String) ref; } } /** * * *
       * The full resource name of the Google Cloud resource this asset
       * represents. This field is immutable after create time. See:
       * https://cloud.google.com/apis/design/resource_names#full_resource_name
       * 
* * string resource_name = 1; * * @return The bytes for resourceName. */ public com.google.protobuf.ByteString getResourceNameBytes() { java.lang.Object ref = resourceName_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); resourceName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
       * The full resource name of the Google Cloud resource this asset
       * represents. This field is immutable after create time. See:
       * https://cloud.google.com/apis/design/resource_names#full_resource_name
       * 
* * string resource_name = 1; * * @param value The resourceName to set. * @return This builder for chaining. */ public Builder setResourceName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } resourceName_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** * * *
       * The full resource name of the Google Cloud resource this asset
       * represents. This field is immutable after create time. See:
       * https://cloud.google.com/apis/design/resource_names#full_resource_name
       * 
* * string resource_name = 1; * * @return This builder for chaining. */ public Builder clearResourceName() { resourceName_ = getDefaultInstance().getResourceName(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** * * *
       * The full resource name of the Google Cloud resource this asset
       * represents. This field is immutable after create time. See:
       * https://cloud.google.com/apis/design/resource_names#full_resource_name
       * 
* * string resource_name = 1; * * @param value The bytes for resourceName to set. * @return This builder for chaining. */ public Builder setResourceNameBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); resourceName_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } private java.lang.Object resourceType_ = ""; /** * * *
       * The type of the Google Cloud resource. Examples include: APPLICATION,
       * PROJECT, and ORGANIZATION. This is a case insensitive field defined by
       * Security Command Center and/or the producer of the resource and is
       * immutable after create time.
       * 
* * string resource_type = 2; * * @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; } } /** * * *
       * The type of the Google Cloud resource. Examples include: APPLICATION,
       * PROJECT, and ORGANIZATION. This is a case insensitive field defined by
       * Security Command Center and/or the producer of the resource and is
       * immutable after create time.
       * 
* * string resource_type = 2; * * @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; } } /** * * *
       * The type of the Google Cloud resource. Examples include: APPLICATION,
       * PROJECT, and ORGANIZATION. This is a case insensitive field defined by
       * Security Command Center and/or the producer of the resource and is
       * immutable after create time.
       * 
* * string resource_type = 2; * * @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_ |= 0x00000002; onChanged(); return this; } /** * * *
       * The type of the Google Cloud resource. Examples include: APPLICATION,
       * PROJECT, and ORGANIZATION. This is a case insensitive field defined by
       * Security Command Center and/or the producer of the resource and is
       * immutable after create time.
       * 
* * string resource_type = 2; * * @return This builder for chaining. */ public Builder clearResourceType() { resourceType_ = getDefaultInstance().getResourceType(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } /** * * *
       * The type of the Google Cloud resource. Examples include: APPLICATION,
       * PROJECT, and ORGANIZATION. This is a case insensitive field defined by
       * Security Command Center and/or the producer of the resource and is
       * immutable after create time.
       * 
* * string resource_type = 2; * * @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_ |= 0x00000002; onChanged(); return this; } private java.lang.Object resourceParent_ = ""; /** * * *
       * The full resource name of the immediate parent of the resource. See:
       * https://cloud.google.com/apis/design/resource_names#full_resource_name
       * 
* * string resource_parent = 3; * * @return The resourceParent. */ public java.lang.String getResourceParent() { java.lang.Object ref = resourceParent_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); resourceParent_ = s; return s; } else { return (java.lang.String) ref; } } /** * * *
       * The full resource name of the immediate parent of the resource. See:
       * https://cloud.google.com/apis/design/resource_names#full_resource_name
       * 
* * string resource_parent = 3; * * @return The bytes for resourceParent. */ public com.google.protobuf.ByteString getResourceParentBytes() { java.lang.Object ref = resourceParent_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); resourceParent_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
       * The full resource name of the immediate parent of the resource. See:
       * https://cloud.google.com/apis/design/resource_names#full_resource_name
       * 
* * string resource_parent = 3; * * @param value The resourceParent to set. * @return This builder for chaining. */ public Builder setResourceParent(java.lang.String value) { if (value == null) { throw new NullPointerException(); } resourceParent_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** * * *
       * The full resource name of the immediate parent of the resource. See:
       * https://cloud.google.com/apis/design/resource_names#full_resource_name
       * 
* * string resource_parent = 3; * * @return This builder for chaining. */ public Builder clearResourceParent() { resourceParent_ = getDefaultInstance().getResourceParent(); bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } /** * * *
       * The full resource name of the immediate parent of the resource. See:
       * https://cloud.google.com/apis/design/resource_names#full_resource_name
       * 
* * string resource_parent = 3; * * @param value The bytes for resourceParent to set. * @return This builder for chaining. */ public Builder setResourceParentBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); resourceParent_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } private java.lang.Object resourceProject_ = ""; /** * * *
       * The full resource name of the project the resource belongs to. See:
       * https://cloud.google.com/apis/design/resource_names#full_resource_name
       * 
* * string resource_project = 4; * * @return The resourceProject. */ public java.lang.String getResourceProject() { java.lang.Object ref = resourceProject_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); resourceProject_ = s; return s; } else { return (java.lang.String) ref; } } /** * * *
       * The full resource name of the project the resource belongs to. See:
       * https://cloud.google.com/apis/design/resource_names#full_resource_name
       * 
* * string resource_project = 4; * * @return The bytes for resourceProject. */ public com.google.protobuf.ByteString getResourceProjectBytes() { java.lang.Object ref = resourceProject_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); resourceProject_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
       * The full resource name of the project the resource belongs to. See:
       * https://cloud.google.com/apis/design/resource_names#full_resource_name
       * 
* * string resource_project = 4; * * @param value The resourceProject to set. * @return This builder for chaining. */ public Builder setResourceProject(java.lang.String value) { if (value == null) { throw new NullPointerException(); } resourceProject_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** * * *
       * The full resource name of the project the resource belongs to. See:
       * https://cloud.google.com/apis/design/resource_names#full_resource_name
       * 
* * string resource_project = 4; * * @return This builder for chaining. */ public Builder clearResourceProject() { resourceProject_ = getDefaultInstance().getResourceProject(); bitField0_ = (bitField0_ & ~0x00000008); onChanged(); return this; } /** * * *
       * The full resource name of the project the resource belongs to. See:
       * https://cloud.google.com/apis/design/resource_names#full_resource_name
       * 
* * string resource_project = 4; * * @param value The bytes for resourceProject to set. * @return This builder for chaining. */ public Builder setResourceProjectBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); resourceProject_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } private com.google.protobuf.LazyStringArrayList resourceOwners_ = com.google.protobuf.LazyStringArrayList.emptyList(); private void ensureResourceOwnersIsMutable() { if (!resourceOwners_.isModifiable()) { resourceOwners_ = new com.google.protobuf.LazyStringArrayList(resourceOwners_); } bitField0_ |= 0x00000010; } /** * * *
       * Owners of the Google Cloud resource.
       * 
* * repeated string resource_owners = 5; * * @return A list containing the resourceOwners. */ public com.google.protobuf.ProtocolStringList getResourceOwnersList() { resourceOwners_.makeImmutable(); return resourceOwners_; } /** * * *
       * Owners of the Google Cloud resource.
       * 
* * repeated string resource_owners = 5; * * @return The count of resourceOwners. */ public int getResourceOwnersCount() { return resourceOwners_.size(); } /** * * *
       * Owners of the Google Cloud resource.
       * 
* * repeated string resource_owners = 5; * * @param index The index of the element to return. * @return The resourceOwners at the given index. */ public java.lang.String getResourceOwners(int index) { return resourceOwners_.get(index); } /** * * *
       * Owners of the Google Cloud resource.
       * 
* * repeated string resource_owners = 5; * * @param index The index of the value to return. * @return The bytes of the resourceOwners at the given index. */ public com.google.protobuf.ByteString getResourceOwnersBytes(int index) { return resourceOwners_.getByteString(index); } /** * * *
       * Owners of the Google Cloud resource.
       * 
* * repeated string resource_owners = 5; * * @param index The index to set the value at. * @param value The resourceOwners to set. * @return This builder for chaining. */ public Builder setResourceOwners(int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureResourceOwnersIsMutable(); resourceOwners_.set(index, value); bitField0_ |= 0x00000010; onChanged(); return this; } /** * * *
       * Owners of the Google Cloud resource.
       * 
* * repeated string resource_owners = 5; * * @param value The resourceOwners to add. * @return This builder for chaining. */ public Builder addResourceOwners(java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureResourceOwnersIsMutable(); resourceOwners_.add(value); bitField0_ |= 0x00000010; onChanged(); return this; } /** * * *
       * Owners of the Google Cloud resource.
       * 
* * repeated string resource_owners = 5; * * @param values The resourceOwners to add. * @return This builder for chaining. */ public Builder addAllResourceOwners(java.lang.Iterable values) { ensureResourceOwnersIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll(values, resourceOwners_); bitField0_ |= 0x00000010; onChanged(); return this; } /** * * *
       * Owners of the Google Cloud resource.
       * 
* * repeated string resource_owners = 5; * * @return This builder for chaining. */ public Builder clearResourceOwners() { resourceOwners_ = com.google.protobuf.LazyStringArrayList.emptyList(); bitField0_ = (bitField0_ & ~0x00000010); ; onChanged(); return this; } /** * * *
       * Owners of the Google Cloud resource.
       * 
* * repeated string resource_owners = 5; * * @param value The bytes of the resourceOwners to add. * @return This builder for chaining. */ public Builder addResourceOwnersBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureResourceOwnersIsMutable(); resourceOwners_.add(value); bitField0_ |= 0x00000010; onChanged(); return this; } private java.lang.Object resourceDisplayName_ = ""; /** * * *
       * The user defined display name for this resource.
       * 
* * string resource_display_name = 6; * * @return The resourceDisplayName. */ public java.lang.String getResourceDisplayName() { java.lang.Object ref = resourceDisplayName_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); resourceDisplayName_ = s; return s; } else { return (java.lang.String) ref; } } /** * * *
       * The user defined display name for this resource.
       * 
* * string resource_display_name = 6; * * @return The bytes for resourceDisplayName. */ public com.google.protobuf.ByteString getResourceDisplayNameBytes() { java.lang.Object ref = resourceDisplayName_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); resourceDisplayName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
       * The user defined display name for this resource.
       * 
* * string resource_display_name = 6; * * @param value The resourceDisplayName to set. * @return This builder for chaining. */ public Builder setResourceDisplayName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } resourceDisplayName_ = value; bitField0_ |= 0x00000020; onChanged(); return this; } /** * * *
       * The user defined display name for this resource.
       * 
* * string resource_display_name = 6; * * @return This builder for chaining. */ public Builder clearResourceDisplayName() { resourceDisplayName_ = getDefaultInstance().getResourceDisplayName(); bitField0_ = (bitField0_ & ~0x00000020); onChanged(); return this; } /** * * *
       * The user defined display name for this resource.
       * 
* * string resource_display_name = 6; * * @param value The bytes for resourceDisplayName to set. * @return This builder for chaining. */ public Builder setResourceDisplayNameBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); resourceDisplayName_ = value; bitField0_ |= 0x00000020; onChanged(); return this; } private java.lang.Object resourceParentDisplayName_ = ""; /** * * *
       * The user defined display name for the parent of this resource.
       * 
* * string resource_parent_display_name = 7; * * @return The resourceParentDisplayName. */ public java.lang.String getResourceParentDisplayName() { java.lang.Object ref = resourceParentDisplayName_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); resourceParentDisplayName_ = s; return s; } else { return (java.lang.String) ref; } } /** * * *
       * The user defined display name for the parent of this resource.
       * 
* * string resource_parent_display_name = 7; * * @return The bytes for resourceParentDisplayName. */ public com.google.protobuf.ByteString getResourceParentDisplayNameBytes() { java.lang.Object ref = resourceParentDisplayName_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); resourceParentDisplayName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
       * The user defined display name for the parent of this resource.
       * 
* * string resource_parent_display_name = 7; * * @param value The resourceParentDisplayName to set. * @return This builder for chaining. */ public Builder setResourceParentDisplayName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } resourceParentDisplayName_ = value; bitField0_ |= 0x00000040; onChanged(); return this; } /** * * *
       * The user defined display name for the parent of this resource.
       * 
* * string resource_parent_display_name = 7; * * @return This builder for chaining. */ public Builder clearResourceParentDisplayName() { resourceParentDisplayName_ = getDefaultInstance().getResourceParentDisplayName(); bitField0_ = (bitField0_ & ~0x00000040); onChanged(); return this; } /** * * *
       * The user defined display name for the parent of this resource.
       * 
* * string resource_parent_display_name = 7; * * @param value The bytes for resourceParentDisplayName to set. * @return This builder for chaining. */ public Builder setResourceParentDisplayNameBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); resourceParentDisplayName_ = value; bitField0_ |= 0x00000040; onChanged(); return this; } private java.lang.Object resourceProjectDisplayName_ = ""; /** * * *
       * The user defined display name for the project of this resource.
       * 
* * string resource_project_display_name = 8; * * @return The resourceProjectDisplayName. */ public java.lang.String getResourceProjectDisplayName() { java.lang.Object ref = resourceProjectDisplayName_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); resourceProjectDisplayName_ = s; return s; } else { return (java.lang.String) ref; } } /** * * *
       * The user defined display name for the project of this resource.
       * 
* * string resource_project_display_name = 8; * * @return The bytes for resourceProjectDisplayName. */ public com.google.protobuf.ByteString getResourceProjectDisplayNameBytes() { java.lang.Object ref = resourceProjectDisplayName_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); resourceProjectDisplayName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
       * The user defined display name for the project of this resource.
       * 
* * string resource_project_display_name = 8; * * @param value The resourceProjectDisplayName to set. * @return This builder for chaining. */ public Builder setResourceProjectDisplayName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } resourceProjectDisplayName_ = value; bitField0_ |= 0x00000080; onChanged(); return this; } /** * * *
       * The user defined display name for the project of this resource.
       * 
* * string resource_project_display_name = 8; * * @return This builder for chaining. */ public Builder clearResourceProjectDisplayName() { resourceProjectDisplayName_ = getDefaultInstance().getResourceProjectDisplayName(); bitField0_ = (bitField0_ & ~0x00000080); onChanged(); return this; } /** * * *
       * The user defined display name for the project of this resource.
       * 
* * string resource_project_display_name = 8; * * @param value The bytes for resourceProjectDisplayName to set. * @return This builder for chaining. */ public Builder setResourceProjectDisplayNameBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); resourceProjectDisplayName_ = value; bitField0_ |= 0x00000080; onChanged(); return this; } private java.util.List folders_ = java.util.Collections.emptyList(); private void ensureFoldersIsMutable() { if (!((bitField0_ & 0x00000100) != 0)) { folders_ = new java.util.ArrayList(folders_); bitField0_ |= 0x00000100; } } private com.google.protobuf.RepeatedFieldBuilderV3< com.google.cloud.securitycenter.v1p1beta1.Folder, com.google.cloud.securitycenter.v1p1beta1.Folder.Builder, com.google.cloud.securitycenter.v1p1beta1.FolderOrBuilder> foldersBuilder_; /** * * *
       * Contains a Folder message for each folder in the assets ancestry.
       * The first folder is the deepest nested folder, and the last folder is the
       * folder directly under the Organization.
       * 
* * repeated .google.cloud.securitycenter.v1p1beta1.Folder folders = 10; */ public java.util.List getFoldersList() { if (foldersBuilder_ == null) { return java.util.Collections.unmodifiableList(folders_); } else { return foldersBuilder_.getMessageList(); } } /** * * *
       * Contains a Folder message for each folder in the assets ancestry.
       * The first folder is the deepest nested folder, and the last folder is the
       * folder directly under the Organization.
       * 
* * repeated .google.cloud.securitycenter.v1p1beta1.Folder folders = 10; */ public int getFoldersCount() { if (foldersBuilder_ == null) { return folders_.size(); } else { return foldersBuilder_.getCount(); } } /** * * *
       * Contains a Folder message for each folder in the assets ancestry.
       * The first folder is the deepest nested folder, and the last folder is the
       * folder directly under the Organization.
       * 
* * repeated .google.cloud.securitycenter.v1p1beta1.Folder folders = 10; */ public com.google.cloud.securitycenter.v1p1beta1.Folder getFolders(int index) { if (foldersBuilder_ == null) { return folders_.get(index); } else { return foldersBuilder_.getMessage(index); } } /** * * *
       * Contains a Folder message for each folder in the assets ancestry.
       * The first folder is the deepest nested folder, and the last folder is the
       * folder directly under the Organization.
       * 
* * repeated .google.cloud.securitycenter.v1p1beta1.Folder folders = 10; */ public Builder setFolders(int index, com.google.cloud.securitycenter.v1p1beta1.Folder value) { if (foldersBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureFoldersIsMutable(); folders_.set(index, value); onChanged(); } else { foldersBuilder_.setMessage(index, value); } return this; } /** * * *
       * Contains a Folder message for each folder in the assets ancestry.
       * The first folder is the deepest nested folder, and the last folder is the
       * folder directly under the Organization.
       * 
* * repeated .google.cloud.securitycenter.v1p1beta1.Folder folders = 10; */ public Builder setFolders( int index, com.google.cloud.securitycenter.v1p1beta1.Folder.Builder builderForValue) { if (foldersBuilder_ == null) { ensureFoldersIsMutable(); folders_.set(index, builderForValue.build()); onChanged(); } else { foldersBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * * *
       * Contains a Folder message for each folder in the assets ancestry.
       * The first folder is the deepest nested folder, and the last folder is the
       * folder directly under the Organization.
       * 
* * repeated .google.cloud.securitycenter.v1p1beta1.Folder folders = 10; */ public Builder addFolders(com.google.cloud.securitycenter.v1p1beta1.Folder value) { if (foldersBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureFoldersIsMutable(); folders_.add(value); onChanged(); } else { foldersBuilder_.addMessage(value); } return this; } /** * * *
       * Contains a Folder message for each folder in the assets ancestry.
       * The first folder is the deepest nested folder, and the last folder is the
       * folder directly under the Organization.
       * 
* * repeated .google.cloud.securitycenter.v1p1beta1.Folder folders = 10; */ public Builder addFolders(int index, com.google.cloud.securitycenter.v1p1beta1.Folder value) { if (foldersBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureFoldersIsMutable(); folders_.add(index, value); onChanged(); } else { foldersBuilder_.addMessage(index, value); } return this; } /** * * *
       * Contains a Folder message for each folder in the assets ancestry.
       * The first folder is the deepest nested folder, and the last folder is the
       * folder directly under the Organization.
       * 
* * repeated .google.cloud.securitycenter.v1p1beta1.Folder folders = 10; */ public Builder addFolders( com.google.cloud.securitycenter.v1p1beta1.Folder.Builder builderForValue) { if (foldersBuilder_ == null) { ensureFoldersIsMutable(); folders_.add(builderForValue.build()); onChanged(); } else { foldersBuilder_.addMessage(builderForValue.build()); } return this; } /** * * *
       * Contains a Folder message for each folder in the assets ancestry.
       * The first folder is the deepest nested folder, and the last folder is the
       * folder directly under the Organization.
       * 
* * repeated .google.cloud.securitycenter.v1p1beta1.Folder folders = 10; */ public Builder addFolders( int index, com.google.cloud.securitycenter.v1p1beta1.Folder.Builder builderForValue) { if (foldersBuilder_ == null) { ensureFoldersIsMutable(); folders_.add(index, builderForValue.build()); onChanged(); } else { foldersBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * * *
       * Contains a Folder message for each folder in the assets ancestry.
       * The first folder is the deepest nested folder, and the last folder is the
       * folder directly under the Organization.
       * 
* * repeated .google.cloud.securitycenter.v1p1beta1.Folder folders = 10; */ public Builder addAllFolders( java.lang.Iterable values) { if (foldersBuilder_ == null) { ensureFoldersIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll(values, folders_); onChanged(); } else { foldersBuilder_.addAllMessages(values); } return this; } /** * * *
       * Contains a Folder message for each folder in the assets ancestry.
       * The first folder is the deepest nested folder, and the last folder is the
       * folder directly under the Organization.
       * 
* * repeated .google.cloud.securitycenter.v1p1beta1.Folder folders = 10; */ public Builder clearFolders() { if (foldersBuilder_ == null) { folders_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000100); onChanged(); } else { foldersBuilder_.clear(); } return this; } /** * * *
       * Contains a Folder message for each folder in the assets ancestry.
       * The first folder is the deepest nested folder, and the last folder is the
       * folder directly under the Organization.
       * 
* * repeated .google.cloud.securitycenter.v1p1beta1.Folder folders = 10; */ public Builder removeFolders(int index) { if (foldersBuilder_ == null) { ensureFoldersIsMutable(); folders_.remove(index); onChanged(); } else { foldersBuilder_.remove(index); } return this; } /** * * *
       * Contains a Folder message for each folder in the assets ancestry.
       * The first folder is the deepest nested folder, and the last folder is the
       * folder directly under the Organization.
       * 
* * repeated .google.cloud.securitycenter.v1p1beta1.Folder folders = 10; */ public com.google.cloud.securitycenter.v1p1beta1.Folder.Builder getFoldersBuilder(int index) { return getFoldersFieldBuilder().getBuilder(index); } /** * * *
       * Contains a Folder message for each folder in the assets ancestry.
       * The first folder is the deepest nested folder, and the last folder is the
       * folder directly under the Organization.
       * 
* * repeated .google.cloud.securitycenter.v1p1beta1.Folder folders = 10; */ public com.google.cloud.securitycenter.v1p1beta1.FolderOrBuilder getFoldersOrBuilder( int index) { if (foldersBuilder_ == null) { return folders_.get(index); } else { return foldersBuilder_.getMessageOrBuilder(index); } } /** * * *
       * Contains a Folder message for each folder in the assets ancestry.
       * The first folder is the deepest nested folder, and the last folder is the
       * folder directly under the Organization.
       * 
* * repeated .google.cloud.securitycenter.v1p1beta1.Folder folders = 10; */ public java.util.List getFoldersOrBuilderList() { if (foldersBuilder_ != null) { return foldersBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(folders_); } } /** * * *
       * Contains a Folder message for each folder in the assets ancestry.
       * The first folder is the deepest nested folder, and the last folder is the
       * folder directly under the Organization.
       * 
* * repeated .google.cloud.securitycenter.v1p1beta1.Folder folders = 10; */ public com.google.cloud.securitycenter.v1p1beta1.Folder.Builder addFoldersBuilder() { return getFoldersFieldBuilder() .addBuilder(com.google.cloud.securitycenter.v1p1beta1.Folder.getDefaultInstance()); } /** * * *
       * Contains a Folder message for each folder in the assets ancestry.
       * The first folder is the deepest nested folder, and the last folder is the
       * folder directly under the Organization.
       * 
* * repeated .google.cloud.securitycenter.v1p1beta1.Folder folders = 10; */ public com.google.cloud.securitycenter.v1p1beta1.Folder.Builder addFoldersBuilder(int index) { return getFoldersFieldBuilder() .addBuilder( index, com.google.cloud.securitycenter.v1p1beta1.Folder.getDefaultInstance()); } /** * * *
       * Contains a Folder message for each folder in the assets ancestry.
       * The first folder is the deepest nested folder, and the last folder is the
       * folder directly under the Organization.
       * 
* * repeated .google.cloud.securitycenter.v1p1beta1.Folder folders = 10; */ public java.util.List getFoldersBuilderList() { return getFoldersFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.google.cloud.securitycenter.v1p1beta1.Folder, com.google.cloud.securitycenter.v1p1beta1.Folder.Builder, com.google.cloud.securitycenter.v1p1beta1.FolderOrBuilder> getFoldersFieldBuilder() { if (foldersBuilder_ == null) { foldersBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.google.cloud.securitycenter.v1p1beta1.Folder, com.google.cloud.securitycenter.v1p1beta1.Folder.Builder, com.google.cloud.securitycenter.v1p1beta1.FolderOrBuilder>( folders_, ((bitField0_ & 0x00000100) != 0), getParentForChildren(), isClean()); folders_ = null; } return foldersBuilder_; } @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.v1p1beta1.Asset.SecurityCenterProperties) } // @@protoc_insertion_point(class_scope:google.cloud.securitycenter.v1p1beta1.Asset.SecurityCenterProperties) private static final com.google.cloud.securitycenter.v1p1beta1.Asset.SecurityCenterProperties DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.securitycenter.v1p1beta1.Asset.SecurityCenterProperties(); } public static com.google.cloud.securitycenter.v1p1beta1.Asset.SecurityCenterProperties getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public SecurityCenterProperties 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.v1p1beta1.Asset.SecurityCenterProperties getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface IamPolicyOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.securitycenter.v1p1beta1.Asset.IamPolicy) com.google.protobuf.MessageOrBuilder { /** * * *
     * The JSON representation of the Policy associated with the asset.
     * See https://cloud.google.com/iam/docs/reference/rest/v1/Policy for
     * format details.
     * 
* * string policy_blob = 1; * * @return The policyBlob. */ java.lang.String getPolicyBlob(); /** * * *
     * The JSON representation of the Policy associated with the asset.
     * See https://cloud.google.com/iam/docs/reference/rest/v1/Policy for
     * format details.
     * 
* * string policy_blob = 1; * * @return The bytes for policyBlob. */ com.google.protobuf.ByteString getPolicyBlobBytes(); } /** * * *
   * Cloud IAM Policy information associated with the Google Cloud resource
   * described by the Security Command Center asset. This information is managed
   * and defined by the Google Cloud resource and cannot be modified by the
   * user.
   * 
* * Protobuf type {@code google.cloud.securitycenter.v1p1beta1.Asset.IamPolicy} */ public static final class IamPolicy extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.securitycenter.v1p1beta1.Asset.IamPolicy) IamPolicyOrBuilder { private static final long serialVersionUID = 0L; // Use IamPolicy.newBuilder() to construct. private IamPolicy(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private IamPolicy() { policyBlob_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new IamPolicy(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.securitycenter.v1p1beta1.AssetOuterClass .internal_static_google_cloud_securitycenter_v1p1beta1_Asset_IamPolicy_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.securitycenter.v1p1beta1.AssetOuterClass .internal_static_google_cloud_securitycenter_v1p1beta1_Asset_IamPolicy_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.cloud.securitycenter.v1p1beta1.Asset.IamPolicy.class, com.google.cloud.securitycenter.v1p1beta1.Asset.IamPolicy.Builder.class); } public static final int POLICY_BLOB_FIELD_NUMBER = 1; @SuppressWarnings("serial") private volatile java.lang.Object policyBlob_ = ""; /** * * *
     * The JSON representation of the Policy associated with the asset.
     * See https://cloud.google.com/iam/docs/reference/rest/v1/Policy for
     * format details.
     * 
* * string policy_blob = 1; * * @return The policyBlob. */ @java.lang.Override public java.lang.String getPolicyBlob() { java.lang.Object ref = policyBlob_; 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(); policyBlob_ = s; return s; } } /** * * *
     * The JSON representation of the Policy associated with the asset.
     * See https://cloud.google.com/iam/docs/reference/rest/v1/Policy for
     * format details.
     * 
* * string policy_blob = 1; * * @return The bytes for policyBlob. */ @java.lang.Override public com.google.protobuf.ByteString getPolicyBlobBytes() { java.lang.Object ref = policyBlob_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); policyBlob_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } 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(policyBlob_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, policyBlob_); } 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(policyBlob_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, policyBlob_); } 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.v1p1beta1.Asset.IamPolicy)) { return super.equals(obj); } com.google.cloud.securitycenter.v1p1beta1.Asset.IamPolicy other = (com.google.cloud.securitycenter.v1p1beta1.Asset.IamPolicy) obj; if (!getPolicyBlob().equals(other.getPolicyBlob())) 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) + POLICY_BLOB_FIELD_NUMBER; hash = (53 * hash) + getPolicyBlob().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.securitycenter.v1p1beta1.Asset.IamPolicy parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.cloud.securitycenter.v1p1beta1.Asset.IamPolicy 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.v1p1beta1.Asset.IamPolicy parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.cloud.securitycenter.v1p1beta1.Asset.IamPolicy 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.v1p1beta1.Asset.IamPolicy parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.cloud.securitycenter.v1p1beta1.Asset.IamPolicy parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.cloud.securitycenter.v1p1beta1.Asset.IamPolicy parseFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static com.google.cloud.securitycenter.v1p1beta1.Asset.IamPolicy 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.v1p1beta1.Asset.IamPolicy parseDelimitedFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.securitycenter.v1p1beta1.Asset.IamPolicy 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.v1p1beta1.Asset.IamPolicy parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static com.google.cloud.securitycenter.v1p1beta1.Asset.IamPolicy 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.v1p1beta1.Asset.IamPolicy 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; } /** * * *
     * Cloud IAM Policy information associated with the Google Cloud resource
     * described by the Security Command Center asset. This information is managed
     * and defined by the Google Cloud resource and cannot be modified by the
     * user.
     * 
* * Protobuf type {@code google.cloud.securitycenter.v1p1beta1.Asset.IamPolicy} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.securitycenter.v1p1beta1.Asset.IamPolicy) com.google.cloud.securitycenter.v1p1beta1.Asset.IamPolicyOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.securitycenter.v1p1beta1.AssetOuterClass .internal_static_google_cloud_securitycenter_v1p1beta1_Asset_IamPolicy_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.securitycenter.v1p1beta1.AssetOuterClass .internal_static_google_cloud_securitycenter_v1p1beta1_Asset_IamPolicy_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.cloud.securitycenter.v1p1beta1.Asset.IamPolicy.class, com.google.cloud.securitycenter.v1p1beta1.Asset.IamPolicy.Builder.class); } // Construct using com.google.cloud.securitycenter.v1p1beta1.Asset.IamPolicy.newBuilder() private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; policyBlob_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.cloud.securitycenter.v1p1beta1.AssetOuterClass .internal_static_google_cloud_securitycenter_v1p1beta1_Asset_IamPolicy_descriptor; } @java.lang.Override public com.google.cloud.securitycenter.v1p1beta1.Asset.IamPolicy getDefaultInstanceForType() { return com.google.cloud.securitycenter.v1p1beta1.Asset.IamPolicy.getDefaultInstance(); } @java.lang.Override public com.google.cloud.securitycenter.v1p1beta1.Asset.IamPolicy build() { com.google.cloud.securitycenter.v1p1beta1.Asset.IamPolicy result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.cloud.securitycenter.v1p1beta1.Asset.IamPolicy buildPartial() { com.google.cloud.securitycenter.v1p1beta1.Asset.IamPolicy result = new com.google.cloud.securitycenter.v1p1beta1.Asset.IamPolicy(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(com.google.cloud.securitycenter.v1p1beta1.Asset.IamPolicy result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.policyBlob_ = policyBlob_; } } @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.v1p1beta1.Asset.IamPolicy) { return mergeFrom((com.google.cloud.securitycenter.v1p1beta1.Asset.IamPolicy) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.cloud.securitycenter.v1p1beta1.Asset.IamPolicy other) { if (other == com.google.cloud.securitycenter.v1p1beta1.Asset.IamPolicy.getDefaultInstance()) return this; if (!other.getPolicyBlob().isEmpty()) { policyBlob_ = other.policyBlob_; bitField0_ |= 0x00000001; onChanged(); } 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: { policyBlob_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000001; break; } // case 10 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 policyBlob_ = ""; /** * * *
       * The JSON representation of the Policy associated with the asset.
       * See https://cloud.google.com/iam/docs/reference/rest/v1/Policy for
       * format details.
       * 
* * string policy_blob = 1; * * @return The policyBlob. */ public java.lang.String getPolicyBlob() { java.lang.Object ref = policyBlob_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); policyBlob_ = s; return s; } else { return (java.lang.String) ref; } } /** * * *
       * The JSON representation of the Policy associated with the asset.
       * See https://cloud.google.com/iam/docs/reference/rest/v1/Policy for
       * format details.
       * 
* * string policy_blob = 1; * * @return The bytes for policyBlob. */ public com.google.protobuf.ByteString getPolicyBlobBytes() { java.lang.Object ref = policyBlob_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); policyBlob_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
       * The JSON representation of the Policy associated with the asset.
       * See https://cloud.google.com/iam/docs/reference/rest/v1/Policy for
       * format details.
       * 
* * string policy_blob = 1; * * @param value The policyBlob to set. * @return This builder for chaining. */ public Builder setPolicyBlob(java.lang.String value) { if (value == null) { throw new NullPointerException(); } policyBlob_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** * * *
       * The JSON representation of the Policy associated with the asset.
       * See https://cloud.google.com/iam/docs/reference/rest/v1/Policy for
       * format details.
       * 
* * string policy_blob = 1; * * @return This builder for chaining. */ public Builder clearPolicyBlob() { policyBlob_ = getDefaultInstance().getPolicyBlob(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** * * *
       * The JSON representation of the Policy associated with the asset.
       * See https://cloud.google.com/iam/docs/reference/rest/v1/Policy for
       * format details.
       * 
* * string policy_blob = 1; * * @param value The bytes for policyBlob to set. * @return This builder for chaining. */ public Builder setPolicyBlobBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); policyBlob_ = value; bitField0_ |= 0x00000001; 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.v1p1beta1.Asset.IamPolicy) } // @@protoc_insertion_point(class_scope:google.cloud.securitycenter.v1p1beta1.Asset.IamPolicy) private static final com.google.cloud.securitycenter.v1p1beta1.Asset.IamPolicy DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.securitycenter.v1p1beta1.Asset.IamPolicy(); } public static com.google.cloud.securitycenter.v1p1beta1.Asset.IamPolicy getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public IamPolicy 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.v1p1beta1.Asset.IamPolicy getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } private int bitField0_; public static final int NAME_FIELD_NUMBER = 1; @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** * * *
   * The relative resource name of this asset. See:
   * https://cloud.google.com/apis/design/resource_names#relative_resource_name
   * Example:
   * "organizations/{organization_id}/assets/{asset_id}".
   * 
* * 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; } } /** * * *
   * The relative resource name of this asset. See:
   * https://cloud.google.com/apis/design/resource_names#relative_resource_name
   * Example:
   * "organizations/{organization_id}/assets/{asset_id}".
   * 
* * 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 SECURITY_CENTER_PROPERTIES_FIELD_NUMBER = 2; private com.google.cloud.securitycenter.v1p1beta1.Asset.SecurityCenterProperties securityCenterProperties_; /** * * *
   * Security Command Center managed properties. These properties are managed by
   * Security Command Center and cannot be modified by the user.
   * 
* * * .google.cloud.securitycenter.v1p1beta1.Asset.SecurityCenterProperties security_center_properties = 2; * * * @return Whether the securityCenterProperties field is set. */ @java.lang.Override public boolean hasSecurityCenterProperties() { return ((bitField0_ & 0x00000001) != 0); } /** * * *
   * Security Command Center managed properties. These properties are managed by
   * Security Command Center and cannot be modified by the user.
   * 
* * * .google.cloud.securitycenter.v1p1beta1.Asset.SecurityCenterProperties security_center_properties = 2; * * * @return The securityCenterProperties. */ @java.lang.Override public com.google.cloud.securitycenter.v1p1beta1.Asset.SecurityCenterProperties getSecurityCenterProperties() { return securityCenterProperties_ == null ? com.google.cloud.securitycenter.v1p1beta1.Asset.SecurityCenterProperties .getDefaultInstance() : securityCenterProperties_; } /** * * *
   * Security Command Center managed properties. These properties are managed by
   * Security Command Center and cannot be modified by the user.
   * 
* * * .google.cloud.securitycenter.v1p1beta1.Asset.SecurityCenterProperties security_center_properties = 2; * */ @java.lang.Override public com.google.cloud.securitycenter.v1p1beta1.Asset.SecurityCenterPropertiesOrBuilder getSecurityCenterPropertiesOrBuilder() { return securityCenterProperties_ == null ? com.google.cloud.securitycenter.v1p1beta1.Asset.SecurityCenterProperties .getDefaultInstance() : securityCenterProperties_; } public static final int RESOURCE_PROPERTIES_FIELD_NUMBER = 7; private static final class ResourcePropertiesDefaultEntryHolder { static final com.google.protobuf.MapEntry defaultEntry = com.google.protobuf.MapEntry .newDefaultInstance( com.google.cloud.securitycenter.v1p1beta1.AssetOuterClass .internal_static_google_cloud_securitycenter_v1p1beta1_Asset_ResourcePropertiesEntry_descriptor, com.google.protobuf.WireFormat.FieldType.STRING, "", com.google.protobuf.WireFormat.FieldType.MESSAGE, com.google.protobuf.Value.getDefaultInstance()); } @SuppressWarnings("serial") private com.google.protobuf.MapField resourceProperties_; private com.google.protobuf.MapField internalGetResourceProperties() { if (resourceProperties_ == null) { return com.google.protobuf.MapField.emptyMapField( ResourcePropertiesDefaultEntryHolder.defaultEntry); } return resourceProperties_; } public int getResourcePropertiesCount() { return internalGetResourceProperties().getMap().size(); } /** * * *
   * Resource managed properties. These properties are managed and defined by
   * the Google Cloud resource and cannot be modified by the user.
   * 
* * map<string, .google.protobuf.Value> resource_properties = 7; */ @java.lang.Override public boolean containsResourceProperties(java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } return internalGetResourceProperties().getMap().containsKey(key); } /** Use {@link #getResourcePropertiesMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getResourceProperties() { return getResourcePropertiesMap(); } /** * * *
   * Resource managed properties. These properties are managed and defined by
   * the Google Cloud resource and cannot be modified by the user.
   * 
* * map<string, .google.protobuf.Value> resource_properties = 7; */ @java.lang.Override public java.util.Map getResourcePropertiesMap() { return internalGetResourceProperties().getMap(); } /** * * *
   * Resource managed properties. These properties are managed and defined by
   * the Google Cloud resource and cannot be modified by the user.
   * 
* * map<string, .google.protobuf.Value> resource_properties = 7; */ @java.lang.Override public /* nullable */ com.google.protobuf.Value getResourcePropertiesOrDefault( java.lang.String key, /* nullable */ com.google.protobuf.Value defaultValue) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetResourceProperties().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** * * *
   * Resource managed properties. These properties are managed and defined by
   * the Google Cloud resource and cannot be modified by the user.
   * 
* * map<string, .google.protobuf.Value> resource_properties = 7; */ @java.lang.Override public com.google.protobuf.Value getResourcePropertiesOrThrow(java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetResourceProperties().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } public static final int SECURITY_MARKS_FIELD_NUMBER = 8; private com.google.cloud.securitycenter.v1p1beta1.SecurityMarks securityMarks_; /** * * *
   * User specified security marks. These marks are entirely managed by the user
   * and come from the SecurityMarks resource that belongs to the asset.
   * 
* * .google.cloud.securitycenter.v1p1beta1.SecurityMarks security_marks = 8; * * @return Whether the securityMarks field is set. */ @java.lang.Override public boolean hasSecurityMarks() { return ((bitField0_ & 0x00000002) != 0); } /** * * *
   * User specified security marks. These marks are entirely managed by the user
   * and come from the SecurityMarks resource that belongs to the asset.
   * 
* * .google.cloud.securitycenter.v1p1beta1.SecurityMarks security_marks = 8; * * @return The securityMarks. */ @java.lang.Override public com.google.cloud.securitycenter.v1p1beta1.SecurityMarks getSecurityMarks() { return securityMarks_ == null ? com.google.cloud.securitycenter.v1p1beta1.SecurityMarks.getDefaultInstance() : securityMarks_; } /** * * *
   * User specified security marks. These marks are entirely managed by the user
   * and come from the SecurityMarks resource that belongs to the asset.
   * 
* * .google.cloud.securitycenter.v1p1beta1.SecurityMarks security_marks = 8; */ @java.lang.Override public com.google.cloud.securitycenter.v1p1beta1.SecurityMarksOrBuilder getSecurityMarksOrBuilder() { return securityMarks_ == null ? com.google.cloud.securitycenter.v1p1beta1.SecurityMarks.getDefaultInstance() : securityMarks_; } public static final int CREATE_TIME_FIELD_NUMBER = 9; private com.google.protobuf.Timestamp createTime_; /** * * *
   * The time at which the asset was created in Security Command Center.
   * 
* * .google.protobuf.Timestamp create_time = 9; * * @return Whether the createTime field is set. */ @java.lang.Override public boolean hasCreateTime() { return ((bitField0_ & 0x00000004) != 0); } /** * * *
   * The time at which the asset was created in Security Command Center.
   * 
* * .google.protobuf.Timestamp create_time = 9; * * @return The createTime. */ @java.lang.Override public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** * * *
   * The time at which the asset was created in Security Command Center.
   * 
* * .google.protobuf.Timestamp create_time = 9; */ @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 = 10; private com.google.protobuf.Timestamp updateTime_; /** * * *
   * The time at which the asset was last updated or added in Cloud SCC.
   * 
* * .google.protobuf.Timestamp update_time = 10; * * @return Whether the updateTime field is set. */ @java.lang.Override public boolean hasUpdateTime() { return ((bitField0_ & 0x00000008) != 0); } /** * * *
   * The time at which the asset was last updated or added in Cloud SCC.
   * 
* * .google.protobuf.Timestamp update_time = 10; * * @return The updateTime. */ @java.lang.Override public com.google.protobuf.Timestamp getUpdateTime() { return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } /** * * *
   * The time at which the asset was last updated or added in Cloud SCC.
   * 
* * .google.protobuf.Timestamp update_time = 10; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } public static final int IAM_POLICY_FIELD_NUMBER = 11; private com.google.cloud.securitycenter.v1p1beta1.Asset.IamPolicy iamPolicy_; /** * * *
   * Cloud IAM Policy information associated with the Google Cloud resource
   * described by the Security Command Center asset. This information is managed
   * and defined by the Google Cloud resource and cannot be modified by the
   * user.
   * 
* * .google.cloud.securitycenter.v1p1beta1.Asset.IamPolicy iam_policy = 11; * * @return Whether the iamPolicy field is set. */ @java.lang.Override public boolean hasIamPolicy() { return ((bitField0_ & 0x00000010) != 0); } /** * * *
   * Cloud IAM Policy information associated with the Google Cloud resource
   * described by the Security Command Center asset. This information is managed
   * and defined by the Google Cloud resource and cannot be modified by the
   * user.
   * 
* * .google.cloud.securitycenter.v1p1beta1.Asset.IamPolicy iam_policy = 11; * * @return The iamPolicy. */ @java.lang.Override public com.google.cloud.securitycenter.v1p1beta1.Asset.IamPolicy getIamPolicy() { return iamPolicy_ == null ? com.google.cloud.securitycenter.v1p1beta1.Asset.IamPolicy.getDefaultInstance() : iamPolicy_; } /** * * *
   * Cloud IAM Policy information associated with the Google Cloud resource
   * described by the Security Command Center asset. This information is managed
   * and defined by the Google Cloud resource and cannot be modified by the
   * user.
   * 
* * .google.cloud.securitycenter.v1p1beta1.Asset.IamPolicy iam_policy = 11; */ @java.lang.Override public com.google.cloud.securitycenter.v1p1beta1.Asset.IamPolicyOrBuilder getIamPolicyOrBuilder() { return iamPolicy_ == null ? com.google.cloud.securitycenter.v1p1beta1.Asset.IamPolicy.getDefaultInstance() : iamPolicy_; } public static final int CANONICAL_NAME_FIELD_NUMBER = 13; @SuppressWarnings("serial") private volatile java.lang.Object canonicalName_ = ""; /** * * *
   * The canonical name of the resource. It's either
   * "organizations/{organization_id}/assets/{asset_id}",
   * "folders/{folder_id}/assets/{asset_id}" or
   * "projects/{project_number}/assets/{asset_id}", depending on the closest CRM
   * ancestor of the resource.
   * 
* * string canonical_name = 13; * * @return The canonicalName. */ @java.lang.Override public java.lang.String getCanonicalName() { java.lang.Object ref = canonicalName_; 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(); canonicalName_ = s; return s; } } /** * * *
   * The canonical name of the resource. It's either
   * "organizations/{organization_id}/assets/{asset_id}",
   * "folders/{folder_id}/assets/{asset_id}" or
   * "projects/{project_number}/assets/{asset_id}", depending on the closest CRM
   * ancestor of the resource.
   * 
* * string canonical_name = 13; * * @return The bytes for canonicalName. */ @java.lang.Override public com.google.protobuf.ByteString getCanonicalNameBytes() { java.lang.Object ref = canonicalName_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); canonicalName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } 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 (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(2, getSecurityCenterProperties()); } com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( output, internalGetResourceProperties(), ResourcePropertiesDefaultEntryHolder.defaultEntry, 7); if (((bitField0_ & 0x00000002) != 0)) { output.writeMessage(8, getSecurityMarks()); } if (((bitField0_ & 0x00000004) != 0)) { output.writeMessage(9, getCreateTime()); } if (((bitField0_ & 0x00000008) != 0)) { output.writeMessage(10, getUpdateTime()); } if (((bitField0_ & 0x00000010) != 0)) { output.writeMessage(11, getIamPolicy()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(canonicalName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 13, canonicalName_); } 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 (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize( 2, getSecurityCenterProperties()); } for (java.util.Map.Entry entry : internalGetResourceProperties().getMap().entrySet()) { com.google.protobuf.MapEntry resourceProperties__ = ResourcePropertiesDefaultEntryHolder.defaultEntry .newBuilderForType() .setKey(entry.getKey()) .setValue(entry.getValue()) .build(); size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, resourceProperties__); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, getSecurityMarks()); } if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, getCreateTime()); } if (((bitField0_ & 0x00000008) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(10, getUpdateTime()); } if (((bitField0_ & 0x00000010) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(11, getIamPolicy()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(canonicalName_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(13, canonicalName_); } 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.v1p1beta1.Asset)) { return super.equals(obj); } com.google.cloud.securitycenter.v1p1beta1.Asset other = (com.google.cloud.securitycenter.v1p1beta1.Asset) obj; if (!getName().equals(other.getName())) return false; if (hasSecurityCenterProperties() != other.hasSecurityCenterProperties()) return false; if (hasSecurityCenterProperties()) { if (!getSecurityCenterProperties().equals(other.getSecurityCenterProperties())) return false; } if (!internalGetResourceProperties().equals(other.internalGetResourceProperties())) return false; if (hasSecurityMarks() != other.hasSecurityMarks()) return false; if (hasSecurityMarks()) { if (!getSecurityMarks().equals(other.getSecurityMarks())) 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 (hasIamPolicy() != other.hasIamPolicy()) return false; if (hasIamPolicy()) { if (!getIamPolicy().equals(other.getIamPolicy())) return false; } if (!getCanonicalName().equals(other.getCanonicalName())) 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(); if (hasSecurityCenterProperties()) { hash = (37 * hash) + SECURITY_CENTER_PROPERTIES_FIELD_NUMBER; hash = (53 * hash) + getSecurityCenterProperties().hashCode(); } if (!internalGetResourceProperties().getMap().isEmpty()) { hash = (37 * hash) + RESOURCE_PROPERTIES_FIELD_NUMBER; hash = (53 * hash) + internalGetResourceProperties().hashCode(); } if (hasSecurityMarks()) { hash = (37 * hash) + SECURITY_MARKS_FIELD_NUMBER; hash = (53 * hash) + getSecurityMarks().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(); } if (hasIamPolicy()) { hash = (37 * hash) + IAM_POLICY_FIELD_NUMBER; hash = (53 * hash) + getIamPolicy().hashCode(); } hash = (37 * hash) + CANONICAL_NAME_FIELD_NUMBER; hash = (53 * hash) + getCanonicalName().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.securitycenter.v1p1beta1.Asset parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.cloud.securitycenter.v1p1beta1.Asset 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.v1p1beta1.Asset parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.cloud.securitycenter.v1p1beta1.Asset 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.v1p1beta1.Asset parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.cloud.securitycenter.v1p1beta1.Asset parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.cloud.securitycenter.v1p1beta1.Asset parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static com.google.cloud.securitycenter.v1p1beta1.Asset 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.v1p1beta1.Asset parseDelimitedFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.securitycenter.v1p1beta1.Asset 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.v1p1beta1.Asset parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static com.google.cloud.securitycenter.v1p1beta1.Asset 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.v1p1beta1.Asset 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; } /** * * *
   * Security Command Center representation of a Google Cloud
   * resource.
   *
   * The Asset is a Security Command Center resource that captures information
   * about a single Google Cloud resource. All modifications to an Asset are only
   * within the context of Security Command Center and don't affect the referenced
   * Google Cloud resource.
   * 
* * Protobuf type {@code google.cloud.securitycenter.v1p1beta1.Asset} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.securitycenter.v1p1beta1.Asset) com.google.cloud.securitycenter.v1p1beta1.AssetOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.securitycenter.v1p1beta1.AssetOuterClass .internal_static_google_cloud_securitycenter_v1p1beta1_Asset_descriptor; } @SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( int number) { switch (number) { case 7: return internalGetResourceProperties(); default: throw new RuntimeException("Invalid map field number: " + number); } } @SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection( int number) { switch (number) { case 7: return internalGetMutableResourceProperties(); default: throw new RuntimeException("Invalid map field number: " + number); } } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.securitycenter.v1p1beta1.AssetOuterClass .internal_static_google_cloud_securitycenter_v1p1beta1_Asset_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.cloud.securitycenter.v1p1beta1.Asset.class, com.google.cloud.securitycenter.v1p1beta1.Asset.Builder.class); } // Construct using com.google.cloud.securitycenter.v1p1beta1.Asset.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getSecurityCenterPropertiesFieldBuilder(); getSecurityMarksFieldBuilder(); getCreateTimeFieldBuilder(); getUpdateTimeFieldBuilder(); getIamPolicyFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; name_ = ""; securityCenterProperties_ = null; if (securityCenterPropertiesBuilder_ != null) { securityCenterPropertiesBuilder_.dispose(); securityCenterPropertiesBuilder_ = null; } internalGetMutableResourceProperties().clear(); securityMarks_ = null; if (securityMarksBuilder_ != null) { securityMarksBuilder_.dispose(); securityMarksBuilder_ = null; } createTime_ = null; if (createTimeBuilder_ != null) { createTimeBuilder_.dispose(); createTimeBuilder_ = null; } updateTime_ = null; if (updateTimeBuilder_ != null) { updateTimeBuilder_.dispose(); updateTimeBuilder_ = null; } iamPolicy_ = null; if (iamPolicyBuilder_ != null) { iamPolicyBuilder_.dispose(); iamPolicyBuilder_ = null; } canonicalName_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.cloud.securitycenter.v1p1beta1.AssetOuterClass .internal_static_google_cloud_securitycenter_v1p1beta1_Asset_descriptor; } @java.lang.Override public com.google.cloud.securitycenter.v1p1beta1.Asset getDefaultInstanceForType() { return com.google.cloud.securitycenter.v1p1beta1.Asset.getDefaultInstance(); } @java.lang.Override public com.google.cloud.securitycenter.v1p1beta1.Asset build() { com.google.cloud.securitycenter.v1p1beta1.Asset result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.cloud.securitycenter.v1p1beta1.Asset buildPartial() { com.google.cloud.securitycenter.v1p1beta1.Asset result = new com.google.cloud.securitycenter.v1p1beta1.Asset(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(com.google.cloud.securitycenter.v1p1beta1.Asset result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.name_ = name_; } int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000002) != 0)) { result.securityCenterProperties_ = securityCenterPropertiesBuilder_ == null ? securityCenterProperties_ : securityCenterPropertiesBuilder_.build(); to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000004) != 0)) { result.resourceProperties_ = internalGetResourceProperties() .build(ResourcePropertiesDefaultEntryHolder.defaultEntry); } if (((from_bitField0_ & 0x00000008) != 0)) { result.securityMarks_ = securityMarksBuilder_ == null ? securityMarks_ : securityMarksBuilder_.build(); to_bitField0_ |= 0x00000002; } if (((from_bitField0_ & 0x00000010) != 0)) { result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); to_bitField0_ |= 0x00000004; } if (((from_bitField0_ & 0x00000020) != 0)) { result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build(); to_bitField0_ |= 0x00000008; } if (((from_bitField0_ & 0x00000040) != 0)) { result.iamPolicy_ = iamPolicyBuilder_ == null ? iamPolicy_ : iamPolicyBuilder_.build(); to_bitField0_ |= 0x00000010; } if (((from_bitField0_ & 0x00000080) != 0)) { result.canonicalName_ = canonicalName_; } 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.v1p1beta1.Asset) { return mergeFrom((com.google.cloud.securitycenter.v1p1beta1.Asset) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.cloud.securitycenter.v1p1beta1.Asset other) { if (other == com.google.cloud.securitycenter.v1p1beta1.Asset.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; onChanged(); } if (other.hasSecurityCenterProperties()) { mergeSecurityCenterProperties(other.getSecurityCenterProperties()); } internalGetMutableResourceProperties().mergeFrom(other.internalGetResourceProperties()); bitField0_ |= 0x00000004; if (other.hasSecurityMarks()) { mergeSecurityMarks(other.getSecurityMarks()); } if (other.hasCreateTime()) { mergeCreateTime(other.getCreateTime()); } if (other.hasUpdateTime()) { mergeUpdateTime(other.getUpdateTime()); } if (other.hasIamPolicy()) { mergeIamPolicy(other.getIamPolicy()); } if (!other.getCanonicalName().isEmpty()) { canonicalName_ = other.canonicalName_; bitField0_ |= 0x00000080; onChanged(); } 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 18: { input.readMessage( getSecurityCenterPropertiesFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000002; break; } // case 18 case 58: { com.google.protobuf.MapEntry resourceProperties__ = input.readMessage( ResourcePropertiesDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); internalGetMutableResourceProperties() .ensureBuilderMap() .put(resourceProperties__.getKey(), resourceProperties__.getValue()); bitField0_ |= 0x00000004; break; } // case 58 case 66: { input.readMessage(getSecurityMarksFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000008; break; } // case 66 case 74: { input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000010; break; } // case 74 case 82: { input.readMessage(getUpdateTimeFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000020; break; } // case 82 case 90: { input.readMessage(getIamPolicyFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000040; break; } // case 90 case 106: { canonicalName_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000080; break; } // case 106 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_ = ""; /** * * *
     * The relative resource name of this asset. See:
     * https://cloud.google.com/apis/design/resource_names#relative_resource_name
     * Example:
     * "organizations/{organization_id}/assets/{asset_id}".
     * 
* * 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; } } /** * * *
     * The relative resource name of this asset. See:
     * https://cloud.google.com/apis/design/resource_names#relative_resource_name
     * Example:
     * "organizations/{organization_id}/assets/{asset_id}".
     * 
* * 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; } } /** * * *
     * The relative resource name of this asset. See:
     * https://cloud.google.com/apis/design/resource_names#relative_resource_name
     * Example:
     * "organizations/{organization_id}/assets/{asset_id}".
     * 
* * 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; } /** * * *
     * The relative resource name of this asset. See:
     * https://cloud.google.com/apis/design/resource_names#relative_resource_name
     * Example:
     * "organizations/{organization_id}/assets/{asset_id}".
     * 
* * string name = 1; * * @return This builder for chaining. */ public Builder clearName() { name_ = getDefaultInstance().getName(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** * * *
     * The relative resource name of this asset. See:
     * https://cloud.google.com/apis/design/resource_names#relative_resource_name
     * Example:
     * "organizations/{organization_id}/assets/{asset_id}".
     * 
* * 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 com.google.cloud.securitycenter.v1p1beta1.Asset.SecurityCenterProperties securityCenterProperties_; private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.securitycenter.v1p1beta1.Asset.SecurityCenterProperties, com.google.cloud.securitycenter.v1p1beta1.Asset.SecurityCenterProperties.Builder, com.google.cloud.securitycenter.v1p1beta1.Asset.SecurityCenterPropertiesOrBuilder> securityCenterPropertiesBuilder_; /** * * *
     * Security Command Center managed properties. These properties are managed by
     * Security Command Center and cannot be modified by the user.
     * 
* * * .google.cloud.securitycenter.v1p1beta1.Asset.SecurityCenterProperties security_center_properties = 2; * * * @return Whether the securityCenterProperties field is set. */ public boolean hasSecurityCenterProperties() { return ((bitField0_ & 0x00000002) != 0); } /** * * *
     * Security Command Center managed properties. These properties are managed by
     * Security Command Center and cannot be modified by the user.
     * 
* * * .google.cloud.securitycenter.v1p1beta1.Asset.SecurityCenterProperties security_center_properties = 2; * * * @return The securityCenterProperties. */ public com.google.cloud.securitycenter.v1p1beta1.Asset.SecurityCenterProperties getSecurityCenterProperties() { if (securityCenterPropertiesBuilder_ == null) { return securityCenterProperties_ == null ? com.google.cloud.securitycenter.v1p1beta1.Asset.SecurityCenterProperties .getDefaultInstance() : securityCenterProperties_; } else { return securityCenterPropertiesBuilder_.getMessage(); } } /** * * *
     * Security Command Center managed properties. These properties are managed by
     * Security Command Center and cannot be modified by the user.
     * 
* * * .google.cloud.securitycenter.v1p1beta1.Asset.SecurityCenterProperties security_center_properties = 2; * */ public Builder setSecurityCenterProperties( com.google.cloud.securitycenter.v1p1beta1.Asset.SecurityCenterProperties value) { if (securityCenterPropertiesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } securityCenterProperties_ = value; } else { securityCenterPropertiesBuilder_.setMessage(value); } bitField0_ |= 0x00000002; onChanged(); return this; } /** * * *
     * Security Command Center managed properties. These properties are managed by
     * Security Command Center and cannot be modified by the user.
     * 
* * * .google.cloud.securitycenter.v1p1beta1.Asset.SecurityCenterProperties security_center_properties = 2; * */ public Builder setSecurityCenterProperties( com.google.cloud.securitycenter.v1p1beta1.Asset.SecurityCenterProperties.Builder builderForValue) { if (securityCenterPropertiesBuilder_ == null) { securityCenterProperties_ = builderForValue.build(); } else { securityCenterPropertiesBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; onChanged(); return this; } /** * * *
     * Security Command Center managed properties. These properties are managed by
     * Security Command Center and cannot be modified by the user.
     * 
* * * .google.cloud.securitycenter.v1p1beta1.Asset.SecurityCenterProperties security_center_properties = 2; * */ public Builder mergeSecurityCenterProperties( com.google.cloud.securitycenter.v1p1beta1.Asset.SecurityCenterProperties value) { if (securityCenterPropertiesBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0) && securityCenterProperties_ != null && securityCenterProperties_ != com.google.cloud.securitycenter.v1p1beta1.Asset.SecurityCenterProperties .getDefaultInstance()) { getSecurityCenterPropertiesBuilder().mergeFrom(value); } else { securityCenterProperties_ = value; } } else { securityCenterPropertiesBuilder_.mergeFrom(value); } if (securityCenterProperties_ != null) { bitField0_ |= 0x00000002; onChanged(); } return this; } /** * * *
     * Security Command Center managed properties. These properties are managed by
     * Security Command Center and cannot be modified by the user.
     * 
* * * .google.cloud.securitycenter.v1p1beta1.Asset.SecurityCenterProperties security_center_properties = 2; * */ public Builder clearSecurityCenterProperties() { bitField0_ = (bitField0_ & ~0x00000002); securityCenterProperties_ = null; if (securityCenterPropertiesBuilder_ != null) { securityCenterPropertiesBuilder_.dispose(); securityCenterPropertiesBuilder_ = null; } onChanged(); return this; } /** * * *
     * Security Command Center managed properties. These properties are managed by
     * Security Command Center and cannot be modified by the user.
     * 
* * * .google.cloud.securitycenter.v1p1beta1.Asset.SecurityCenterProperties security_center_properties = 2; * */ public com.google.cloud.securitycenter.v1p1beta1.Asset.SecurityCenterProperties.Builder getSecurityCenterPropertiesBuilder() { bitField0_ |= 0x00000002; onChanged(); return getSecurityCenterPropertiesFieldBuilder().getBuilder(); } /** * * *
     * Security Command Center managed properties. These properties are managed by
     * Security Command Center and cannot be modified by the user.
     * 
* * * .google.cloud.securitycenter.v1p1beta1.Asset.SecurityCenterProperties security_center_properties = 2; * */ public com.google.cloud.securitycenter.v1p1beta1.Asset.SecurityCenterPropertiesOrBuilder getSecurityCenterPropertiesOrBuilder() { if (securityCenterPropertiesBuilder_ != null) { return securityCenterPropertiesBuilder_.getMessageOrBuilder(); } else { return securityCenterProperties_ == null ? com.google.cloud.securitycenter.v1p1beta1.Asset.SecurityCenterProperties .getDefaultInstance() : securityCenterProperties_; } } /** * * *
     * Security Command Center managed properties. These properties are managed by
     * Security Command Center and cannot be modified by the user.
     * 
* * * .google.cloud.securitycenter.v1p1beta1.Asset.SecurityCenterProperties security_center_properties = 2; * */ private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.securitycenter.v1p1beta1.Asset.SecurityCenterProperties, com.google.cloud.securitycenter.v1p1beta1.Asset.SecurityCenterProperties.Builder, com.google.cloud.securitycenter.v1p1beta1.Asset.SecurityCenterPropertiesOrBuilder> getSecurityCenterPropertiesFieldBuilder() { if (securityCenterPropertiesBuilder_ == null) { securityCenterPropertiesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.securitycenter.v1p1beta1.Asset.SecurityCenterProperties, com.google.cloud.securitycenter.v1p1beta1.Asset.SecurityCenterProperties.Builder, com.google.cloud.securitycenter.v1p1beta1.Asset.SecurityCenterPropertiesOrBuilder>( getSecurityCenterProperties(), getParentForChildren(), isClean()); securityCenterProperties_ = null; } return securityCenterPropertiesBuilder_; } private static final class ResourcePropertiesConverter implements com.google.protobuf.MapFieldBuilder.Converter< java.lang.String, com.google.protobuf.ValueOrBuilder, com.google.protobuf.Value> { @java.lang.Override public com.google.protobuf.Value build(com.google.protobuf.ValueOrBuilder val) { if (val instanceof com.google.protobuf.Value) { return (com.google.protobuf.Value) val; } return ((com.google.protobuf.Value.Builder) val).build(); } @java.lang.Override public com.google.protobuf.MapEntry defaultEntry() { return ResourcePropertiesDefaultEntryHolder.defaultEntry; } }; private static final ResourcePropertiesConverter resourcePropertiesConverter = new ResourcePropertiesConverter(); private com.google.protobuf.MapFieldBuilder< java.lang.String, com.google.protobuf.ValueOrBuilder, com.google.protobuf.Value, com.google.protobuf.Value.Builder> resourceProperties_; private com.google.protobuf.MapFieldBuilder< java.lang.String, com.google.protobuf.ValueOrBuilder, com.google.protobuf.Value, com.google.protobuf.Value.Builder> internalGetResourceProperties() { if (resourceProperties_ == null) { return new com.google.protobuf.MapFieldBuilder<>(resourcePropertiesConverter); } return resourceProperties_; } private com.google.protobuf.MapFieldBuilder< java.lang.String, com.google.protobuf.ValueOrBuilder, com.google.protobuf.Value, com.google.protobuf.Value.Builder> internalGetMutableResourceProperties() { if (resourceProperties_ == null) { resourceProperties_ = new com.google.protobuf.MapFieldBuilder<>(resourcePropertiesConverter); } bitField0_ |= 0x00000004; onChanged(); return resourceProperties_; } public int getResourcePropertiesCount() { return internalGetResourceProperties().ensureBuilderMap().size(); } /** * * *
     * Resource managed properties. These properties are managed and defined by
     * the Google Cloud resource and cannot be modified by the user.
     * 
* * map<string, .google.protobuf.Value> resource_properties = 7; */ @java.lang.Override public boolean containsResourceProperties(java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } return internalGetResourceProperties().ensureBuilderMap().containsKey(key); } /** Use {@link #getResourcePropertiesMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getResourceProperties() { return getResourcePropertiesMap(); } /** * * *
     * Resource managed properties. These properties are managed and defined by
     * the Google Cloud resource and cannot be modified by the user.
     * 
* * map<string, .google.protobuf.Value> resource_properties = 7; */ @java.lang.Override public java.util.Map getResourcePropertiesMap() { return internalGetResourceProperties().getImmutableMap(); } /** * * *
     * Resource managed properties. These properties are managed and defined by
     * the Google Cloud resource and cannot be modified by the user.
     * 
* * map<string, .google.protobuf.Value> resource_properties = 7; */ @java.lang.Override public /* nullable */ com.google.protobuf.Value getResourcePropertiesOrDefault( java.lang.String key, /* nullable */ com.google.protobuf.Value defaultValue) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetMutableResourceProperties().ensureBuilderMap(); return map.containsKey(key) ? resourcePropertiesConverter.build(map.get(key)) : defaultValue; } /** * * *
     * Resource managed properties. These properties are managed and defined by
     * the Google Cloud resource and cannot be modified by the user.
     * 
* * map<string, .google.protobuf.Value> resource_properties = 7; */ @java.lang.Override public com.google.protobuf.Value getResourcePropertiesOrThrow(java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetMutableResourceProperties().ensureBuilderMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return resourcePropertiesConverter.build(map.get(key)); } public Builder clearResourceProperties() { bitField0_ = (bitField0_ & ~0x00000004); internalGetMutableResourceProperties().clear(); return this; } /** * * *
     * Resource managed properties. These properties are managed and defined by
     * the Google Cloud resource and cannot be modified by the user.
     * 
* * map<string, .google.protobuf.Value> resource_properties = 7; */ public Builder removeResourceProperties(java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } internalGetMutableResourceProperties().ensureBuilderMap().remove(key); return this; } /** Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map getMutableResourceProperties() { bitField0_ |= 0x00000004; return internalGetMutableResourceProperties().ensureMessageMap(); } /** * * *
     * Resource managed properties. These properties are managed and defined by
     * the Google Cloud resource and cannot be modified by the user.
     * 
* * map<string, .google.protobuf.Value> resource_properties = 7; */ public Builder putResourceProperties(java.lang.String key, com.google.protobuf.Value value) { if (key == null) { throw new NullPointerException("map key"); } if (value == null) { throw new NullPointerException("map value"); } internalGetMutableResourceProperties().ensureBuilderMap().put(key, value); bitField0_ |= 0x00000004; return this; } /** * * *
     * Resource managed properties. These properties are managed and defined by
     * the Google Cloud resource and cannot be modified by the user.
     * 
* * map<string, .google.protobuf.Value> resource_properties = 7; */ public Builder putAllResourceProperties( java.util.Map values) { for (java.util.Map.Entry e : values.entrySet()) { if (e.getKey() == null || e.getValue() == null) { throw new NullPointerException(); } } internalGetMutableResourceProperties().ensureBuilderMap().putAll(values); bitField0_ |= 0x00000004; return this; } /** * * *
     * Resource managed properties. These properties are managed and defined by
     * the Google Cloud resource and cannot be modified by the user.
     * 
* * map<string, .google.protobuf.Value> resource_properties = 7; */ public com.google.protobuf.Value.Builder putResourcePropertiesBuilderIfAbsent( java.lang.String key) { java.util.Map builderMap = internalGetMutableResourceProperties().ensureBuilderMap(); com.google.protobuf.ValueOrBuilder entry = builderMap.get(key); if (entry == null) { entry = com.google.protobuf.Value.newBuilder(); builderMap.put(key, entry); } if (entry instanceof com.google.protobuf.Value) { entry = ((com.google.protobuf.Value) entry).toBuilder(); builderMap.put(key, entry); } return (com.google.protobuf.Value.Builder) entry; } private com.google.cloud.securitycenter.v1p1beta1.SecurityMarks securityMarks_; private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.securitycenter.v1p1beta1.SecurityMarks, com.google.cloud.securitycenter.v1p1beta1.SecurityMarks.Builder, com.google.cloud.securitycenter.v1p1beta1.SecurityMarksOrBuilder> securityMarksBuilder_; /** * * *
     * User specified security marks. These marks are entirely managed by the user
     * and come from the SecurityMarks resource that belongs to the asset.
     * 
* * .google.cloud.securitycenter.v1p1beta1.SecurityMarks security_marks = 8; * * @return Whether the securityMarks field is set. */ public boolean hasSecurityMarks() { return ((bitField0_ & 0x00000008) != 0); } /** * * *
     * User specified security marks. These marks are entirely managed by the user
     * and come from the SecurityMarks resource that belongs to the asset.
     * 
* * .google.cloud.securitycenter.v1p1beta1.SecurityMarks security_marks = 8; * * @return The securityMarks. */ public com.google.cloud.securitycenter.v1p1beta1.SecurityMarks getSecurityMarks() { if (securityMarksBuilder_ == null) { return securityMarks_ == null ? com.google.cloud.securitycenter.v1p1beta1.SecurityMarks.getDefaultInstance() : securityMarks_; } else { return securityMarksBuilder_.getMessage(); } } /** * * *
     * User specified security marks. These marks are entirely managed by the user
     * and come from the SecurityMarks resource that belongs to the asset.
     * 
* * .google.cloud.securitycenter.v1p1beta1.SecurityMarks security_marks = 8; */ public Builder setSecurityMarks(com.google.cloud.securitycenter.v1p1beta1.SecurityMarks value) { if (securityMarksBuilder_ == null) { if (value == null) { throw new NullPointerException(); } securityMarks_ = value; } else { securityMarksBuilder_.setMessage(value); } bitField0_ |= 0x00000008; onChanged(); return this; } /** * * *
     * User specified security marks. These marks are entirely managed by the user
     * and come from the SecurityMarks resource that belongs to the asset.
     * 
* * .google.cloud.securitycenter.v1p1beta1.SecurityMarks security_marks = 8; */ public Builder setSecurityMarks( com.google.cloud.securitycenter.v1p1beta1.SecurityMarks.Builder builderForValue) { if (securityMarksBuilder_ == null) { securityMarks_ = builderForValue.build(); } else { securityMarksBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000008; onChanged(); return this; } /** * * *
     * User specified security marks. These marks are entirely managed by the user
     * and come from the SecurityMarks resource that belongs to the asset.
     * 
* * .google.cloud.securitycenter.v1p1beta1.SecurityMarks security_marks = 8; */ public Builder mergeSecurityMarks( com.google.cloud.securitycenter.v1p1beta1.SecurityMarks value) { if (securityMarksBuilder_ == null) { if (((bitField0_ & 0x00000008) != 0) && securityMarks_ != null && securityMarks_ != com.google.cloud.securitycenter.v1p1beta1.SecurityMarks.getDefaultInstance()) { getSecurityMarksBuilder().mergeFrom(value); } else { securityMarks_ = value; } } else { securityMarksBuilder_.mergeFrom(value); } if (securityMarks_ != null) { bitField0_ |= 0x00000008; onChanged(); } return this; } /** * * *
     * User specified security marks. These marks are entirely managed by the user
     * and come from the SecurityMarks resource that belongs to the asset.
     * 
* * .google.cloud.securitycenter.v1p1beta1.SecurityMarks security_marks = 8; */ public Builder clearSecurityMarks() { bitField0_ = (bitField0_ & ~0x00000008); securityMarks_ = null; if (securityMarksBuilder_ != null) { securityMarksBuilder_.dispose(); securityMarksBuilder_ = null; } onChanged(); return this; } /** * * *
     * User specified security marks. These marks are entirely managed by the user
     * and come from the SecurityMarks resource that belongs to the asset.
     * 
* * .google.cloud.securitycenter.v1p1beta1.SecurityMarks security_marks = 8; */ public com.google.cloud.securitycenter.v1p1beta1.SecurityMarks.Builder getSecurityMarksBuilder() { bitField0_ |= 0x00000008; onChanged(); return getSecurityMarksFieldBuilder().getBuilder(); } /** * * *
     * User specified security marks. These marks are entirely managed by the user
     * and come from the SecurityMarks resource that belongs to the asset.
     * 
* * .google.cloud.securitycenter.v1p1beta1.SecurityMarks security_marks = 8; */ public com.google.cloud.securitycenter.v1p1beta1.SecurityMarksOrBuilder getSecurityMarksOrBuilder() { if (securityMarksBuilder_ != null) { return securityMarksBuilder_.getMessageOrBuilder(); } else { return securityMarks_ == null ? com.google.cloud.securitycenter.v1p1beta1.SecurityMarks.getDefaultInstance() : securityMarks_; } } /** * * *
     * User specified security marks. These marks are entirely managed by the user
     * and come from the SecurityMarks resource that belongs to the asset.
     * 
* * .google.cloud.securitycenter.v1p1beta1.SecurityMarks security_marks = 8; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.securitycenter.v1p1beta1.SecurityMarks, com.google.cloud.securitycenter.v1p1beta1.SecurityMarks.Builder, com.google.cloud.securitycenter.v1p1beta1.SecurityMarksOrBuilder> getSecurityMarksFieldBuilder() { if (securityMarksBuilder_ == null) { securityMarksBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.securitycenter.v1p1beta1.SecurityMarks, com.google.cloud.securitycenter.v1p1beta1.SecurityMarks.Builder, com.google.cloud.securitycenter.v1p1beta1.SecurityMarksOrBuilder>( getSecurityMarks(), getParentForChildren(), isClean()); securityMarks_ = null; } return securityMarksBuilder_; } 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_; /** * * *
     * The time at which the asset was created in Security Command Center.
     * 
* * .google.protobuf.Timestamp create_time = 9; * * @return Whether the createTime field is set. */ public boolean hasCreateTime() { return ((bitField0_ & 0x00000010) != 0); } /** * * *
     * The time at which the asset was created in Security Command Center.
     * 
* * .google.protobuf.Timestamp create_time = 9; * * @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(); } } /** * * *
     * The time at which the asset was created in Security Command Center.
     * 
* * .google.protobuf.Timestamp create_time = 9; */ public Builder setCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { if (value == null) { throw new NullPointerException(); } createTime_ = value; } else { createTimeBuilder_.setMessage(value); } bitField0_ |= 0x00000010; onChanged(); return this; } /** * * *
     * The time at which the asset was created in Security Command Center.
     * 
* * .google.protobuf.Timestamp create_time = 9; */ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (createTimeBuilder_ == null) { createTime_ = builderForValue.build(); } else { createTimeBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000010; onChanged(); return this; } /** * * *
     * The time at which the asset was created in Security Command Center.
     * 
* * .google.protobuf.Timestamp create_time = 9; */ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { if (((bitField0_ & 0x00000010) != 0) && createTime_ != null && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getCreateTimeBuilder().mergeFrom(value); } else { createTime_ = value; } } else { createTimeBuilder_.mergeFrom(value); } if (createTime_ != null) { bitField0_ |= 0x00000010; onChanged(); } return this; } /** * * *
     * The time at which the asset was created in Security Command Center.
     * 
* * .google.protobuf.Timestamp create_time = 9; */ public Builder clearCreateTime() { bitField0_ = (bitField0_ & ~0x00000010); createTime_ = null; if (createTimeBuilder_ != null) { createTimeBuilder_.dispose(); createTimeBuilder_ = null; } onChanged(); return this; } /** * * *
     * The time at which the asset was created in Security Command Center.
     * 
* * .google.protobuf.Timestamp create_time = 9; */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { bitField0_ |= 0x00000010; onChanged(); return getCreateTimeFieldBuilder().getBuilder(); } /** * * *
     * The time at which the asset was created in Security Command Center.
     * 
* * .google.protobuf.Timestamp create_time = 9; */ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { if (createTimeBuilder_ != null) { return createTimeBuilder_.getMessageOrBuilder(); } else { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } } /** * * *
     * The time at which the asset was created in Security Command Center.
     * 
* * .google.protobuf.Timestamp create_time = 9; */ 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_; /** * * *
     * The time at which the asset was last updated or added in Cloud SCC.
     * 
* * .google.protobuf.Timestamp update_time = 10; * * @return Whether the updateTime field is set. */ public boolean hasUpdateTime() { return ((bitField0_ & 0x00000020) != 0); } /** * * *
     * The time at which the asset was last updated or added in Cloud SCC.
     * 
* * .google.protobuf.Timestamp update_time = 10; * * @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(); } } /** * * *
     * The time at which the asset was last updated or added in Cloud SCC.
     * 
* * .google.protobuf.Timestamp update_time = 10; */ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { if (value == null) { throw new NullPointerException(); } updateTime_ = value; } else { updateTimeBuilder_.setMessage(value); } bitField0_ |= 0x00000020; onChanged(); return this; } /** * * *
     * The time at which the asset was last updated or added in Cloud SCC.
     * 
* * .google.protobuf.Timestamp update_time = 10; */ public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (updateTimeBuilder_ == null) { updateTime_ = builderForValue.build(); } else { updateTimeBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000020; onChanged(); return this; } /** * * *
     * The time at which the asset was last updated or added in Cloud SCC.
     * 
* * .google.protobuf.Timestamp update_time = 10; */ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { if (((bitField0_ & 0x00000020) != 0) && updateTime_ != null && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getUpdateTimeBuilder().mergeFrom(value); } else { updateTime_ = value; } } else { updateTimeBuilder_.mergeFrom(value); } if (updateTime_ != null) { bitField0_ |= 0x00000020; onChanged(); } return this; } /** * * *
     * The time at which the asset was last updated or added in Cloud SCC.
     * 
* * .google.protobuf.Timestamp update_time = 10; */ public Builder clearUpdateTime() { bitField0_ = (bitField0_ & ~0x00000020); updateTime_ = null; if (updateTimeBuilder_ != null) { updateTimeBuilder_.dispose(); updateTimeBuilder_ = null; } onChanged(); return this; } /** * * *
     * The time at which the asset was last updated or added in Cloud SCC.
     * 
* * .google.protobuf.Timestamp update_time = 10; */ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { bitField0_ |= 0x00000020; onChanged(); return getUpdateTimeFieldBuilder().getBuilder(); } /** * * *
     * The time at which the asset was last updated or added in Cloud SCC.
     * 
* * .google.protobuf.Timestamp update_time = 10; */ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { if (updateTimeBuilder_ != null) { return updateTimeBuilder_.getMessageOrBuilder(); } else { return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } } /** * * *
     * The time at which the asset was last updated or added in Cloud SCC.
     * 
* * .google.protobuf.Timestamp update_time = 10; */ 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 com.google.cloud.securitycenter.v1p1beta1.Asset.IamPolicy iamPolicy_; private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.securitycenter.v1p1beta1.Asset.IamPolicy, com.google.cloud.securitycenter.v1p1beta1.Asset.IamPolicy.Builder, com.google.cloud.securitycenter.v1p1beta1.Asset.IamPolicyOrBuilder> iamPolicyBuilder_; /** * * *
     * Cloud IAM Policy information associated with the Google Cloud resource
     * described by the Security Command Center asset. This information is managed
     * and defined by the Google Cloud resource and cannot be modified by the
     * user.
     * 
* * .google.cloud.securitycenter.v1p1beta1.Asset.IamPolicy iam_policy = 11; * * @return Whether the iamPolicy field is set. */ public boolean hasIamPolicy() { return ((bitField0_ & 0x00000040) != 0); } /** * * *
     * Cloud IAM Policy information associated with the Google Cloud resource
     * described by the Security Command Center asset. This information is managed
     * and defined by the Google Cloud resource and cannot be modified by the
     * user.
     * 
* * .google.cloud.securitycenter.v1p1beta1.Asset.IamPolicy iam_policy = 11; * * @return The iamPolicy. */ public com.google.cloud.securitycenter.v1p1beta1.Asset.IamPolicy getIamPolicy() { if (iamPolicyBuilder_ == null) { return iamPolicy_ == null ? com.google.cloud.securitycenter.v1p1beta1.Asset.IamPolicy.getDefaultInstance() : iamPolicy_; } else { return iamPolicyBuilder_.getMessage(); } } /** * * *
     * Cloud IAM Policy information associated with the Google Cloud resource
     * described by the Security Command Center asset. This information is managed
     * and defined by the Google Cloud resource and cannot be modified by the
     * user.
     * 
* * .google.cloud.securitycenter.v1p1beta1.Asset.IamPolicy iam_policy = 11; */ public Builder setIamPolicy(com.google.cloud.securitycenter.v1p1beta1.Asset.IamPolicy value) { if (iamPolicyBuilder_ == null) { if (value == null) { throw new NullPointerException(); } iamPolicy_ = value; } else { iamPolicyBuilder_.setMessage(value); } bitField0_ |= 0x00000040; onChanged(); return this; } /** * * *
     * Cloud IAM Policy information associated with the Google Cloud resource
     * described by the Security Command Center asset. This information is managed
     * and defined by the Google Cloud resource and cannot be modified by the
     * user.
     * 
* * .google.cloud.securitycenter.v1p1beta1.Asset.IamPolicy iam_policy = 11; */ public Builder setIamPolicy( com.google.cloud.securitycenter.v1p1beta1.Asset.IamPolicy.Builder builderForValue) { if (iamPolicyBuilder_ == null) { iamPolicy_ = builderForValue.build(); } else { iamPolicyBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000040; onChanged(); return this; } /** * * *
     * Cloud IAM Policy information associated with the Google Cloud resource
     * described by the Security Command Center asset. This information is managed
     * and defined by the Google Cloud resource and cannot be modified by the
     * user.
     * 
* * .google.cloud.securitycenter.v1p1beta1.Asset.IamPolicy iam_policy = 11; */ public Builder mergeIamPolicy(com.google.cloud.securitycenter.v1p1beta1.Asset.IamPolicy value) { if (iamPolicyBuilder_ == null) { if (((bitField0_ & 0x00000040) != 0) && iamPolicy_ != null && iamPolicy_ != com.google.cloud.securitycenter.v1p1beta1.Asset.IamPolicy.getDefaultInstance()) { getIamPolicyBuilder().mergeFrom(value); } else { iamPolicy_ = value; } } else { iamPolicyBuilder_.mergeFrom(value); } if (iamPolicy_ != null) { bitField0_ |= 0x00000040; onChanged(); } return this; } /** * * *
     * Cloud IAM Policy information associated with the Google Cloud resource
     * described by the Security Command Center asset. This information is managed
     * and defined by the Google Cloud resource and cannot be modified by the
     * user.
     * 
* * .google.cloud.securitycenter.v1p1beta1.Asset.IamPolicy iam_policy = 11; */ public Builder clearIamPolicy() { bitField0_ = (bitField0_ & ~0x00000040); iamPolicy_ = null; if (iamPolicyBuilder_ != null) { iamPolicyBuilder_.dispose(); iamPolicyBuilder_ = null; } onChanged(); return this; } /** * * *
     * Cloud IAM Policy information associated with the Google Cloud resource
     * described by the Security Command Center asset. This information is managed
     * and defined by the Google Cloud resource and cannot be modified by the
     * user.
     * 
* * .google.cloud.securitycenter.v1p1beta1.Asset.IamPolicy iam_policy = 11; */ public com.google.cloud.securitycenter.v1p1beta1.Asset.IamPolicy.Builder getIamPolicyBuilder() { bitField0_ |= 0x00000040; onChanged(); return getIamPolicyFieldBuilder().getBuilder(); } /** * * *
     * Cloud IAM Policy information associated with the Google Cloud resource
     * described by the Security Command Center asset. This information is managed
     * and defined by the Google Cloud resource and cannot be modified by the
     * user.
     * 
* * .google.cloud.securitycenter.v1p1beta1.Asset.IamPolicy iam_policy = 11; */ public com.google.cloud.securitycenter.v1p1beta1.Asset.IamPolicyOrBuilder getIamPolicyOrBuilder() { if (iamPolicyBuilder_ != null) { return iamPolicyBuilder_.getMessageOrBuilder(); } else { return iamPolicy_ == null ? com.google.cloud.securitycenter.v1p1beta1.Asset.IamPolicy.getDefaultInstance() : iamPolicy_; } } /** * * *
     * Cloud IAM Policy information associated with the Google Cloud resource
     * described by the Security Command Center asset. This information is managed
     * and defined by the Google Cloud resource and cannot be modified by the
     * user.
     * 
* * .google.cloud.securitycenter.v1p1beta1.Asset.IamPolicy iam_policy = 11; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.securitycenter.v1p1beta1.Asset.IamPolicy, com.google.cloud.securitycenter.v1p1beta1.Asset.IamPolicy.Builder, com.google.cloud.securitycenter.v1p1beta1.Asset.IamPolicyOrBuilder> getIamPolicyFieldBuilder() { if (iamPolicyBuilder_ == null) { iamPolicyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.securitycenter.v1p1beta1.Asset.IamPolicy, com.google.cloud.securitycenter.v1p1beta1.Asset.IamPolicy.Builder, com.google.cloud.securitycenter.v1p1beta1.Asset.IamPolicyOrBuilder>( getIamPolicy(), getParentForChildren(), isClean()); iamPolicy_ = null; } return iamPolicyBuilder_; } private java.lang.Object canonicalName_ = ""; /** * * *
     * The canonical name of the resource. It's either
     * "organizations/{organization_id}/assets/{asset_id}",
     * "folders/{folder_id}/assets/{asset_id}" or
     * "projects/{project_number}/assets/{asset_id}", depending on the closest CRM
     * ancestor of the resource.
     * 
* * string canonical_name = 13; * * @return The canonicalName. */ public java.lang.String getCanonicalName() { java.lang.Object ref = canonicalName_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); canonicalName_ = s; return s; } else { return (java.lang.String) ref; } } /** * * *
     * The canonical name of the resource. It's either
     * "organizations/{organization_id}/assets/{asset_id}",
     * "folders/{folder_id}/assets/{asset_id}" or
     * "projects/{project_number}/assets/{asset_id}", depending on the closest CRM
     * ancestor of the resource.
     * 
* * string canonical_name = 13; * * @return The bytes for canonicalName. */ public com.google.protobuf.ByteString getCanonicalNameBytes() { java.lang.Object ref = canonicalName_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); canonicalName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
     * The canonical name of the resource. It's either
     * "organizations/{organization_id}/assets/{asset_id}",
     * "folders/{folder_id}/assets/{asset_id}" or
     * "projects/{project_number}/assets/{asset_id}", depending on the closest CRM
     * ancestor of the resource.
     * 
* * string canonical_name = 13; * * @param value The canonicalName to set. * @return This builder for chaining. */ public Builder setCanonicalName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } canonicalName_ = value; bitField0_ |= 0x00000080; onChanged(); return this; } /** * * *
     * The canonical name of the resource. It's either
     * "organizations/{organization_id}/assets/{asset_id}",
     * "folders/{folder_id}/assets/{asset_id}" or
     * "projects/{project_number}/assets/{asset_id}", depending on the closest CRM
     * ancestor of the resource.
     * 
* * string canonical_name = 13; * * @return This builder for chaining. */ public Builder clearCanonicalName() { canonicalName_ = getDefaultInstance().getCanonicalName(); bitField0_ = (bitField0_ & ~0x00000080); onChanged(); return this; } /** * * *
     * The canonical name of the resource. It's either
     * "organizations/{organization_id}/assets/{asset_id}",
     * "folders/{folder_id}/assets/{asset_id}" or
     * "projects/{project_number}/assets/{asset_id}", depending on the closest CRM
     * ancestor of the resource.
     * 
* * string canonical_name = 13; * * @param value The bytes for canonicalName to set. * @return This builder for chaining. */ public Builder setCanonicalNameBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); canonicalName_ = value; bitField0_ |= 0x00000080; 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.v1p1beta1.Asset) } // @@protoc_insertion_point(class_scope:google.cloud.securitycenter.v1p1beta1.Asset) private static final com.google.cloud.securitycenter.v1p1beta1.Asset DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.securitycenter.v1p1beta1.Asset(); } public static com.google.cloud.securitycenter.v1p1beta1.Asset getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Asset 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.v1p1beta1.Asset getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy