go.chromium.org/luci@v0.0.0-20240309015107-7cdc2e660f33/analysis/internal/bugs/monorail/api_proto/users.pb.go (about)

     1  // Copyright 2020 The Chromium Authors
     2  // Use of this source code is governed by a BSD-style license that can be
     3  // found in the LICENSE file.
     4  
     5  // Code generated by protoc-gen-go. DO NOT EDIT.
     6  // versions:
     7  // 	protoc-gen-go v1.31.0
     8  // 	protoc        v3.21.7
     9  // source: go.chromium.org/luci/analysis/internal/bugs/monorail/api_proto/users.proto
    10  
    11  package api_proto
    12  
    13  import prpc "go.chromium.org/luci/grpc/prpc"
    14  
    15  import (
    16  	context "context"
    17  	_ "google.golang.org/genproto/googleapis/api/annotations"
    18  	grpc "google.golang.org/grpc"
    19  	codes "google.golang.org/grpc/codes"
    20  	status "google.golang.org/grpc/status"
    21  	protoreflect "google.golang.org/protobuf/reflect/protoreflect"
    22  	protoimpl "google.golang.org/protobuf/runtime/protoimpl"
    23  	emptypb "google.golang.org/protobuf/types/known/emptypb"
    24  	fieldmaskpb "google.golang.org/protobuf/types/known/fieldmaskpb"
    25  	reflect "reflect"
    26  	sync "sync"
    27  )
    28  
    29  const (
    30  	// Verify that this generated code is sufficiently up-to-date.
    31  	_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
    32  	// Verify that runtime/protoimpl is sufficiently up-to-date.
    33  	_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
    34  )
    35  
    36  // The request message for Users.GetUser.
    37  // Next available tag: 2
    38  type GetUserRequest struct {
    39  	state         protoimpl.MessageState
    40  	sizeCache     protoimpl.SizeCache
    41  	unknownFields protoimpl.UnknownFields
    42  
    43  	// The name of the user to request.
    44  	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
    45  }
    46  
    47  func (x *GetUserRequest) Reset() {
    48  	*x = GetUserRequest{}
    49  	if protoimpl.UnsafeEnabled {
    50  		mi := &file_go_chromium_org_luci_analysis_internal_bugs_monorail_api_proto_users_proto_msgTypes[0]
    51  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
    52  		ms.StoreMessageInfo(mi)
    53  	}
    54  }
    55  
    56  func (x *GetUserRequest) String() string {
    57  	return protoimpl.X.MessageStringOf(x)
    58  }
    59  
    60  func (*GetUserRequest) ProtoMessage() {}
    61  
    62  func (x *GetUserRequest) ProtoReflect() protoreflect.Message {
    63  	mi := &file_go_chromium_org_luci_analysis_internal_bugs_monorail_api_proto_users_proto_msgTypes[0]
    64  	if protoimpl.UnsafeEnabled && x != nil {
    65  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
    66  		if ms.LoadMessageInfo() == nil {
    67  			ms.StoreMessageInfo(mi)
    68  		}
    69  		return ms
    70  	}
    71  	return mi.MessageOf(x)
    72  }
    73  
    74  // Deprecated: Use GetUserRequest.ProtoReflect.Descriptor instead.
    75  func (*GetUserRequest) Descriptor() ([]byte, []int) {
    76  	return file_go_chromium_org_luci_analysis_internal_bugs_monorail_api_proto_users_proto_rawDescGZIP(), []int{0}
    77  }
    78  
    79  func (x *GetUserRequest) GetName() string {
    80  	if x != nil {
    81  		return x.Name
    82  	}
    83  	return ""
    84  }
    85  
    86  // The request message for Users.BatchGetUsers.
    87  // Next available tag: 2
    88  type BatchGetUsersRequest struct {
    89  	state         protoimpl.MessageState
    90  	sizeCache     protoimpl.SizeCache
    91  	unknownFields protoimpl.UnknownFields
    92  
    93  	// The name of the users to request. At most 100 may be requested.
    94  	Names []string `protobuf:"bytes,1,rep,name=names,proto3" json:"names,omitempty"`
    95  }
    96  
    97  func (x *BatchGetUsersRequest) Reset() {
    98  	*x = BatchGetUsersRequest{}
    99  	if protoimpl.UnsafeEnabled {
   100  		mi := &file_go_chromium_org_luci_analysis_internal_bugs_monorail_api_proto_users_proto_msgTypes[1]
   101  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   102  		ms.StoreMessageInfo(mi)
   103  	}
   104  }
   105  
   106  func (x *BatchGetUsersRequest) String() string {
   107  	return protoimpl.X.MessageStringOf(x)
   108  }
   109  
   110  func (*BatchGetUsersRequest) ProtoMessage() {}
   111  
   112  func (x *BatchGetUsersRequest) ProtoReflect() protoreflect.Message {
   113  	mi := &file_go_chromium_org_luci_analysis_internal_bugs_monorail_api_proto_users_proto_msgTypes[1]
   114  	if protoimpl.UnsafeEnabled && x != nil {
   115  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   116  		if ms.LoadMessageInfo() == nil {
   117  			ms.StoreMessageInfo(mi)
   118  		}
   119  		return ms
   120  	}
   121  	return mi.MessageOf(x)
   122  }
   123  
   124  // Deprecated: Use BatchGetUsersRequest.ProtoReflect.Descriptor instead.
   125  func (*BatchGetUsersRequest) Descriptor() ([]byte, []int) {
   126  	return file_go_chromium_org_luci_analysis_internal_bugs_monorail_api_proto_users_proto_rawDescGZIP(), []int{1}
   127  }
   128  
   129  func (x *BatchGetUsersRequest) GetNames() []string {
   130  	if x != nil {
   131  		return x.Names
   132  	}
   133  	return nil
   134  }
   135  
   136  // The response message for Users.BatchGetUsers.
   137  // Next available tag: 2
   138  type BatchGetUsersResponse struct {
   139  	state         protoimpl.MessageState
   140  	sizeCache     protoimpl.SizeCache
   141  	unknownFields protoimpl.UnknownFields
   142  
   143  	// The users that were requested.
   144  	Users []*User `protobuf:"bytes,1,rep,name=users,proto3" json:"users,omitempty"`
   145  }
   146  
   147  func (x *BatchGetUsersResponse) Reset() {
   148  	*x = BatchGetUsersResponse{}
   149  	if protoimpl.UnsafeEnabled {
   150  		mi := &file_go_chromium_org_luci_analysis_internal_bugs_monorail_api_proto_users_proto_msgTypes[2]
   151  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   152  		ms.StoreMessageInfo(mi)
   153  	}
   154  }
   155  
   156  func (x *BatchGetUsersResponse) String() string {
   157  	return protoimpl.X.MessageStringOf(x)
   158  }
   159  
   160  func (*BatchGetUsersResponse) ProtoMessage() {}
   161  
   162  func (x *BatchGetUsersResponse) ProtoReflect() protoreflect.Message {
   163  	mi := &file_go_chromium_org_luci_analysis_internal_bugs_monorail_api_proto_users_proto_msgTypes[2]
   164  	if protoimpl.UnsafeEnabled && x != nil {
   165  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   166  		if ms.LoadMessageInfo() == nil {
   167  			ms.StoreMessageInfo(mi)
   168  		}
   169  		return ms
   170  	}
   171  	return mi.MessageOf(x)
   172  }
   173  
   174  // Deprecated: Use BatchGetUsersResponse.ProtoReflect.Descriptor instead.
   175  func (*BatchGetUsersResponse) Descriptor() ([]byte, []int) {
   176  	return file_go_chromium_org_luci_analysis_internal_bugs_monorail_api_proto_users_proto_rawDescGZIP(), []int{2}
   177  }
   178  
   179  func (x *BatchGetUsersResponse) GetUsers() []*User {
   180  	if x != nil {
   181  		return x.Users
   182  	}
   183  	return nil
   184  }
   185  
   186  // The request message for Users.UpdateUser.
   187  // Next available tag: 3
   188  type UpdateUserRequest struct {
   189  	state         protoimpl.MessageState
   190  	sizeCache     protoimpl.SizeCache
   191  	unknownFields protoimpl.UnknownFields
   192  
   193  	// The user's `name` field is used to identify the user to be updated.
   194  	User *User `protobuf:"bytes,1,opt,name=user,proto3" json:"user,omitempty"`
   195  	// The list of fields to be updated.
   196  	UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"`
   197  }
   198  
   199  func (x *UpdateUserRequest) Reset() {
   200  	*x = UpdateUserRequest{}
   201  	if protoimpl.UnsafeEnabled {
   202  		mi := &file_go_chromium_org_luci_analysis_internal_bugs_monorail_api_proto_users_proto_msgTypes[3]
   203  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   204  		ms.StoreMessageInfo(mi)
   205  	}
   206  }
   207  
   208  func (x *UpdateUserRequest) String() string {
   209  	return protoimpl.X.MessageStringOf(x)
   210  }
   211  
   212  func (*UpdateUserRequest) ProtoMessage() {}
   213  
   214  func (x *UpdateUserRequest) ProtoReflect() protoreflect.Message {
   215  	mi := &file_go_chromium_org_luci_analysis_internal_bugs_monorail_api_proto_users_proto_msgTypes[3]
   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 UpdateUserRequest.ProtoReflect.Descriptor instead.
   227  func (*UpdateUserRequest) Descriptor() ([]byte, []int) {
   228  	return file_go_chromium_org_luci_analysis_internal_bugs_monorail_api_proto_users_proto_rawDescGZIP(), []int{3}
   229  }
   230  
   231  func (x *UpdateUserRequest) GetUser() *User {
   232  	if x != nil {
   233  		return x.User
   234  	}
   235  	return nil
   236  }
   237  
   238  func (x *UpdateUserRequest) GetUpdateMask() *fieldmaskpb.FieldMask {
   239  	if x != nil {
   240  		return x.UpdateMask
   241  	}
   242  	return nil
   243  }
   244  
   245  // The request message for Users.StarProject.
   246  // Next available tag: 2
   247  type StarProjectRequest struct {
   248  	state         protoimpl.MessageState
   249  	sizeCache     protoimpl.SizeCache
   250  	unknownFields protoimpl.UnknownFields
   251  
   252  	// The resource name for the Project to star.
   253  	Project string `protobuf:"bytes,1,opt,name=project,proto3" json:"project,omitempty"`
   254  }
   255  
   256  func (x *StarProjectRequest) Reset() {
   257  	*x = StarProjectRequest{}
   258  	if protoimpl.UnsafeEnabled {
   259  		mi := &file_go_chromium_org_luci_analysis_internal_bugs_monorail_api_proto_users_proto_msgTypes[4]
   260  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   261  		ms.StoreMessageInfo(mi)
   262  	}
   263  }
   264  
   265  func (x *StarProjectRequest) String() string {
   266  	return protoimpl.X.MessageStringOf(x)
   267  }
   268  
   269  func (*StarProjectRequest) ProtoMessage() {}
   270  
   271  func (x *StarProjectRequest) ProtoReflect() protoreflect.Message {
   272  	mi := &file_go_chromium_org_luci_analysis_internal_bugs_monorail_api_proto_users_proto_msgTypes[4]
   273  	if protoimpl.UnsafeEnabled && x != nil {
   274  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   275  		if ms.LoadMessageInfo() == nil {
   276  			ms.StoreMessageInfo(mi)
   277  		}
   278  		return ms
   279  	}
   280  	return mi.MessageOf(x)
   281  }
   282  
   283  // Deprecated: Use StarProjectRequest.ProtoReflect.Descriptor instead.
   284  func (*StarProjectRequest) Descriptor() ([]byte, []int) {
   285  	return file_go_chromium_org_luci_analysis_internal_bugs_monorail_api_proto_users_proto_rawDescGZIP(), []int{4}
   286  }
   287  
   288  func (x *StarProjectRequest) GetProject() string {
   289  	if x != nil {
   290  		return x.Project
   291  	}
   292  	return ""
   293  }
   294  
   295  // The request message for Users.UnStarProject.
   296  // Next available tag: 2
   297  type UnStarProjectRequest struct {
   298  	state         protoimpl.MessageState
   299  	sizeCache     protoimpl.SizeCache
   300  	unknownFields protoimpl.UnknownFields
   301  
   302  	// The resource name for the Project to unstar.
   303  	Project string `protobuf:"bytes,1,opt,name=project,proto3" json:"project,omitempty"`
   304  }
   305  
   306  func (x *UnStarProjectRequest) Reset() {
   307  	*x = UnStarProjectRequest{}
   308  	if protoimpl.UnsafeEnabled {
   309  		mi := &file_go_chromium_org_luci_analysis_internal_bugs_monorail_api_proto_users_proto_msgTypes[5]
   310  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   311  		ms.StoreMessageInfo(mi)
   312  	}
   313  }
   314  
   315  func (x *UnStarProjectRequest) String() string {
   316  	return protoimpl.X.MessageStringOf(x)
   317  }
   318  
   319  func (*UnStarProjectRequest) ProtoMessage() {}
   320  
   321  func (x *UnStarProjectRequest) ProtoReflect() protoreflect.Message {
   322  	mi := &file_go_chromium_org_luci_analysis_internal_bugs_monorail_api_proto_users_proto_msgTypes[5]
   323  	if protoimpl.UnsafeEnabled && x != nil {
   324  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   325  		if ms.LoadMessageInfo() == nil {
   326  			ms.StoreMessageInfo(mi)
   327  		}
   328  		return ms
   329  	}
   330  	return mi.MessageOf(x)
   331  }
   332  
   333  // Deprecated: Use UnStarProjectRequest.ProtoReflect.Descriptor instead.
   334  func (*UnStarProjectRequest) Descriptor() ([]byte, []int) {
   335  	return file_go_chromium_org_luci_analysis_internal_bugs_monorail_api_proto_users_proto_rawDescGZIP(), []int{5}
   336  }
   337  
   338  func (x *UnStarProjectRequest) GetProject() string {
   339  	if x != nil {
   340  		return x.Project
   341  	}
   342  	return ""
   343  }
   344  
   345  // The request message for Users.ListProjectStars.
   346  // Next available tag: 4
   347  type ListProjectStarsRequest struct {
   348  	state         protoimpl.MessageState
   349  	sizeCache     protoimpl.SizeCache
   350  	unknownFields protoimpl.UnknownFields
   351  
   352  	// The resource name for the user having stars listed.
   353  	Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
   354  	// The maximum number of items to return. The service may return fewer than
   355  	// this value.
   356  	// If unspecified, at most 1000 items will be returned.
   357  	PageSize int32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
   358  	// A page token, received from a previous `ListProjectStars` call.
   359  	// Provide this to retrieve the subsequent page.
   360  	//
   361  	// When paginating, all other parameters provided to `ListProjectStars` must
   362  	// match the call that provided the page token.
   363  	PageToken string `protobuf:"bytes,3,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
   364  }
   365  
   366  func (x *ListProjectStarsRequest) Reset() {
   367  	*x = ListProjectStarsRequest{}
   368  	if protoimpl.UnsafeEnabled {
   369  		mi := &file_go_chromium_org_luci_analysis_internal_bugs_monorail_api_proto_users_proto_msgTypes[6]
   370  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   371  		ms.StoreMessageInfo(mi)
   372  	}
   373  }
   374  
   375  func (x *ListProjectStarsRequest) String() string {
   376  	return protoimpl.X.MessageStringOf(x)
   377  }
   378  
   379  func (*ListProjectStarsRequest) ProtoMessage() {}
   380  
   381  func (x *ListProjectStarsRequest) ProtoReflect() protoreflect.Message {
   382  	mi := &file_go_chromium_org_luci_analysis_internal_bugs_monorail_api_proto_users_proto_msgTypes[6]
   383  	if protoimpl.UnsafeEnabled && x != nil {
   384  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   385  		if ms.LoadMessageInfo() == nil {
   386  			ms.StoreMessageInfo(mi)
   387  		}
   388  		return ms
   389  	}
   390  	return mi.MessageOf(x)
   391  }
   392  
   393  // Deprecated: Use ListProjectStarsRequest.ProtoReflect.Descriptor instead.
   394  func (*ListProjectStarsRequest) Descriptor() ([]byte, []int) {
   395  	return file_go_chromium_org_luci_analysis_internal_bugs_monorail_api_proto_users_proto_rawDescGZIP(), []int{6}
   396  }
   397  
   398  func (x *ListProjectStarsRequest) GetParent() string {
   399  	if x != nil {
   400  		return x.Parent
   401  	}
   402  	return ""
   403  }
   404  
   405  func (x *ListProjectStarsRequest) GetPageSize() int32 {
   406  	if x != nil {
   407  		return x.PageSize
   408  	}
   409  	return 0
   410  }
   411  
   412  func (x *ListProjectStarsRequest) GetPageToken() string {
   413  	if x != nil {
   414  		return x.PageToken
   415  	}
   416  	return ""
   417  }
   418  
   419  // The response message for Users.ListProjectStars.
   420  // Next available tag: 3
   421  type ListProjectStarsResponse struct {
   422  	state         protoimpl.MessageState
   423  	sizeCache     protoimpl.SizeCache
   424  	unknownFields protoimpl.UnknownFields
   425  
   426  	// Data for each starred project.
   427  	ProjectStars []*ProjectStar `protobuf:"bytes,1,rep,name=project_stars,json=projectStars,proto3" json:"project_stars,omitempty"`
   428  	// A token, which can be sent as `page_token` to retrieve the next page.
   429  	// If this field is omitted, there are no subsequent pages.
   430  	NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
   431  }
   432  
   433  func (x *ListProjectStarsResponse) Reset() {
   434  	*x = ListProjectStarsResponse{}
   435  	if protoimpl.UnsafeEnabled {
   436  		mi := &file_go_chromium_org_luci_analysis_internal_bugs_monorail_api_proto_users_proto_msgTypes[7]
   437  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   438  		ms.StoreMessageInfo(mi)
   439  	}
   440  }
   441  
   442  func (x *ListProjectStarsResponse) String() string {
   443  	return protoimpl.X.MessageStringOf(x)
   444  }
   445  
   446  func (*ListProjectStarsResponse) ProtoMessage() {}
   447  
   448  func (x *ListProjectStarsResponse) ProtoReflect() protoreflect.Message {
   449  	mi := &file_go_chromium_org_luci_analysis_internal_bugs_monorail_api_proto_users_proto_msgTypes[7]
   450  	if protoimpl.UnsafeEnabled && x != nil {
   451  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   452  		if ms.LoadMessageInfo() == nil {
   453  			ms.StoreMessageInfo(mi)
   454  		}
   455  		return ms
   456  	}
   457  	return mi.MessageOf(x)
   458  }
   459  
   460  // Deprecated: Use ListProjectStarsResponse.ProtoReflect.Descriptor instead.
   461  func (*ListProjectStarsResponse) Descriptor() ([]byte, []int) {
   462  	return file_go_chromium_org_luci_analysis_internal_bugs_monorail_api_proto_users_proto_rawDescGZIP(), []int{7}
   463  }
   464  
   465  func (x *ListProjectStarsResponse) GetProjectStars() []*ProjectStar {
   466  	if x != nil {
   467  		return x.ProjectStars
   468  	}
   469  	return nil
   470  }
   471  
   472  func (x *ListProjectStarsResponse) GetNextPageToken() string {
   473  	if x != nil {
   474  		return x.NextPageToken
   475  	}
   476  	return ""
   477  }
   478  
   479  var File_go_chromium_org_luci_analysis_internal_bugs_monorail_api_proto_users_proto protoreflect.FileDescriptor
   480  
   481  var file_go_chromium_org_luci_analysis_internal_bugs_monorail_api_proto_users_proto_rawDesc = []byte{
   482  	0x0a, 0x4a, 0x67, 0x6f, 0x2e, 0x63, 0x68, 0x72, 0x6f, 0x6d, 0x69, 0x75, 0x6d, 0x2e, 0x6f, 0x72,
   483  	0x67, 0x2f, 0x6c, 0x75, 0x63, 0x69, 0x2f, 0x61, 0x6e, 0x61, 0x6c, 0x79, 0x73, 0x69, 0x73, 0x2f,
   484  	0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x2f, 0x62, 0x75, 0x67, 0x73, 0x2f, 0x6d, 0x6f,
   485  	0x6e, 0x6f, 0x72, 0x61, 0x69, 0x6c, 0x2f, 0x61, 0x70, 0x69, 0x5f, 0x70, 0x72, 0x6f, 0x74, 0x6f,
   486  	0x2f, 0x75, 0x73, 0x65, 0x72, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0b, 0x6d, 0x6f,
   487  	0x6e, 0x6f, 0x72, 0x61, 0x69, 0x6c, 0x2e, 0x76, 0x33, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c,
   488  	0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x5f, 0x62, 0x65, 0x68, 0x61,
   489  	0x76, 0x69, 0x6f, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x19, 0x67, 0x6f, 0x6f, 0x67,
   490  	0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x2e,
   491  	0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x51, 0x67, 0x6f, 0x2e, 0x63, 0x68, 0x72, 0x6f, 0x6d, 0x69,
   492  	0x75, 0x6d, 0x2e, 0x6f, 0x72, 0x67, 0x2f, 0x6c, 0x75, 0x63, 0x69, 0x2f, 0x61, 0x6e, 0x61, 0x6c,
   493  	0x79, 0x73, 0x69, 0x73, 0x2f, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x2f, 0x62, 0x75,
   494  	0x67, 0x73, 0x2f, 0x6d, 0x6f, 0x6e, 0x6f, 0x72, 0x61, 0x69, 0x6c, 0x2f, 0x61, 0x70, 0x69, 0x5f,
   495  	0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x6f, 0x62, 0x6a, 0x65, 0x63,
   496  	0x74, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1b, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65,
   497  	0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x65, 0x6d, 0x70, 0x74, 0x79, 0x2e,
   498  	0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x20, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72,
   499  	0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x5f, 0x6d, 0x61, 0x73,
   500  	0x6b, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x40, 0x0a, 0x0e, 0x47, 0x65, 0x74, 0x55, 0x73,
   501  	0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x2e, 0x0a, 0x04, 0x6e, 0x61, 0x6d,
   502  	0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x1a, 0xe0, 0x41, 0x02, 0xfa, 0x41, 0x14, 0x0a,
   503  	0x12, 0x61, 0x70, 0x69, 0x2e, 0x63, 0x72, 0x62, 0x75, 0x67, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x55,
   504  	0x73, 0x65, 0x72, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x22, 0x48, 0x0a, 0x14, 0x42, 0x61, 0x74,
   505  	0x63, 0x68, 0x47, 0x65, 0x74, 0x55, 0x73, 0x65, 0x72, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73,
   506  	0x74, 0x12, 0x30, 0x0a, 0x05, 0x6e, 0x61, 0x6d, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x09,
   507  	0x42, 0x1a, 0xe0, 0x41, 0x02, 0xfa, 0x41, 0x14, 0x0a, 0x12, 0x61, 0x70, 0x69, 0x2e, 0x63, 0x72,
   508  	0x62, 0x75, 0x67, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x55, 0x73, 0x65, 0x72, 0x52, 0x05, 0x6e, 0x61,
   509  	0x6d, 0x65, 0x73, 0x22, 0x40, 0x0a, 0x15, 0x42, 0x61, 0x74, 0x63, 0x68, 0x47, 0x65, 0x74, 0x55,
   510  	0x73, 0x65, 0x72, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x27, 0x0a, 0x05,
   511  	0x75, 0x73, 0x65, 0x72, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x11, 0x2e, 0x6d, 0x6f,
   512  	0x6e, 0x6f, 0x72, 0x61, 0x69, 0x6c, 0x2e, 0x76, 0x33, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x52, 0x05,
   513  	0x75, 0x73, 0x65, 0x72, 0x73, 0x22, 0x98, 0x01, 0x0a, 0x11, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65,
   514  	0x55, 0x73, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x41, 0x0a, 0x04, 0x75,
   515  	0x73, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x11, 0x2e, 0x6d, 0x6f, 0x6e, 0x6f,
   516  	0x72, 0x61, 0x69, 0x6c, 0x2e, 0x76, 0x33, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x42, 0x1a, 0xe0, 0x41,
   517  	0x02, 0xfa, 0x41, 0x14, 0x0a, 0x12, 0x61, 0x70, 0x69, 0x2e, 0x63, 0x72, 0x62, 0x75, 0x67, 0x2e,
   518  	0x63, 0x6f, 0x6d, 0x2f, 0x55, 0x73, 0x65, 0x72, 0x52, 0x04, 0x75, 0x73, 0x65, 0x72, 0x12, 0x40,
   519  	0x0a, 0x0b, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x5f, 0x6d, 0x61, 0x73, 0x6b, 0x18, 0x02, 0x20,
   520  	0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f,
   521  	0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x4d, 0x61, 0x73, 0x6b, 0x42,
   522  	0x03, 0xe0, 0x41, 0x02, 0x52, 0x0a, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4d, 0x61, 0x73, 0x6b,
   523  	0x22, 0x4d, 0x0a, 0x12, 0x53, 0x74, 0x61, 0x72, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x52,
   524  	0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x37, 0x0a, 0x07, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63,
   525  	0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x1d, 0xe0, 0x41, 0x02, 0xfa, 0x41, 0x17, 0x0a,
   526  	0x15, 0x61, 0x70, 0x69, 0x2e, 0x63, 0x72, 0x62, 0x75, 0x67, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x50,
   527  	0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x52, 0x07, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x22,
   528  	0x4f, 0x0a, 0x14, 0x55, 0x6e, 0x53, 0x74, 0x61, 0x72, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74,
   529  	0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x37, 0x0a, 0x07, 0x70, 0x72, 0x6f, 0x6a, 0x65,
   530  	0x63, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x1d, 0xe0, 0x41, 0x02, 0xfa, 0x41, 0x17,
   531  	0x0a, 0x15, 0x61, 0x70, 0x69, 0x2e, 0x63, 0x72, 0x62, 0x75, 0x67, 0x2e, 0x63, 0x6f, 0x6d, 0x2f,
   532  	0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x52, 0x07, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74,
   533  	0x22, 0x89, 0x01, 0x0a, 0x17, 0x4c, 0x69, 0x73, 0x74, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74,
   534  	0x53, 0x74, 0x61, 0x72, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x32, 0x0a, 0x06,
   535  	0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x1a, 0xe0, 0x41,
   536  	0x02, 0xfa, 0x41, 0x14, 0x0a, 0x12, 0x61, 0x70, 0x69, 0x2e, 0x63, 0x72, 0x62, 0x75, 0x67, 0x2e,
   537  	0x63, 0x6f, 0x6d, 0x2f, 0x55, 0x73, 0x65, 0x72, 0x52, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74,
   538  	0x12, 0x1b, 0x0a, 0x09, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x02, 0x20,
   539  	0x01, 0x28, 0x05, 0x52, 0x08, 0x70, 0x61, 0x67, 0x65, 0x53, 0x69, 0x7a, 0x65, 0x12, 0x1d, 0x0a,
   540  	0x0a, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28,
   541  	0x09, 0x52, 0x09, 0x70, 0x61, 0x67, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x22, 0x81, 0x01, 0x0a,
   542  	0x18, 0x4c, 0x69, 0x73, 0x74, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x53, 0x74, 0x61, 0x72,
   543  	0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x3d, 0x0a, 0x0d, 0x70, 0x72, 0x6f,
   544  	0x6a, 0x65, 0x63, 0x74, 0x5f, 0x73, 0x74, 0x61, 0x72, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b,
   545  	0x32, 0x18, 0x2e, 0x6d, 0x6f, 0x6e, 0x6f, 0x72, 0x61, 0x69, 0x6c, 0x2e, 0x76, 0x33, 0x2e, 0x50,
   546  	0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x53, 0x74, 0x61, 0x72, 0x52, 0x0c, 0x70, 0x72, 0x6f, 0x6a,
   547  	0x65, 0x63, 0x74, 0x53, 0x74, 0x61, 0x72, 0x73, 0x12, 0x26, 0x0a, 0x0f, 0x6e, 0x65, 0x78, 0x74,
   548  	0x5f, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28,
   549  	0x09, 0x52, 0x0d, 0x6e, 0x65, 0x78, 0x74, 0x50, 0x61, 0x67, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e,
   550  	0x32, 0xde, 0x03, 0x0a, 0x05, 0x55, 0x73, 0x65, 0x72, 0x73, 0x12, 0x3b, 0x0a, 0x07, 0x47, 0x65,
   551  	0x74, 0x55, 0x73, 0x65, 0x72, 0x12, 0x1b, 0x2e, 0x6d, 0x6f, 0x6e, 0x6f, 0x72, 0x61, 0x69, 0x6c,
   552  	0x2e, 0x76, 0x33, 0x2e, 0x47, 0x65, 0x74, 0x55, 0x73, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65,
   553  	0x73, 0x74, 0x1a, 0x11, 0x2e, 0x6d, 0x6f, 0x6e, 0x6f, 0x72, 0x61, 0x69, 0x6c, 0x2e, 0x76, 0x33,
   554  	0x2e, 0x55, 0x73, 0x65, 0x72, 0x22, 0x00, 0x12, 0x58, 0x0a, 0x0d, 0x42, 0x61, 0x74, 0x63, 0x68,
   555  	0x47, 0x65, 0x74, 0x55, 0x73, 0x65, 0x72, 0x73, 0x12, 0x21, 0x2e, 0x6d, 0x6f, 0x6e, 0x6f, 0x72,
   556  	0x61, 0x69, 0x6c, 0x2e, 0x76, 0x33, 0x2e, 0x42, 0x61, 0x74, 0x63, 0x68, 0x47, 0x65, 0x74, 0x55,
   557  	0x73, 0x65, 0x72, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x22, 0x2e, 0x6d, 0x6f,
   558  	0x6e, 0x6f, 0x72, 0x61, 0x69, 0x6c, 0x2e, 0x76, 0x33, 0x2e, 0x42, 0x61, 0x74, 0x63, 0x68, 0x47,
   559  	0x65, 0x74, 0x55, 0x73, 0x65, 0x72, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22,
   560  	0x00, 0x12, 0x41, 0x0a, 0x0a, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x55, 0x73, 0x65, 0x72, 0x12,
   561  	0x1e, 0x2e, 0x6d, 0x6f, 0x6e, 0x6f, 0x72, 0x61, 0x69, 0x6c, 0x2e, 0x76, 0x33, 0x2e, 0x55, 0x70,
   562  	0x64, 0x61, 0x74, 0x65, 0x55, 0x73, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a,
   563  	0x11, 0x2e, 0x6d, 0x6f, 0x6e, 0x6f, 0x72, 0x61, 0x69, 0x6c, 0x2e, 0x76, 0x33, 0x2e, 0x55, 0x73,
   564  	0x65, 0x72, 0x22, 0x00, 0x12, 0x4a, 0x0a, 0x0b, 0x53, 0x74, 0x61, 0x72, 0x50, 0x72, 0x6f, 0x6a,
   565  	0x65, 0x63, 0x74, 0x12, 0x1f, 0x2e, 0x6d, 0x6f, 0x6e, 0x6f, 0x72, 0x61, 0x69, 0x6c, 0x2e, 0x76,
   566  	0x33, 0x2e, 0x53, 0x74, 0x61, 0x72, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x52, 0x65, 0x71,
   567  	0x75, 0x65, 0x73, 0x74, 0x1a, 0x18, 0x2e, 0x6d, 0x6f, 0x6e, 0x6f, 0x72, 0x61, 0x69, 0x6c, 0x2e,
   568  	0x76, 0x33, 0x2e, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x53, 0x74, 0x61, 0x72, 0x22, 0x00,
   569  	0x12, 0x4c, 0x0a, 0x0d, 0x55, 0x6e, 0x53, 0x74, 0x61, 0x72, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63,
   570  	0x74, 0x12, 0x21, 0x2e, 0x6d, 0x6f, 0x6e, 0x6f, 0x72, 0x61, 0x69, 0x6c, 0x2e, 0x76, 0x33, 0x2e,
   571  	0x55, 0x6e, 0x53, 0x74, 0x61, 0x72, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x52, 0x65, 0x71,
   572  	0x75, 0x65, 0x73, 0x74, 0x1a, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72,
   573  	0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x22, 0x00, 0x12, 0x61,
   574  	0x0a, 0x10, 0x4c, 0x69, 0x73, 0x74, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x53, 0x74, 0x61,
   575  	0x72, 0x73, 0x12, 0x24, 0x2e, 0x6d, 0x6f, 0x6e, 0x6f, 0x72, 0x61, 0x69, 0x6c, 0x2e, 0x76, 0x33,
   576  	0x2e, 0x4c, 0x69, 0x73, 0x74, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x53, 0x74, 0x61, 0x72,
   577  	0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x25, 0x2e, 0x6d, 0x6f, 0x6e, 0x6f, 0x72,
   578  	0x61, 0x69, 0x6c, 0x2e, 0x76, 0x33, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x50, 0x72, 0x6f, 0x6a, 0x65,
   579  	0x63, 0x74, 0x53, 0x74, 0x61, 0x72, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22,
   580  	0x00, 0x42, 0x40, 0x5a, 0x3e, 0x67, 0x6f, 0x2e, 0x63, 0x68, 0x72, 0x6f, 0x6d, 0x69, 0x75, 0x6d,
   581  	0x2e, 0x6f, 0x72, 0x67, 0x2f, 0x6c, 0x75, 0x63, 0x69, 0x2f, 0x61, 0x6e, 0x61, 0x6c, 0x79, 0x73,
   582  	0x69, 0x73, 0x2f, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x2f, 0x62, 0x75, 0x67, 0x73,
   583  	0x2f, 0x6d, 0x6f, 0x6e, 0x6f, 0x72, 0x61, 0x69, 0x6c, 0x2f, 0x61, 0x70, 0x69, 0x5f, 0x70, 0x72,
   584  	0x6f, 0x74, 0x6f, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
   585  }
   586  
   587  var (
   588  	file_go_chromium_org_luci_analysis_internal_bugs_monorail_api_proto_users_proto_rawDescOnce sync.Once
   589  	file_go_chromium_org_luci_analysis_internal_bugs_monorail_api_proto_users_proto_rawDescData = file_go_chromium_org_luci_analysis_internal_bugs_monorail_api_proto_users_proto_rawDesc
   590  )
   591  
   592  func file_go_chromium_org_luci_analysis_internal_bugs_monorail_api_proto_users_proto_rawDescGZIP() []byte {
   593  	file_go_chromium_org_luci_analysis_internal_bugs_monorail_api_proto_users_proto_rawDescOnce.Do(func() {
   594  		file_go_chromium_org_luci_analysis_internal_bugs_monorail_api_proto_users_proto_rawDescData = protoimpl.X.CompressGZIP(file_go_chromium_org_luci_analysis_internal_bugs_monorail_api_proto_users_proto_rawDescData)
   595  	})
   596  	return file_go_chromium_org_luci_analysis_internal_bugs_monorail_api_proto_users_proto_rawDescData
   597  }
   598  
   599  var file_go_chromium_org_luci_analysis_internal_bugs_monorail_api_proto_users_proto_msgTypes = make([]protoimpl.MessageInfo, 8)
   600  var file_go_chromium_org_luci_analysis_internal_bugs_monorail_api_proto_users_proto_goTypes = []interface{}{
   601  	(*GetUserRequest)(nil),           // 0: monorail.v3.GetUserRequest
   602  	(*BatchGetUsersRequest)(nil),     // 1: monorail.v3.BatchGetUsersRequest
   603  	(*BatchGetUsersResponse)(nil),    // 2: monorail.v3.BatchGetUsersResponse
   604  	(*UpdateUserRequest)(nil),        // 3: monorail.v3.UpdateUserRequest
   605  	(*StarProjectRequest)(nil),       // 4: monorail.v3.StarProjectRequest
   606  	(*UnStarProjectRequest)(nil),     // 5: monorail.v3.UnStarProjectRequest
   607  	(*ListProjectStarsRequest)(nil),  // 6: monorail.v3.ListProjectStarsRequest
   608  	(*ListProjectStarsResponse)(nil), // 7: monorail.v3.ListProjectStarsResponse
   609  	(*User)(nil),                     // 8: monorail.v3.User
   610  	(*fieldmaskpb.FieldMask)(nil),    // 9: google.protobuf.FieldMask
   611  	(*ProjectStar)(nil),              // 10: monorail.v3.ProjectStar
   612  	(*emptypb.Empty)(nil),            // 11: google.protobuf.Empty
   613  }
   614  var file_go_chromium_org_luci_analysis_internal_bugs_monorail_api_proto_users_proto_depIdxs = []int32{
   615  	8,  // 0: monorail.v3.BatchGetUsersResponse.users:type_name -> monorail.v3.User
   616  	8,  // 1: monorail.v3.UpdateUserRequest.user:type_name -> monorail.v3.User
   617  	9,  // 2: monorail.v3.UpdateUserRequest.update_mask:type_name -> google.protobuf.FieldMask
   618  	10, // 3: monorail.v3.ListProjectStarsResponse.project_stars:type_name -> monorail.v3.ProjectStar
   619  	0,  // 4: monorail.v3.Users.GetUser:input_type -> monorail.v3.GetUserRequest
   620  	1,  // 5: monorail.v3.Users.BatchGetUsers:input_type -> monorail.v3.BatchGetUsersRequest
   621  	3,  // 6: monorail.v3.Users.UpdateUser:input_type -> monorail.v3.UpdateUserRequest
   622  	4,  // 7: monorail.v3.Users.StarProject:input_type -> monorail.v3.StarProjectRequest
   623  	5,  // 8: monorail.v3.Users.UnStarProject:input_type -> monorail.v3.UnStarProjectRequest
   624  	6,  // 9: monorail.v3.Users.ListProjectStars:input_type -> monorail.v3.ListProjectStarsRequest
   625  	8,  // 10: monorail.v3.Users.GetUser:output_type -> monorail.v3.User
   626  	2,  // 11: monorail.v3.Users.BatchGetUsers:output_type -> monorail.v3.BatchGetUsersResponse
   627  	8,  // 12: monorail.v3.Users.UpdateUser:output_type -> monorail.v3.User
   628  	10, // 13: monorail.v3.Users.StarProject:output_type -> monorail.v3.ProjectStar
   629  	11, // 14: monorail.v3.Users.UnStarProject:output_type -> google.protobuf.Empty
   630  	7,  // 15: monorail.v3.Users.ListProjectStars:output_type -> monorail.v3.ListProjectStarsResponse
   631  	10, // [10:16] is the sub-list for method output_type
   632  	4,  // [4:10] is the sub-list for method input_type
   633  	4,  // [4:4] is the sub-list for extension type_name
   634  	4,  // [4:4] is the sub-list for extension extendee
   635  	0,  // [0:4] is the sub-list for field type_name
   636  }
   637  
   638  func init() { file_go_chromium_org_luci_analysis_internal_bugs_monorail_api_proto_users_proto_init() }
   639  func file_go_chromium_org_luci_analysis_internal_bugs_monorail_api_proto_users_proto_init() {
   640  	if File_go_chromium_org_luci_analysis_internal_bugs_monorail_api_proto_users_proto != nil {
   641  		return
   642  	}
   643  	file_go_chromium_org_luci_analysis_internal_bugs_monorail_api_proto_user_objects_proto_init()
   644  	if !protoimpl.UnsafeEnabled {
   645  		file_go_chromium_org_luci_analysis_internal_bugs_monorail_api_proto_users_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
   646  			switch v := v.(*GetUserRequest); i {
   647  			case 0:
   648  				return &v.state
   649  			case 1:
   650  				return &v.sizeCache
   651  			case 2:
   652  				return &v.unknownFields
   653  			default:
   654  				return nil
   655  			}
   656  		}
   657  		file_go_chromium_org_luci_analysis_internal_bugs_monorail_api_proto_users_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
   658  			switch v := v.(*BatchGetUsersRequest); i {
   659  			case 0:
   660  				return &v.state
   661  			case 1:
   662  				return &v.sizeCache
   663  			case 2:
   664  				return &v.unknownFields
   665  			default:
   666  				return nil
   667  			}
   668  		}
   669  		file_go_chromium_org_luci_analysis_internal_bugs_monorail_api_proto_users_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
   670  			switch v := v.(*BatchGetUsersResponse); i {
   671  			case 0:
   672  				return &v.state
   673  			case 1:
   674  				return &v.sizeCache
   675  			case 2:
   676  				return &v.unknownFields
   677  			default:
   678  				return nil
   679  			}
   680  		}
   681  		file_go_chromium_org_luci_analysis_internal_bugs_monorail_api_proto_users_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
   682  			switch v := v.(*UpdateUserRequest); i {
   683  			case 0:
   684  				return &v.state
   685  			case 1:
   686  				return &v.sizeCache
   687  			case 2:
   688  				return &v.unknownFields
   689  			default:
   690  				return nil
   691  			}
   692  		}
   693  		file_go_chromium_org_luci_analysis_internal_bugs_monorail_api_proto_users_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
   694  			switch v := v.(*StarProjectRequest); i {
   695  			case 0:
   696  				return &v.state
   697  			case 1:
   698  				return &v.sizeCache
   699  			case 2:
   700  				return &v.unknownFields
   701  			default:
   702  				return nil
   703  			}
   704  		}
   705  		file_go_chromium_org_luci_analysis_internal_bugs_monorail_api_proto_users_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
   706  			switch v := v.(*UnStarProjectRequest); i {
   707  			case 0:
   708  				return &v.state
   709  			case 1:
   710  				return &v.sizeCache
   711  			case 2:
   712  				return &v.unknownFields
   713  			default:
   714  				return nil
   715  			}
   716  		}
   717  		file_go_chromium_org_luci_analysis_internal_bugs_monorail_api_proto_users_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} {
   718  			switch v := v.(*ListProjectStarsRequest); i {
   719  			case 0:
   720  				return &v.state
   721  			case 1:
   722  				return &v.sizeCache
   723  			case 2:
   724  				return &v.unknownFields
   725  			default:
   726  				return nil
   727  			}
   728  		}
   729  		file_go_chromium_org_luci_analysis_internal_bugs_monorail_api_proto_users_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} {
   730  			switch v := v.(*ListProjectStarsResponse); i {
   731  			case 0:
   732  				return &v.state
   733  			case 1:
   734  				return &v.sizeCache
   735  			case 2:
   736  				return &v.unknownFields
   737  			default:
   738  				return nil
   739  			}
   740  		}
   741  	}
   742  	type x struct{}
   743  	out := protoimpl.TypeBuilder{
   744  		File: protoimpl.DescBuilder{
   745  			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
   746  			RawDescriptor: file_go_chromium_org_luci_analysis_internal_bugs_monorail_api_proto_users_proto_rawDesc,
   747  			NumEnums:      0,
   748  			NumMessages:   8,
   749  			NumExtensions: 0,
   750  			NumServices:   1,
   751  		},
   752  		GoTypes:           file_go_chromium_org_luci_analysis_internal_bugs_monorail_api_proto_users_proto_goTypes,
   753  		DependencyIndexes: file_go_chromium_org_luci_analysis_internal_bugs_monorail_api_proto_users_proto_depIdxs,
   754  		MessageInfos:      file_go_chromium_org_luci_analysis_internal_bugs_monorail_api_proto_users_proto_msgTypes,
   755  	}.Build()
   756  	File_go_chromium_org_luci_analysis_internal_bugs_monorail_api_proto_users_proto = out.File
   757  	file_go_chromium_org_luci_analysis_internal_bugs_monorail_api_proto_users_proto_rawDesc = nil
   758  	file_go_chromium_org_luci_analysis_internal_bugs_monorail_api_proto_users_proto_goTypes = nil
   759  	file_go_chromium_org_luci_analysis_internal_bugs_monorail_api_proto_users_proto_depIdxs = nil
   760  }
   761  
   762  // Reference imports to suppress errors if they are not otherwise used.
   763  var _ context.Context
   764  var _ grpc.ClientConnInterface
   765  
   766  // This is a compile-time assertion to ensure that this generated file
   767  // is compatible with the grpc package it is being compiled against.
   768  const _ = grpc.SupportPackageIsVersion6
   769  
   770  // UsersClient is the client API for Users service.
   771  //
   772  // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
   773  type UsersClient interface {
   774  	// status: ALPHA
   775  	// Returns the requested User.
   776  	//
   777  	// Raises:
   778  	//
   779  	//	NOT_FOUND is the user is not found.
   780  	//	INVALID_ARGUMENT if the `name` is invalid.
   781  	GetUser(ctx context.Context, in *GetUserRequest, opts ...grpc.CallOption) (*User, error)
   782  	// status: ALPHA
   783  	// Returns all of the requested Users.
   784  	//
   785  	// Raises:
   786  	//
   787  	//	NOT_FOUND if any users are not found.
   788  	//	INVALID_ARGUMENT if any `names` are invalid.
   789  	BatchGetUsers(ctx context.Context, in *BatchGetUsersRequest, opts ...grpc.CallOption) (*BatchGetUsersResponse, error)
   790  	// status: NOT READY
   791  	// Updates a User.
   792  	//
   793  	// Raises:
   794  	//
   795  	//	NOT_FOUND if the user is not found.
   796  	//	PERMISSION_DENIED if the requester is not allowed to update the user.
   797  	//	INVALID_ARGUMENT if required fields are missing or fields are invalid.
   798  	UpdateUser(ctx context.Context, in *UpdateUserRequest, opts ...grpc.CallOption) (*User, error)
   799  	// status: NOT READY
   800  	// Stars a given project for the requestor.
   801  	//
   802  	// Raises:
   803  	//
   804  	//	NOT_FOUND if the requested project is not found.
   805  	//	INVALID_ARGUMENT if the given `project` is not valid.
   806  	StarProject(ctx context.Context, in *StarProjectRequest, opts ...grpc.CallOption) (*ProjectStar, error)
   807  	// status: NOT READY
   808  	// Unstars a given project for the requestor.
   809  	//
   810  	// Raises:
   811  	//
   812  	//	NOT_FOUND if the requested project is not found.
   813  	//	INVALID_ARGUMENT if the given `project` is not valid.
   814  	UnStarProject(ctx context.Context, in *UnStarProjectRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
   815  	// status: NOT READY
   816  	// Lists all of a user's starred projects.
   817  	//
   818  	// Raises:
   819  	//
   820  	//	NOT_FOUND if the requested user is not found.
   821  	//	INVALID_ARGUMENT if the given `parent` is not valid.
   822  	ListProjectStars(ctx context.Context, in *ListProjectStarsRequest, opts ...grpc.CallOption) (*ListProjectStarsResponse, error)
   823  }
   824  type usersPRPCClient struct {
   825  	client *prpc.Client
   826  }
   827  
   828  func NewUsersPRPCClient(client *prpc.Client) UsersClient {
   829  	return &usersPRPCClient{client}
   830  }
   831  
   832  func (c *usersPRPCClient) GetUser(ctx context.Context, in *GetUserRequest, opts ...grpc.CallOption) (*User, error) {
   833  	out := new(User)
   834  	err := c.client.Call(ctx, "monorail.v3.Users", "GetUser", in, out, opts...)
   835  	if err != nil {
   836  		return nil, err
   837  	}
   838  	return out, nil
   839  }
   840  
   841  func (c *usersPRPCClient) BatchGetUsers(ctx context.Context, in *BatchGetUsersRequest, opts ...grpc.CallOption) (*BatchGetUsersResponse, error) {
   842  	out := new(BatchGetUsersResponse)
   843  	err := c.client.Call(ctx, "monorail.v3.Users", "BatchGetUsers", in, out, opts...)
   844  	if err != nil {
   845  		return nil, err
   846  	}
   847  	return out, nil
   848  }
   849  
   850  func (c *usersPRPCClient) UpdateUser(ctx context.Context, in *UpdateUserRequest, opts ...grpc.CallOption) (*User, error) {
   851  	out := new(User)
   852  	err := c.client.Call(ctx, "monorail.v3.Users", "UpdateUser", in, out, opts...)
   853  	if err != nil {
   854  		return nil, err
   855  	}
   856  	return out, nil
   857  }
   858  
   859  func (c *usersPRPCClient) StarProject(ctx context.Context, in *StarProjectRequest, opts ...grpc.CallOption) (*ProjectStar, error) {
   860  	out := new(ProjectStar)
   861  	err := c.client.Call(ctx, "monorail.v3.Users", "StarProject", in, out, opts...)
   862  	if err != nil {
   863  		return nil, err
   864  	}
   865  	return out, nil
   866  }
   867  
   868  func (c *usersPRPCClient) UnStarProject(ctx context.Context, in *UnStarProjectRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) {
   869  	out := new(emptypb.Empty)
   870  	err := c.client.Call(ctx, "monorail.v3.Users", "UnStarProject", in, out, opts...)
   871  	if err != nil {
   872  		return nil, err
   873  	}
   874  	return out, nil
   875  }
   876  
   877  func (c *usersPRPCClient) ListProjectStars(ctx context.Context, in *ListProjectStarsRequest, opts ...grpc.CallOption) (*ListProjectStarsResponse, error) {
   878  	out := new(ListProjectStarsResponse)
   879  	err := c.client.Call(ctx, "monorail.v3.Users", "ListProjectStars", in, out, opts...)
   880  	if err != nil {
   881  		return nil, err
   882  	}
   883  	return out, nil
   884  }
   885  
   886  type usersClient struct {
   887  	cc grpc.ClientConnInterface
   888  }
   889  
   890  func NewUsersClient(cc grpc.ClientConnInterface) UsersClient {
   891  	return &usersClient{cc}
   892  }
   893  
   894  func (c *usersClient) GetUser(ctx context.Context, in *GetUserRequest, opts ...grpc.CallOption) (*User, error) {
   895  	out := new(User)
   896  	err := c.cc.Invoke(ctx, "/monorail.v3.Users/GetUser", in, out, opts...)
   897  	if err != nil {
   898  		return nil, err
   899  	}
   900  	return out, nil
   901  }
   902  
   903  func (c *usersClient) BatchGetUsers(ctx context.Context, in *BatchGetUsersRequest, opts ...grpc.CallOption) (*BatchGetUsersResponse, error) {
   904  	out := new(BatchGetUsersResponse)
   905  	err := c.cc.Invoke(ctx, "/monorail.v3.Users/BatchGetUsers", in, out, opts...)
   906  	if err != nil {
   907  		return nil, err
   908  	}
   909  	return out, nil
   910  }
   911  
   912  func (c *usersClient) UpdateUser(ctx context.Context, in *UpdateUserRequest, opts ...grpc.CallOption) (*User, error) {
   913  	out := new(User)
   914  	err := c.cc.Invoke(ctx, "/monorail.v3.Users/UpdateUser", in, out, opts...)
   915  	if err != nil {
   916  		return nil, err
   917  	}
   918  	return out, nil
   919  }
   920  
   921  func (c *usersClient) StarProject(ctx context.Context, in *StarProjectRequest, opts ...grpc.CallOption) (*ProjectStar, error) {
   922  	out := new(ProjectStar)
   923  	err := c.cc.Invoke(ctx, "/monorail.v3.Users/StarProject", in, out, opts...)
   924  	if err != nil {
   925  		return nil, err
   926  	}
   927  	return out, nil
   928  }
   929  
   930  func (c *usersClient) UnStarProject(ctx context.Context, in *UnStarProjectRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) {
   931  	out := new(emptypb.Empty)
   932  	err := c.cc.Invoke(ctx, "/monorail.v3.Users/UnStarProject", in, out, opts...)
   933  	if err != nil {
   934  		return nil, err
   935  	}
   936  	return out, nil
   937  }
   938  
   939  func (c *usersClient) ListProjectStars(ctx context.Context, in *ListProjectStarsRequest, opts ...grpc.CallOption) (*ListProjectStarsResponse, error) {
   940  	out := new(ListProjectStarsResponse)
   941  	err := c.cc.Invoke(ctx, "/monorail.v3.Users/ListProjectStars", in, out, opts...)
   942  	if err != nil {
   943  		return nil, err
   944  	}
   945  	return out, nil
   946  }
   947  
   948  // UsersServer is the server API for Users service.
   949  type UsersServer interface {
   950  	// status: ALPHA
   951  	// Returns the requested User.
   952  	//
   953  	// Raises:
   954  	//
   955  	//	NOT_FOUND is the user is not found.
   956  	//	INVALID_ARGUMENT if the `name` is invalid.
   957  	GetUser(context.Context, *GetUserRequest) (*User, error)
   958  	// status: ALPHA
   959  	// Returns all of the requested Users.
   960  	//
   961  	// Raises:
   962  	//
   963  	//	NOT_FOUND if any users are not found.
   964  	//	INVALID_ARGUMENT if any `names` are invalid.
   965  	BatchGetUsers(context.Context, *BatchGetUsersRequest) (*BatchGetUsersResponse, error)
   966  	// status: NOT READY
   967  	// Updates a User.
   968  	//
   969  	// Raises:
   970  	//
   971  	//	NOT_FOUND if the user is not found.
   972  	//	PERMISSION_DENIED if the requester is not allowed to update the user.
   973  	//	INVALID_ARGUMENT if required fields are missing or fields are invalid.
   974  	UpdateUser(context.Context, *UpdateUserRequest) (*User, error)
   975  	// status: NOT READY
   976  	// Stars a given project for the requestor.
   977  	//
   978  	// Raises:
   979  	//
   980  	//	NOT_FOUND if the requested project is not found.
   981  	//	INVALID_ARGUMENT if the given `project` is not valid.
   982  	StarProject(context.Context, *StarProjectRequest) (*ProjectStar, error)
   983  	// status: NOT READY
   984  	// Unstars a given project for the requestor.
   985  	//
   986  	// Raises:
   987  	//
   988  	//	NOT_FOUND if the requested project is not found.
   989  	//	INVALID_ARGUMENT if the given `project` is not valid.
   990  	UnStarProject(context.Context, *UnStarProjectRequest) (*emptypb.Empty, error)
   991  	// status: NOT READY
   992  	// Lists all of a user's starred projects.
   993  	//
   994  	// Raises:
   995  	//
   996  	//	NOT_FOUND if the requested user is not found.
   997  	//	INVALID_ARGUMENT if the given `parent` is not valid.
   998  	ListProjectStars(context.Context, *ListProjectStarsRequest) (*ListProjectStarsResponse, error)
   999  }
  1000  
  1001  // UnimplementedUsersServer can be embedded to have forward compatible implementations.
  1002  type UnimplementedUsersServer struct {
  1003  }
  1004  
  1005  func (*UnimplementedUsersServer) GetUser(context.Context, *GetUserRequest) (*User, error) {
  1006  	return nil, status.Errorf(codes.Unimplemented, "method GetUser not implemented")
  1007  }
  1008  func (*UnimplementedUsersServer) BatchGetUsers(context.Context, *BatchGetUsersRequest) (*BatchGetUsersResponse, error) {
  1009  	return nil, status.Errorf(codes.Unimplemented, "method BatchGetUsers not implemented")
  1010  }
  1011  func (*UnimplementedUsersServer) UpdateUser(context.Context, *UpdateUserRequest) (*User, error) {
  1012  	return nil, status.Errorf(codes.Unimplemented, "method UpdateUser not implemented")
  1013  }
  1014  func (*UnimplementedUsersServer) StarProject(context.Context, *StarProjectRequest) (*ProjectStar, error) {
  1015  	return nil, status.Errorf(codes.Unimplemented, "method StarProject not implemented")
  1016  }
  1017  func (*UnimplementedUsersServer) UnStarProject(context.Context, *UnStarProjectRequest) (*emptypb.Empty, error) {
  1018  	return nil, status.Errorf(codes.Unimplemented, "method UnStarProject not implemented")
  1019  }
  1020  func (*UnimplementedUsersServer) ListProjectStars(context.Context, *ListProjectStarsRequest) (*ListProjectStarsResponse, error) {
  1021  	return nil, status.Errorf(codes.Unimplemented, "method ListProjectStars not implemented")
  1022  }
  1023  
  1024  func RegisterUsersServer(s prpc.Registrar, srv UsersServer) {
  1025  	s.RegisterService(&_Users_serviceDesc, srv)
  1026  }
  1027  
  1028  func _Users_GetUser_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1029  	in := new(GetUserRequest)
  1030  	if err := dec(in); err != nil {
  1031  		return nil, err
  1032  	}
  1033  	if interceptor == nil {
  1034  		return srv.(UsersServer).GetUser(ctx, in)
  1035  	}
  1036  	info := &grpc.UnaryServerInfo{
  1037  		Server:     srv,
  1038  		FullMethod: "/monorail.v3.Users/GetUser",
  1039  	}
  1040  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1041  		return srv.(UsersServer).GetUser(ctx, req.(*GetUserRequest))
  1042  	}
  1043  	return interceptor(ctx, in, info, handler)
  1044  }
  1045  
  1046  func _Users_BatchGetUsers_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1047  	in := new(BatchGetUsersRequest)
  1048  	if err := dec(in); err != nil {
  1049  		return nil, err
  1050  	}
  1051  	if interceptor == nil {
  1052  		return srv.(UsersServer).BatchGetUsers(ctx, in)
  1053  	}
  1054  	info := &grpc.UnaryServerInfo{
  1055  		Server:     srv,
  1056  		FullMethod: "/monorail.v3.Users/BatchGetUsers",
  1057  	}
  1058  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1059  		return srv.(UsersServer).BatchGetUsers(ctx, req.(*BatchGetUsersRequest))
  1060  	}
  1061  	return interceptor(ctx, in, info, handler)
  1062  }
  1063  
  1064  func _Users_UpdateUser_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1065  	in := new(UpdateUserRequest)
  1066  	if err := dec(in); err != nil {
  1067  		return nil, err
  1068  	}
  1069  	if interceptor == nil {
  1070  		return srv.(UsersServer).UpdateUser(ctx, in)
  1071  	}
  1072  	info := &grpc.UnaryServerInfo{
  1073  		Server:     srv,
  1074  		FullMethod: "/monorail.v3.Users/UpdateUser",
  1075  	}
  1076  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1077  		return srv.(UsersServer).UpdateUser(ctx, req.(*UpdateUserRequest))
  1078  	}
  1079  	return interceptor(ctx, in, info, handler)
  1080  }
  1081  
  1082  func _Users_StarProject_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1083  	in := new(StarProjectRequest)
  1084  	if err := dec(in); err != nil {
  1085  		return nil, err
  1086  	}
  1087  	if interceptor == nil {
  1088  		return srv.(UsersServer).StarProject(ctx, in)
  1089  	}
  1090  	info := &grpc.UnaryServerInfo{
  1091  		Server:     srv,
  1092  		FullMethod: "/monorail.v3.Users/StarProject",
  1093  	}
  1094  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1095  		return srv.(UsersServer).StarProject(ctx, req.(*StarProjectRequest))
  1096  	}
  1097  	return interceptor(ctx, in, info, handler)
  1098  }
  1099  
  1100  func _Users_UnStarProject_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1101  	in := new(UnStarProjectRequest)
  1102  	if err := dec(in); err != nil {
  1103  		return nil, err
  1104  	}
  1105  	if interceptor == nil {
  1106  		return srv.(UsersServer).UnStarProject(ctx, in)
  1107  	}
  1108  	info := &grpc.UnaryServerInfo{
  1109  		Server:     srv,
  1110  		FullMethod: "/monorail.v3.Users/UnStarProject",
  1111  	}
  1112  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1113  		return srv.(UsersServer).UnStarProject(ctx, req.(*UnStarProjectRequest))
  1114  	}
  1115  	return interceptor(ctx, in, info, handler)
  1116  }
  1117  
  1118  func _Users_ListProjectStars_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1119  	in := new(ListProjectStarsRequest)
  1120  	if err := dec(in); err != nil {
  1121  		return nil, err
  1122  	}
  1123  	if interceptor == nil {
  1124  		return srv.(UsersServer).ListProjectStars(ctx, in)
  1125  	}
  1126  	info := &grpc.UnaryServerInfo{
  1127  		Server:     srv,
  1128  		FullMethod: "/monorail.v3.Users/ListProjectStars",
  1129  	}
  1130  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1131  		return srv.(UsersServer).ListProjectStars(ctx, req.(*ListProjectStarsRequest))
  1132  	}
  1133  	return interceptor(ctx, in, info, handler)
  1134  }
  1135  
  1136  var _Users_serviceDesc = grpc.ServiceDesc{
  1137  	ServiceName: "monorail.v3.Users",
  1138  	HandlerType: (*UsersServer)(nil),
  1139  	Methods: []grpc.MethodDesc{
  1140  		{
  1141  			MethodName: "GetUser",
  1142  			Handler:    _Users_GetUser_Handler,
  1143  		},
  1144  		{
  1145  			MethodName: "BatchGetUsers",
  1146  			Handler:    _Users_BatchGetUsers_Handler,
  1147  		},
  1148  		{
  1149  			MethodName: "UpdateUser",
  1150  			Handler:    _Users_UpdateUser_Handler,
  1151  		},
  1152  		{
  1153  			MethodName: "StarProject",
  1154  			Handler:    _Users_StarProject_Handler,
  1155  		},
  1156  		{
  1157  			MethodName: "UnStarProject",
  1158  			Handler:    _Users_UnStarProject_Handler,
  1159  		},
  1160  		{
  1161  			MethodName: "ListProjectStars",
  1162  			Handler:    _Users_ListProjectStars_Handler,
  1163  		},
  1164  	},
  1165  	Streams:  []grpc.StreamDesc{},
  1166  	Metadata: "go.chromium.org/luci/analysis/internal/bugs/monorail/api_proto/users.proto",
  1167  }