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 SetIamPolicyRequestOrBuilder 22 extends 23 // @@protoc_insertion_point(interface_extends:google.iam.v1.SetIamPolicyRequest) 24 com.google.protobuf.MessageOrBuilder { 25 26 /** 27 * 28 * 29 * <pre> 30 * REQUIRED: The resource for which the policy is being specified. 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 is being specified. 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 * REQUIRED: The complete policy to be applied to the `resource`. The size of 62 * the policy is limited to a few 10s of KB. An empty policy is a 63 * valid policy but certain Cloud Platform services (such as Projects) 64 * might reject them. 65 * </pre> 66 * 67 * <code>.google.iam.v1.Policy policy = 2 [(.google.api.field_behavior) = REQUIRED];</code> 68 * 69 * @return Whether the policy field is set. 70 */ hasPolicy()71 boolean hasPolicy(); 72 /** 73 * 74 * 75 * <pre> 76 * REQUIRED: The complete policy to be applied to the `resource`. The size of 77 * the policy is limited to a few 10s of KB. An empty policy is a 78 * valid policy but certain Cloud Platform services (such as Projects) 79 * might reject them. 80 * </pre> 81 * 82 * <code>.google.iam.v1.Policy policy = 2 [(.google.api.field_behavior) = REQUIRED];</code> 83 * 84 * @return The policy. 85 */ getPolicy()86 com.google.iam.v1.Policy getPolicy(); 87 /** 88 * 89 * 90 * <pre> 91 * REQUIRED: The complete policy to be applied to the `resource`. The size of 92 * the policy is limited to a few 10s of KB. An empty policy is a 93 * valid policy but certain Cloud Platform services (such as Projects) 94 * might reject them. 95 * </pre> 96 * 97 * <code>.google.iam.v1.Policy policy = 2 [(.google.api.field_behavior) = REQUIRED];</code> 98 */ getPolicyOrBuilder()99 com.google.iam.v1.PolicyOrBuilder getPolicyOrBuilder(); 100 101 /** 102 * 103 * 104 * <pre> 105 * OPTIONAL: A FieldMask specifying which fields of the policy to modify. Only 106 * the fields in the mask will be modified. If no mask is provided, the 107 * following default mask is used: 108 * `paths: "bindings, etag"` 109 * </pre> 110 * 111 * <code>.google.protobuf.FieldMask update_mask = 3;</code> 112 * 113 * @return Whether the updateMask field is set. 114 */ hasUpdateMask()115 boolean hasUpdateMask(); 116 /** 117 * 118 * 119 * <pre> 120 * OPTIONAL: A FieldMask specifying which fields of the policy to modify. Only 121 * the fields in the mask will be modified. If no mask is provided, the 122 * following default mask is used: 123 * `paths: "bindings, etag"` 124 * </pre> 125 * 126 * <code>.google.protobuf.FieldMask update_mask = 3;</code> 127 * 128 * @return The updateMask. 129 */ getUpdateMask()130 com.google.protobuf.FieldMask getUpdateMask(); 131 /** 132 * 133 * 134 * <pre> 135 * OPTIONAL: A FieldMask specifying which fields of the policy to modify. Only 136 * the fields in the mask will be modified. If no mask is provided, the 137 * following default mask is used: 138 * `paths: "bindings, etag"` 139 * </pre> 140 * 141 * <code>.google.protobuf.FieldMask update_mask = 3;</code> 142 */ getUpdateMaskOrBuilder()143 com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); 144 } 145