/*
 * 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/run/v2/k8s.min.proto

package com.google.cloud.run.v2;

public interface EnvVarOrBuilder
    extends
    // @@protoc_insertion_point(interface_extends:google.cloud.run.v2.EnvVar)
    com.google.protobuf.MessageOrBuilder {

  /**
   *
   *
   * <pre>
   * Required. Name of the environment variable. Must be a C_IDENTIFIER, and
   * mnay not exceed 32768 characters.
   * </pre>
   *
   * <code>string name = 1 [(.google.api.field_behavior) = REQUIRED];</code>
   *
   * @return The name.
   */
  java.lang.String getName();
  /**
   *
   *
   * <pre>
   * Required. Name of the environment variable. Must be a C_IDENTIFIER, and
   * mnay not exceed 32768 characters.
   * </pre>
   *
   * <code>string name = 1 [(.google.api.field_behavior) = REQUIRED];</code>
   *
   * @return The bytes for name.
   */
  com.google.protobuf.ByteString getNameBytes();

  /**
   *
   *
   * <pre>
   * Variable references $(VAR_NAME) are expanded
   * using the previous defined environment variables in the container and
   * any route environment variables. If a variable cannot be resolved,
   * the reference in the input string will be unchanged. The $(VAR_NAME)
   * syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped
   * references will never be expanded, regardless of whether the variable
   * exists or not.
   * Defaults to "", and the maximum length is 32768 bytes.
   * </pre>
   *
   * <code>string value = 2;</code>
   *
   * @return Whether the value field is set.
   */
  boolean hasValue();
  /**
   *
   *
   * <pre>
   * Variable references $(VAR_NAME) are expanded
   * using the previous defined environment variables in the container and
   * any route environment variables. If a variable cannot be resolved,
   * the reference in the input string will be unchanged. The $(VAR_NAME)
   * syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped
   * references will never be expanded, regardless of whether the variable
   * exists or not.
   * Defaults to "", and the maximum length is 32768 bytes.
   * </pre>
   *
   * <code>string value = 2;</code>
   *
   * @return The value.
   */
  java.lang.String getValue();
  /**
   *
   *
   * <pre>
   * Variable references $(VAR_NAME) are expanded
   * using the previous defined environment variables in the container and
   * any route environment variables. If a variable cannot be resolved,
   * the reference in the input string will be unchanged. The $(VAR_NAME)
   * syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped
   * references will never be expanded, regardless of whether the variable
   * exists or not.
   * Defaults to "", and the maximum length is 32768 bytes.
   * </pre>
   *
   * <code>string value = 2;</code>
   *
   * @return The bytes for value.
   */
  com.google.protobuf.ByteString getValueBytes();

  /**
   *
   *
   * <pre>
   * Source for the environment variable's value.
   * </pre>
   *
   * <code>.google.cloud.run.v2.EnvVarSource value_source = 3;</code>
   *
   * @return Whether the valueSource field is set.
   */
  boolean hasValueSource();
  /**
   *
   *
   * <pre>
   * Source for the environment variable's value.
   * </pre>
   *
   * <code>.google.cloud.run.v2.EnvVarSource value_source = 3;</code>
   *
   * @return The valueSource.
   */
  com.google.cloud.run.v2.EnvVarSource getValueSource();
  /**
   *
   *
   * <pre>
   * Source for the environment variable's value.
   * </pre>
   *
   * <code>.google.cloud.run.v2.EnvVarSource value_source = 3;</code>
   */
  com.google.cloud.run.v2.EnvVarSourceOrBuilder getValueSourceOrBuilder();

  public com.google.cloud.run.v2.EnvVar.ValuesCase getValuesCase();
}
