/*
 * 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/analytics/admin/v1alpha/resources.proto

package com.google.analytics.admin.v1alpha;

public interface AccessBindingOrBuilder
    extends
    // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.AccessBinding)
    com.google.protobuf.MessageOrBuilder {

  /**
   *
   *
   * <pre>
   * If set, the email address of the user to set roles for.
   * Format: "someuser&#64;gmail.com"
   * </pre>
   *
   * <code>string user = 2;</code>
   *
   * @return Whether the user field is set.
   */
  boolean hasUser();
  /**
   *
   *
   * <pre>
   * If set, the email address of the user to set roles for.
   * Format: "someuser&#64;gmail.com"
   * </pre>
   *
   * <code>string user = 2;</code>
   *
   * @return The user.
   */
  java.lang.String getUser();
  /**
   *
   *
   * <pre>
   * If set, the email address of the user to set roles for.
   * Format: "someuser&#64;gmail.com"
   * </pre>
   *
   * <code>string user = 2;</code>
   *
   * @return The bytes for user.
   */
  com.google.protobuf.ByteString getUserBytes();

  /**
   *
   *
   * <pre>
   * Output only. Resource name of this binding.
   * Format: accounts/{account}/accessBindings/{access_binding} or
   * properties/{property}/accessBindings/{access_binding}
   * Example:
   * "accounts/100/accessBindings/200"
   * </pre>
   *
   * <code>string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
   *
   * @return The name.
   */
  java.lang.String getName();
  /**
   *
   *
   * <pre>
   * Output only. Resource name of this binding.
   * Format: accounts/{account}/accessBindings/{access_binding} or
   * properties/{property}/accessBindings/{access_binding}
   * Example:
   * "accounts/100/accessBindings/200"
   * </pre>
   *
   * <code>string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
   *
   * @return The bytes for name.
   */
  com.google.protobuf.ByteString getNameBytes();

  /**
   *
   *
   * <pre>
   * A list of roles for to grant to the parent resource.
   * Valid values:
   * predefinedRoles/viewer
   * predefinedRoles/analyst
   * predefinedRoles/editor
   * predefinedRoles/admin
   * predefinedRoles/no-cost-data
   * predefinedRoles/no-revenue-data
   * For users, if an empty list of roles is set, this AccessBinding will be
   * deleted.
   * </pre>
   *
   * <code>repeated string roles = 3;</code>
   *
   * @return A list containing the roles.
   */
  java.util.List<java.lang.String> getRolesList();
  /**
   *
   *
   * <pre>
   * A list of roles for to grant to the parent resource.
   * Valid values:
   * predefinedRoles/viewer
   * predefinedRoles/analyst
   * predefinedRoles/editor
   * predefinedRoles/admin
   * predefinedRoles/no-cost-data
   * predefinedRoles/no-revenue-data
   * For users, if an empty list of roles is set, this AccessBinding will be
   * deleted.
   * </pre>
   *
   * <code>repeated string roles = 3;</code>
   *
   * @return The count of roles.
   */
  int getRolesCount();
  /**
   *
   *
   * <pre>
   * A list of roles for to grant to the parent resource.
   * Valid values:
   * predefinedRoles/viewer
   * predefinedRoles/analyst
   * predefinedRoles/editor
   * predefinedRoles/admin
   * predefinedRoles/no-cost-data
   * predefinedRoles/no-revenue-data
   * For users, if an empty list of roles is set, this AccessBinding will be
   * deleted.
   * </pre>
   *
   * <code>repeated string roles = 3;</code>
   *
   * @param index The index of the element to return.
   * @return The roles at the given index.
   */
  java.lang.String getRoles(int index);
  /**
   *
   *
   * <pre>
   * A list of roles for to grant to the parent resource.
   * Valid values:
   * predefinedRoles/viewer
   * predefinedRoles/analyst
   * predefinedRoles/editor
   * predefinedRoles/admin
   * predefinedRoles/no-cost-data
   * predefinedRoles/no-revenue-data
   * For users, if an empty list of roles is set, this AccessBinding will be
   * deleted.
   * </pre>
   *
   * <code>repeated string roles = 3;</code>
   *
   * @param index The index of the value to return.
   * @return The bytes of the roles at the given index.
   */
  com.google.protobuf.ByteString getRolesBytes(int index);

  public com.google.analytics.admin.v1alpha.AccessBinding.AccessTargetCase getAccessTargetCase();
}
