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

package com.google.logging.v2;

public interface LogBucketOrBuilder extends
    // @@protoc_insertion_point(interface_extends:google.logging.v2.LogBucket)
    com.google.protobuf.MessageLiteOrBuilder {

  /**
   * <pre>
   * The resource name of the bucket.
   * For example:
   * "projects/my-project-id/locations/my-location/buckets/my-bucket-id The
   * supported locations are:
   *   "global"
   * For the location of `global` it is unspecified where logs are actually
   * stored.
   * Once a bucket has been created, the location can not be changed.
   * </pre>
   *
   * <code>string name = 1;</code>
   * @return The name.
   */
  java.lang.String getName();
  /**
   * <pre>
   * The resource name of the bucket.
   * For example:
   * "projects/my-project-id/locations/my-location/buckets/my-bucket-id The
   * supported locations are:
   *   "global"
   * For the location of `global` it is unspecified where logs are actually
   * stored.
   * Once a bucket has been created, the location can not be changed.
   * </pre>
   *
   * <code>string name = 1;</code>
   * @return The bytes for name.
   */
  com.google.protobuf.ByteString
      getNameBytes();

  /**
   * <pre>
   * Describes this bucket.
   * </pre>
   *
   * <code>string description = 3;</code>
   * @return The description.
   */
  java.lang.String getDescription();
  /**
   * <pre>
   * Describes this bucket.
   * </pre>
   *
   * <code>string description = 3;</code>
   * @return The bytes for description.
   */
  com.google.protobuf.ByteString
      getDescriptionBytes();

  /**
   * <pre>
   * Output only. The creation timestamp of the bucket. This is not set for any of the
   * default buckets.
   * </pre>
   *
   * <code>.google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
   * @return Whether the createTime field is set.
   */
  boolean hasCreateTime();
  /**
   * <pre>
   * Output only. The creation timestamp of the bucket. This is not set for any of the
   * default buckets.
   * </pre>
   *
   * <code>.google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
   * @return The createTime.
   */
  com.google.protobuf.Timestamp getCreateTime();

  /**
   * <pre>
   * Output only. The last update timestamp of the bucket.
   * </pre>
   *
   * <code>.google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
   * @return Whether the updateTime field is set.
   */
  boolean hasUpdateTime();
  /**
   * <pre>
   * Output only. The last update timestamp of the bucket.
   * </pre>
   *
   * <code>.google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
   * @return The updateTime.
   */
  com.google.protobuf.Timestamp getUpdateTime();

  /**
   * <pre>
   * Logs will be retained by default for this amount of time, after which they
   * will automatically be deleted. The minimum retention period is 1 day.
   * If this value is set to zero at bucket creation time, the default time of
   * 30 days will be used.
   * </pre>
   *
   * <code>int32 retention_days = 11;</code>
   * @return The retentionDays.
   */
  int getRetentionDays();

  /**
   * <pre>
   * Whether the bucket has been locked.
   * The retention period on a locked bucket may not be changed.
   * Locked buckets may only be deleted if they are empty.
   * </pre>
   *
   * <code>bool locked = 9;</code>
   * @return The locked.
   */
  boolean getLocked();

  /**
   * <pre>
   * Output only. The bucket lifecycle state.
   * </pre>
   *
   * <code>.google.logging.v2.LifecycleState lifecycle_state = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
   * @return The enum numeric value on the wire for lifecycleState.
   */
  int getLifecycleStateValue();
  /**
   * <pre>
   * Output only. The bucket lifecycle state.
   * </pre>
   *
   * <code>.google.logging.v2.LifecycleState lifecycle_state = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
   * @return The lifecycleState.
   */
  com.google.logging.v2.LifecycleState getLifecycleState();
}
