go.chromium.org/luci@v0.0.0-20240309015107-7cdc2e660f33/analysis/proto/v1/buganizer_tester.pb.go (about)

     1  // Copyright 2023 The LUCI Authors.
     2  //
     3  // Licensed under the Apache License, Version 2.0 (the "License");
     4  // you may not use this file except in compliance with the License.
     5  // You may obtain a copy of the License at
     6  //
     7  //      http://www.apache.org/licenses/LICENSE-2.0
     8  //
     9  // Unless required by applicable law or agreed to in writing, software
    10  // distributed under the License is distributed on an "AS IS" BASIS,
    11  // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    12  // See the License for the specific language governing permissions and
    13  // limitations under the License.
    14  
    15  // Code generated by protoc-gen-go. DO NOT EDIT.
    16  // versions:
    17  // 	protoc-gen-go v1.32.0
    18  // 	protoc        v3.21.7
    19  // source: go.chromium.org/luci/analysis/proto/v1/buganizer_tester.proto
    20  
    21  package analysispb
    22  
    23  import prpc "go.chromium.org/luci/grpc/prpc"
    24  
    25  import (
    26  	context "context"
    27  	grpc "google.golang.org/grpc"
    28  	codes "google.golang.org/grpc/codes"
    29  	status "google.golang.org/grpc/status"
    30  	protoreflect "google.golang.org/protobuf/reflect/protoreflect"
    31  	protoimpl "google.golang.org/protobuf/runtime/protoimpl"
    32  	reflect "reflect"
    33  	sync "sync"
    34  )
    35  
    36  const (
    37  	// Verify that this generated code is sufficiently up-to-date.
    38  	_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
    39  	// Verify that runtime/protoimpl is sufficiently up-to-date.
    40  	_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
    41  )
    42  
    43  // Request used to create the sample issue.
    44  type CreateSampleIssueRequest struct {
    45  	state         protoimpl.MessageState
    46  	sizeCache     protoimpl.SizeCache
    47  	unknownFields protoimpl.UnknownFields
    48  }
    49  
    50  func (x *CreateSampleIssueRequest) Reset() {
    51  	*x = CreateSampleIssueRequest{}
    52  	if protoimpl.UnsafeEnabled {
    53  		mi := &file_go_chromium_org_luci_analysis_proto_v1_buganizer_tester_proto_msgTypes[0]
    54  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
    55  		ms.StoreMessageInfo(mi)
    56  	}
    57  }
    58  
    59  func (x *CreateSampleIssueRequest) String() string {
    60  	return protoimpl.X.MessageStringOf(x)
    61  }
    62  
    63  func (*CreateSampleIssueRequest) ProtoMessage() {}
    64  
    65  func (x *CreateSampleIssueRequest) ProtoReflect() protoreflect.Message {
    66  	mi := &file_go_chromium_org_luci_analysis_proto_v1_buganizer_tester_proto_msgTypes[0]
    67  	if protoimpl.UnsafeEnabled && x != nil {
    68  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
    69  		if ms.LoadMessageInfo() == nil {
    70  			ms.StoreMessageInfo(mi)
    71  		}
    72  		return ms
    73  	}
    74  	return mi.MessageOf(x)
    75  }
    76  
    77  // Deprecated: Use CreateSampleIssueRequest.ProtoReflect.Descriptor instead.
    78  func (*CreateSampleIssueRequest) Descriptor() ([]byte, []int) {
    79  	return file_go_chromium_org_luci_analysis_proto_v1_buganizer_tester_proto_rawDescGZIP(), []int{0}
    80  }
    81  
    82  // Response of creating a sample issue.
    83  type CreateSampleIssueResponse struct {
    84  	state         protoimpl.MessageState
    85  	sizeCache     protoimpl.SizeCache
    86  	unknownFields protoimpl.UnknownFields
    87  
    88  	// The id of the created issue.
    89  	IssueId int64 `protobuf:"varint,1,opt,name=issue_id,json=issueId,proto3" json:"issue_id,omitempty"`
    90  }
    91  
    92  func (x *CreateSampleIssueResponse) Reset() {
    93  	*x = CreateSampleIssueResponse{}
    94  	if protoimpl.UnsafeEnabled {
    95  		mi := &file_go_chromium_org_luci_analysis_proto_v1_buganizer_tester_proto_msgTypes[1]
    96  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
    97  		ms.StoreMessageInfo(mi)
    98  	}
    99  }
   100  
   101  func (x *CreateSampleIssueResponse) String() string {
   102  	return protoimpl.X.MessageStringOf(x)
   103  }
   104  
   105  func (*CreateSampleIssueResponse) ProtoMessage() {}
   106  
   107  func (x *CreateSampleIssueResponse) ProtoReflect() protoreflect.Message {
   108  	mi := &file_go_chromium_org_luci_analysis_proto_v1_buganizer_tester_proto_msgTypes[1]
   109  	if protoimpl.UnsafeEnabled && x != nil {
   110  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   111  		if ms.LoadMessageInfo() == nil {
   112  			ms.StoreMessageInfo(mi)
   113  		}
   114  		return ms
   115  	}
   116  	return mi.MessageOf(x)
   117  }
   118  
   119  // Deprecated: Use CreateSampleIssueResponse.ProtoReflect.Descriptor instead.
   120  func (*CreateSampleIssueResponse) Descriptor() ([]byte, []int) {
   121  	return file_go_chromium_org_luci_analysis_proto_v1_buganizer_tester_proto_rawDescGZIP(), []int{1}
   122  }
   123  
   124  func (x *CreateSampleIssueResponse) GetIssueId() int64 {
   125  	if x != nil {
   126  		return x.IssueId
   127  	}
   128  	return 0
   129  }
   130  
   131  var File_go_chromium_org_luci_analysis_proto_v1_buganizer_tester_proto protoreflect.FileDescriptor
   132  
   133  var file_go_chromium_org_luci_analysis_proto_v1_buganizer_tester_proto_rawDesc = []byte{
   134  	0x0a, 0x3d, 0x67, 0x6f, 0x2e, 0x63, 0x68, 0x72, 0x6f, 0x6d, 0x69, 0x75, 0x6d, 0x2e, 0x6f, 0x72,
   135  	0x67, 0x2f, 0x6c, 0x75, 0x63, 0x69, 0x2f, 0x61, 0x6e, 0x61, 0x6c, 0x79, 0x73, 0x69, 0x73, 0x2f,
   136  	0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x76, 0x31, 0x2f, 0x62, 0x75, 0x67, 0x61, 0x6e, 0x69, 0x7a,
   137  	0x65, 0x72, 0x5f, 0x74, 0x65, 0x73, 0x74, 0x65, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12,
   138  	0x10, 0x6c, 0x75, 0x63, 0x69, 0x2e, 0x61, 0x6e, 0x61, 0x6c, 0x79, 0x73, 0x69, 0x73, 0x2e, 0x76,
   139  	0x31, 0x22, 0x1a, 0x0a, 0x18, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x53, 0x61, 0x6d, 0x70, 0x6c,
   140  	0x65, 0x49, 0x73, 0x73, 0x75, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, 0x36, 0x0a,
   141  	0x19, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x53, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x49, 0x73, 0x73,
   142  	0x75, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x19, 0x0a, 0x08, 0x69, 0x73,
   143  	0x73, 0x75, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x07, 0x69, 0x73,
   144  	0x73, 0x75, 0x65, 0x49, 0x64, 0x32, 0x81, 0x01, 0x0a, 0x0f, 0x42, 0x75, 0x67, 0x61, 0x6e, 0x69,
   145  	0x7a, 0x65, 0x72, 0x54, 0x65, 0x73, 0x74, 0x65, 0x72, 0x12, 0x6e, 0x0a, 0x11, 0x43, 0x72, 0x65,
   146  	0x61, 0x74, 0x65, 0x53, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x49, 0x73, 0x73, 0x75, 0x65, 0x12, 0x2a,
   147  	0x2e, 0x6c, 0x75, 0x63, 0x69, 0x2e, 0x61, 0x6e, 0x61, 0x6c, 0x79, 0x73, 0x69, 0x73, 0x2e, 0x76,
   148  	0x31, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x53, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x49, 0x73,
   149  	0x73, 0x75, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2b, 0x2e, 0x6c, 0x75, 0x63,
   150  	0x69, 0x2e, 0x61, 0x6e, 0x61, 0x6c, 0x79, 0x73, 0x69, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x72,
   151  	0x65, 0x61, 0x74, 0x65, 0x53, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x49, 0x73, 0x73, 0x75, 0x65, 0x52,
   152  	0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x42, 0x33, 0x5a, 0x31, 0x67, 0x6f, 0x2e,
   153  	0x63, 0x68, 0x72, 0x6f, 0x6d, 0x69, 0x75, 0x6d, 0x2e, 0x6f, 0x72, 0x67, 0x2f, 0x6c, 0x75, 0x63,
   154  	0x69, 0x2f, 0x61, 0x6e, 0x61, 0x6c, 0x79, 0x73, 0x69, 0x73, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f,
   155  	0x2f, 0x76, 0x31, 0x3b, 0x61, 0x6e, 0x61, 0x6c, 0x79, 0x73, 0x69, 0x73, 0x70, 0x62, 0x62, 0x06,
   156  	0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
   157  }
   158  
   159  var (
   160  	file_go_chromium_org_luci_analysis_proto_v1_buganizer_tester_proto_rawDescOnce sync.Once
   161  	file_go_chromium_org_luci_analysis_proto_v1_buganizer_tester_proto_rawDescData = file_go_chromium_org_luci_analysis_proto_v1_buganizer_tester_proto_rawDesc
   162  )
   163  
   164  func file_go_chromium_org_luci_analysis_proto_v1_buganizer_tester_proto_rawDescGZIP() []byte {
   165  	file_go_chromium_org_luci_analysis_proto_v1_buganizer_tester_proto_rawDescOnce.Do(func() {
   166  		file_go_chromium_org_luci_analysis_proto_v1_buganizer_tester_proto_rawDescData = protoimpl.X.CompressGZIP(file_go_chromium_org_luci_analysis_proto_v1_buganizer_tester_proto_rawDescData)
   167  	})
   168  	return file_go_chromium_org_luci_analysis_proto_v1_buganizer_tester_proto_rawDescData
   169  }
   170  
   171  var file_go_chromium_org_luci_analysis_proto_v1_buganizer_tester_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
   172  var file_go_chromium_org_luci_analysis_proto_v1_buganizer_tester_proto_goTypes = []interface{}{
   173  	(*CreateSampleIssueRequest)(nil),  // 0: luci.analysis.v1.CreateSampleIssueRequest
   174  	(*CreateSampleIssueResponse)(nil), // 1: luci.analysis.v1.CreateSampleIssueResponse
   175  }
   176  var file_go_chromium_org_luci_analysis_proto_v1_buganizer_tester_proto_depIdxs = []int32{
   177  	0, // 0: luci.analysis.v1.BuganizerTester.CreateSampleIssue:input_type -> luci.analysis.v1.CreateSampleIssueRequest
   178  	1, // 1: luci.analysis.v1.BuganizerTester.CreateSampleIssue:output_type -> luci.analysis.v1.CreateSampleIssueResponse
   179  	1, // [1:2] is the sub-list for method output_type
   180  	0, // [0:1] is the sub-list for method input_type
   181  	0, // [0:0] is the sub-list for extension type_name
   182  	0, // [0:0] is the sub-list for extension extendee
   183  	0, // [0:0] is the sub-list for field type_name
   184  }
   185  
   186  func init() { file_go_chromium_org_luci_analysis_proto_v1_buganizer_tester_proto_init() }
   187  func file_go_chromium_org_luci_analysis_proto_v1_buganizer_tester_proto_init() {
   188  	if File_go_chromium_org_luci_analysis_proto_v1_buganizer_tester_proto != nil {
   189  		return
   190  	}
   191  	if !protoimpl.UnsafeEnabled {
   192  		file_go_chromium_org_luci_analysis_proto_v1_buganizer_tester_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
   193  			switch v := v.(*CreateSampleIssueRequest); i {
   194  			case 0:
   195  				return &v.state
   196  			case 1:
   197  				return &v.sizeCache
   198  			case 2:
   199  				return &v.unknownFields
   200  			default:
   201  				return nil
   202  			}
   203  		}
   204  		file_go_chromium_org_luci_analysis_proto_v1_buganizer_tester_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
   205  			switch v := v.(*CreateSampleIssueResponse); i {
   206  			case 0:
   207  				return &v.state
   208  			case 1:
   209  				return &v.sizeCache
   210  			case 2:
   211  				return &v.unknownFields
   212  			default:
   213  				return nil
   214  			}
   215  		}
   216  	}
   217  	type x struct{}
   218  	out := protoimpl.TypeBuilder{
   219  		File: protoimpl.DescBuilder{
   220  			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
   221  			RawDescriptor: file_go_chromium_org_luci_analysis_proto_v1_buganizer_tester_proto_rawDesc,
   222  			NumEnums:      0,
   223  			NumMessages:   2,
   224  			NumExtensions: 0,
   225  			NumServices:   1,
   226  		},
   227  		GoTypes:           file_go_chromium_org_luci_analysis_proto_v1_buganizer_tester_proto_goTypes,
   228  		DependencyIndexes: file_go_chromium_org_luci_analysis_proto_v1_buganizer_tester_proto_depIdxs,
   229  		MessageInfos:      file_go_chromium_org_luci_analysis_proto_v1_buganizer_tester_proto_msgTypes,
   230  	}.Build()
   231  	File_go_chromium_org_luci_analysis_proto_v1_buganizer_tester_proto = out.File
   232  	file_go_chromium_org_luci_analysis_proto_v1_buganizer_tester_proto_rawDesc = nil
   233  	file_go_chromium_org_luci_analysis_proto_v1_buganizer_tester_proto_goTypes = nil
   234  	file_go_chromium_org_luci_analysis_proto_v1_buganizer_tester_proto_depIdxs = nil
   235  }
   236  
   237  // Reference imports to suppress errors if they are not otherwise used.
   238  var _ context.Context
   239  var _ grpc.ClientConnInterface
   240  
   241  // This is a compile-time assertion to ensure that this generated file
   242  // is compatible with the grpc package it is being compiled against.
   243  const _ = grpc.SupportPackageIsVersion6
   244  
   245  // BuganizerTesterClient is the client API for BuganizerTester service.
   246  //
   247  // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
   248  type BuganizerTesterClient interface {
   249  	// Creates a sample issue and returns it's id.
   250  	CreateSampleIssue(ctx context.Context, in *CreateSampleIssueRequest, opts ...grpc.CallOption) (*CreateSampleIssueResponse, error)
   251  }
   252  type buganizerTesterPRPCClient struct {
   253  	client *prpc.Client
   254  }
   255  
   256  func NewBuganizerTesterPRPCClient(client *prpc.Client) BuganizerTesterClient {
   257  	return &buganizerTesterPRPCClient{client}
   258  }
   259  
   260  func (c *buganizerTesterPRPCClient) CreateSampleIssue(ctx context.Context, in *CreateSampleIssueRequest, opts ...grpc.CallOption) (*CreateSampleIssueResponse, error) {
   261  	out := new(CreateSampleIssueResponse)
   262  	err := c.client.Call(ctx, "luci.analysis.v1.BuganizerTester", "CreateSampleIssue", in, out, opts...)
   263  	if err != nil {
   264  		return nil, err
   265  	}
   266  	return out, nil
   267  }
   268  
   269  type buganizerTesterClient struct {
   270  	cc grpc.ClientConnInterface
   271  }
   272  
   273  func NewBuganizerTesterClient(cc grpc.ClientConnInterface) BuganizerTesterClient {
   274  	return &buganizerTesterClient{cc}
   275  }
   276  
   277  func (c *buganizerTesterClient) CreateSampleIssue(ctx context.Context, in *CreateSampleIssueRequest, opts ...grpc.CallOption) (*CreateSampleIssueResponse, error) {
   278  	out := new(CreateSampleIssueResponse)
   279  	err := c.cc.Invoke(ctx, "/luci.analysis.v1.BuganizerTester/CreateSampleIssue", in, out, opts...)
   280  	if err != nil {
   281  		return nil, err
   282  	}
   283  	return out, nil
   284  }
   285  
   286  // BuganizerTesterServer is the server API for BuganizerTester service.
   287  type BuganizerTesterServer interface {
   288  	// Creates a sample issue and returns it's id.
   289  	CreateSampleIssue(context.Context, *CreateSampleIssueRequest) (*CreateSampleIssueResponse, error)
   290  }
   291  
   292  // UnimplementedBuganizerTesterServer can be embedded to have forward compatible implementations.
   293  type UnimplementedBuganizerTesterServer struct {
   294  }
   295  
   296  func (*UnimplementedBuganizerTesterServer) CreateSampleIssue(context.Context, *CreateSampleIssueRequest) (*CreateSampleIssueResponse, error) {
   297  	return nil, status.Errorf(codes.Unimplemented, "method CreateSampleIssue not implemented")
   298  }
   299  
   300  func RegisterBuganizerTesterServer(s prpc.Registrar, srv BuganizerTesterServer) {
   301  	s.RegisterService(&_BuganizerTester_serviceDesc, srv)
   302  }
   303  
   304  func _BuganizerTester_CreateSampleIssue_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
   305  	in := new(CreateSampleIssueRequest)
   306  	if err := dec(in); err != nil {
   307  		return nil, err
   308  	}
   309  	if interceptor == nil {
   310  		return srv.(BuganizerTesterServer).CreateSampleIssue(ctx, in)
   311  	}
   312  	info := &grpc.UnaryServerInfo{
   313  		Server:     srv,
   314  		FullMethod: "/luci.analysis.v1.BuganizerTester/CreateSampleIssue",
   315  	}
   316  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
   317  		return srv.(BuganizerTesterServer).CreateSampleIssue(ctx, req.(*CreateSampleIssueRequest))
   318  	}
   319  	return interceptor(ctx, in, info, handler)
   320  }
   321  
   322  var _BuganizerTester_serviceDesc = grpc.ServiceDesc{
   323  	ServiceName: "luci.analysis.v1.BuganizerTester",
   324  	HandlerType: (*BuganizerTesterServer)(nil),
   325  	Methods: []grpc.MethodDesc{
   326  		{
   327  			MethodName: "CreateSampleIssue",
   328  			Handler:    _BuganizerTester_CreateSampleIssue_Handler,
   329  		},
   330  	},
   331  	Streams:  []grpc.StreamDesc{},
   332  	Metadata: "go.chromium.org/luci/analysis/proto/v1/buganizer_tester.proto",
   333  }