options.pb.go 7.0 KB

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