...

Source file src/cloud.google.com/go/iam/apiv1/iampb/options.pb.go

Documentation: cloud.google.com/go/iam/apiv1/iampb

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

View as plain text