Debian Codegraph @

iam/apiv1/iampb/options.pb.go

raw
1 // Copyright 2025 Google LLC
2 //
3 // Licensed under the Apache License, Version 2.0 (the "License");
4 // you may not use this file except in compliance with the License.
5 // You may obtain a copy of the License at
6 //
7 // http://www.apache.org/licenses/LICENSE-2.0
8 //
9 // Unless required by applicable law or agreed to in writing, software
10 // distributed under the License is distributed on an "AS IS" BASIS,
11 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 // See the License for the specific language governing permissions and
13 // limitations under the License.
14
15 // Code generated by protoc-gen-go. DO NOT EDIT.
16 // versions:
17 // protoc-gen-go v1.35.2
18 // protoc v4.25.7
19 // source: google/iam/v1/options.proto
20
21 package iampb
22
23 import (
24 protoreflect "google.golang.org/protobuf/reflect/protoreflect"
25 protoimpl "google.golang.org/protobuf/runtime/protoimpl"
26 reflect "reflect"
27 sync "sync"
28 )
29
30 const (
31 // Verify that this generated code is sufficiently up-to-date.
32 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
33 // Verify that runtime/protoimpl is sufficiently up-to-date.
34 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
35 )
36
37 // Encapsulates settings provided to GetIamPolicy.
38 type GetPolicyOptions struct {
39 state protoimpl.MessageState
40 sizeCache protoimpl.SizeCache
41 unknownFields protoimpl.UnknownFields
42
43 // Optional. The maximum policy version that will be used to format the
44 // policy.
45 //
46 // Valid values are 0, 1, and 3. Requests specifying an invalid value will be
47 // rejected.
48 //
49 // Requests for policies with any conditional role bindings must specify
50 // version 3. Policies with no conditional role bindings may specify any valid
51 // value or leave the field unset.
52 //
53 // The policy in the response might use the policy version that you specified,
54 // or it might use a lower policy version. For example, if you specify version
55 // 3, but the policy has no conditional role bindings, the response uses
56 // version 1.
57 //
58 // To learn which resources support conditions in their IAM policies, see the
59 // [IAM
60 // documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
61 RequestedPolicyVersion int32 `protobuf:"varint,1,opt,name=requested_policy_version,json=requestedPolicyVersion,proto3" json:"requested_policy_version,omitempty"`
62 }
63
64 func (x *GetPolicyOptions) Reset() {
65 *x = GetPolicyOptions{}
66 mi := &file_google_iam_v1_options_proto_msgTypes[0]
67 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
68 ms.StoreMessageInfo(mi)
69 }
70
71 func (x *GetPolicyOptions) String() string {
72 return protoimpl.X.MessageStringOf(x)
73 }
74
75 func (*GetPolicyOptions) ProtoMessage() {}
76
77 func (x *GetPolicyOptions) ProtoReflect() protoreflect.Message {
78 mi := &file_google_iam_v1_options_proto_msgTypes[0]
79 if x != nil {
80 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
81 if ms.LoadMessageInfo() == nil {
82 ms.StoreMessageInfo(mi)
83 }
84 return ms
85 }
86 return mi.MessageOf(x)
87 }
88
89 // Deprecated: Use GetPolicyOptions.ProtoReflect.Descriptor instead.
90 func (*GetPolicyOptions) Descriptor() ([]byte, []int) {
91 return file_google_iam_v1_options_proto_rawDescGZIP(), []int{0}
92 }
93
94 func (x *GetPolicyOptions) GetRequestedPolicyVersion() int32 {
95 if x != nil {
96 return x.RequestedPolicyVersion
97 }
98 return 0
99 }
100
101 var File_google_iam_v1_options_proto protoreflect.FileDescriptor
102
103 var file_google_iam_v1_options_proto_rawDesc = []byte{
104 0x0a, 0x1b, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x69, 0x61, 0x6d, 0x2f, 0x76, 0x31, 0x2f,
105 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0d, 0x67,
106 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x69, 0x61, 0x6d, 0x2e, 0x76, 0x31, 0x22, 0x4c, 0x0a, 0x10,
107 0x47, 0x65, 0x74, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73,
108 0x12, 0x38, 0x0a, 0x18, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x65, 0x64, 0x5f, 0x70, 0x6f,
109 0x6c, 0x69, 0x63, 0x79, 0x5f, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01,
110 0x28, 0x05, 0x52, 0x16, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x65, 0x64, 0x50, 0x6f, 0x6c,
111 0x69, 0x63, 0x79, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x42, 0x7d, 0x0a, 0x11, 0x63, 0x6f,
112 0x6d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x69, 0x61, 0x6d, 0x2e, 0x76, 0x31, 0x42,
113 0x0c, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a,
114 0x29, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6f,
115 0x6d, 0x2f, 0x67, 0x6f, 0x2f, 0x69, 0x61, 0x6d, 0x2f, 0x61, 0x70, 0x69, 0x76, 0x31, 0x2f, 0x69,
116 0x61, 0x6d, 0x70, 0x62, 0x3b, 0x69, 0x61, 0x6d, 0x70, 0x62, 0xf8, 0x01, 0x01, 0xaa, 0x02, 0x13,
117 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x49, 0x61, 0x6d,
118 0x2e, 0x56, 0x31, 0xca, 0x02, 0x13, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x5c, 0x43, 0x6c, 0x6f,
119 0x75, 0x64, 0x5c, 0x49, 0x61, 0x6d, 0x5c, 0x56, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f,
120 0x33,
121 }
122
123 var (
124 file_google_iam_v1_options_proto_rawDescOnce sync.Once
125 file_google_iam_v1_options_proto_rawDescData = file_google_iam_v1_options_proto_rawDesc
126 )
127
128 func file_google_iam_v1_options_proto_rawDescGZIP() []byte {
129 file_google_iam_v1_options_proto_rawDescOnce.Do(func() {
130 file_google_iam_v1_options_proto_rawDescData = protoimpl.X.CompressGZIP(file_google_iam_v1_options_proto_rawDescData)
131 })
132 return file_google_iam_v1_options_proto_rawDescData
133 }
134
135 var file_google_iam_v1_options_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
136 var file_google_iam_v1_options_proto_goTypes = []any{
137 (*GetPolicyOptions)(nil), // 0: google.iam.v1.GetPolicyOptions
138 }
139 var file_google_iam_v1_options_proto_depIdxs = []int32{
140 0, // [0:0] is the sub-list for method output_type
141 0, // [0:0] is the sub-list for method input_type
142 0, // [0:0] is the sub-list for extension type_name
143 0, // [0:0] is the sub-list for extension extendee
144 0, // [0:0] is the sub-list for field type_name
145 }
146
147 func init() { file_google_iam_v1_options_proto_init() }
148 func file_google_iam_v1_options_proto_init() {
149 if File_google_iam_v1_options_proto != nil {
150 return
151 }
152 type x struct{}
153 out := protoimpl.TypeBuilder{
154 File: protoimpl.DescBuilder{
155 GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
156 RawDescriptor: file_google_iam_v1_options_proto_rawDesc,
157 NumEnums: 0,
158 NumMessages: 1,
159 NumExtensions: 0,
160 NumServices: 0,
161 },
162 GoTypes: file_google_iam_v1_options_proto_goTypes,
163 DependencyIndexes: file_google_iam_v1_options_proto_depIdxs,
164 MessageInfos: file_google_iam_v1_options_proto_msgTypes,
165 }.Build()
166 File_google_iam_v1_options_proto = out.File
167 file_google_iam_v1_options_proto_rawDesc = nil
168 file_google_iam_v1_options_proto_goTypes = nil
169 file_google_iam_v1_options_proto_depIdxs = nil
170 }