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

package com.google.cloud.securitycenter.v1;

public interface AssetOrBuilder
    extends
    // @@protoc_insertion_point(interface_extends:google.cloud.securitycenter.v1.Asset)
    com.google.protobuf.MessageOrBuilder {

  /**
   *
   *
   * <pre>
   * 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}".
   * </pre>
   *
   * <code>string name = 1;</code>
   *
   * @return The name.
   */
  java.lang.String getName();
  /**
   *
   *
   * <pre>
   * 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}".
   * </pre>
   *
   * <code>string name = 1;</code>
   *
   * @return The bytes for name.
   */
  com.google.protobuf.ByteString getNameBytes();

  /**
   *
   *
   * <pre>
   * Security Command Center managed properties. These properties are managed by
   * Security Command Center and cannot be modified by the user.
   * </pre>
   *
   * <code>
   * .google.cloud.securitycenter.v1.Asset.SecurityCenterProperties security_center_properties = 2;
   * </code>
   *
   * @return Whether the securityCenterProperties field is set.
   */
  boolean hasSecurityCenterProperties();
  /**
   *
   *
   * <pre>
   * Security Command Center managed properties. These properties are managed by
   * Security Command Center and cannot be modified by the user.
   * </pre>
   *
   * <code>
   * .google.cloud.securitycenter.v1.Asset.SecurityCenterProperties security_center_properties = 2;
   * </code>
   *
   * @return The securityCenterProperties.
   */
  com.google.cloud.securitycenter.v1.Asset.SecurityCenterProperties getSecurityCenterProperties();
  /**
   *
   *
   * <pre>
   * Security Command Center managed properties. These properties are managed by
   * Security Command Center and cannot be modified by the user.
   * </pre>
   *
   * <code>
   * .google.cloud.securitycenter.v1.Asset.SecurityCenterProperties security_center_properties = 2;
   * </code>
   */
  com.google.cloud.securitycenter.v1.Asset.SecurityCenterPropertiesOrBuilder
      getSecurityCenterPropertiesOrBuilder();

  /**
   *
   *
   * <pre>
   * Resource managed properties. These properties are managed and defined by
   * the Google Cloud resource and cannot be modified by the user.
   * </pre>
   *
   * <code>map&lt;string, .google.protobuf.Value&gt; resource_properties = 7;</code>
   */
  int getResourcePropertiesCount();
  /**
   *
   *
   * <pre>
   * Resource managed properties. These properties are managed and defined by
   * the Google Cloud resource and cannot be modified by the user.
   * </pre>
   *
   * <code>map&lt;string, .google.protobuf.Value&gt; resource_properties = 7;</code>
   */
  boolean containsResourceProperties(java.lang.String key);
  /** Use {@link #getResourcePropertiesMap()} instead. */
  @java.lang.Deprecated
  java.util.Map<java.lang.String, com.google.protobuf.Value> getResourceProperties();
  /**
   *
   *
   * <pre>
   * Resource managed properties. These properties are managed and defined by
   * the Google Cloud resource and cannot be modified by the user.
   * </pre>
   *
   * <code>map&lt;string, .google.protobuf.Value&gt; resource_properties = 7;</code>
   */
  java.util.Map<java.lang.String, com.google.protobuf.Value> getResourcePropertiesMap();
  /**
   *
   *
   * <pre>
   * Resource managed properties. These properties are managed and defined by
   * the Google Cloud resource and cannot be modified by the user.
   * </pre>
   *
   * <code>map&lt;string, .google.protobuf.Value&gt; resource_properties = 7;</code>
   */
  /* nullable */
  com.google.protobuf.Value getResourcePropertiesOrDefault(
      java.lang.String key,
      /* nullable */
      com.google.protobuf.Value defaultValue);
  /**
   *
   *
   * <pre>
   * Resource managed properties. These properties are managed and defined by
   * the Google Cloud resource and cannot be modified by the user.
   * </pre>
   *
   * <code>map&lt;string, .google.protobuf.Value&gt; resource_properties = 7;</code>
   */
  com.google.protobuf.Value getResourcePropertiesOrThrow(java.lang.String key);

  /**
   *
   *
   * <pre>
   * User specified security marks. These marks are entirely managed by the user
   * and come from the SecurityMarks resource that belongs to the asset.
   * </pre>
   *
   * <code>.google.cloud.securitycenter.v1.SecurityMarks security_marks = 8;</code>
   *
   * @return Whether the securityMarks field is set.
   */
  boolean hasSecurityMarks();
  /**
   *
   *
   * <pre>
   * User specified security marks. These marks are entirely managed by the user
   * and come from the SecurityMarks resource that belongs to the asset.
   * </pre>
   *
   * <code>.google.cloud.securitycenter.v1.SecurityMarks security_marks = 8;</code>
   *
   * @return The securityMarks.
   */
  com.google.cloud.securitycenter.v1.SecurityMarks getSecurityMarks();
  /**
   *
   *
   * <pre>
   * User specified security marks. These marks are entirely managed by the user
   * and come from the SecurityMarks resource that belongs to the asset.
   * </pre>
   *
   * <code>.google.cloud.securitycenter.v1.SecurityMarks security_marks = 8;</code>
   */
  com.google.cloud.securitycenter.v1.SecurityMarksOrBuilder getSecurityMarksOrBuilder();

  /**
   *
   *
   * <pre>
   * The time at which the asset was created in Security Command Center.
   * </pre>
   *
   * <code>.google.protobuf.Timestamp create_time = 9;</code>
   *
   * @return Whether the createTime field is set.
   */
  boolean hasCreateTime();
  /**
   *
   *
   * <pre>
   * The time at which the asset was created in Security Command Center.
   * </pre>
   *
   * <code>.google.protobuf.Timestamp create_time = 9;</code>
   *
   * @return The createTime.
   */
  com.google.protobuf.Timestamp getCreateTime();
  /**
   *
   *
   * <pre>
   * The time at which the asset was created in Security Command Center.
   * </pre>
   *
   * <code>.google.protobuf.Timestamp create_time = 9;</code>
   */
  com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder();

  /**
   *
   *
   * <pre>
   * The time at which the asset was last updated or added in Cloud SCC.
   * </pre>
   *
   * <code>.google.protobuf.Timestamp update_time = 10;</code>
   *
   * @return Whether the updateTime field is set.
   */
  boolean hasUpdateTime();
  /**
   *
   *
   * <pre>
   * The time at which the asset was last updated or added in Cloud SCC.
   * </pre>
   *
   * <code>.google.protobuf.Timestamp update_time = 10;</code>
   *
   * @return The updateTime.
   */
  com.google.protobuf.Timestamp getUpdateTime();
  /**
   *
   *
   * <pre>
   * The time at which the asset was last updated or added in Cloud SCC.
   * </pre>
   *
   * <code>.google.protobuf.Timestamp update_time = 10;</code>
   */
  com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder();

  /**
   *
   *
   * <pre>
   * 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.
   * </pre>
   *
   * <code>.google.cloud.securitycenter.v1.Asset.IamPolicy iam_policy = 11;</code>
   *
   * @return Whether the iamPolicy field is set.
   */
  boolean hasIamPolicy();
  /**
   *
   *
   * <pre>
   * 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.
   * </pre>
   *
   * <code>.google.cloud.securitycenter.v1.Asset.IamPolicy iam_policy = 11;</code>
   *
   * @return The iamPolicy.
   */
  com.google.cloud.securitycenter.v1.Asset.IamPolicy getIamPolicy();
  /**
   *
   *
   * <pre>
   * 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.
   * </pre>
   *
   * <code>.google.cloud.securitycenter.v1.Asset.IamPolicy iam_policy = 11;</code>
   */
  com.google.cloud.securitycenter.v1.Asset.IamPolicyOrBuilder getIamPolicyOrBuilder();

  /**
   *
   *
   * <pre>
   * 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.
   * </pre>
   *
   * <code>string canonical_name = 13;</code>
   *
   * @return The canonicalName.
   */
  java.lang.String getCanonicalName();
  /**
   *
   *
   * <pre>
   * 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.
   * </pre>
   *
   * <code>string canonical_name = 13;</code>
   *
   * @return The bytes for canonicalName.
   */
  com.google.protobuf.ByteString getCanonicalNameBytes();
}
