resource.pb.go raw

   1  // Code generated by protoc-gen-go. DO NOT EDIT.
   2  // versions:
   3  // 	protoc-gen-go v1.36.6
   4  // 	protoc        v3.21.12
   5  // source: yandex/cloud/iam/v1/resource.proto
   6  
   7  package iam
   8  
   9  import (
  10  	_ "github.com/yandex-cloud/go-genproto/yandex/cloud"
  11  	protoreflect "google.golang.org/protobuf/reflect/protoreflect"
  12  	protoimpl "google.golang.org/protobuf/runtime/protoimpl"
  13  	reflect "reflect"
  14  	sync "sync"
  15  	unsafe "unsafe"
  16  )
  17  
  18  const (
  19  	// Verify that this generated code is sufficiently up-to-date.
  20  	_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
  21  	// Verify that runtime/protoimpl is sufficiently up-to-date.
  22  	_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
  23  )
  24  
  25  // A Resource. For more information, see [Resource](/docs/iam/concepts/access-control/resources-with-access-control).
  26  type Resource struct {
  27  	state protoimpl.MessageState `protogen:"open.v1"`
  28  	// ID of the resource.
  29  	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
  30  	// The type of the resource, e.g. resource-manager.folder, billing.account, compute.snapshot, etc.
  31  	Type          string `protobuf:"bytes,2,opt,name=type,proto3" json:"type,omitempty"`
  32  	unknownFields protoimpl.UnknownFields
  33  	sizeCache     protoimpl.SizeCache
  34  }
  35  
  36  func (x *Resource) Reset() {
  37  	*x = Resource{}
  38  	mi := &file_yandex_cloud_iam_v1_resource_proto_msgTypes[0]
  39  	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  40  	ms.StoreMessageInfo(mi)
  41  }
  42  
  43  func (x *Resource) String() string {
  44  	return protoimpl.X.MessageStringOf(x)
  45  }
  46  
  47  func (*Resource) ProtoMessage() {}
  48  
  49  func (x *Resource) ProtoReflect() protoreflect.Message {
  50  	mi := &file_yandex_cloud_iam_v1_resource_proto_msgTypes[0]
  51  	if x != nil {
  52  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  53  		if ms.LoadMessageInfo() == nil {
  54  			ms.StoreMessageInfo(mi)
  55  		}
  56  		return ms
  57  	}
  58  	return mi.MessageOf(x)
  59  }
  60  
  61  // Deprecated: Use Resource.ProtoReflect.Descriptor instead.
  62  func (*Resource) Descriptor() ([]byte, []int) {
  63  	return file_yandex_cloud_iam_v1_resource_proto_rawDescGZIP(), []int{0}
  64  }
  65  
  66  func (x *Resource) GetId() string {
  67  	if x != nil {
  68  		return x.Id
  69  	}
  70  	return ""
  71  }
  72  
  73  func (x *Resource) GetType() string {
  74  	if x != nil {
  75  		return x.Type
  76  	}
  77  	return ""
  78  }
  79  
  80  var File_yandex_cloud_iam_v1_resource_proto protoreflect.FileDescriptor
  81  
  82  const file_yandex_cloud_iam_v1_resource_proto_rawDesc = "" +
  83  	"\n" +
  84  	"\"yandex/cloud/iam/v1/resource.proto\x12\x13yandex.cloud.iam.v1\x1a\x1dyandex/cloud/validation.proto\"J\n" +
  85  	"\bResource\x12\x1c\n" +
  86  	"\x02id\x18\x01 \x01(\tB\f\xe8\xc71\x01\x8a\xc81\x04<=50R\x02id\x12 \n" +
  87  	"\x04type\x18\x02 \x01(\tB\f\xe8\xc71\x01\x8a\xc81\x04<=64R\x04typeBV\n" +
  88  	"\x17yandex.cloud.api.iam.v1Z;github.com/yandex-cloud/go-genproto/yandex/cloud/iam/v1;iamb\x06proto3"
  89  
  90  var (
  91  	file_yandex_cloud_iam_v1_resource_proto_rawDescOnce sync.Once
  92  	file_yandex_cloud_iam_v1_resource_proto_rawDescData []byte
  93  )
  94  
  95  func file_yandex_cloud_iam_v1_resource_proto_rawDescGZIP() []byte {
  96  	file_yandex_cloud_iam_v1_resource_proto_rawDescOnce.Do(func() {
  97  		file_yandex_cloud_iam_v1_resource_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_yandex_cloud_iam_v1_resource_proto_rawDesc), len(file_yandex_cloud_iam_v1_resource_proto_rawDesc)))
  98  	})
  99  	return file_yandex_cloud_iam_v1_resource_proto_rawDescData
 100  }
 101  
 102  var file_yandex_cloud_iam_v1_resource_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
 103  var file_yandex_cloud_iam_v1_resource_proto_goTypes = []any{
 104  	(*Resource)(nil), // 0: yandex.cloud.iam.v1.Resource
 105  }
 106  var file_yandex_cloud_iam_v1_resource_proto_depIdxs = []int32{
 107  	0, // [0:0] is the sub-list for method output_type
 108  	0, // [0:0] is the sub-list for method input_type
 109  	0, // [0:0] is the sub-list for extension type_name
 110  	0, // [0:0] is the sub-list for extension extendee
 111  	0, // [0:0] is the sub-list for field type_name
 112  }
 113  
 114  func init() { file_yandex_cloud_iam_v1_resource_proto_init() }
 115  func file_yandex_cloud_iam_v1_resource_proto_init() {
 116  	if File_yandex_cloud_iam_v1_resource_proto != nil {
 117  		return
 118  	}
 119  	type x struct{}
 120  	out := protoimpl.TypeBuilder{
 121  		File: protoimpl.DescBuilder{
 122  			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
 123  			RawDescriptor: unsafe.Slice(unsafe.StringData(file_yandex_cloud_iam_v1_resource_proto_rawDesc), len(file_yandex_cloud_iam_v1_resource_proto_rawDesc)),
 124  			NumEnums:      0,
 125  			NumMessages:   1,
 126  			NumExtensions: 0,
 127  			NumServices:   0,
 128  		},
 129  		GoTypes:           file_yandex_cloud_iam_v1_resource_proto_goTypes,
 130  		DependencyIndexes: file_yandex_cloud_iam_v1_resource_proto_depIdxs,
 131  		MessageInfos:      file_yandex_cloud_iam_v1_resource_proto_msgTypes,
 132  	}.Build()
 133  	File_yandex_cloud_iam_v1_resource_proto = out.File
 134  	file_yandex_cloud_iam_v1_resource_proto_goTypes = nil
 135  	file_yandex_cloud_iam_v1_resource_proto_depIdxs = nil
 136  }
 137