github.com/status-im/status-go@v1.1.0/protocol/protobuf/url_data.pb.go (about)

     1  // Code generated by protoc-gen-go. DO NOT EDIT.
     2  // versions:
     3  // 	protoc-gen-go v1.31.0
     4  // 	protoc        v3.20.3
     5  // source: url_data.proto
     6  
     7  package protobuf
     8  
     9  import (
    10  	protoreflect "google.golang.org/protobuf/reflect/protoreflect"
    11  	protoimpl "google.golang.org/protobuf/runtime/protoimpl"
    12  	reflect "reflect"
    13  	sync "sync"
    14  )
    15  
    16  const (
    17  	// Verify that this generated code is sufficiently up-to-date.
    18  	_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
    19  	// Verify that runtime/protoimpl is sufficiently up-to-date.
    20  	_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
    21  )
    22  
    23  type Community struct {
    24  	state         protoimpl.MessageState
    25  	sizeCache     protoimpl.SizeCache
    26  	unknownFields protoimpl.UnknownFields
    27  
    28  	DisplayName  string   `protobuf:"bytes,1,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"`
    29  	Description  string   `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"`
    30  	MembersCount uint32   `protobuf:"varint,3,opt,name=members_count,json=membersCount,proto3" json:"members_count,omitempty"`
    31  	Color        string   `protobuf:"bytes,4,opt,name=color,proto3" json:"color,omitempty"`
    32  	TagIndices   []uint32 `protobuf:"varint,5,rep,packed,name=tag_indices,json=tagIndices,proto3" json:"tag_indices,omitempty"`
    33  }
    34  
    35  func (x *Community) Reset() {
    36  	*x = Community{}
    37  	if protoimpl.UnsafeEnabled {
    38  		mi := &file_url_data_proto_msgTypes[0]
    39  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
    40  		ms.StoreMessageInfo(mi)
    41  	}
    42  }
    43  
    44  func (x *Community) String() string {
    45  	return protoimpl.X.MessageStringOf(x)
    46  }
    47  
    48  func (*Community) ProtoMessage() {}
    49  
    50  func (x *Community) ProtoReflect() protoreflect.Message {
    51  	mi := &file_url_data_proto_msgTypes[0]
    52  	if protoimpl.UnsafeEnabled && x != nil {
    53  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
    54  		if ms.LoadMessageInfo() == nil {
    55  			ms.StoreMessageInfo(mi)
    56  		}
    57  		return ms
    58  	}
    59  	return mi.MessageOf(x)
    60  }
    61  
    62  // Deprecated: Use Community.ProtoReflect.Descriptor instead.
    63  func (*Community) Descriptor() ([]byte, []int) {
    64  	return file_url_data_proto_rawDescGZIP(), []int{0}
    65  }
    66  
    67  func (x *Community) GetDisplayName() string {
    68  	if x != nil {
    69  		return x.DisplayName
    70  	}
    71  	return ""
    72  }
    73  
    74  func (x *Community) GetDescription() string {
    75  	if x != nil {
    76  		return x.Description
    77  	}
    78  	return ""
    79  }
    80  
    81  func (x *Community) GetMembersCount() uint32 {
    82  	if x != nil {
    83  		return x.MembersCount
    84  	}
    85  	return 0
    86  }
    87  
    88  func (x *Community) GetColor() string {
    89  	if x != nil {
    90  		return x.Color
    91  	}
    92  	return ""
    93  }
    94  
    95  func (x *Community) GetTagIndices() []uint32 {
    96  	if x != nil {
    97  		return x.TagIndices
    98  	}
    99  	return nil
   100  }
   101  
   102  type Channel struct {
   103  	state         protoimpl.MessageState
   104  	sizeCache     protoimpl.SizeCache
   105  	unknownFields protoimpl.UnknownFields
   106  
   107  	DisplayName string     `protobuf:"bytes,1,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"`
   108  	Description string     `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"`
   109  	Emoji       string     `protobuf:"bytes,3,opt,name=emoji,proto3" json:"emoji,omitempty"`
   110  	Color       string     `protobuf:"bytes,4,opt,name=color,proto3" json:"color,omitempty"`
   111  	Community   *Community `protobuf:"bytes,5,opt,name=community,proto3" json:"community,omitempty"`
   112  	Uuid        string     `protobuf:"bytes,6,opt,name=uuid,proto3" json:"uuid,omitempty"`
   113  }
   114  
   115  func (x *Channel) Reset() {
   116  	*x = Channel{}
   117  	if protoimpl.UnsafeEnabled {
   118  		mi := &file_url_data_proto_msgTypes[1]
   119  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   120  		ms.StoreMessageInfo(mi)
   121  	}
   122  }
   123  
   124  func (x *Channel) String() string {
   125  	return protoimpl.X.MessageStringOf(x)
   126  }
   127  
   128  func (*Channel) ProtoMessage() {}
   129  
   130  func (x *Channel) ProtoReflect() protoreflect.Message {
   131  	mi := &file_url_data_proto_msgTypes[1]
   132  	if protoimpl.UnsafeEnabled && x != nil {
   133  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   134  		if ms.LoadMessageInfo() == nil {
   135  			ms.StoreMessageInfo(mi)
   136  		}
   137  		return ms
   138  	}
   139  	return mi.MessageOf(x)
   140  }
   141  
   142  // Deprecated: Use Channel.ProtoReflect.Descriptor instead.
   143  func (*Channel) Descriptor() ([]byte, []int) {
   144  	return file_url_data_proto_rawDescGZIP(), []int{1}
   145  }
   146  
   147  func (x *Channel) GetDisplayName() string {
   148  	if x != nil {
   149  		return x.DisplayName
   150  	}
   151  	return ""
   152  }
   153  
   154  func (x *Channel) GetDescription() string {
   155  	if x != nil {
   156  		return x.Description
   157  	}
   158  	return ""
   159  }
   160  
   161  func (x *Channel) GetEmoji() string {
   162  	if x != nil {
   163  		return x.Emoji
   164  	}
   165  	return ""
   166  }
   167  
   168  func (x *Channel) GetColor() string {
   169  	if x != nil {
   170  		return x.Color
   171  	}
   172  	return ""
   173  }
   174  
   175  func (x *Channel) GetCommunity() *Community {
   176  	if x != nil {
   177  		return x.Community
   178  	}
   179  	return nil
   180  }
   181  
   182  func (x *Channel) GetUuid() string {
   183  	if x != nil {
   184  		return x.Uuid
   185  	}
   186  	return ""
   187  }
   188  
   189  type User struct {
   190  	state         protoimpl.MessageState
   191  	sizeCache     protoimpl.SizeCache
   192  	unknownFields protoimpl.UnknownFields
   193  
   194  	DisplayName string `protobuf:"bytes,1,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"`
   195  	Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"`
   196  	Color       string `protobuf:"bytes,3,opt,name=color,proto3" json:"color,omitempty"`
   197  }
   198  
   199  func (x *User) Reset() {
   200  	*x = User{}
   201  	if protoimpl.UnsafeEnabled {
   202  		mi := &file_url_data_proto_msgTypes[2]
   203  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   204  		ms.StoreMessageInfo(mi)
   205  	}
   206  }
   207  
   208  func (x *User) String() string {
   209  	return protoimpl.X.MessageStringOf(x)
   210  }
   211  
   212  func (*User) ProtoMessage() {}
   213  
   214  func (x *User) ProtoReflect() protoreflect.Message {
   215  	mi := &file_url_data_proto_msgTypes[2]
   216  	if protoimpl.UnsafeEnabled && x != nil {
   217  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   218  		if ms.LoadMessageInfo() == nil {
   219  			ms.StoreMessageInfo(mi)
   220  		}
   221  		return ms
   222  	}
   223  	return mi.MessageOf(x)
   224  }
   225  
   226  // Deprecated: Use User.ProtoReflect.Descriptor instead.
   227  func (*User) Descriptor() ([]byte, []int) {
   228  	return file_url_data_proto_rawDescGZIP(), []int{2}
   229  }
   230  
   231  func (x *User) GetDisplayName() string {
   232  	if x != nil {
   233  		return x.DisplayName
   234  	}
   235  	return ""
   236  }
   237  
   238  func (x *User) GetDescription() string {
   239  	if x != nil {
   240  		return x.Description
   241  	}
   242  	return ""
   243  }
   244  
   245  func (x *User) GetColor() string {
   246  	if x != nil {
   247  		return x.Color
   248  	}
   249  	return ""
   250  }
   251  
   252  type URLData struct {
   253  	state         protoimpl.MessageState
   254  	sizeCache     protoimpl.SizeCache
   255  	unknownFields protoimpl.UnknownFields
   256  
   257  	// Community, Channel, or User
   258  	Content []byte `protobuf:"bytes,1,opt,name=content,proto3" json:"content,omitempty"`
   259  	Shard   *Shard `protobuf:"bytes,2,opt,name=shard,proto3" json:"shard,omitempty"`
   260  }
   261  
   262  func (x *URLData) Reset() {
   263  	*x = URLData{}
   264  	if protoimpl.UnsafeEnabled {
   265  		mi := &file_url_data_proto_msgTypes[3]
   266  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   267  		ms.StoreMessageInfo(mi)
   268  	}
   269  }
   270  
   271  func (x *URLData) String() string {
   272  	return protoimpl.X.MessageStringOf(x)
   273  }
   274  
   275  func (*URLData) ProtoMessage() {}
   276  
   277  func (x *URLData) ProtoReflect() protoreflect.Message {
   278  	mi := &file_url_data_proto_msgTypes[3]
   279  	if protoimpl.UnsafeEnabled && x != nil {
   280  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   281  		if ms.LoadMessageInfo() == nil {
   282  			ms.StoreMessageInfo(mi)
   283  		}
   284  		return ms
   285  	}
   286  	return mi.MessageOf(x)
   287  }
   288  
   289  // Deprecated: Use URLData.ProtoReflect.Descriptor instead.
   290  func (*URLData) Descriptor() ([]byte, []int) {
   291  	return file_url_data_proto_rawDescGZIP(), []int{3}
   292  }
   293  
   294  func (x *URLData) GetContent() []byte {
   295  	if x != nil {
   296  		return x.Content
   297  	}
   298  	return nil
   299  }
   300  
   301  func (x *URLData) GetShard() *Shard {
   302  	if x != nil {
   303  		return x.Shard
   304  	}
   305  	return nil
   306  }
   307  
   308  var File_url_data_proto protoreflect.FileDescriptor
   309  
   310  var file_url_data_proto_rawDesc = []byte{
   311  	0x0a, 0x0e, 0x75, 0x72, 0x6c, 0x5f, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
   312  	0x12, 0x08, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x1a, 0x0b, 0x73, 0x68, 0x61, 0x72,
   313  	0x64, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xac, 0x01, 0x0a, 0x09, 0x43, 0x6f, 0x6d, 0x6d,
   314  	0x75, 0x6e, 0x69, 0x74, 0x79, 0x12, 0x21, 0x0a, 0x0c, 0x64, 0x69, 0x73, 0x70, 0x6c, 0x61, 0x79,
   315  	0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x64, 0x69, 0x73,
   316  	0x70, 0x6c, 0x61, 0x79, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x20, 0x0a, 0x0b, 0x64, 0x65, 0x73, 0x63,
   317  	0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x64,
   318  	0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x23, 0x0a, 0x0d, 0x6d, 0x65,
   319  	0x6d, 0x62, 0x65, 0x72, 0x73, 0x5f, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28,
   320  	0x0d, 0x52, 0x0c, 0x6d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x73, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x12,
   321  	0x14, 0x0a, 0x05, 0x63, 0x6f, 0x6c, 0x6f, 0x72, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05,
   322  	0x63, 0x6f, 0x6c, 0x6f, 0x72, 0x12, 0x1f, 0x0a, 0x0b, 0x74, 0x61, 0x67, 0x5f, 0x69, 0x6e, 0x64,
   323  	0x69, 0x63, 0x65, 0x73, 0x18, 0x05, 0x20, 0x03, 0x28, 0x0d, 0x52, 0x0a, 0x74, 0x61, 0x67, 0x49,
   324  	0x6e, 0x64, 0x69, 0x63, 0x65, 0x73, 0x22, 0xc1, 0x01, 0x0a, 0x07, 0x43, 0x68, 0x61, 0x6e, 0x6e,
   325  	0x65, 0x6c, 0x12, 0x21, 0x0a, 0x0c, 0x64, 0x69, 0x73, 0x70, 0x6c, 0x61, 0x79, 0x5f, 0x6e, 0x61,
   326  	0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x64, 0x69, 0x73, 0x70, 0x6c, 0x61,
   327  	0x79, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x20, 0x0a, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70,
   328  	0x74, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x64, 0x65, 0x73, 0x63,
   329  	0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x14, 0x0a, 0x05, 0x65, 0x6d, 0x6f, 0x6a, 0x69,
   330  	0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x65, 0x6d, 0x6f, 0x6a, 0x69, 0x12, 0x14, 0x0a,
   331  	0x05, 0x63, 0x6f, 0x6c, 0x6f, 0x72, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x63, 0x6f,
   332  	0x6c, 0x6f, 0x72, 0x12, 0x31, 0x0a, 0x09, 0x63, 0x6f, 0x6d, 0x6d, 0x75, 0x6e, 0x69, 0x74, 0x79,
   333  	0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x13, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75,
   334  	0x66, 0x2e, 0x43, 0x6f, 0x6d, 0x6d, 0x75, 0x6e, 0x69, 0x74, 0x79, 0x52, 0x09, 0x63, 0x6f, 0x6d,
   335  	0x6d, 0x75, 0x6e, 0x69, 0x74, 0x79, 0x12, 0x12, 0x0a, 0x04, 0x75, 0x75, 0x69, 0x64, 0x18, 0x06,
   336  	0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x75, 0x75, 0x69, 0x64, 0x22, 0x61, 0x0a, 0x04, 0x55, 0x73,
   337  	0x65, 0x72, 0x12, 0x21, 0x0a, 0x0c, 0x64, 0x69, 0x73, 0x70, 0x6c, 0x61, 0x79, 0x5f, 0x6e, 0x61,
   338  	0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x64, 0x69, 0x73, 0x70, 0x6c, 0x61,
   339  	0x79, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x20, 0x0a, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70,
   340  	0x74, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x64, 0x65, 0x73, 0x63,
   341  	0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x14, 0x0a, 0x05, 0x63, 0x6f, 0x6c, 0x6f, 0x72,
   342  	0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x63, 0x6f, 0x6c, 0x6f, 0x72, 0x22, 0x4a, 0x0a,
   343  	0x07, 0x55, 0x52, 0x4c, 0x44, 0x61, 0x74, 0x61, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x6f, 0x6e, 0x74,
   344  	0x65, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x07, 0x63, 0x6f, 0x6e, 0x74, 0x65,
   345  	0x6e, 0x74, 0x12, 0x25, 0x0a, 0x05, 0x73, 0x68, 0x61, 0x72, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28,
   346  	0x0b, 0x32, 0x0f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x53, 0x68, 0x61,
   347  	0x72, 0x64, 0x52, 0x05, 0x73, 0x68, 0x61, 0x72, 0x64, 0x42, 0x0d, 0x5a, 0x0b, 0x2e, 0x2f, 0x3b,
   348  	0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
   349  }
   350  
   351  var (
   352  	file_url_data_proto_rawDescOnce sync.Once
   353  	file_url_data_proto_rawDescData = file_url_data_proto_rawDesc
   354  )
   355  
   356  func file_url_data_proto_rawDescGZIP() []byte {
   357  	file_url_data_proto_rawDescOnce.Do(func() {
   358  		file_url_data_proto_rawDescData = protoimpl.X.CompressGZIP(file_url_data_proto_rawDescData)
   359  	})
   360  	return file_url_data_proto_rawDescData
   361  }
   362  
   363  var file_url_data_proto_msgTypes = make([]protoimpl.MessageInfo, 4)
   364  var file_url_data_proto_goTypes = []interface{}{
   365  	(*Community)(nil), // 0: protobuf.Community
   366  	(*Channel)(nil),   // 1: protobuf.Channel
   367  	(*User)(nil),      // 2: protobuf.User
   368  	(*URLData)(nil),   // 3: protobuf.URLData
   369  	(*Shard)(nil),     // 4: protobuf.Shard
   370  }
   371  var file_url_data_proto_depIdxs = []int32{
   372  	0, // 0: protobuf.Channel.community:type_name -> protobuf.Community
   373  	4, // 1: protobuf.URLData.shard:type_name -> protobuf.Shard
   374  	2, // [2:2] is the sub-list for method output_type
   375  	2, // [2:2] is the sub-list for method input_type
   376  	2, // [2:2] is the sub-list for extension type_name
   377  	2, // [2:2] is the sub-list for extension extendee
   378  	0, // [0:2] is the sub-list for field type_name
   379  }
   380  
   381  func init() { file_url_data_proto_init() }
   382  func file_url_data_proto_init() {
   383  	if File_url_data_proto != nil {
   384  		return
   385  	}
   386  	file_shard_proto_init()
   387  	if !protoimpl.UnsafeEnabled {
   388  		file_url_data_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
   389  			switch v := v.(*Community); i {
   390  			case 0:
   391  				return &v.state
   392  			case 1:
   393  				return &v.sizeCache
   394  			case 2:
   395  				return &v.unknownFields
   396  			default:
   397  				return nil
   398  			}
   399  		}
   400  		file_url_data_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
   401  			switch v := v.(*Channel); i {
   402  			case 0:
   403  				return &v.state
   404  			case 1:
   405  				return &v.sizeCache
   406  			case 2:
   407  				return &v.unknownFields
   408  			default:
   409  				return nil
   410  			}
   411  		}
   412  		file_url_data_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
   413  			switch v := v.(*User); i {
   414  			case 0:
   415  				return &v.state
   416  			case 1:
   417  				return &v.sizeCache
   418  			case 2:
   419  				return &v.unknownFields
   420  			default:
   421  				return nil
   422  			}
   423  		}
   424  		file_url_data_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
   425  			switch v := v.(*URLData); i {
   426  			case 0:
   427  				return &v.state
   428  			case 1:
   429  				return &v.sizeCache
   430  			case 2:
   431  				return &v.unknownFields
   432  			default:
   433  				return nil
   434  			}
   435  		}
   436  	}
   437  	type x struct{}
   438  	out := protoimpl.TypeBuilder{
   439  		File: protoimpl.DescBuilder{
   440  			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
   441  			RawDescriptor: file_url_data_proto_rawDesc,
   442  			NumEnums:      0,
   443  			NumMessages:   4,
   444  			NumExtensions: 0,
   445  			NumServices:   0,
   446  		},
   447  		GoTypes:           file_url_data_proto_goTypes,
   448  		DependencyIndexes: file_url_data_proto_depIdxs,
   449  		MessageInfos:      file_url_data_proto_msgTypes,
   450  	}.Build()
   451  	File_url_data_proto = out.File
   452  	file_url_data_proto_rawDesc = nil
   453  	file_url_data_proto_goTypes = nil
   454  	file_url_data_proto_depIdxs = nil
   455  }