github.com/gravitational/teleport/api@v0.0.0-20240507183017-3110591cbafc/gen/proto/go/assist/v1/assist_grpc.pb.go (about)

     1  // Copyright 2023 Gravitational, Inc
     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-grpc. DO NOT EDIT.
    16  // versions:
    17  // - protoc-gen-go-grpc v1.3.0
    18  // - protoc             (unknown)
    19  // source: teleport/assist/v1/assist.proto
    20  
    21  package assist
    22  
    23  import (
    24  	context "context"
    25  	grpc "google.golang.org/grpc"
    26  	codes "google.golang.org/grpc/codes"
    27  	status "google.golang.org/grpc/status"
    28  	emptypb "google.golang.org/protobuf/types/known/emptypb"
    29  )
    30  
    31  // This is a compile-time assertion to ensure that this generated file
    32  // is compatible with the grpc package it is being compiled against.
    33  // Requires gRPC-Go v1.32.0 or later.
    34  const _ = grpc.SupportPackageIsVersion7
    35  
    36  const (
    37  	AssistService_CreateAssistantConversation_FullMethodName     = "/teleport.assist.v1.AssistService/CreateAssistantConversation"
    38  	AssistService_GetAssistantConversations_FullMethodName       = "/teleport.assist.v1.AssistService/GetAssistantConversations"
    39  	AssistService_DeleteAssistantConversation_FullMethodName     = "/teleport.assist.v1.AssistService/DeleteAssistantConversation"
    40  	AssistService_GetAssistantMessages_FullMethodName            = "/teleport.assist.v1.AssistService/GetAssistantMessages"
    41  	AssistService_CreateAssistantMessage_FullMethodName          = "/teleport.assist.v1.AssistService/CreateAssistantMessage"
    42  	AssistService_UpdateAssistantConversationInfo_FullMethodName = "/teleport.assist.v1.AssistService/UpdateAssistantConversationInfo"
    43  	AssistService_IsAssistEnabled_FullMethodName                 = "/teleport.assist.v1.AssistService/IsAssistEnabled"
    44  	AssistService_SearchUnifiedResources_FullMethodName          = "/teleport.assist.v1.AssistService/SearchUnifiedResources"
    45  )
    46  
    47  // AssistServiceClient is the client API for AssistService service.
    48  //
    49  // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
    50  type AssistServiceClient interface {
    51  	// CreateNewConversation creates a new conversation and returns the UUID of it.
    52  	CreateAssistantConversation(ctx context.Context, in *CreateAssistantConversationRequest, opts ...grpc.CallOption) (*CreateAssistantConversationResponse, error)
    53  	// GetAssistantConversations returns all conversations for the connected user.
    54  	GetAssistantConversations(ctx context.Context, in *GetAssistantConversationsRequest, opts ...grpc.CallOption) (*GetAssistantConversationsResponse, error)
    55  	// DeleteAssistantConversation deletes the conversation and all messages associated with it.
    56  	DeleteAssistantConversation(ctx context.Context, in *DeleteAssistantConversationRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
    57  	// GetAssistantMessages returns all messages associated with the given conversation ID.
    58  	GetAssistantMessages(ctx context.Context, in *GetAssistantMessagesRequest, opts ...grpc.CallOption) (*GetAssistantMessagesResponse, error)
    59  	// CreateAssistantMessage creates a new message in the given conversation.
    60  	CreateAssistantMessage(ctx context.Context, in *CreateAssistantMessageRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
    61  	// UpdateAssistantConversationInfo updates the conversation info.
    62  	UpdateAssistantConversationInfo(ctx context.Context, in *UpdateAssistantConversationInfoRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
    63  	// IsAssistEnabled returns true if the assist is enabled or not on the auth level.
    64  	IsAssistEnabled(ctx context.Context, in *IsAssistEnabledRequest, opts ...grpc.CallOption) (*IsAssistEnabledResponse, error)
    65  	// SearchUnifiedResources returns a similarity-ordered list of resources from the unified resource cache.
    66  	SearchUnifiedResources(ctx context.Context, in *SearchUnifiedResourcesRequest, opts ...grpc.CallOption) (*SearchUnifiedResourcesResponse, error)
    67  }
    68  
    69  type assistServiceClient struct {
    70  	cc grpc.ClientConnInterface
    71  }
    72  
    73  func NewAssistServiceClient(cc grpc.ClientConnInterface) AssistServiceClient {
    74  	return &assistServiceClient{cc}
    75  }
    76  
    77  func (c *assistServiceClient) CreateAssistantConversation(ctx context.Context, in *CreateAssistantConversationRequest, opts ...grpc.CallOption) (*CreateAssistantConversationResponse, error) {
    78  	out := new(CreateAssistantConversationResponse)
    79  	err := c.cc.Invoke(ctx, AssistService_CreateAssistantConversation_FullMethodName, in, out, opts...)
    80  	if err != nil {
    81  		return nil, err
    82  	}
    83  	return out, nil
    84  }
    85  
    86  func (c *assistServiceClient) GetAssistantConversations(ctx context.Context, in *GetAssistantConversationsRequest, opts ...grpc.CallOption) (*GetAssistantConversationsResponse, error) {
    87  	out := new(GetAssistantConversationsResponse)
    88  	err := c.cc.Invoke(ctx, AssistService_GetAssistantConversations_FullMethodName, in, out, opts...)
    89  	if err != nil {
    90  		return nil, err
    91  	}
    92  	return out, nil
    93  }
    94  
    95  func (c *assistServiceClient) DeleteAssistantConversation(ctx context.Context, in *DeleteAssistantConversationRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) {
    96  	out := new(emptypb.Empty)
    97  	err := c.cc.Invoke(ctx, AssistService_DeleteAssistantConversation_FullMethodName, in, out, opts...)
    98  	if err != nil {
    99  		return nil, err
   100  	}
   101  	return out, nil
   102  }
   103  
   104  func (c *assistServiceClient) GetAssistantMessages(ctx context.Context, in *GetAssistantMessagesRequest, opts ...grpc.CallOption) (*GetAssistantMessagesResponse, error) {
   105  	out := new(GetAssistantMessagesResponse)
   106  	err := c.cc.Invoke(ctx, AssistService_GetAssistantMessages_FullMethodName, in, out, opts...)
   107  	if err != nil {
   108  		return nil, err
   109  	}
   110  	return out, nil
   111  }
   112  
   113  func (c *assistServiceClient) CreateAssistantMessage(ctx context.Context, in *CreateAssistantMessageRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) {
   114  	out := new(emptypb.Empty)
   115  	err := c.cc.Invoke(ctx, AssistService_CreateAssistantMessage_FullMethodName, in, out, opts...)
   116  	if err != nil {
   117  		return nil, err
   118  	}
   119  	return out, nil
   120  }
   121  
   122  func (c *assistServiceClient) UpdateAssistantConversationInfo(ctx context.Context, in *UpdateAssistantConversationInfoRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) {
   123  	out := new(emptypb.Empty)
   124  	err := c.cc.Invoke(ctx, AssistService_UpdateAssistantConversationInfo_FullMethodName, in, out, opts...)
   125  	if err != nil {
   126  		return nil, err
   127  	}
   128  	return out, nil
   129  }
   130  
   131  func (c *assistServiceClient) IsAssistEnabled(ctx context.Context, in *IsAssistEnabledRequest, opts ...grpc.CallOption) (*IsAssistEnabledResponse, error) {
   132  	out := new(IsAssistEnabledResponse)
   133  	err := c.cc.Invoke(ctx, AssistService_IsAssistEnabled_FullMethodName, in, out, opts...)
   134  	if err != nil {
   135  		return nil, err
   136  	}
   137  	return out, nil
   138  }
   139  
   140  func (c *assistServiceClient) SearchUnifiedResources(ctx context.Context, in *SearchUnifiedResourcesRequest, opts ...grpc.CallOption) (*SearchUnifiedResourcesResponse, error) {
   141  	out := new(SearchUnifiedResourcesResponse)
   142  	err := c.cc.Invoke(ctx, AssistService_SearchUnifiedResources_FullMethodName, in, out, opts...)
   143  	if err != nil {
   144  		return nil, err
   145  	}
   146  	return out, nil
   147  }
   148  
   149  // AssistServiceServer is the server API for AssistService service.
   150  // All implementations must embed UnimplementedAssistServiceServer
   151  // for forward compatibility
   152  type AssistServiceServer interface {
   153  	// CreateNewConversation creates a new conversation and returns the UUID of it.
   154  	CreateAssistantConversation(context.Context, *CreateAssistantConversationRequest) (*CreateAssistantConversationResponse, error)
   155  	// GetAssistantConversations returns all conversations for the connected user.
   156  	GetAssistantConversations(context.Context, *GetAssistantConversationsRequest) (*GetAssistantConversationsResponse, error)
   157  	// DeleteAssistantConversation deletes the conversation and all messages associated with it.
   158  	DeleteAssistantConversation(context.Context, *DeleteAssistantConversationRequest) (*emptypb.Empty, error)
   159  	// GetAssistantMessages returns all messages associated with the given conversation ID.
   160  	GetAssistantMessages(context.Context, *GetAssistantMessagesRequest) (*GetAssistantMessagesResponse, error)
   161  	// CreateAssistantMessage creates a new message in the given conversation.
   162  	CreateAssistantMessage(context.Context, *CreateAssistantMessageRequest) (*emptypb.Empty, error)
   163  	// UpdateAssistantConversationInfo updates the conversation info.
   164  	UpdateAssistantConversationInfo(context.Context, *UpdateAssistantConversationInfoRequest) (*emptypb.Empty, error)
   165  	// IsAssistEnabled returns true if the assist is enabled or not on the auth level.
   166  	IsAssistEnabled(context.Context, *IsAssistEnabledRequest) (*IsAssistEnabledResponse, error)
   167  	// SearchUnifiedResources returns a similarity-ordered list of resources from the unified resource cache.
   168  	SearchUnifiedResources(context.Context, *SearchUnifiedResourcesRequest) (*SearchUnifiedResourcesResponse, error)
   169  	mustEmbedUnimplementedAssistServiceServer()
   170  }
   171  
   172  // UnimplementedAssistServiceServer must be embedded to have forward compatible implementations.
   173  type UnimplementedAssistServiceServer struct {
   174  }
   175  
   176  func (UnimplementedAssistServiceServer) CreateAssistantConversation(context.Context, *CreateAssistantConversationRequest) (*CreateAssistantConversationResponse, error) {
   177  	return nil, status.Errorf(codes.Unimplemented, "method CreateAssistantConversation not implemented")
   178  }
   179  func (UnimplementedAssistServiceServer) GetAssistantConversations(context.Context, *GetAssistantConversationsRequest) (*GetAssistantConversationsResponse, error) {
   180  	return nil, status.Errorf(codes.Unimplemented, "method GetAssistantConversations not implemented")
   181  }
   182  func (UnimplementedAssistServiceServer) DeleteAssistantConversation(context.Context, *DeleteAssistantConversationRequest) (*emptypb.Empty, error) {
   183  	return nil, status.Errorf(codes.Unimplemented, "method DeleteAssistantConversation not implemented")
   184  }
   185  func (UnimplementedAssistServiceServer) GetAssistantMessages(context.Context, *GetAssistantMessagesRequest) (*GetAssistantMessagesResponse, error) {
   186  	return nil, status.Errorf(codes.Unimplemented, "method GetAssistantMessages not implemented")
   187  }
   188  func (UnimplementedAssistServiceServer) CreateAssistantMessage(context.Context, *CreateAssistantMessageRequest) (*emptypb.Empty, error) {
   189  	return nil, status.Errorf(codes.Unimplemented, "method CreateAssistantMessage not implemented")
   190  }
   191  func (UnimplementedAssistServiceServer) UpdateAssistantConversationInfo(context.Context, *UpdateAssistantConversationInfoRequest) (*emptypb.Empty, error) {
   192  	return nil, status.Errorf(codes.Unimplemented, "method UpdateAssistantConversationInfo not implemented")
   193  }
   194  func (UnimplementedAssistServiceServer) IsAssistEnabled(context.Context, *IsAssistEnabledRequest) (*IsAssistEnabledResponse, error) {
   195  	return nil, status.Errorf(codes.Unimplemented, "method IsAssistEnabled not implemented")
   196  }
   197  func (UnimplementedAssistServiceServer) SearchUnifiedResources(context.Context, *SearchUnifiedResourcesRequest) (*SearchUnifiedResourcesResponse, error) {
   198  	return nil, status.Errorf(codes.Unimplemented, "method SearchUnifiedResources not implemented")
   199  }
   200  func (UnimplementedAssistServiceServer) mustEmbedUnimplementedAssistServiceServer() {}
   201  
   202  // UnsafeAssistServiceServer may be embedded to opt out of forward compatibility for this service.
   203  // Use of this interface is not recommended, as added methods to AssistServiceServer will
   204  // result in compilation errors.
   205  type UnsafeAssistServiceServer interface {
   206  	mustEmbedUnimplementedAssistServiceServer()
   207  }
   208  
   209  func RegisterAssistServiceServer(s grpc.ServiceRegistrar, srv AssistServiceServer) {
   210  	s.RegisterService(&AssistService_ServiceDesc, srv)
   211  }
   212  
   213  func _AssistService_CreateAssistantConversation_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
   214  	in := new(CreateAssistantConversationRequest)
   215  	if err := dec(in); err != nil {
   216  		return nil, err
   217  	}
   218  	if interceptor == nil {
   219  		return srv.(AssistServiceServer).CreateAssistantConversation(ctx, in)
   220  	}
   221  	info := &grpc.UnaryServerInfo{
   222  		Server:     srv,
   223  		FullMethod: AssistService_CreateAssistantConversation_FullMethodName,
   224  	}
   225  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
   226  		return srv.(AssistServiceServer).CreateAssistantConversation(ctx, req.(*CreateAssistantConversationRequest))
   227  	}
   228  	return interceptor(ctx, in, info, handler)
   229  }
   230  
   231  func _AssistService_GetAssistantConversations_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
   232  	in := new(GetAssistantConversationsRequest)
   233  	if err := dec(in); err != nil {
   234  		return nil, err
   235  	}
   236  	if interceptor == nil {
   237  		return srv.(AssistServiceServer).GetAssistantConversations(ctx, in)
   238  	}
   239  	info := &grpc.UnaryServerInfo{
   240  		Server:     srv,
   241  		FullMethod: AssistService_GetAssistantConversations_FullMethodName,
   242  	}
   243  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
   244  		return srv.(AssistServiceServer).GetAssistantConversations(ctx, req.(*GetAssistantConversationsRequest))
   245  	}
   246  	return interceptor(ctx, in, info, handler)
   247  }
   248  
   249  func _AssistService_DeleteAssistantConversation_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
   250  	in := new(DeleteAssistantConversationRequest)
   251  	if err := dec(in); err != nil {
   252  		return nil, err
   253  	}
   254  	if interceptor == nil {
   255  		return srv.(AssistServiceServer).DeleteAssistantConversation(ctx, in)
   256  	}
   257  	info := &grpc.UnaryServerInfo{
   258  		Server:     srv,
   259  		FullMethod: AssistService_DeleteAssistantConversation_FullMethodName,
   260  	}
   261  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
   262  		return srv.(AssistServiceServer).DeleteAssistantConversation(ctx, req.(*DeleteAssistantConversationRequest))
   263  	}
   264  	return interceptor(ctx, in, info, handler)
   265  }
   266  
   267  func _AssistService_GetAssistantMessages_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
   268  	in := new(GetAssistantMessagesRequest)
   269  	if err := dec(in); err != nil {
   270  		return nil, err
   271  	}
   272  	if interceptor == nil {
   273  		return srv.(AssistServiceServer).GetAssistantMessages(ctx, in)
   274  	}
   275  	info := &grpc.UnaryServerInfo{
   276  		Server:     srv,
   277  		FullMethod: AssistService_GetAssistantMessages_FullMethodName,
   278  	}
   279  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
   280  		return srv.(AssistServiceServer).GetAssistantMessages(ctx, req.(*GetAssistantMessagesRequest))
   281  	}
   282  	return interceptor(ctx, in, info, handler)
   283  }
   284  
   285  func _AssistService_CreateAssistantMessage_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
   286  	in := new(CreateAssistantMessageRequest)
   287  	if err := dec(in); err != nil {
   288  		return nil, err
   289  	}
   290  	if interceptor == nil {
   291  		return srv.(AssistServiceServer).CreateAssistantMessage(ctx, in)
   292  	}
   293  	info := &grpc.UnaryServerInfo{
   294  		Server:     srv,
   295  		FullMethod: AssistService_CreateAssistantMessage_FullMethodName,
   296  	}
   297  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
   298  		return srv.(AssistServiceServer).CreateAssistantMessage(ctx, req.(*CreateAssistantMessageRequest))
   299  	}
   300  	return interceptor(ctx, in, info, handler)
   301  }
   302  
   303  func _AssistService_UpdateAssistantConversationInfo_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
   304  	in := new(UpdateAssistantConversationInfoRequest)
   305  	if err := dec(in); err != nil {
   306  		return nil, err
   307  	}
   308  	if interceptor == nil {
   309  		return srv.(AssistServiceServer).UpdateAssistantConversationInfo(ctx, in)
   310  	}
   311  	info := &grpc.UnaryServerInfo{
   312  		Server:     srv,
   313  		FullMethod: AssistService_UpdateAssistantConversationInfo_FullMethodName,
   314  	}
   315  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
   316  		return srv.(AssistServiceServer).UpdateAssistantConversationInfo(ctx, req.(*UpdateAssistantConversationInfoRequest))
   317  	}
   318  	return interceptor(ctx, in, info, handler)
   319  }
   320  
   321  func _AssistService_IsAssistEnabled_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
   322  	in := new(IsAssistEnabledRequest)
   323  	if err := dec(in); err != nil {
   324  		return nil, err
   325  	}
   326  	if interceptor == nil {
   327  		return srv.(AssistServiceServer).IsAssistEnabled(ctx, in)
   328  	}
   329  	info := &grpc.UnaryServerInfo{
   330  		Server:     srv,
   331  		FullMethod: AssistService_IsAssistEnabled_FullMethodName,
   332  	}
   333  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
   334  		return srv.(AssistServiceServer).IsAssistEnabled(ctx, req.(*IsAssistEnabledRequest))
   335  	}
   336  	return interceptor(ctx, in, info, handler)
   337  }
   338  
   339  func _AssistService_SearchUnifiedResources_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
   340  	in := new(SearchUnifiedResourcesRequest)
   341  	if err := dec(in); err != nil {
   342  		return nil, err
   343  	}
   344  	if interceptor == nil {
   345  		return srv.(AssistServiceServer).SearchUnifiedResources(ctx, in)
   346  	}
   347  	info := &grpc.UnaryServerInfo{
   348  		Server:     srv,
   349  		FullMethod: AssistService_SearchUnifiedResources_FullMethodName,
   350  	}
   351  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
   352  		return srv.(AssistServiceServer).SearchUnifiedResources(ctx, req.(*SearchUnifiedResourcesRequest))
   353  	}
   354  	return interceptor(ctx, in, info, handler)
   355  }
   356  
   357  // AssistService_ServiceDesc is the grpc.ServiceDesc for AssistService service.
   358  // It's only intended for direct use with grpc.RegisterService,
   359  // and not to be introspected or modified (even as a copy)
   360  var AssistService_ServiceDesc = grpc.ServiceDesc{
   361  	ServiceName: "teleport.assist.v1.AssistService",
   362  	HandlerType: (*AssistServiceServer)(nil),
   363  	Methods: []grpc.MethodDesc{
   364  		{
   365  			MethodName: "CreateAssistantConversation",
   366  			Handler:    _AssistService_CreateAssistantConversation_Handler,
   367  		},
   368  		{
   369  			MethodName: "GetAssistantConversations",
   370  			Handler:    _AssistService_GetAssistantConversations_Handler,
   371  		},
   372  		{
   373  			MethodName: "DeleteAssistantConversation",
   374  			Handler:    _AssistService_DeleteAssistantConversation_Handler,
   375  		},
   376  		{
   377  			MethodName: "GetAssistantMessages",
   378  			Handler:    _AssistService_GetAssistantMessages_Handler,
   379  		},
   380  		{
   381  			MethodName: "CreateAssistantMessage",
   382  			Handler:    _AssistService_CreateAssistantMessage_Handler,
   383  		},
   384  		{
   385  			MethodName: "UpdateAssistantConversationInfo",
   386  			Handler:    _AssistService_UpdateAssistantConversationInfo_Handler,
   387  		},
   388  		{
   389  			MethodName: "IsAssistEnabled",
   390  			Handler:    _AssistService_IsAssistEnabled_Handler,
   391  		},
   392  		{
   393  			MethodName: "SearchUnifiedResources",
   394  			Handler:    _AssistService_SearchUnifiedResources_Handler,
   395  		},
   396  	},
   397  	Streams:  []grpc.StreamDesc{},
   398  	Metadata: "teleport/assist/v1/assist.proto",
   399  }
   400  
   401  const (
   402  	AssistEmbeddingService_GetAssistantEmbeddings_FullMethodName = "/teleport.assist.v1.AssistEmbeddingService/GetAssistantEmbeddings"
   403  )
   404  
   405  // AssistEmbeddingServiceClient is the client API for AssistEmbeddingService service.
   406  //
   407  // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
   408  type AssistEmbeddingServiceClient interface {
   409  	// AssistantGetEmbeddings returns the embeddings for the given query.
   410  	GetAssistantEmbeddings(ctx context.Context, in *GetAssistantEmbeddingsRequest, opts ...grpc.CallOption) (*GetAssistantEmbeddingsResponse, error)
   411  }
   412  
   413  type assistEmbeddingServiceClient struct {
   414  	cc grpc.ClientConnInterface
   415  }
   416  
   417  func NewAssistEmbeddingServiceClient(cc grpc.ClientConnInterface) AssistEmbeddingServiceClient {
   418  	return &assistEmbeddingServiceClient{cc}
   419  }
   420  
   421  func (c *assistEmbeddingServiceClient) GetAssistantEmbeddings(ctx context.Context, in *GetAssistantEmbeddingsRequest, opts ...grpc.CallOption) (*GetAssistantEmbeddingsResponse, error) {
   422  	out := new(GetAssistantEmbeddingsResponse)
   423  	err := c.cc.Invoke(ctx, AssistEmbeddingService_GetAssistantEmbeddings_FullMethodName, in, out, opts...)
   424  	if err != nil {
   425  		return nil, err
   426  	}
   427  	return out, nil
   428  }
   429  
   430  // AssistEmbeddingServiceServer is the server API for AssistEmbeddingService service.
   431  // All implementations must embed UnimplementedAssistEmbeddingServiceServer
   432  // for forward compatibility
   433  type AssistEmbeddingServiceServer interface {
   434  	// AssistantGetEmbeddings returns the embeddings for the given query.
   435  	GetAssistantEmbeddings(context.Context, *GetAssistantEmbeddingsRequest) (*GetAssistantEmbeddingsResponse, error)
   436  	mustEmbedUnimplementedAssistEmbeddingServiceServer()
   437  }
   438  
   439  // UnimplementedAssistEmbeddingServiceServer must be embedded to have forward compatible implementations.
   440  type UnimplementedAssistEmbeddingServiceServer struct {
   441  }
   442  
   443  func (UnimplementedAssistEmbeddingServiceServer) GetAssistantEmbeddings(context.Context, *GetAssistantEmbeddingsRequest) (*GetAssistantEmbeddingsResponse, error) {
   444  	return nil, status.Errorf(codes.Unimplemented, "method GetAssistantEmbeddings not implemented")
   445  }
   446  func (UnimplementedAssistEmbeddingServiceServer) mustEmbedUnimplementedAssistEmbeddingServiceServer() {
   447  }
   448  
   449  // UnsafeAssistEmbeddingServiceServer may be embedded to opt out of forward compatibility for this service.
   450  // Use of this interface is not recommended, as added methods to AssistEmbeddingServiceServer will
   451  // result in compilation errors.
   452  type UnsafeAssistEmbeddingServiceServer interface {
   453  	mustEmbedUnimplementedAssistEmbeddingServiceServer()
   454  }
   455  
   456  func RegisterAssistEmbeddingServiceServer(s grpc.ServiceRegistrar, srv AssistEmbeddingServiceServer) {
   457  	s.RegisterService(&AssistEmbeddingService_ServiceDesc, srv)
   458  }
   459  
   460  func _AssistEmbeddingService_GetAssistantEmbeddings_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
   461  	in := new(GetAssistantEmbeddingsRequest)
   462  	if err := dec(in); err != nil {
   463  		return nil, err
   464  	}
   465  	if interceptor == nil {
   466  		return srv.(AssistEmbeddingServiceServer).GetAssistantEmbeddings(ctx, in)
   467  	}
   468  	info := &grpc.UnaryServerInfo{
   469  		Server:     srv,
   470  		FullMethod: AssistEmbeddingService_GetAssistantEmbeddings_FullMethodName,
   471  	}
   472  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
   473  		return srv.(AssistEmbeddingServiceServer).GetAssistantEmbeddings(ctx, req.(*GetAssistantEmbeddingsRequest))
   474  	}
   475  	return interceptor(ctx, in, info, handler)
   476  }
   477  
   478  // AssistEmbeddingService_ServiceDesc is the grpc.ServiceDesc for AssistEmbeddingService service.
   479  // It's only intended for direct use with grpc.RegisterService,
   480  // and not to be introspected or modified (even as a copy)
   481  var AssistEmbeddingService_ServiceDesc = grpc.ServiceDesc{
   482  	ServiceName: "teleport.assist.v1.AssistEmbeddingService",
   483  	HandlerType: (*AssistEmbeddingServiceServer)(nil),
   484  	Methods: []grpc.MethodDesc{
   485  		{
   486  			MethodName: "GetAssistantEmbeddings",
   487  			Handler:    _AssistEmbeddingService_GetAssistantEmbeddings_Handler,
   488  		},
   489  	},
   490  	Streams:  []grpc.StreamDesc{},
   491  	Metadata: "teleport/assist/v1/assist.proto",
   492  }