github.com/cloudwan/edgelq-sdk@v1.15.4/iam/resources/v1/permission/permission.pb.go (about)

     1  // Code generated by protoc-gen-goten-go
     2  // File: edgelq/iam/proto/v1/permission.proto
     3  // DO NOT EDIT!!!
     4  
     5  package permission
     6  
     7  import (
     8  	"fmt"
     9  	"reflect"
    10  	"sync"
    11  
    12  	"google.golang.org/protobuf/encoding/protojson"
    13  	"google.golang.org/protobuf/proto"
    14  	preflect "google.golang.org/protobuf/reflect/protoreflect"
    15  	"google.golang.org/protobuf/runtime/protoimpl"
    16  )
    17  
    18  // proto imports
    19  import (
    20  	meta_service "github.com/cloudwan/goten-sdk/meta-service/resources/v1/service"
    21  	meta "github.com/cloudwan/goten-sdk/types/meta"
    22  )
    23  
    24  // Reference imports to suppress errors if they are not otherwise used.
    25  var (
    26  	_ = fmt.Errorf
    27  	_ = reflect.Method{}
    28  	_ = sync.Once{}
    29  
    30  	_ = protojson.MarshalOptions{}
    31  	_ = proto.MarshalOptions{}
    32  	_ = preflect.Value{}
    33  	_ = protoimpl.DescBuilder{}
    34  )
    35  
    36  // make sure we're using proto imports
    37  var (
    38  	_ = &meta_service.Service{}
    39  	_ = &meta.Meta{}
    40  )
    41  
    42  const (
    43  	// Verify that this generated code is sufficiently up-to-date.
    44  	_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
    45  	// Verify that runtime/protoimpl is sufficiently up-to-date.
    46  	_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
    47  )
    48  
    49  // Permission Resource
    50  type Permission struct {
    51  	state         protoimpl.MessageState
    52  	sizeCache     protoimpl.SizeCache
    53  	unknownFields protoimpl.UnknownFields
    54  	// Name of Permission
    55  	Name *Name `protobuf:"bytes,1,opt,customtype=Name,name=name,proto3" json:"name,omitempty"`
    56  	// Metadata is an object with information like create, update and delete time
    57  	// (for async deleted resources), has user labels/annotations, sharding
    58  	// information, multi-region syncing information and may have non-schema
    59  	// owners (useful for taking ownership of resources belonging to lower level
    60  	// services by higher ones).
    61  	Metadata *meta.Meta `protobuf:"bytes,4,opt,name=metadata,proto3" json:"metadata,omitempty"`
    62  	// Title
    63  	Title string `protobuf:"bytes,2,opt,name=title,proto3" json:"title,omitempty"`
    64  	// Description
    65  	Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"`
    66  }
    67  
    68  func (m *Permission) Reset() {
    69  	*m = Permission{}
    70  	if protoimpl.UnsafeEnabled {
    71  		mi := &edgelq_iam_proto_v1_permission_proto_msgTypes[0]
    72  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(m))
    73  		ms.StoreMessageInfo(mi)
    74  	}
    75  }
    76  
    77  func (m *Permission) String() string {
    78  	return protoimpl.X.MessageStringOf(m)
    79  }
    80  
    81  func (*Permission) ProtoMessage() {}
    82  
    83  func (m *Permission) ProtoReflect() preflect.Message {
    84  	mi := &edgelq_iam_proto_v1_permission_proto_msgTypes[0]
    85  	if protoimpl.UnsafeEnabled && m != nil {
    86  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(m))
    87  		if ms.LoadMessageInfo() == nil {
    88  			ms.StoreMessageInfo(mi)
    89  		}
    90  		return ms
    91  	}
    92  	return mi.MessageOf(m)
    93  }
    94  
    95  func (*Permission) GotenMessage() {}
    96  
    97  // Deprecated, Use Permission.ProtoReflect.Descriptor instead.
    98  func (*Permission) Descriptor() ([]byte, []int) {
    99  	return edgelq_iam_proto_v1_permission_proto_rawDescGZIP(), []int{0}
   100  }
   101  
   102  func (m *Permission) Unmarshal(b []byte) error {
   103  	return proto.Unmarshal(b, m)
   104  }
   105  
   106  func (m *Permission) Marshal() ([]byte, error) {
   107  	return proto.Marshal(m)
   108  }
   109  
   110  func (m *Permission) MarshalJSON() ([]byte, error) {
   111  	return protojson.MarshalOptions{}.Marshal(m)
   112  }
   113  
   114  func (m *Permission) UnmarshalJSON(data []byte) error {
   115  	return protojson.Unmarshal(data, m)
   116  }
   117  
   118  func (m *Permission) GetName() *Name {
   119  	if m != nil {
   120  		return m.Name
   121  	}
   122  	return nil
   123  }
   124  
   125  func (m *Permission) GetMetadata() *meta.Meta {
   126  	if m != nil {
   127  		return m.Metadata
   128  	}
   129  	return nil
   130  }
   131  
   132  func (m *Permission) GetTitle() string {
   133  	if m != nil {
   134  		return m.Title
   135  	}
   136  	return ""
   137  }
   138  
   139  func (m *Permission) GetDescription() string {
   140  	if m != nil {
   141  		return m.Description
   142  	}
   143  	return ""
   144  }
   145  
   146  func (m *Permission) SetName(fv *Name) {
   147  	if m == nil {
   148  		panic(fmt.Errorf("can't set %s on nil %s", "Name", "Permission"))
   149  	}
   150  	m.Name = fv
   151  }
   152  
   153  func (m *Permission) SetMetadata(fv *meta.Meta) {
   154  	if m == nil {
   155  		panic(fmt.Errorf("can't set %s on nil %s", "Metadata", "Permission"))
   156  	}
   157  	m.Metadata = fv
   158  }
   159  
   160  func (m *Permission) SetTitle(fv string) {
   161  	if m == nil {
   162  		panic(fmt.Errorf("can't set %s on nil %s", "Title", "Permission"))
   163  	}
   164  	m.Title = fv
   165  }
   166  
   167  func (m *Permission) SetDescription(fv string) {
   168  	if m == nil {
   169  		panic(fmt.Errorf("can't set %s on nil %s", "Description", "Permission"))
   170  	}
   171  	m.Description = fv
   172  }
   173  
   174  var edgelq_iam_proto_v1_permission_proto preflect.FileDescriptor
   175  
   176  var edgelq_iam_proto_v1_permission_proto_rawDesc = []byte{
   177  	0x0a, 0x24, 0x65, 0x64, 0x67, 0x65, 0x6c, 0x71, 0x2f, 0x69, 0x61, 0x6d, 0x2f, 0x70, 0x72, 0x6f,
   178  	0x74, 0x6f, 0x2f, 0x76, 0x31, 0x2f, 0x70, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e,
   179  	0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0a, 0x6e, 0x74, 0x74, 0x2e, 0x69, 0x61, 0x6d, 0x2e,
   180  	0x76, 0x31, 0x1a, 0x19, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x72,
   181  	0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x20, 0x67,
   182  	0x6f, 0x74, 0x65, 0x6e, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73,
   183  	0x2f, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a,
   184  	0x1d, 0x67, 0x6f, 0x74, 0x65, 0x6e, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f,
   185  	0x6e, 0x73, 0x2f, 0x67, 0x6f, 0x74, 0x65, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x20,
   186  	0x67, 0x6f, 0x74, 0x65, 0x6e, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e,
   187  	0x73, 0x2f, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
   188  	0x1a, 0x1d, 0x67, 0x6f, 0x74, 0x65, 0x6e, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69,
   189  	0x6f, 0x6e, 0x73, 0x2f, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a,
   190  	0x1f, 0x67, 0x6f, 0x74, 0x65, 0x6e, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f,
   191  	0x6e, 0x73, 0x2f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
   192  	0x1a, 0x24, 0x67, 0x6f, 0x74, 0x65, 0x6e, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69,
   193  	0x6f, 0x6e, 0x73, 0x2f, 0x6d, 0x75, 0x6c, 0x74, 0x69, 0x5f, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e,
   194  	0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x24, 0x65, 0x64, 0x67, 0x65, 0x6c, 0x71, 0x2f, 0x61,
   195  	0x75, 0x64, 0x69, 0x74, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73,
   196  	0x2f, 0x61, 0x75, 0x64, 0x69, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x16, 0x67, 0x6f,
   197  	0x74, 0x65, 0x6e, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2f, 0x6d, 0x65, 0x74, 0x61, 0x2e, 0x70,
   198  	0x72, 0x6f, 0x74, 0x6f, 0x22, 0xf6, 0x02, 0x0a, 0x0a, 0x50, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73,
   199  	0x69, 0x6f, 0x6e, 0x12, 0x26, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28,
   200  	0x09, 0x42, 0x12, 0xb2, 0xda, 0x21, 0x0e, 0x0a, 0x0c, 0x0a, 0x0a, 0x50, 0x65, 0x72, 0x6d, 0x69,
   201  	0x73, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x2d, 0x0a, 0x08, 0x6d,
   202  	0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x11, 0x2e,
   203  	0x67, 0x6f, 0x74, 0x65, 0x6e, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x4d, 0x65, 0x74, 0x61,
   204  	0x52, 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, 0x14, 0x0a, 0x05, 0x74, 0x69,
   205  	0x74, 0x6c, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x74, 0x69, 0x74, 0x6c, 0x65,
   206  	0x12, 0x2d, 0x0a, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18,
   207  	0x03, 0x20, 0x01, 0x28, 0x09, 0x42, 0x0b, 0xca, 0xc6, 0x27, 0x07, 0x2a, 0x05, 0x22, 0x03, 0x08,
   208  	0x80, 0x02, 0x52, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x3a,
   209  	0xcb, 0x01, 0xea, 0x41, 0x48, 0x0a, 0x19, 0x69, 0x61, 0x6d, 0x2e, 0x65, 0x64, 0x67, 0x65, 0x6c,
   210  	0x71, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x50, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e,
   211  	0x12, 0x2b, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2f, 0x7b, 0x73, 0x65, 0x72, 0x76,
   212  	0x69, 0x63, 0x65, 0x7d, 0x2f, 0x70, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73,
   213  	0x2f, 0x7b, 0x70, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x7d, 0x92, 0xd9, 0x21,
   214  	0x48, 0x0a, 0x0b, 0x70, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x0b,
   215  	0x70, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x1a, 0x16, 0x6d, 0x65, 0x74,
   216  	0x61, 0x2e, 0x67, 0x6f, 0x74, 0x65, 0x6e, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x53, 0x65, 0x72, 0x76,
   217  	0x69, 0x63, 0x65, 0x2a, 0x12, 0x5b, 0x5c, 0x77, 0x40, 0x21, 0x5c, 0x5c, 0x2e, 0x7c, 0x2d, 0x5d,
   218  	0x7b, 0x34, 0x2c, 0x32, 0x35, 0x36, 0x7d, 0x38, 0x05, 0xda, 0x94, 0x23, 0x08, 0x12, 0x06, 0x0a,
   219  	0x04, 0x6e, 0x61, 0x6d, 0x65, 0xc2, 0x85, 0x2c, 0x24, 0x22, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x22,
   220  	0x05, 0x74, 0x69, 0x74, 0x6c, 0x65, 0x22, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74,
   221  	0x69, 0x6f, 0x6e, 0x42, 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x42, 0x85, 0x02,
   222  	0xe8, 0xde, 0x21, 0x01, 0xd2, 0xff, 0xd0, 0x02, 0x46, 0x0a, 0x10, 0x70, 0x65, 0x72, 0x6d, 0x69,
   223  	0x73, 0x73, 0x69, 0x6f, 0x6e, 0x5f, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x12, 0x32, 0x67, 0x69, 0x74,
   224  	0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x77, 0x61, 0x6e,
   225  	0x2f, 0x65, 0x64, 0x67, 0x65, 0x6c, 0x71, 0x2f, 0x69, 0x61, 0x6d, 0x2f, 0x73, 0x74, 0x6f, 0x72,
   226  	0x65, 0x2f, 0x76, 0x31, 0x2f, 0x70, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0xa2,
   227  	0x80, 0xd1, 0x02, 0x48, 0x0a, 0x11, 0x70, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e,
   228  	0x5f, 0x61, 0x63, 0x63, 0x65, 0x73, 0x73, 0x12, 0x33, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e,
   229  	0x63, 0x6f, 0x6d, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x77, 0x61, 0x6e, 0x2f, 0x65, 0x64, 0x67,
   230  	0x65, 0x6c, 0x71, 0x2f, 0x69, 0x61, 0x6d, 0x2f, 0x61, 0x63, 0x63, 0x65, 0x73, 0x73, 0x2f, 0x76,
   231  	0x31, 0x2f, 0x70, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x0a, 0x11, 0x63, 0x6f,
   232  	0x6d, 0x2e, 0x6e, 0x74, 0x74, 0x2e, 0x69, 0x61, 0x6d, 0x2e, 0x70, 0x62, 0x2e, 0x76, 0x31, 0x42,
   233  	0x0f, 0x50, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x50, 0x72, 0x6f, 0x74, 0x6f,
   234  	0x50, 0x01, 0x5a, 0x41, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x63,
   235  	0x6c, 0x6f, 0x75, 0x64, 0x77, 0x61, 0x6e, 0x2f, 0x65, 0x64, 0x67, 0x65, 0x6c, 0x71, 0x2f, 0x69,
   236  	0x61, 0x6d, 0x2f, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x2f, 0x76, 0x31, 0x2f,
   237  	0x70, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x3b, 0x70, 0x65, 0x72, 0x6d, 0x69,
   238  	0x73, 0x73, 0x69, 0x6f, 0x6e, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
   239  }
   240  
   241  var (
   242  	edgelq_iam_proto_v1_permission_proto_rawDescOnce sync.Once
   243  	edgelq_iam_proto_v1_permission_proto_rawDescData = edgelq_iam_proto_v1_permission_proto_rawDesc
   244  )
   245  
   246  func edgelq_iam_proto_v1_permission_proto_rawDescGZIP() []byte {
   247  	edgelq_iam_proto_v1_permission_proto_rawDescOnce.Do(func() {
   248  		edgelq_iam_proto_v1_permission_proto_rawDescData = protoimpl.X.CompressGZIP(edgelq_iam_proto_v1_permission_proto_rawDescData)
   249  	})
   250  	return edgelq_iam_proto_v1_permission_proto_rawDescData
   251  }
   252  
   253  var edgelq_iam_proto_v1_permission_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
   254  var edgelq_iam_proto_v1_permission_proto_goTypes = []interface{}{
   255  	(*Permission)(nil), // 0: ntt.iam.v1.Permission
   256  	(*meta.Meta)(nil),  // 1: goten.types.Meta
   257  }
   258  var edgelq_iam_proto_v1_permission_proto_depIdxs = []int32{
   259  	1, // 0: ntt.iam.v1.Permission.metadata:type_name -> goten.types.Meta
   260  	1, // [1:1] is the sub-list for method output_type
   261  	1, // [1:1] is the sub-list for method input_type
   262  	1, // [1:1] is the sub-list for extension type_name
   263  	1, // [1:1] is the sub-list for extension extendee
   264  	0, // [0:1] is the sub-list for field type_name
   265  }
   266  
   267  func init() { edgelq_iam_proto_v1_permission_proto_init() }
   268  func edgelq_iam_proto_v1_permission_proto_init() {
   269  	if edgelq_iam_proto_v1_permission_proto != nil {
   270  		return
   271  	}
   272  	if !protoimpl.UnsafeEnabled {
   273  
   274  		edgelq_iam_proto_v1_permission_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
   275  			switch v := v.(*Permission); i {
   276  			case 0:
   277  				return &v.state
   278  			case 1:
   279  				return &v.sizeCache
   280  			case 2:
   281  				return &v.unknownFields
   282  			default:
   283  				return nil
   284  			}
   285  		}
   286  	}
   287  
   288  	type x struct{}
   289  	out := protoimpl.TypeBuilder{
   290  		File: protoimpl.DescBuilder{
   291  			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
   292  			RawDescriptor: edgelq_iam_proto_v1_permission_proto_rawDesc,
   293  			NumEnums:      0,
   294  			NumMessages:   1,
   295  			NumExtensions: 0,
   296  			NumServices:   0,
   297  		},
   298  		GoTypes:           edgelq_iam_proto_v1_permission_proto_goTypes,
   299  		DependencyIndexes: edgelq_iam_proto_v1_permission_proto_depIdxs,
   300  		MessageInfos:      edgelq_iam_proto_v1_permission_proto_msgTypes,
   301  	}.Build()
   302  	edgelq_iam_proto_v1_permission_proto = out.File
   303  	edgelq_iam_proto_v1_permission_proto_rawDesc = nil
   304  	edgelq_iam_proto_v1_permission_proto_goTypes = nil
   305  	edgelq_iam_proto_v1_permission_proto_depIdxs = nil
   306  }