// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: google/cloud/securitycenter/v1/security_marks.proto

package com.google.cloud.securitycenter.v1;

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

  /**
   *
   *
   * <pre>
   * The relative resource name of the SecurityMarks. See:
   * https://cloud.google.com/apis/design/resource_names#relative_resource_name
   * Examples:
   * "organizations/123/assets/456/securityMarks"
   * "organizations/123/sources/456/findings/789/securityMarks".
   * </pre>
   *
   * <code>string name = 1;</code>
   */
  java.lang.String getName();
  /**
   *
   *
   * <pre>
   * The relative resource name of the SecurityMarks. See:
   * https://cloud.google.com/apis/design/resource_names#relative_resource_name
   * Examples:
   * "organizations/123/assets/456/securityMarks"
   * "organizations/123/sources/456/findings/789/securityMarks".
   * </pre>
   *
   * <code>string name = 1;</code>
   */
  com.google.protobuf.ByteString getNameBytes();

  /**
   *
   *
   * <pre>
   * Mutable user specified security marks belonging to the parent resource.
   * Constraints are as follows:
   *   - Keys and values are treated as case insensitive
   *   - Keys must be between 1 - 256 characters (inclusive)
   *   - Keys must be letters, numbers, underscores, or dashes
   *   - Values have leading and trailing whitespace trimmed, remaining
   *     characters must be between 1 - 4096 characters (inclusive)
   * </pre>
   *
   * <code>map&lt;string, string&gt; marks = 2;</code>
   */
  int getMarksCount();
  /**
   *
   *
   * <pre>
   * Mutable user specified security marks belonging to the parent resource.
   * Constraints are as follows:
   *   - Keys and values are treated as case insensitive
   *   - Keys must be between 1 - 256 characters (inclusive)
   *   - Keys must be letters, numbers, underscores, or dashes
   *   - Values have leading and trailing whitespace trimmed, remaining
   *     characters must be between 1 - 4096 characters (inclusive)
   * </pre>
   *
   * <code>map&lt;string, string&gt; marks = 2;</code>
   */
  boolean containsMarks(java.lang.String key);
  /** Use {@link #getMarksMap()} instead. */
  @java.lang.Deprecated
  java.util.Map<java.lang.String, java.lang.String> getMarks();
  /**
   *
   *
   * <pre>
   * Mutable user specified security marks belonging to the parent resource.
   * Constraints are as follows:
   *   - Keys and values are treated as case insensitive
   *   - Keys must be between 1 - 256 characters (inclusive)
   *   - Keys must be letters, numbers, underscores, or dashes
   *   - Values have leading and trailing whitespace trimmed, remaining
   *     characters must be between 1 - 4096 characters (inclusive)
   * </pre>
   *
   * <code>map&lt;string, string&gt; marks = 2;</code>
   */
  java.util.Map<java.lang.String, java.lang.String> getMarksMap();
  /**
   *
   *
   * <pre>
   * Mutable user specified security marks belonging to the parent resource.
   * Constraints are as follows:
   *   - Keys and values are treated as case insensitive
   *   - Keys must be between 1 - 256 characters (inclusive)
   *   - Keys must be letters, numbers, underscores, or dashes
   *   - Values have leading and trailing whitespace trimmed, remaining
   *     characters must be between 1 - 4096 characters (inclusive)
   * </pre>
   *
   * <code>map&lt;string, string&gt; marks = 2;</code>
   */
  java.lang.String getMarksOrDefault(java.lang.String key, java.lang.String defaultValue);
  /**
   *
   *
   * <pre>
   * Mutable user specified security marks belonging to the parent resource.
   * Constraints are as follows:
   *   - Keys and values are treated as case insensitive
   *   - Keys must be between 1 - 256 characters (inclusive)
   *   - Keys must be letters, numbers, underscores, or dashes
   *   - Values have leading and trailing whitespace trimmed, remaining
   *     characters must be between 1 - 4096 characters (inclusive)
   * </pre>
   *
   * <code>map&lt;string, string&gt; marks = 2;</code>
   */
  java.lang.String getMarksOrThrow(java.lang.String key);
}
