/*
 * 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/asset/v1p2beta1/assets.proto

package com.google.cloud.asset.v1p2beta1;

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

  /**
   *
   *
   * <pre>
   * The full name of the asset. For example:
   * `//compute.googleapis.com/projects/my_project_123/zones/zone1/instances/instance1`.
   * See [Resource
   * Names](https://cloud.google.com/apis/design/resource_names#full_resource_name)
   * for more information.
   * </pre>
   *
   * <code>string name = 1;</code>
   *
   * @return The name.
   */
  java.lang.String getName();
  /**
   *
   *
   * <pre>
   * The full name of the asset. For example:
   * `//compute.googleapis.com/projects/my_project_123/zones/zone1/instances/instance1`.
   * See [Resource
   * Names](https://cloud.google.com/apis/design/resource_names#full_resource_name)
   * for more information.
   * </pre>
   *
   * <code>string name = 1;</code>
   *
   * @return The bytes for name.
   */
  com.google.protobuf.ByteString getNameBytes();

  /**
   *
   *
   * <pre>
   * Type of the asset. Example: "compute.googleapis.com/Disk".
   * </pre>
   *
   * <code>string asset_type = 2;</code>
   *
   * @return The assetType.
   */
  java.lang.String getAssetType();
  /**
   *
   *
   * <pre>
   * Type of the asset. Example: "compute.googleapis.com/Disk".
   * </pre>
   *
   * <code>string asset_type = 2;</code>
   *
   * @return The bytes for assetType.
   */
  com.google.protobuf.ByteString getAssetTypeBytes();

  /**
   *
   *
   * <pre>
   * Representation of the resource.
   * </pre>
   *
   * <code>.google.cloud.asset.v1p2beta1.Resource resource = 3;</code>
   *
   * @return Whether the resource field is set.
   */
  boolean hasResource();
  /**
   *
   *
   * <pre>
   * Representation of the resource.
   * </pre>
   *
   * <code>.google.cloud.asset.v1p2beta1.Resource resource = 3;</code>
   *
   * @return The resource.
   */
  com.google.cloud.asset.v1p2beta1.Resource getResource();
  /**
   *
   *
   * <pre>
   * Representation of the resource.
   * </pre>
   *
   * <code>.google.cloud.asset.v1p2beta1.Resource resource = 3;</code>
   */
  com.google.cloud.asset.v1p2beta1.ResourceOrBuilder getResourceOrBuilder();

  /**
   *
   *
   * <pre>
   * Representation of the actual Cloud IAM policy set on a cloud resource. For
   * each resource, there must be at most one Cloud IAM policy set on it.
   * </pre>
   *
   * <code>.google.iam.v1.Policy iam_policy = 4;</code>
   *
   * @return Whether the iamPolicy field is set.
   */
  boolean hasIamPolicy();
  /**
   *
   *
   * <pre>
   * Representation of the actual Cloud IAM policy set on a cloud resource. For
   * each resource, there must be at most one Cloud IAM policy set on it.
   * </pre>
   *
   * <code>.google.iam.v1.Policy iam_policy = 4;</code>
   *
   * @return The iamPolicy.
   */
  com.google.iam.v1.Policy getIamPolicy();
  /**
   *
   *
   * <pre>
   * Representation of the actual Cloud IAM policy set on a cloud resource. For
   * each resource, there must be at most one Cloud IAM policy set on it.
   * </pre>
   *
   * <code>.google.iam.v1.Policy iam_policy = 4;</code>
   */
  com.google.iam.v1.PolicyOrBuilder getIamPolicyOrBuilder();

  /**
   *
   *
   * <pre>
   * Asset's ancestry path in Cloud Resource Manager (CRM) hierarchy,
   * represented as a list of relative resource names. Ancestry path starts with
   * the closest CRM ancestor and ends at root. If the asset is a CRM
   * project/folder/organization, this starts from the asset itself.
   * Example: ["projects/123456789", "folders/5432", "organizations/1234"]
   * </pre>
   *
   * <code>repeated string ancestors = 6;</code>
   *
   * @return A list containing the ancestors.
   */
  java.util.List<java.lang.String> getAncestorsList();
  /**
   *
   *
   * <pre>
   * Asset's ancestry path in Cloud Resource Manager (CRM) hierarchy,
   * represented as a list of relative resource names. Ancestry path starts with
   * the closest CRM ancestor and ends at root. If the asset is a CRM
   * project/folder/organization, this starts from the asset itself.
   * Example: ["projects/123456789", "folders/5432", "organizations/1234"]
   * </pre>
   *
   * <code>repeated string ancestors = 6;</code>
   *
   * @return The count of ancestors.
   */
  int getAncestorsCount();
  /**
   *
   *
   * <pre>
   * Asset's ancestry path in Cloud Resource Manager (CRM) hierarchy,
   * represented as a list of relative resource names. Ancestry path starts with
   * the closest CRM ancestor and ends at root. If the asset is a CRM
   * project/folder/organization, this starts from the asset itself.
   * Example: ["projects/123456789", "folders/5432", "organizations/1234"]
   * </pre>
   *
   * <code>repeated string ancestors = 6;</code>
   *
   * @param index The index of the element to return.
   * @return The ancestors at the given index.
   */
  java.lang.String getAncestors(int index);
  /**
   *
   *
   * <pre>
   * Asset's ancestry path in Cloud Resource Manager (CRM) hierarchy,
   * represented as a list of relative resource names. Ancestry path starts with
   * the closest CRM ancestor and ends at root. If the asset is a CRM
   * project/folder/organization, this starts from the asset itself.
   * Example: ["projects/123456789", "folders/5432", "organizations/1234"]
   * </pre>
   *
   * <code>repeated string ancestors = 6;</code>
   *
   * @param index The index of the value to return.
   * @return The bytes of the ancestors at the given index.
   */
  com.google.protobuf.ByteString getAncestorsBytes(int index);
}
