// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: google/logging/v2/logging.proto

package com.google.logging.v2;

public interface WriteLogEntriesPartialErrorsOrBuilder extends
    // @@protoc_insertion_point(interface_extends:google.logging.v2.WriteLogEntriesPartialErrors)
    com.google.protobuf.MessageOrBuilder {

  /**
   * <pre>
   * When `WriteLogEntriesRequest.partial_success` is true, records the error
   * status for entries that were not written due to a permanent error, keyed
   * by the entry's zero-based index in `WriteLogEntriesRequest.entries`.
   * Failed requests for which no entries are written will not include
   * per-entry errors.
   * </pre>
   *
   * <code>map&lt;int32, .google.rpc.Status&gt; log_entry_errors = 1;</code>
   */
  int getLogEntryErrorsCount();
  /**
   * <pre>
   * When `WriteLogEntriesRequest.partial_success` is true, records the error
   * status for entries that were not written due to a permanent error, keyed
   * by the entry's zero-based index in `WriteLogEntriesRequest.entries`.
   * Failed requests for which no entries are written will not include
   * per-entry errors.
   * </pre>
   *
   * <code>map&lt;int32, .google.rpc.Status&gt; log_entry_errors = 1;</code>
   */
  boolean containsLogEntryErrors(
      int key);
  /**
   * Use {@link #getLogEntryErrorsMap()} instead.
   */
  @java.lang.Deprecated
  java.util.Map<java.lang.Integer, com.google.rpc.Status>
  getLogEntryErrors();
  /**
   * <pre>
   * When `WriteLogEntriesRequest.partial_success` is true, records the error
   * status for entries that were not written due to a permanent error, keyed
   * by the entry's zero-based index in `WriteLogEntriesRequest.entries`.
   * Failed requests for which no entries are written will not include
   * per-entry errors.
   * </pre>
   *
   * <code>map&lt;int32, .google.rpc.Status&gt; log_entry_errors = 1;</code>
   */
  java.util.Map<java.lang.Integer, com.google.rpc.Status>
  getLogEntryErrorsMap();
  /**
   * <pre>
   * When `WriteLogEntriesRequest.partial_success` is true, records the error
   * status for entries that were not written due to a permanent error, keyed
   * by the entry's zero-based index in `WriteLogEntriesRequest.entries`.
   * Failed requests for which no entries are written will not include
   * per-entry errors.
   * </pre>
   *
   * <code>map&lt;int32, .google.rpc.Status&gt; log_entry_errors = 1;</code>
   */

  com.google.rpc.Status getLogEntryErrorsOrDefault(
      int key,
      com.google.rpc.Status defaultValue);
  /**
   * <pre>
   * When `WriteLogEntriesRequest.partial_success` is true, records the error
   * status for entries that were not written due to a permanent error, keyed
   * by the entry's zero-based index in `WriteLogEntriesRequest.entries`.
   * Failed requests for which no entries are written will not include
   * per-entry errors.
   * </pre>
   *
   * <code>map&lt;int32, .google.rpc.Status&gt; log_entry_errors = 1;</code>
   */

  com.google.rpc.Status getLogEntryErrorsOrThrow(
      int key);
}
