/*
 * Copyright 2026 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!
// NO CHECKED-IN PROTOBUF GENCODE
// source: google/storage/control/v2/storage_control.proto
// Protobuf Java Version: 4.33.2

package com.google.storage.control.v2;

@com.google.protobuf.Generated
public interface AnywhereCacheOrBuilder
    extends
    // @@protoc_insertion_point(interface_extends:google.storage.control.v2.AnywhereCache)
    com.google.protobuf.MessageOrBuilder {

  /**
   *
   *
   * <pre>
   * Immutable. The resource name of this AnywhereCache.
   * Format:
   * `projects/{project}/buckets/{bucket}/anywhereCaches/{anywhere_cache}`
   * </pre>
   *
   * <code>string name = 1 [(.google.api.field_behavior) = IMMUTABLE];</code>
   *
   * @return The name.
   */
  java.lang.String getName();

  /**
   *
   *
   * <pre>
   * Immutable. The resource name of this AnywhereCache.
   * Format:
   * `projects/{project}/buckets/{bucket}/anywhereCaches/{anywhere_cache}`
   * </pre>
   *
   * <code>string name = 1 [(.google.api.field_behavior) = IMMUTABLE];</code>
   *
   * @return The bytes for name.
   */
  com.google.protobuf.ByteString getNameBytes();

  /**
   *
   *
   * <pre>
   * Immutable. The zone in which the cache instance is running. For example,
   * us-central1-a.
   * </pre>
   *
   * <code>string zone = 10 [(.google.api.field_behavior) = IMMUTABLE];</code>
   *
   * @return The zone.
   */
  java.lang.String getZone();

  /**
   *
   *
   * <pre>
   * Immutable. The zone in which the cache instance is running. For example,
   * us-central1-a.
   * </pre>
   *
   * <code>string zone = 10 [(.google.api.field_behavior) = IMMUTABLE];</code>
   *
   * @return The bytes for zone.
   */
  com.google.protobuf.ByteString getZoneBytes();

  /**
   *
   *
   * <pre>
   * Cache entry TTL (ranges between 1h to 7d). This is a cache-level config
   * that defines how long a cache entry can live. Default ttl value (24hrs)
   * is applied if not specified in the create request. TTL must be in whole
   * seconds.
   * </pre>
   *
   * <code>.google.protobuf.Duration ttl = 3;</code>
   *
   * @return Whether the ttl field is set.
   */
  boolean hasTtl();

  /**
   *
   *
   * <pre>
   * Cache entry TTL (ranges between 1h to 7d). This is a cache-level config
   * that defines how long a cache entry can live. Default ttl value (24hrs)
   * is applied if not specified in the create request. TTL must be in whole
   * seconds.
   * </pre>
   *
   * <code>.google.protobuf.Duration ttl = 3;</code>
   *
   * @return The ttl.
   */
  com.google.protobuf.Duration getTtl();

  /**
   *
   *
   * <pre>
   * Cache entry TTL (ranges between 1h to 7d). This is a cache-level config
   * that defines how long a cache entry can live. Default ttl value (24hrs)
   * is applied if not specified in the create request. TTL must be in whole
   * seconds.
   * </pre>
   *
   * <code>.google.protobuf.Duration ttl = 3;</code>
   */
  com.google.protobuf.DurationOrBuilder getTtlOrBuilder();

  /**
   *
   *
   * <pre>
   * Cache admission policy. Valid policies includes:
   * `admit-on-first-miss` and `admit-on-second-miss`. Defaults to
   * `admit-on-first-miss`. Default value is applied if not specified in the
   * create request.
   * </pre>
   *
   * <code>string admission_policy = 9;</code>
   *
   * @return The admissionPolicy.
   */
  java.lang.String getAdmissionPolicy();

  /**
   *
   *
   * <pre>
   * Cache admission policy. Valid policies includes:
   * `admit-on-first-miss` and `admit-on-second-miss`. Defaults to
   * `admit-on-first-miss`. Default value is applied if not specified in the
   * create request.
   * </pre>
   *
   * <code>string admission_policy = 9;</code>
   *
   * @return The bytes for admissionPolicy.
   */
  com.google.protobuf.ByteString getAdmissionPolicyBytes();

  /**
   *
   *
   * <pre>
   * Output only. Cache state including RUNNING, CREATING, DISABLED and PAUSED.
   * </pre>
   *
   * <code>string state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
   *
   * @return The state.
   */
  java.lang.String getState();

  /**
   *
   *
   * <pre>
   * Output only. Cache state including RUNNING, CREATING, DISABLED and PAUSED.
   * </pre>
   *
   * <code>string state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
   *
   * @return The bytes for state.
   */
  com.google.protobuf.ByteString getStateBytes();

  /**
   *
   *
   * <pre>
   * Output only. Time when Anywhere cache instance is allocated.
   * </pre>
   *
   * <code>.google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
   * </code>
   *
   * @return Whether the createTime field is set.
   */
  boolean hasCreateTime();

  /**
   *
   *
   * <pre>
   * Output only. Time when Anywhere cache instance is allocated.
   * </pre>
   *
   * <code>.google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
   * </code>
   *
   * @return The createTime.
   */
  com.google.protobuf.Timestamp getCreateTime();

  /**
   *
   *
   * <pre>
   * Output only. Time when Anywhere cache instance is allocated.
   * </pre>
   *
   * <code>.google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
   * </code>
   */
  com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder();

  /**
   *
   *
   * <pre>
   * Output only. Time when Anywhere cache instance is last updated, including
   * creation.
   * </pre>
   *
   * <code>.google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
   * </code>
   *
   * @return Whether the updateTime field is set.
   */
  boolean hasUpdateTime();

  /**
   *
   *
   * <pre>
   * Output only. Time when Anywhere cache instance is last updated, including
   * creation.
   * </pre>
   *
   * <code>.google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
   * </code>
   *
   * @return The updateTime.
   */
  com.google.protobuf.Timestamp getUpdateTime();

  /**
   *
   *
   * <pre>
   * Output only. Time when Anywhere cache instance is last updated, including
   * creation.
   * </pre>
   *
   * <code>.google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
   * </code>
   */
  com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder();

  /**
   *
   *
   * <pre>
   * Output only. True if there is an active update operation against this cache
   * instance. Subsequential update requests will be rejected if this field is
   * true. Output only.
   * </pre>
   *
   * <code>bool pending_update = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
   *
   * @return The pendingUpdate.
   */
  boolean getPendingUpdate();
}
