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

     1  // Code generated by protoc-gen-goten-go
     2  // File: edgelq/iam/proto/v1/permission_change.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  	fieldmaskpb "google.golang.org/protobuf/types/known/fieldmaskpb"
    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  	_ = &fieldmaskpb.FieldMask{}
    39  	_ = &meta_service.Service{}
    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  // PermissionChange is used by Watch notifications Responses to describe change
    50  // of single Permission One of Added, Modified, Removed
    51  type PermissionChange struct {
    52  	state         protoimpl.MessageState
    53  	sizeCache     protoimpl.SizeCache
    54  	unknownFields protoimpl.UnknownFields
    55  	// Permission change
    56  	//
    57  	// Types that are valid to be assigned to ChangeType:
    58  	//	*PermissionChange_Added_
    59  	//	*PermissionChange_Modified_
    60  	//	*PermissionChange_Current_
    61  	//	*PermissionChange_Removed_
    62  	ChangeType isPermissionChange_ChangeType `protobuf_oneof:"change_type"`
    63  }
    64  
    65  func (m *PermissionChange) Reset() {
    66  	*m = PermissionChange{}
    67  	if protoimpl.UnsafeEnabled {
    68  		mi := &edgelq_iam_proto_v1_permission_change_proto_msgTypes[0]
    69  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(m))
    70  		ms.StoreMessageInfo(mi)
    71  	}
    72  }
    73  
    74  func (m *PermissionChange) String() string {
    75  	return protoimpl.X.MessageStringOf(m)
    76  }
    77  
    78  func (*PermissionChange) ProtoMessage() {}
    79  
    80  func (m *PermissionChange) ProtoReflect() preflect.Message {
    81  	mi := &edgelq_iam_proto_v1_permission_change_proto_msgTypes[0]
    82  	if protoimpl.UnsafeEnabled && m != nil {
    83  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(m))
    84  		if ms.LoadMessageInfo() == nil {
    85  			ms.StoreMessageInfo(mi)
    86  		}
    87  		return ms
    88  	}
    89  	return mi.MessageOf(m)
    90  }
    91  
    92  func (*PermissionChange) GotenMessage() {}
    93  
    94  // Deprecated, Use PermissionChange.ProtoReflect.Descriptor instead.
    95  func (*PermissionChange) Descriptor() ([]byte, []int) {
    96  	return edgelq_iam_proto_v1_permission_change_proto_rawDescGZIP(), []int{0}
    97  }
    98  
    99  func (m *PermissionChange) Unmarshal(b []byte) error {
   100  	return proto.Unmarshal(b, m)
   101  }
   102  
   103  func (m *PermissionChange) Marshal() ([]byte, error) {
   104  	return proto.Marshal(m)
   105  }
   106  
   107  func (m *PermissionChange) MarshalJSON() ([]byte, error) {
   108  	return protojson.MarshalOptions{}.Marshal(m)
   109  }
   110  
   111  func (m *PermissionChange) UnmarshalJSON(data []byte) error {
   112  	return protojson.Unmarshal(data, m)
   113  }
   114  
   115  type isPermissionChange_ChangeType interface {
   116  	isPermissionChange_ChangeType()
   117  }
   118  
   119  type PermissionChange_Added_ struct {
   120  	// Added is returned when watched document is added, either created or
   121  	// enters Query view
   122  	Added *PermissionChange_Added `protobuf:"bytes,1,opt,name=added,proto3,oneof"`
   123  }
   124  type PermissionChange_Modified_ struct {
   125  	// Modified is returned when watched document is modified
   126  	Modified *PermissionChange_Modified `protobuf:"bytes,2,opt,name=modified,proto3,oneof"`
   127  }
   128  type PermissionChange_Current_ struct {
   129  	// Current is returned in stateless watch when document enters query view or
   130  	// is modified within.
   131  	Current *PermissionChange_Current `protobuf:"bytes,4,opt,name=current,proto3,oneof"`
   132  }
   133  type PermissionChange_Removed_ struct {
   134  	// Removed is returned when Permission is deleted or leaves Query view
   135  	Removed *PermissionChange_Removed `protobuf:"bytes,3,opt,name=removed,proto3,oneof"`
   136  }
   137  
   138  func (*PermissionChange_Added_) isPermissionChange_ChangeType()    {}
   139  func (*PermissionChange_Modified_) isPermissionChange_ChangeType() {}
   140  func (*PermissionChange_Current_) isPermissionChange_ChangeType()  {}
   141  func (*PermissionChange_Removed_) isPermissionChange_ChangeType()  {}
   142  func (m *PermissionChange) GetChangeType() isPermissionChange_ChangeType {
   143  	if m != nil {
   144  		return m.ChangeType
   145  	}
   146  	return nil
   147  }
   148  func (m *PermissionChange) GetAdded() *PermissionChange_Added {
   149  	if x, ok := m.GetChangeType().(*PermissionChange_Added_); ok {
   150  		return x.Added
   151  	}
   152  	return nil
   153  }
   154  func (m *PermissionChange) GetModified() *PermissionChange_Modified {
   155  	if x, ok := m.GetChangeType().(*PermissionChange_Modified_); ok {
   156  		return x.Modified
   157  	}
   158  	return nil
   159  }
   160  func (m *PermissionChange) GetCurrent() *PermissionChange_Current {
   161  	if x, ok := m.GetChangeType().(*PermissionChange_Current_); ok {
   162  		return x.Current
   163  	}
   164  	return nil
   165  }
   166  func (m *PermissionChange) GetRemoved() *PermissionChange_Removed {
   167  	if x, ok := m.GetChangeType().(*PermissionChange_Removed_); ok {
   168  		return x.Removed
   169  	}
   170  	return nil
   171  }
   172  func (m *PermissionChange) SetChangeType(ofv isPermissionChange_ChangeType) {
   173  	if m == nil {
   174  		panic(fmt.Errorf("can't set %s on nil %s", "isPermissionChange_ChangeType", "PermissionChange"))
   175  	}
   176  	m.ChangeType = ofv
   177  }
   178  func (m *PermissionChange) SetAdded(fv *PermissionChange_Added) {
   179  	m.SetChangeType(&PermissionChange_Added_{Added: fv})
   180  }
   181  func (m *PermissionChange) SetModified(fv *PermissionChange_Modified) {
   182  	m.SetChangeType(&PermissionChange_Modified_{Modified: fv})
   183  }
   184  func (m *PermissionChange) SetCurrent(fv *PermissionChange_Current) {
   185  	m.SetChangeType(&PermissionChange_Current_{Current: fv})
   186  }
   187  func (m *PermissionChange) SetRemoved(fv *PermissionChange_Removed) {
   188  	m.SetChangeType(&PermissionChange_Removed_{Removed: fv})
   189  }
   190  
   191  // Permission has been added to query view
   192  type PermissionChange_Added struct {
   193  	state         protoimpl.MessageState
   194  	sizeCache     protoimpl.SizeCache
   195  	unknownFields protoimpl.UnknownFields
   196  	Permission    *Permission `protobuf:"bytes,1,opt,name=permission,proto3" json:"permission,omitempty"`
   197  	// Integer describing index of added Permission in resulting query view.
   198  	ViewIndex int32 `protobuf:"varint,2,opt,name=view_index,json=viewIndex,proto3" json:"view_index,omitempty"`
   199  }
   200  
   201  func (m *PermissionChange_Added) Reset() {
   202  	*m = PermissionChange_Added{}
   203  	if protoimpl.UnsafeEnabled {
   204  		mi := &edgelq_iam_proto_v1_permission_change_proto_msgTypes[1]
   205  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(m))
   206  		ms.StoreMessageInfo(mi)
   207  	}
   208  }
   209  
   210  func (m *PermissionChange_Added) String() string {
   211  	return protoimpl.X.MessageStringOf(m)
   212  }
   213  
   214  func (*PermissionChange_Added) ProtoMessage() {}
   215  
   216  func (m *PermissionChange_Added) ProtoReflect() preflect.Message {
   217  	mi := &edgelq_iam_proto_v1_permission_change_proto_msgTypes[1]
   218  	if protoimpl.UnsafeEnabled && m != nil {
   219  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(m))
   220  		if ms.LoadMessageInfo() == nil {
   221  			ms.StoreMessageInfo(mi)
   222  		}
   223  		return ms
   224  	}
   225  	return mi.MessageOf(m)
   226  }
   227  
   228  func (*PermissionChange_Added) GotenMessage() {}
   229  
   230  // Deprecated, Use PermissionChange_Added.ProtoReflect.Descriptor instead.
   231  func (*PermissionChange_Added) Descriptor() ([]byte, []int) {
   232  	return edgelq_iam_proto_v1_permission_change_proto_rawDescGZIP(), []int{0, 0}
   233  }
   234  
   235  func (m *PermissionChange_Added) Unmarshal(b []byte) error {
   236  	return proto.Unmarshal(b, m)
   237  }
   238  
   239  func (m *PermissionChange_Added) Marshal() ([]byte, error) {
   240  	return proto.Marshal(m)
   241  }
   242  
   243  func (m *PermissionChange_Added) MarshalJSON() ([]byte, error) {
   244  	return protojson.MarshalOptions{}.Marshal(m)
   245  }
   246  
   247  func (m *PermissionChange_Added) UnmarshalJSON(data []byte) error {
   248  	return protojson.Unmarshal(data, m)
   249  }
   250  
   251  func (m *PermissionChange_Added) GetPermission() *Permission {
   252  	if m != nil {
   253  		return m.Permission
   254  	}
   255  	return nil
   256  }
   257  
   258  func (m *PermissionChange_Added) GetViewIndex() int32 {
   259  	if m != nil {
   260  		return m.ViewIndex
   261  	}
   262  	return int32(0)
   263  }
   264  
   265  func (m *PermissionChange_Added) SetPermission(fv *Permission) {
   266  	if m == nil {
   267  		panic(fmt.Errorf("can't set %s on nil %s", "Permission", "PermissionChange_Added"))
   268  	}
   269  	m.Permission = fv
   270  }
   271  
   272  func (m *PermissionChange_Added) SetViewIndex(fv int32) {
   273  	if m == nil {
   274  		panic(fmt.Errorf("can't set %s on nil %s", "ViewIndex", "PermissionChange_Added"))
   275  	}
   276  	m.ViewIndex = fv
   277  }
   278  
   279  // Permission changed some of it's fields - contains either full document or
   280  // masked change
   281  type PermissionChange_Modified struct {
   282  	state         protoimpl.MessageState
   283  	sizeCache     protoimpl.SizeCache
   284  	unknownFields protoimpl.UnknownFields
   285  	// Name of modified Permission
   286  	Name *Name `protobuf:"bytes,1,opt,customtype=Name,name=name,proto3" json:"name,omitempty"`
   287  	// New version of Permission or masked difference, depending on mask_changes
   288  	// instrumentation of issued [WatchPermissionRequest] or
   289  	// [WatchPermissionsRequest]
   290  	Permission *Permission `protobuf:"bytes,2,opt,name=permission,proto3" json:"permission,omitempty"`
   291  	// Used when mask_changes is set, contains field paths of modified
   292  	// properties.
   293  	FieldMask *Permission_FieldMask `protobuf:"bytes,3,opt,customtype=Permission_FieldMask,name=field_mask,json=fieldMask,proto3" json:"field_mask,omitempty"`
   294  	// Previous view index specifies previous position of modified Permission.
   295  	// When modification doesn't affect sorted order, value will remain
   296  	// identical to [view_index].
   297  	PreviousViewIndex int32 `protobuf:"varint,4,opt,name=previous_view_index,json=previousViewIndex,proto3" json:"previous_view_index,omitempty"`
   298  	// Integer specifying Permission new index in resulting query view.
   299  	ViewIndex int32 `protobuf:"varint,5,opt,name=view_index,json=viewIndex,proto3" json:"view_index,omitempty"`
   300  }
   301  
   302  func (m *PermissionChange_Modified) Reset() {
   303  	*m = PermissionChange_Modified{}
   304  	if protoimpl.UnsafeEnabled {
   305  		mi := &edgelq_iam_proto_v1_permission_change_proto_msgTypes[2]
   306  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(m))
   307  		ms.StoreMessageInfo(mi)
   308  	}
   309  }
   310  
   311  func (m *PermissionChange_Modified) String() string {
   312  	return protoimpl.X.MessageStringOf(m)
   313  }
   314  
   315  func (*PermissionChange_Modified) ProtoMessage() {}
   316  
   317  func (m *PermissionChange_Modified) ProtoReflect() preflect.Message {
   318  	mi := &edgelq_iam_proto_v1_permission_change_proto_msgTypes[2]
   319  	if protoimpl.UnsafeEnabled && m != nil {
   320  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(m))
   321  		if ms.LoadMessageInfo() == nil {
   322  			ms.StoreMessageInfo(mi)
   323  		}
   324  		return ms
   325  	}
   326  	return mi.MessageOf(m)
   327  }
   328  
   329  func (*PermissionChange_Modified) GotenMessage() {}
   330  
   331  // Deprecated, Use PermissionChange_Modified.ProtoReflect.Descriptor instead.
   332  func (*PermissionChange_Modified) Descriptor() ([]byte, []int) {
   333  	return edgelq_iam_proto_v1_permission_change_proto_rawDescGZIP(), []int{0, 1}
   334  }
   335  
   336  func (m *PermissionChange_Modified) Unmarshal(b []byte) error {
   337  	return proto.Unmarshal(b, m)
   338  }
   339  
   340  func (m *PermissionChange_Modified) Marshal() ([]byte, error) {
   341  	return proto.Marshal(m)
   342  }
   343  
   344  func (m *PermissionChange_Modified) MarshalJSON() ([]byte, error) {
   345  	return protojson.MarshalOptions{}.Marshal(m)
   346  }
   347  
   348  func (m *PermissionChange_Modified) UnmarshalJSON(data []byte) error {
   349  	return protojson.Unmarshal(data, m)
   350  }
   351  
   352  func (m *PermissionChange_Modified) GetName() *Name {
   353  	if m != nil {
   354  		return m.Name
   355  	}
   356  	return nil
   357  }
   358  
   359  func (m *PermissionChange_Modified) GetPermission() *Permission {
   360  	if m != nil {
   361  		return m.Permission
   362  	}
   363  	return nil
   364  }
   365  
   366  func (m *PermissionChange_Modified) GetFieldMask() *Permission_FieldMask {
   367  	if m != nil {
   368  		return m.FieldMask
   369  	}
   370  	return nil
   371  }
   372  
   373  func (m *PermissionChange_Modified) GetPreviousViewIndex() int32 {
   374  	if m != nil {
   375  		return m.PreviousViewIndex
   376  	}
   377  	return int32(0)
   378  }
   379  
   380  func (m *PermissionChange_Modified) GetViewIndex() int32 {
   381  	if m != nil {
   382  		return m.ViewIndex
   383  	}
   384  	return int32(0)
   385  }
   386  
   387  func (m *PermissionChange_Modified) SetName(fv *Name) {
   388  	if m == nil {
   389  		panic(fmt.Errorf("can't set %s on nil %s", "Name", "PermissionChange_Modified"))
   390  	}
   391  	m.Name = fv
   392  }
   393  
   394  func (m *PermissionChange_Modified) SetPermission(fv *Permission) {
   395  	if m == nil {
   396  		panic(fmt.Errorf("can't set %s on nil %s", "Permission", "PermissionChange_Modified"))
   397  	}
   398  	m.Permission = fv
   399  }
   400  
   401  func (m *PermissionChange_Modified) SetFieldMask(fv *Permission_FieldMask) {
   402  	if m == nil {
   403  		panic(fmt.Errorf("can't set %s on nil %s", "FieldMask", "PermissionChange_Modified"))
   404  	}
   405  	m.FieldMask = fv
   406  }
   407  
   408  func (m *PermissionChange_Modified) SetPreviousViewIndex(fv int32) {
   409  	if m == nil {
   410  		panic(fmt.Errorf("can't set %s on nil %s", "PreviousViewIndex", "PermissionChange_Modified"))
   411  	}
   412  	m.PreviousViewIndex = fv
   413  }
   414  
   415  func (m *PermissionChange_Modified) SetViewIndex(fv int32) {
   416  	if m == nil {
   417  		panic(fmt.Errorf("can't set %s on nil %s", "ViewIndex", "PermissionChange_Modified"))
   418  	}
   419  	m.ViewIndex = fv
   420  }
   421  
   422  // Permission has been added or modified in a query view. Version used for
   423  // stateless watching
   424  type PermissionChange_Current struct {
   425  	state         protoimpl.MessageState
   426  	sizeCache     protoimpl.SizeCache
   427  	unknownFields protoimpl.UnknownFields
   428  	Permission    *Permission `protobuf:"bytes,1,opt,name=permission,proto3" json:"permission,omitempty"`
   429  }
   430  
   431  func (m *PermissionChange_Current) Reset() {
   432  	*m = PermissionChange_Current{}
   433  	if protoimpl.UnsafeEnabled {
   434  		mi := &edgelq_iam_proto_v1_permission_change_proto_msgTypes[3]
   435  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(m))
   436  		ms.StoreMessageInfo(mi)
   437  	}
   438  }
   439  
   440  func (m *PermissionChange_Current) String() string {
   441  	return protoimpl.X.MessageStringOf(m)
   442  }
   443  
   444  func (*PermissionChange_Current) ProtoMessage() {}
   445  
   446  func (m *PermissionChange_Current) ProtoReflect() preflect.Message {
   447  	mi := &edgelq_iam_proto_v1_permission_change_proto_msgTypes[3]
   448  	if protoimpl.UnsafeEnabled && m != nil {
   449  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(m))
   450  		if ms.LoadMessageInfo() == nil {
   451  			ms.StoreMessageInfo(mi)
   452  		}
   453  		return ms
   454  	}
   455  	return mi.MessageOf(m)
   456  }
   457  
   458  func (*PermissionChange_Current) GotenMessage() {}
   459  
   460  // Deprecated, Use PermissionChange_Current.ProtoReflect.Descriptor instead.
   461  func (*PermissionChange_Current) Descriptor() ([]byte, []int) {
   462  	return edgelq_iam_proto_v1_permission_change_proto_rawDescGZIP(), []int{0, 2}
   463  }
   464  
   465  func (m *PermissionChange_Current) Unmarshal(b []byte) error {
   466  	return proto.Unmarshal(b, m)
   467  }
   468  
   469  func (m *PermissionChange_Current) Marshal() ([]byte, error) {
   470  	return proto.Marshal(m)
   471  }
   472  
   473  func (m *PermissionChange_Current) MarshalJSON() ([]byte, error) {
   474  	return protojson.MarshalOptions{}.Marshal(m)
   475  }
   476  
   477  func (m *PermissionChange_Current) UnmarshalJSON(data []byte) error {
   478  	return protojson.Unmarshal(data, m)
   479  }
   480  
   481  func (m *PermissionChange_Current) GetPermission() *Permission {
   482  	if m != nil {
   483  		return m.Permission
   484  	}
   485  	return nil
   486  }
   487  
   488  func (m *PermissionChange_Current) SetPermission(fv *Permission) {
   489  	if m == nil {
   490  		panic(fmt.Errorf("can't set %s on nil %s", "Permission", "PermissionChange_Current"))
   491  	}
   492  	m.Permission = fv
   493  }
   494  
   495  // Removed is returned when Permission is deleted or leaves Query view
   496  type PermissionChange_Removed struct {
   497  	state         protoimpl.MessageState
   498  	sizeCache     protoimpl.SizeCache
   499  	unknownFields protoimpl.UnknownFields
   500  	Name          *Name `protobuf:"bytes,1,opt,customtype=Name,name=name,proto3" json:"name,omitempty"`
   501  	// Integer specifying removed Permission index. Not populated in stateless
   502  	// watch type.
   503  	ViewIndex int32 `protobuf:"varint,2,opt,name=view_index,json=viewIndex,proto3" json:"view_index,omitempty"`
   504  }
   505  
   506  func (m *PermissionChange_Removed) Reset() {
   507  	*m = PermissionChange_Removed{}
   508  	if protoimpl.UnsafeEnabled {
   509  		mi := &edgelq_iam_proto_v1_permission_change_proto_msgTypes[4]
   510  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(m))
   511  		ms.StoreMessageInfo(mi)
   512  	}
   513  }
   514  
   515  func (m *PermissionChange_Removed) String() string {
   516  	return protoimpl.X.MessageStringOf(m)
   517  }
   518  
   519  func (*PermissionChange_Removed) ProtoMessage() {}
   520  
   521  func (m *PermissionChange_Removed) ProtoReflect() preflect.Message {
   522  	mi := &edgelq_iam_proto_v1_permission_change_proto_msgTypes[4]
   523  	if protoimpl.UnsafeEnabled && m != nil {
   524  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(m))
   525  		if ms.LoadMessageInfo() == nil {
   526  			ms.StoreMessageInfo(mi)
   527  		}
   528  		return ms
   529  	}
   530  	return mi.MessageOf(m)
   531  }
   532  
   533  func (*PermissionChange_Removed) GotenMessage() {}
   534  
   535  // Deprecated, Use PermissionChange_Removed.ProtoReflect.Descriptor instead.
   536  func (*PermissionChange_Removed) Descriptor() ([]byte, []int) {
   537  	return edgelq_iam_proto_v1_permission_change_proto_rawDescGZIP(), []int{0, 3}
   538  }
   539  
   540  func (m *PermissionChange_Removed) Unmarshal(b []byte) error {
   541  	return proto.Unmarshal(b, m)
   542  }
   543  
   544  func (m *PermissionChange_Removed) Marshal() ([]byte, error) {
   545  	return proto.Marshal(m)
   546  }
   547  
   548  func (m *PermissionChange_Removed) MarshalJSON() ([]byte, error) {
   549  	return protojson.MarshalOptions{}.Marshal(m)
   550  }
   551  
   552  func (m *PermissionChange_Removed) UnmarshalJSON(data []byte) error {
   553  	return protojson.Unmarshal(data, m)
   554  }
   555  
   556  func (m *PermissionChange_Removed) GetName() *Name {
   557  	if m != nil {
   558  		return m.Name
   559  	}
   560  	return nil
   561  }
   562  
   563  func (m *PermissionChange_Removed) GetViewIndex() int32 {
   564  	if m != nil {
   565  		return m.ViewIndex
   566  	}
   567  	return int32(0)
   568  }
   569  
   570  func (m *PermissionChange_Removed) SetName(fv *Name) {
   571  	if m == nil {
   572  		panic(fmt.Errorf("can't set %s on nil %s", "Name", "PermissionChange_Removed"))
   573  	}
   574  	m.Name = fv
   575  }
   576  
   577  func (m *PermissionChange_Removed) SetViewIndex(fv int32) {
   578  	if m == nil {
   579  		panic(fmt.Errorf("can't set %s on nil %s", "ViewIndex", "PermissionChange_Removed"))
   580  	}
   581  	m.ViewIndex = fv
   582  }
   583  
   584  var edgelq_iam_proto_v1_permission_change_proto preflect.FileDescriptor
   585  
   586  var edgelq_iam_proto_v1_permission_change_proto_rawDesc = []byte{
   587  	0x0a, 0x2b, 0x65, 0x64, 0x67, 0x65, 0x6c, 0x71, 0x2f, 0x69, 0x61, 0x6d, 0x2f, 0x70, 0x72, 0x6f,
   588  	0x74, 0x6f, 0x2f, 0x76, 0x31, 0x2f, 0x70, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e,
   589  	0x5f, 0x63, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0a, 0x6e,
   590  	0x74, 0x74, 0x2e, 0x69, 0x61, 0x6d, 0x2e, 0x76, 0x31, 0x1a, 0x19, 0x67, 0x6f, 0x6f, 0x67, 0x6c,
   591  	0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x2e, 0x70,
   592  	0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x20, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f,
   593  	0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x5f, 0x6d, 0x61, 0x73, 0x6b,
   594  	0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1d, 0x67, 0x6f, 0x74, 0x65, 0x6e, 0x2f, 0x61, 0x6e,
   595  	0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x67, 0x6f, 0x74, 0x65, 0x6e, 0x2e,
   596  	0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x20, 0x67, 0x6f, 0x74, 0x65, 0x6e, 0x2f, 0x61, 0x6e, 0x6e,
   597  	0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63,
   598  	0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x24, 0x65, 0x64, 0x67, 0x65, 0x6c, 0x71, 0x2f,
   599  	0x69, 0x61, 0x6d, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x76, 0x31, 0x2f, 0x70, 0x65, 0x72,
   600  	0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xb8, 0x06,
   601  	0x0a, 0x10, 0x50, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x43, 0x68, 0x61, 0x6e,
   602  	0x67, 0x65, 0x12, 0x3a, 0x0a, 0x05, 0x61, 0x64, 0x64, 0x65, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28,
   603  	0x0b, 0x32, 0x22, 0x2e, 0x6e, 0x74, 0x74, 0x2e, 0x69, 0x61, 0x6d, 0x2e, 0x76, 0x31, 0x2e, 0x50,
   604  	0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x2e,
   605  	0x41, 0x64, 0x64, 0x65, 0x64, 0x48, 0x00, 0x52, 0x05, 0x61, 0x64, 0x64, 0x65, 0x64, 0x12, 0x43,
   606  	0x0a, 0x08, 0x6d, 0x6f, 0x64, 0x69, 0x66, 0x69, 0x65, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b,
   607  	0x32, 0x25, 0x2e, 0x6e, 0x74, 0x74, 0x2e, 0x69, 0x61, 0x6d, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x65,
   608  	0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x2e, 0x4d,
   609  	0x6f, 0x64, 0x69, 0x66, 0x69, 0x65, 0x64, 0x48, 0x00, 0x52, 0x08, 0x6d, 0x6f, 0x64, 0x69, 0x66,
   610  	0x69, 0x65, 0x64, 0x12, 0x40, 0x0a, 0x07, 0x63, 0x75, 0x72, 0x72, 0x65, 0x6e, 0x74, 0x18, 0x04,
   611  	0x20, 0x01, 0x28, 0x0b, 0x32, 0x24, 0x2e, 0x6e, 0x74, 0x74, 0x2e, 0x69, 0x61, 0x6d, 0x2e, 0x76,
   612  	0x31, 0x2e, 0x50, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x43, 0x68, 0x61, 0x6e,
   613  	0x67, 0x65, 0x2e, 0x43, 0x75, 0x72, 0x72, 0x65, 0x6e, 0x74, 0x48, 0x00, 0x52, 0x07, 0x63, 0x75,
   614  	0x72, 0x72, 0x65, 0x6e, 0x74, 0x12, 0x40, 0x0a, 0x07, 0x72, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x64,
   615  	0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x24, 0x2e, 0x6e, 0x74, 0x74, 0x2e, 0x69, 0x61, 0x6d,
   616  	0x2e, 0x76, 0x31, 0x2e, 0x50, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x43, 0x68,
   617  	0x61, 0x6e, 0x67, 0x65, 0x2e, 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x64, 0x48, 0x00, 0x52, 0x07,
   618  	0x72, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x64, 0x1a, 0x5e, 0x0a, 0x05, 0x41, 0x64, 0x64, 0x65, 0x64,
   619  	0x12, 0x36, 0x0a, 0x0a, 0x70, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x01,
   620  	0x20, 0x01, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x6e, 0x74, 0x74, 0x2e, 0x69, 0x61, 0x6d, 0x2e, 0x76,
   621  	0x31, 0x2e, 0x50, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x0a, 0x70, 0x65,
   622  	0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x1d, 0x0a, 0x0a, 0x76, 0x69, 0x65, 0x77,
   623  	0x5f, 0x69, 0x6e, 0x64, 0x65, 0x78, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x09, 0x76, 0x69,
   624  	0x65, 0x77, 0x49, 0x6e, 0x64, 0x65, 0x78, 0x1a, 0x88, 0x02, 0x0a, 0x08, 0x4d, 0x6f, 0x64, 0x69,
   625  	0x66, 0x69, 0x65, 0x64, 0x12, 0x26, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01,
   626  	0x28, 0x09, 0x42, 0x12, 0xb2, 0xda, 0x21, 0x0e, 0x0a, 0x0c, 0x0a, 0x0a, 0x50, 0x65, 0x72, 0x6d,
   627  	0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x36, 0x0a, 0x0a,
   628  	0x70, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b,
   629  	0x32, 0x16, 0x2e, 0x6e, 0x74, 0x74, 0x2e, 0x69, 0x61, 0x6d, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x65,
   630  	0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x0a, 0x70, 0x65, 0x72, 0x6d, 0x69, 0x73,
   631  	0x73, 0x69, 0x6f, 0x6e, 0x12, 0x4d, 0x0a, 0x0a, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x5f, 0x6d, 0x61,
   632  	0x73, 0x6b, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c,
   633  	0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x46, 0x69, 0x65, 0x6c, 0x64,
   634  	0x4d, 0x61, 0x73, 0x6b, 0x42, 0x12, 0xb2, 0xda, 0x21, 0x0e, 0x32, 0x0c, 0x0a, 0x0a, 0x50, 0x65,
   635  	0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x09, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x4d,
   636  	0x61, 0x73, 0x6b, 0x12, 0x2e, 0x0a, 0x13, 0x70, 0x72, 0x65, 0x76, 0x69, 0x6f, 0x75, 0x73, 0x5f,
   637  	0x76, 0x69, 0x65, 0x77, 0x5f, 0x69, 0x6e, 0x64, 0x65, 0x78, 0x18, 0x04, 0x20, 0x01, 0x28, 0x05,
   638  	0x52, 0x11, 0x70, 0x72, 0x65, 0x76, 0x69, 0x6f, 0x75, 0x73, 0x56, 0x69, 0x65, 0x77, 0x49, 0x6e,
   639  	0x64, 0x65, 0x78, 0x12, 0x1d, 0x0a, 0x0a, 0x76, 0x69, 0x65, 0x77, 0x5f, 0x69, 0x6e, 0x64, 0x65,
   640  	0x78, 0x18, 0x05, 0x20, 0x01, 0x28, 0x05, 0x52, 0x09, 0x76, 0x69, 0x65, 0x77, 0x49, 0x6e, 0x64,
   641  	0x65, 0x78, 0x1a, 0x41, 0x0a, 0x07, 0x43, 0x75, 0x72, 0x72, 0x65, 0x6e, 0x74, 0x12, 0x36, 0x0a,
   642  	0x0a, 0x70, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28,
   643  	0x0b, 0x32, 0x16, 0x2e, 0x6e, 0x74, 0x74, 0x2e, 0x69, 0x61, 0x6d, 0x2e, 0x76, 0x31, 0x2e, 0x50,
   644  	0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x0a, 0x70, 0x65, 0x72, 0x6d, 0x69,
   645  	0x73, 0x73, 0x69, 0x6f, 0x6e, 0x1a, 0x50, 0x0a, 0x07, 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x64,
   646  	0x12, 0x26, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x12,
   647  	0xb2, 0xda, 0x21, 0x0e, 0x0a, 0x0c, 0x0a, 0x0a, 0x50, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69,
   648  	0x6f, 0x6e, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x76, 0x69, 0x65, 0x77,
   649  	0x5f, 0x69, 0x6e, 0x64, 0x65, 0x78, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x09, 0x76, 0x69,
   650  	0x65, 0x77, 0x49, 0x6e, 0x64, 0x65, 0x78, 0x3a, 0x10, 0x9a, 0xd9, 0x21, 0x0c, 0x0a, 0x0a, 0x50,
   651  	0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x42, 0x0d, 0x0a, 0x0b, 0x63, 0x68, 0x61,
   652  	0x6e, 0x67, 0x65, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x42, 0x73, 0xe8, 0xde, 0x21, 0x00, 0x0a, 0x11,
   653  	0x63, 0x6f, 0x6d, 0x2e, 0x6e, 0x74, 0x74, 0x2e, 0x69, 0x61, 0x6d, 0x2e, 0x70, 0x62, 0x2e, 0x76,
   654  	0x31, 0x42, 0x15, 0x50, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x43, 0x68, 0x61,
   655  	0x6e, 0x67, 0x65, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x00, 0x5a, 0x41, 0x67, 0x69, 0x74, 0x68,
   656  	0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x77, 0x61, 0x6e, 0x2f,
   657  	0x65, 0x64, 0x67, 0x65, 0x6c, 0x71, 0x2f, 0x69, 0x61, 0x6d, 0x2f, 0x72, 0x65, 0x73, 0x6f, 0x75,
   658  	0x72, 0x63, 0x65, 0x73, 0x2f, 0x76, 0x31, 0x2f, 0x70, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69,
   659  	0x6f, 0x6e, 0x3b, 0x70, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x62, 0x06, 0x70,
   660  	0x72, 0x6f, 0x74, 0x6f, 0x33,
   661  }
   662  
   663  var (
   664  	edgelq_iam_proto_v1_permission_change_proto_rawDescOnce sync.Once
   665  	edgelq_iam_proto_v1_permission_change_proto_rawDescData = edgelq_iam_proto_v1_permission_change_proto_rawDesc
   666  )
   667  
   668  func edgelq_iam_proto_v1_permission_change_proto_rawDescGZIP() []byte {
   669  	edgelq_iam_proto_v1_permission_change_proto_rawDescOnce.Do(func() {
   670  		edgelq_iam_proto_v1_permission_change_proto_rawDescData = protoimpl.X.CompressGZIP(edgelq_iam_proto_v1_permission_change_proto_rawDescData)
   671  	})
   672  	return edgelq_iam_proto_v1_permission_change_proto_rawDescData
   673  }
   674  
   675  var edgelq_iam_proto_v1_permission_change_proto_msgTypes = make([]protoimpl.MessageInfo, 5)
   676  var edgelq_iam_proto_v1_permission_change_proto_goTypes = []interface{}{
   677  	(*PermissionChange)(nil),          // 0: ntt.iam.v1.PermissionChange
   678  	(*PermissionChange_Added)(nil),    // 1: ntt.iam.v1.PermissionChange.Added
   679  	(*PermissionChange_Modified)(nil), // 2: ntt.iam.v1.PermissionChange.Modified
   680  	(*PermissionChange_Current)(nil),  // 3: ntt.iam.v1.PermissionChange.Current
   681  	(*PermissionChange_Removed)(nil),  // 4: ntt.iam.v1.PermissionChange.Removed
   682  	(*Permission)(nil),                // 5: ntt.iam.v1.Permission
   683  	(*Permission_FieldMask)(nil),      // 6: ntt.iam.v1.Permission_FieldMask
   684  }
   685  var edgelq_iam_proto_v1_permission_change_proto_depIdxs = []int32{
   686  	1, // 0: ntt.iam.v1.PermissionChange.added:type_name -> ntt.iam.v1.PermissionChange.Added
   687  	2, // 1: ntt.iam.v1.PermissionChange.modified:type_name -> ntt.iam.v1.PermissionChange.Modified
   688  	3, // 2: ntt.iam.v1.PermissionChange.current:type_name -> ntt.iam.v1.PermissionChange.Current
   689  	4, // 3: ntt.iam.v1.PermissionChange.removed:type_name -> ntt.iam.v1.PermissionChange.Removed
   690  	5, // 4: ntt.iam.v1.PermissionChange.Added.permission:type_name -> ntt.iam.v1.Permission
   691  	5, // 5: ntt.iam.v1.PermissionChange.Modified.permission:type_name -> ntt.iam.v1.Permission
   692  	6, // 6: ntt.iam.v1.PermissionChange.Modified.field_mask:type_name -> ntt.iam.v1.Permission_FieldMask
   693  	5, // 7: ntt.iam.v1.PermissionChange.Current.permission:type_name -> ntt.iam.v1.Permission
   694  	8, // [8:8] is the sub-list for method output_type
   695  	8, // [8:8] is the sub-list for method input_type
   696  	8, // [8:8] is the sub-list for extension type_name
   697  	8, // [8:8] is the sub-list for extension extendee
   698  	0, // [0:8] is the sub-list for field type_name
   699  }
   700  
   701  func init() { edgelq_iam_proto_v1_permission_change_proto_init() }
   702  func edgelq_iam_proto_v1_permission_change_proto_init() {
   703  	if edgelq_iam_proto_v1_permission_change_proto != nil {
   704  		return
   705  	}
   706  	if !protoimpl.UnsafeEnabled {
   707  
   708  		edgelq_iam_proto_v1_permission_change_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
   709  			switch v := v.(*PermissionChange); i {
   710  			case 0:
   711  				return &v.state
   712  			case 1:
   713  				return &v.sizeCache
   714  			case 2:
   715  				return &v.unknownFields
   716  			default:
   717  				return nil
   718  			}
   719  		}
   720  		edgelq_iam_proto_v1_permission_change_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
   721  			switch v := v.(*PermissionChange_Added); i {
   722  			case 0:
   723  				return &v.state
   724  			case 1:
   725  				return &v.sizeCache
   726  			case 2:
   727  				return &v.unknownFields
   728  			default:
   729  				return nil
   730  			}
   731  		}
   732  		edgelq_iam_proto_v1_permission_change_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
   733  			switch v := v.(*PermissionChange_Modified); i {
   734  			case 0:
   735  				return &v.state
   736  			case 1:
   737  				return &v.sizeCache
   738  			case 2:
   739  				return &v.unknownFields
   740  			default:
   741  				return nil
   742  			}
   743  		}
   744  		edgelq_iam_proto_v1_permission_change_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
   745  			switch v := v.(*PermissionChange_Current); i {
   746  			case 0:
   747  				return &v.state
   748  			case 1:
   749  				return &v.sizeCache
   750  			case 2:
   751  				return &v.unknownFields
   752  			default:
   753  				return nil
   754  			}
   755  		}
   756  		edgelq_iam_proto_v1_permission_change_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
   757  			switch v := v.(*PermissionChange_Removed); i {
   758  			case 0:
   759  				return &v.state
   760  			case 1:
   761  				return &v.sizeCache
   762  			case 2:
   763  				return &v.unknownFields
   764  			default:
   765  				return nil
   766  			}
   767  		}
   768  	}
   769  
   770  	edgelq_iam_proto_v1_permission_change_proto_msgTypes[0].OneofWrappers = []interface{}{
   771  		(*PermissionChange_Added_)(nil),
   772  		(*PermissionChange_Modified_)(nil),
   773  		(*PermissionChange_Current_)(nil),
   774  		(*PermissionChange_Removed_)(nil),
   775  	}
   776  	type x struct{}
   777  	out := protoimpl.TypeBuilder{
   778  		File: protoimpl.DescBuilder{
   779  			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
   780  			RawDescriptor: edgelq_iam_proto_v1_permission_change_proto_rawDesc,
   781  			NumEnums:      0,
   782  			NumMessages:   5,
   783  			NumExtensions: 0,
   784  			NumServices:   0,
   785  		},
   786  		GoTypes:           edgelq_iam_proto_v1_permission_change_proto_goTypes,
   787  		DependencyIndexes: edgelq_iam_proto_v1_permission_change_proto_depIdxs,
   788  		MessageInfos:      edgelq_iam_proto_v1_permission_change_proto_msgTypes,
   789  	}.Build()
   790  	edgelq_iam_proto_v1_permission_change_proto = out.File
   791  	edgelq_iam_proto_v1_permission_change_proto_rawDesc = nil
   792  	edgelq_iam_proto_v1_permission_change_proto_goTypes = nil
   793  	edgelq_iam_proto_v1_permission_change_proto_depIdxs = nil
   794  }