1 /* 2 * Copyright 2020 Google LLC 3 * 4 * Licensed under the Apache License, Version 2.0 (the "License"); 5 * you may not use this file except in compliance with the License. 6 * You may obtain a copy of the License at 7 * 8 * https://www.apache.org/licenses/LICENSE-2.0 9 * 10 * Unless required by applicable law or agreed to in writing, software 11 * distributed under the License is distributed on an "AS IS" BASIS, 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 * See the License for the specific language governing permissions and 14 * limitations under the License. 15 */ 16 // Generated by the protocol buffer compiler. DO NOT EDIT! 17 // source: google/iam/v1/iam_policy.proto 18 19 package com.google.iam.v1; 20 21 public interface TestIamPermissionsRequestOrBuilder 22 extends 23 // @@protoc_insertion_point(interface_extends:google.iam.v1.TestIamPermissionsRequest) 24 com.google.protobuf.MessageOrBuilder { 25 26 /** 27 * 28 * 29 * <pre> 30 * REQUIRED: The resource for which the policy detail is being requested. 31 * See the operation documentation for the appropriate value for this field. 32 * </pre> 33 * 34 * <code> 35 * string resource = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } 36 * </code> 37 * 38 * @return The resource. 39 */ getResource()40 java.lang.String getResource(); 41 /** 42 * 43 * 44 * <pre> 45 * REQUIRED: The resource for which the policy detail is being requested. 46 * See the operation documentation for the appropriate value for this field. 47 * </pre> 48 * 49 * <code> 50 * string resource = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } 51 * </code> 52 * 53 * @return The bytes for resource. 54 */ getResourceBytes()55 com.google.protobuf.ByteString getResourceBytes(); 56 57 /** 58 * 59 * 60 * <pre> 61 * The set of permissions to check for the `resource`. Permissions with 62 * wildcards (such as '*' or 'storage.*') are not allowed. For more 63 * information see 64 * [IAM Overview](https://cloud.google.com/iam/docs/overview#permissions). 65 * </pre> 66 * 67 * <code>repeated string permissions = 2 [(.google.api.field_behavior) = REQUIRED];</code> 68 * 69 * @return A list containing the permissions. 70 */ getPermissionsList()71 java.util.List<java.lang.String> getPermissionsList(); 72 /** 73 * 74 * 75 * <pre> 76 * The set of permissions to check for the `resource`. Permissions with 77 * wildcards (such as '*' or 'storage.*') are not allowed. For more 78 * information see 79 * [IAM Overview](https://cloud.google.com/iam/docs/overview#permissions). 80 * </pre> 81 * 82 * <code>repeated string permissions = 2 [(.google.api.field_behavior) = REQUIRED];</code> 83 * 84 * @return The count of permissions. 85 */ getPermissionsCount()86 int getPermissionsCount(); 87 /** 88 * 89 * 90 * <pre> 91 * The set of permissions to check for the `resource`. Permissions with 92 * wildcards (such as '*' or 'storage.*') are not allowed. For more 93 * information see 94 * [IAM Overview](https://cloud.google.com/iam/docs/overview#permissions). 95 * </pre> 96 * 97 * <code>repeated string permissions = 2 [(.google.api.field_behavior) = REQUIRED];</code> 98 * 99 * @param index The index of the element to return. 100 * @return The permissions at the given index. 101 */ getPermissions(int index)102 java.lang.String getPermissions(int index); 103 /** 104 * 105 * 106 * <pre> 107 * The set of permissions to check for the `resource`. Permissions with 108 * wildcards (such as '*' or 'storage.*') are not allowed. For more 109 * information see 110 * [IAM Overview](https://cloud.google.com/iam/docs/overview#permissions). 111 * </pre> 112 * 113 * <code>repeated string permissions = 2 [(.google.api.field_behavior) = REQUIRED];</code> 114 * 115 * @param index The index of the value to return. 116 * @return The bytes of the permissions at the given index. 117 */ getPermissionsBytes(int index)118 com.google.protobuf.ByteString getPermissionsBytes(int index); 119 } 120