/*
 * 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/dataplex/v1/metadata.proto

package com.google.cloud.dataplex.v1;

public interface PartitionOrBuilder
    extends
    // @@protoc_insertion_point(interface_extends:google.cloud.dataplex.v1.Partition)
    com.google.protobuf.MessageOrBuilder {

  /**
   *
   *
   * <pre>
   * Output only. Partition values used in the HTTP URL must be
   * double encoded. For example, `url_encode(url_encode(value))` can be used
   * to encode "US:CA/CA#Sunnyvale so that the request URL ends
   * with "/partitions/US%253ACA/CA%2523Sunnyvale".
   * The name field in the response retains the encoded format.
   * </pre>
   *
   * <code>
   * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
   * </code>
   *
   * @return The name.
   */
  java.lang.String getName();
  /**
   *
   *
   * <pre>
   * Output only. Partition values used in the HTTP URL must be
   * double encoded. For example, `url_encode(url_encode(value))` can be used
   * to encode "US:CA/CA#Sunnyvale so that the request URL ends
   * with "/partitions/US%253ACA/CA%2523Sunnyvale".
   * The name field in the response retains the encoded format.
   * </pre>
   *
   * <code>
   * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
   * </code>
   *
   * @return The bytes for name.
   */
  com.google.protobuf.ByteString getNameBytes();

  /**
   *
   *
   * <pre>
   * Required. Immutable. The set of values representing the partition, which
   * correspond to the partition schema defined in the parent entity.
   * </pre>
   *
   * <code>
   * repeated string values = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];
   * </code>
   *
   * @return A list containing the values.
   */
  java.util.List<java.lang.String> getValuesList();
  /**
   *
   *
   * <pre>
   * Required. Immutable. The set of values representing the partition, which
   * correspond to the partition schema defined in the parent entity.
   * </pre>
   *
   * <code>
   * repeated string values = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];
   * </code>
   *
   * @return The count of values.
   */
  int getValuesCount();
  /**
   *
   *
   * <pre>
   * Required. Immutable. The set of values representing the partition, which
   * correspond to the partition schema defined in the parent entity.
   * </pre>
   *
   * <code>
   * repeated string values = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];
   * </code>
   *
   * @param index The index of the element to return.
   * @return The values at the given index.
   */
  java.lang.String getValues(int index);
  /**
   *
   *
   * <pre>
   * Required. Immutable. The set of values representing the partition, which
   * correspond to the partition schema defined in the parent entity.
   * </pre>
   *
   * <code>
   * repeated string values = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];
   * </code>
   *
   * @param index The index of the value to return.
   * @return The bytes of the values at the given index.
   */
  com.google.protobuf.ByteString getValuesBytes(int index);

  /**
   *
   *
   * <pre>
   * Required. Immutable. The location of the entity data within the partition,
   * for example, `gs://bucket/path/to/entity/key1=value1/key2=value2`. Or
   * `projects/&lt;project_id&gt;/datasets/&lt;dataset_id&gt;/tables/&lt;table_id&gt;`
   * </pre>
   *
   * <code>
   * string location = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];
   * </code>
   *
   * @return The location.
   */
  java.lang.String getLocation();
  /**
   *
   *
   * <pre>
   * Required. Immutable. The location of the entity data within the partition,
   * for example, `gs://bucket/path/to/entity/key1=value1/key2=value2`. Or
   * `projects/&lt;project_id&gt;/datasets/&lt;dataset_id&gt;/tables/&lt;table_id&gt;`
   * </pre>
   *
   * <code>
   * string location = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];
   * </code>
   *
   * @return The bytes for location.
   */
  com.google.protobuf.ByteString getLocationBytes();

  /**
   *
   *
   * <pre>
   * Optional. The etag for this partition.
   * </pre>
   *
   * <code>string etag = 4 [deprecated = true, (.google.api.field_behavior) = OPTIONAL];</code>
   *
   * @deprecated google.cloud.dataplex.v1.Partition.etag is deprecated. See
   *     google/cloud/dataplex/v1/metadata.proto;l=513
   * @return The etag.
   */
  @java.lang.Deprecated
  java.lang.String getEtag();
  /**
   *
   *
   * <pre>
   * Optional. The etag for this partition.
   * </pre>
   *
   * <code>string etag = 4 [deprecated = true, (.google.api.field_behavior) = OPTIONAL];</code>
   *
   * @deprecated google.cloud.dataplex.v1.Partition.etag is deprecated. See
   *     google/cloud/dataplex/v1/metadata.proto;l=513
   * @return The bytes for etag.
   */
  @java.lang.Deprecated
  com.google.protobuf.ByteString getEtagBytes();
}
