Documentation ¶
Index ¶
- Variables
- func RegisterCodemakerServiceServer(s grpc.ServiceRegistrar, srv CodemakerServiceServer)
- type AssistantCodeCompletionOptions
- func (*AssistantCodeCompletionOptions) Descriptor() ([]byte, []int)deprecated
- func (x *AssistantCodeCompletionOptions) GetContextId() string
- func (x *AssistantCodeCompletionOptions) GetModel() string
- func (*AssistantCodeCompletionOptions) ProtoMessage()
- func (x *AssistantCodeCompletionOptions) ProtoReflect() protoreflect.Message
- func (x *AssistantCodeCompletionOptions) Reset()
- func (x *AssistantCodeCompletionOptions) String() string
- type AssistantCodeCompletionRequest
- func (*AssistantCodeCompletionRequest) Descriptor() ([]byte, []int)deprecated
- func (x *AssistantCodeCompletionRequest) GetInput() *Input
- func (x *AssistantCodeCompletionRequest) GetLanguage() Language
- func (x *AssistantCodeCompletionRequest) GetMessage() string
- func (x *AssistantCodeCompletionRequest) GetOptions() *AssistantCodeCompletionOptions
- func (*AssistantCodeCompletionRequest) ProtoMessage()
- func (x *AssistantCodeCompletionRequest) ProtoReflect() protoreflect.Message
- func (x *AssistantCodeCompletionRequest) Reset()
- func (x *AssistantCodeCompletionRequest) String() string
- type AssistantCodeCompletionResponse
- func (*AssistantCodeCompletionResponse) Descriptor() ([]byte, []int)deprecated
- func (x *AssistantCodeCompletionResponse) GetMessage() string
- func (x *AssistantCodeCompletionResponse) GetMessageId() string
- func (x *AssistantCodeCompletionResponse) GetOutput() *Output
- func (x *AssistantCodeCompletionResponse) GetSessionId() string
- func (*AssistantCodeCompletionResponse) ProtoMessage()
- func (x *AssistantCodeCompletionResponse) ProtoReflect() protoreflect.Message
- func (x *AssistantCodeCompletionResponse) Reset()
- func (x *AssistantCodeCompletionResponse) String() string
- type AssistantCompletionRequest
- func (*AssistantCompletionRequest) Descriptor() ([]byte, []int)deprecated
- func (x *AssistantCompletionRequest) GetMessage() string
- func (*AssistantCompletionRequest) ProtoMessage()
- func (x *AssistantCompletionRequest) ProtoReflect() protoreflect.Message
- func (x *AssistantCompletionRequest) Reset()
- func (x *AssistantCompletionRequest) String() string
- type AssistantCompletionResponse
- func (*AssistantCompletionResponse) Descriptor() ([]byte, []int)deprecated
- func (x *AssistantCompletionResponse) GetMessage() string
- func (x *AssistantCompletionResponse) GetMessageId() string
- func (x *AssistantCompletionResponse) GetSessionId() string
- func (*AssistantCompletionResponse) ProtoMessage()
- func (x *AssistantCompletionResponse) ProtoReflect() protoreflect.Message
- func (x *AssistantCompletionResponse) Reset()
- func (x *AssistantCompletionResponse) String() string
- type AssistantSpeechRequest
- func (*AssistantSpeechRequest) Descriptor() ([]byte, []int)deprecated
- func (x *AssistantSpeechRequest) GetMessage() string
- func (*AssistantSpeechRequest) ProtoMessage()
- func (x *AssistantSpeechRequest) ProtoReflect() protoreflect.Message
- func (x *AssistantSpeechRequest) Reset()
- func (x *AssistantSpeechRequest) String() string
- type AssistantSpeechResponse
- func (*AssistantSpeechResponse) Descriptor() ([]byte, []int)deprecated
- func (x *AssistantSpeechResponse) GetAudio() []byte
- func (*AssistantSpeechResponse) ProtoMessage()
- func (x *AssistantSpeechResponse) ProtoReflect() protoreflect.Message
- func (x *AssistantSpeechResponse) Reset()
- func (x *AssistantSpeechResponse) String() string
- type CodeSnippetContext
- func (*CodeSnippetContext) Descriptor() ([]byte, []int)deprecated
- func (x *CodeSnippetContext) GetLanguage() string
- func (x *CodeSnippetContext) GetRelativePath() string
- func (x *CodeSnippetContext) GetScore() float64
- func (x *CodeSnippetContext) GetSnippet() string
- func (*CodeSnippetContext) ProtoMessage()
- func (x *CodeSnippetContext) ProtoReflect() protoreflect.Message
- func (x *CodeSnippetContext) Reset()
- func (x *CodeSnippetContext) String() string
- type CodemakerServiceClient
- type CodemakerServiceServer
- type CompletionOptions
- func (*CompletionOptions) Descriptor() ([]byte, []int)deprecated
- func (x *CompletionOptions) GetAllowMultiLineAutocomplete() bool
- func (x *CompletionOptions) GetCodePath() string
- func (x *CompletionOptions) GetCodeSnippetContexts() []*CodeSnippetContext
- func (x *CompletionOptions) GetContextId() string
- func (x *CompletionOptions) GetModel() string
- func (*CompletionOptions) ProtoMessage()
- func (x *CompletionOptions) ProtoReflect() protoreflect.Message
- func (x *CompletionOptions) Reset()
- func (x *CompletionOptions) String() string
- type CompletionRequest
- func (*CompletionRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CompletionRequest) GetInput() *Input
- func (x *CompletionRequest) GetLanguage() Language
- func (x *CompletionRequest) GetOptions() *CompletionOptions
- func (*CompletionRequest) ProtoMessage()
- func (x *CompletionRequest) ProtoReflect() protoreflect.Message
- func (x *CompletionRequest) Reset()
- func (x *CompletionRequest) String() string
- type CompletionResponse
- func (*CompletionResponse) Descriptor() ([]byte, []int)deprecated
- func (x *CompletionResponse) GetOutput() *Output
- func (*CompletionResponse) ProtoMessage()
- func (x *CompletionResponse) ProtoReflect() protoreflect.Message
- func (x *CompletionResponse) Reset()
- func (x *CompletionResponse) String() string
- type CreateSourceContextRequest
- type CreateSourceContextResponse
- func (*CreateSourceContextResponse) Descriptor() ([]byte, []int)deprecated
- func (x *CreateSourceContextResponse) GetId() string
- func (*CreateSourceContextResponse) ProtoMessage()
- func (x *CreateSourceContextResponse) ProtoReflect() protoreflect.Message
- func (x *CreateSourceContextResponse) Reset()
- func (x *CreateSourceContextResponse) String() string
- type DiscoverSourceContextRequest
- func (*DiscoverSourceContextRequest) Descriptor() ([]byte, []int)deprecated
- func (x *DiscoverSourceContextRequest) GetContext() *SourceContext
- func (*DiscoverSourceContextRequest) ProtoMessage()
- func (x *DiscoverSourceContextRequest) ProtoReflect() protoreflect.Message
- func (x *DiscoverSourceContextRequest) Reset()
- func (x *DiscoverSourceContextRequest) String() string
- type DiscoverSourceContextResponse
- func (*DiscoverSourceContextResponse) Descriptor() ([]byte, []int)deprecated
- func (x *DiscoverSourceContextResponse) GetContexts() []*RequiredSourceContext
- func (x *DiscoverSourceContextResponse) GetRequiresProcessing() bool
- func (*DiscoverSourceContextResponse) ProtoMessage()
- func (x *DiscoverSourceContextResponse) ProtoReflect() protoreflect.Message
- func (x *DiscoverSourceContextResponse) Reset()
- func (x *DiscoverSourceContextResponse) String() string
- type Encoding
- type IndentationCharacter
- func (IndentationCharacter) Descriptor() protoreflect.EnumDescriptor
- func (x IndentationCharacter) Enum() *IndentationCharacter
- func (IndentationCharacter) EnumDescriptor() ([]byte, []int)deprecated
- func (x IndentationCharacter) Number() protoreflect.EnumNumber
- func (x IndentationCharacter) String() string
- func (IndentationCharacter) Type() protoreflect.EnumType
- type Input
- type Language
- type ListModelsRequest
- type ListModelsResponse
- func (*ListModelsResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ListModelsResponse) GetModels() []*Model
- func (*ListModelsResponse) ProtoMessage()
- func (x *ListModelsResponse) ProtoReflect() protoreflect.Message
- func (x *ListModelsResponse) Reset()
- func (x *ListModelsResponse) String() string
- type Metadata
- type Mode
- type Model
- type Modify
- type Output
- type PredictRequest
- func (*PredictRequest) Descriptor() ([]byte, []int)deprecated
- func (x *PredictRequest) GetInput() *Input
- func (x *PredictRequest) GetLanguage() Language
- func (x *PredictRequest) GetOptions() *PredictionOptions
- func (*PredictRequest) ProtoMessage()
- func (x *PredictRequest) ProtoReflect() protoreflect.Message
- func (x *PredictRequest) Reset()
- func (x *PredictRequest) String() string
- type PredictResponse
- type PredictionOptions
- func (*PredictionOptions) Descriptor() ([]byte, []int)deprecated
- func (x *PredictionOptions) GetContextId() string
- func (x *PredictionOptions) GetModel() string
- func (*PredictionOptions) ProtoMessage()
- func (x *PredictionOptions) ProtoReflect() protoreflect.Message
- func (x *PredictionOptions) Reset()
- func (x *PredictionOptions) String() string
- type ProcessOptions
- func (*ProcessOptions) Descriptor() ([]byte, []int)deprecated
- func (x *ProcessOptions) GetCodePath() string
- func (x *ProcessOptions) GetContextId() string
- func (x *ProcessOptions) GetDetectSyntaxErrors() bool
- func (x *ProcessOptions) GetIndentationCharacter() IndentationCharacter
- func (x *ProcessOptions) GetMinimalLinesLength() int32
- func (x *ProcessOptions) GetModel() string
- func (x *ProcessOptions) GetModify() Modify
- func (x *ProcessOptions) GetOverrideIndent() int32
- func (x *ProcessOptions) GetPrompt() string
- func (x *ProcessOptions) GetVisibility() Visibility
- func (*ProcessOptions) ProtoMessage()
- func (x *ProcessOptions) ProtoReflect() protoreflect.Message
- func (x *ProcessOptions) Reset()
- func (x *ProcessOptions) String() string
- type ProcessRequest
- func (*ProcessRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ProcessRequest) GetInput() *Input
- func (x *ProcessRequest) GetLanguage() Language
- func (x *ProcessRequest) GetMetadata() *Metadata
- func (x *ProcessRequest) GetMode() Mode
- func (x *ProcessRequest) GetOptions() *ProcessOptions
- func (*ProcessRequest) ProtoMessage()
- func (x *ProcessRequest) ProtoReflect() protoreflect.Message
- func (x *ProcessRequest) Reset()
- func (x *ProcessRequest) String() string
- type ProcessResponse
- type RegisterAssistantFeedbackRequest
- func (*RegisterAssistantFeedbackRequest) Descriptor() ([]byte, []int)deprecated
- func (x *RegisterAssistantFeedbackRequest) GetMessageId() string
- func (x *RegisterAssistantFeedbackRequest) GetSessionId() string
- func (x *RegisterAssistantFeedbackRequest) GetVote() Vote
- func (*RegisterAssistantFeedbackRequest) ProtoMessage()
- func (x *RegisterAssistantFeedbackRequest) ProtoReflect() protoreflect.Message
- func (x *RegisterAssistantFeedbackRequest) Reset()
- func (x *RegisterAssistantFeedbackRequest) String() string
- type RegisterAssistantFeedbackResponse
- func (*RegisterAssistantFeedbackResponse) Descriptor() ([]byte, []int)deprecated
- func (*RegisterAssistantFeedbackResponse) ProtoMessage()
- func (x *RegisterAssistantFeedbackResponse) ProtoReflect() protoreflect.Message
- func (x *RegisterAssistantFeedbackResponse) Reset()
- func (x *RegisterAssistantFeedbackResponse) String() string
- type RegisterSourceContextRequest
- func (*RegisterSourceContextRequest) Descriptor() ([]byte, []int)deprecated
- func (x *RegisterSourceContextRequest) GetId() string
- func (x *RegisterSourceContextRequest) GetSourceContexts() []*SourceContext
- func (*RegisterSourceContextRequest) ProtoMessage()
- func (x *RegisterSourceContextRequest) ProtoReflect() protoreflect.Message
- func (x *RegisterSourceContextRequest) Reset()
- func (x *RegisterSourceContextRequest) String() string
- type RegisterSourceContextResponse
- func (*RegisterSourceContextResponse) Descriptor() ([]byte, []int)deprecated
- func (*RegisterSourceContextResponse) ProtoMessage()
- func (x *RegisterSourceContextResponse) ProtoReflect() protoreflect.Message
- func (x *RegisterSourceContextResponse) Reset()
- func (x *RegisterSourceContextResponse) String() string
- type RequiredSourceContext
- func (*RequiredSourceContext) Descriptor() ([]byte, []int)deprecated
- func (x *RequiredSourceContext) GetPath() string
- func (*RequiredSourceContext) ProtoMessage()
- func (x *RequiredSourceContext) ProtoReflect() protoreflect.Message
- func (x *RequiredSourceContext) Reset()
- func (x *RequiredSourceContext) String() string
- type Source
- func (*Source) Descriptor() ([]byte, []int)deprecated
- func (x *Source) GetChecksum() string
- func (x *Source) GetContent() []byte
- func (x *Source) GetEncoding() Encoding
- func (*Source) ProtoMessage()
- func (x *Source) ProtoReflect() protoreflect.Message
- func (x *Source) Reset()
- func (x *Source) String() string
- type SourceContext
- func (*SourceContext) Descriptor() ([]byte, []int)deprecated
- func (x *SourceContext) GetInput() *Input
- func (x *SourceContext) GetLanguage() Language
- func (x *SourceContext) GetMetadata() *Metadata
- func (*SourceContext) ProtoMessage()
- func (x *SourceContext) ProtoReflect() protoreflect.Message
- func (x *SourceContext) Reset()
- func (x *SourceContext) String() string
- type UnimplementedCodemakerServiceServer
- func (UnimplementedCodemakerServiceServer) AssistantCodeCompletion(context.Context, *AssistantCodeCompletionRequest) (*AssistantCodeCompletionResponse, error)
- func (UnimplementedCodemakerServiceServer) AssistantCompletion(context.Context, *AssistantCompletionRequest) (*AssistantCompletionResponse, error)
- func (UnimplementedCodemakerServiceServer) AssistantSpeech(context.Context, *AssistantSpeechRequest) (*AssistantSpeechResponse, error)
- func (UnimplementedCodemakerServiceServer) Completion(context.Context, *CompletionRequest) (*CompletionResponse, error)
- func (UnimplementedCodemakerServiceServer) CreateContext(context.Context, *CreateSourceContextRequest) (*CreateSourceContextResponse, error)
- func (UnimplementedCodemakerServiceServer) DiscoverContext(context.Context, *DiscoverSourceContextRequest) (*DiscoverSourceContextResponse, error)
- func (UnimplementedCodemakerServiceServer) ListModels(context.Context, *ListModelsRequest) (*ListModelsResponse, error)
- func (UnimplementedCodemakerServiceServer) Predict(context.Context, *PredictRequest) (*PredictResponse, error)
- func (UnimplementedCodemakerServiceServer) Process(context.Context, *ProcessRequest) (*ProcessResponse, error)
- func (UnimplementedCodemakerServiceServer) RegisterAssistantFeedback(context.Context, *RegisterAssistantFeedbackRequest) (*RegisterAssistantFeedbackResponse, error)
- func (UnimplementedCodemakerServiceServer) RegisterContext(context.Context, *RegisterSourceContextRequest) (*RegisterSourceContextResponse, error)
- type UnsafeCodemakerServiceServer
- type Visibility
- type Vote
Constants ¶
This section is empty.
Variables ¶
var ( Mode_name = map[int32]string{ 0: "CODE", 1: "INLINE_CODE", 2: "EDIT_CODE", 3: "DOCUMENT", 4: "FIX_SYNTAX", } Mode_value = map[string]int32{ "CODE": 0, "INLINE_CODE": 1, "EDIT_CODE": 2, "DOCUMENT": 3, "FIX_SYNTAX": 4, } )
Enum value maps for Mode.
var ( Language_name = map[int32]string{ 0: "SQL", 1: "C", 2: "OBJECTIVEC", 3: "CPP", 4: "PYTHON", 5: "R", 6: "HTML", 7: "JAVA", 8: "PHP", 9: "JAVASCRIPT", 10: "RUBY", 11: "XML", 12: "CSS", 13: "CSHARP", 14: "YAML", 15: "JSON", 16: "SCALA", 17: "SASS", 18: "GO", 19: "KOTLIN", 20: "TYPESCRIPT", 21: "TOML", 22: "SWIFT", 23: "RUST", 24: "DART", } Language_value = map[string]int32{ "SQL": 0, "C": 1, "OBJECTIVEC": 2, "CPP": 3, "PYTHON": 4, "R": 5, "HTML": 6, "JAVA": 7, "PHP": 8, "JAVASCRIPT": 9, "RUBY": 10, "XML": 11, "CSS": 12, "CSHARP": 13, "YAML": 14, "JSON": 15, "SCALA": 16, "SASS": 17, "GO": 18, "KOTLIN": 19, "TYPESCRIPT": 20, "TOML": 21, "SWIFT": 22, "RUST": 23, "DART": 24, } )
Enum value maps for Language.
var ( Encoding_name = map[int32]string{ 0: "NONE", 1: "GZIP", } Encoding_value = map[string]int32{ "NONE": 0, "GZIP": 1, } )
Enum value maps for Encoding.
var ( Modify_name = map[int32]string{ 0: "UNMODIFIED", 1: "REPLACE", } Modify_value = map[string]int32{ "UNMODIFIED": 0, "REPLACE": 1, } )
Enum value maps for Modify.
var ( IndentationCharacter_name = map[int32]string{ 0: "SPACE", 1: "TAB", } IndentationCharacter_value = map[string]int32{ "SPACE": 0, "TAB": 1, } )
Enum value maps for IndentationCharacter.
var ( Visibility_name = map[int32]string{ 0: "ALL", 1: "PUBLIC", } Visibility_value = map[string]int32{ "ALL": 0, "PUBLIC": 1, } )
Enum value maps for Visibility.
var ( Vote_name = map[int32]string{ 0: "UP_VOTE", 1: "DOWN_VOTE", } Vote_value = map[string]int32{ "UP_VOTE": 0, "DOWN_VOTE": 1, } )
Enum value maps for Vote.
var CodemakerService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "ai.codemaker.service.CodemakerService", HandlerType: (*CodemakerServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "AssistantCompletion", Handler: _CodemakerService_AssistantCompletion_Handler, }, { MethodName: "AssistantCodeCompletion", Handler: _CodemakerService_AssistantCodeCompletion_Handler, }, { MethodName: "AssistantSpeech", Handler: _CodemakerService_AssistantSpeech_Handler, }, { MethodName: "RegisterAssistantFeedback", Handler: _CodemakerService_RegisterAssistantFeedback_Handler, }, { MethodName: "Completion", Handler: _CodemakerService_Completion_Handler, }, { MethodName: "Process", Handler: _CodemakerService_Process_Handler, }, { MethodName: "Predict", Handler: _CodemakerService_Predict_Handler, }, { MethodName: "DiscoverContext", Handler: _CodemakerService_DiscoverContext_Handler, }, { MethodName: "CreateContext", Handler: _CodemakerService_CreateContext_Handler, }, { MethodName: "RegisterContext", Handler: _CodemakerService_RegisterContext_Handler, }, { MethodName: "ListModels", Handler: _CodemakerService_ListModels_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "proto/codemakerai.proto", }
CodemakerService_ServiceDesc is the grpc.ServiceDesc for CodemakerService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var File_proto_codemakerai_proto protoreflect.FileDescriptor
Functions ¶
func RegisterCodemakerServiceServer ¶
func RegisterCodemakerServiceServer(s grpc.ServiceRegistrar, srv CodemakerServiceServer)
Types ¶
type AssistantCodeCompletionOptions ¶
type AssistantCodeCompletionOptions struct { ContextId string `protobuf:"bytes,1,opt,name=contextId,proto3" json:"contextId,omitempty"` Model string `protobuf:"bytes,2,opt,name=model,proto3" json:"model,omitempty"` // contains filtered or unexported fields }
func (*AssistantCodeCompletionOptions) Descriptor
deprecated
func (*AssistantCodeCompletionOptions) Descriptor() ([]byte, []int)
Deprecated: Use AssistantCodeCompletionOptions.ProtoReflect.Descriptor instead.
func (*AssistantCodeCompletionOptions) GetContextId ¶
func (x *AssistantCodeCompletionOptions) GetContextId() string
func (*AssistantCodeCompletionOptions) GetModel ¶
func (x *AssistantCodeCompletionOptions) GetModel() string
func (*AssistantCodeCompletionOptions) ProtoMessage ¶
func (*AssistantCodeCompletionOptions) ProtoMessage()
func (*AssistantCodeCompletionOptions) ProtoReflect ¶
func (x *AssistantCodeCompletionOptions) ProtoReflect() protoreflect.Message
func (*AssistantCodeCompletionOptions) Reset ¶
func (x *AssistantCodeCompletionOptions) Reset()
func (*AssistantCodeCompletionOptions) String ¶
func (x *AssistantCodeCompletionOptions) String() string
type AssistantCodeCompletionRequest ¶
type AssistantCodeCompletionRequest struct { Message string `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"` Language Language `protobuf:"varint,2,opt,name=language,proto3,enum=ai.codemaker.service.Language" json:"language,omitempty"` Input *Input `protobuf:"bytes,3,opt,name=input,proto3" json:"input,omitempty"` Options *AssistantCodeCompletionOptions `protobuf:"bytes,4,opt,name=options,proto3" json:"options,omitempty"` // contains filtered or unexported fields }
func (*AssistantCodeCompletionRequest) Descriptor
deprecated
func (*AssistantCodeCompletionRequest) Descriptor() ([]byte, []int)
Deprecated: Use AssistantCodeCompletionRequest.ProtoReflect.Descriptor instead.
func (*AssistantCodeCompletionRequest) GetInput ¶
func (x *AssistantCodeCompletionRequest) GetInput() *Input
func (*AssistantCodeCompletionRequest) GetLanguage ¶
func (x *AssistantCodeCompletionRequest) GetLanguage() Language
func (*AssistantCodeCompletionRequest) GetMessage ¶
func (x *AssistantCodeCompletionRequest) GetMessage() string
func (*AssistantCodeCompletionRequest) GetOptions ¶
func (x *AssistantCodeCompletionRequest) GetOptions() *AssistantCodeCompletionOptions
func (*AssistantCodeCompletionRequest) ProtoMessage ¶
func (*AssistantCodeCompletionRequest) ProtoMessage()
func (*AssistantCodeCompletionRequest) ProtoReflect ¶
func (x *AssistantCodeCompletionRequest) ProtoReflect() protoreflect.Message
func (*AssistantCodeCompletionRequest) Reset ¶
func (x *AssistantCodeCompletionRequest) Reset()
func (*AssistantCodeCompletionRequest) String ¶
func (x *AssistantCodeCompletionRequest) String() string
type AssistantCodeCompletionResponse ¶
type AssistantCodeCompletionResponse struct { Message string `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"` Output *Output `protobuf:"bytes,2,opt,name=output,proto3" json:"output,omitempty"` SessionId string `protobuf:"bytes,3,opt,name=sessionId,proto3" json:"sessionId,omitempty"` MessageId string `protobuf:"bytes,4,opt,name=messageId,proto3" json:"messageId,omitempty"` // contains filtered or unexported fields }
func (*AssistantCodeCompletionResponse) Descriptor
deprecated
func (*AssistantCodeCompletionResponse) Descriptor() ([]byte, []int)
Deprecated: Use AssistantCodeCompletionResponse.ProtoReflect.Descriptor instead.
func (*AssistantCodeCompletionResponse) GetMessage ¶
func (x *AssistantCodeCompletionResponse) GetMessage() string
func (*AssistantCodeCompletionResponse) GetMessageId ¶ added in v1.6.0
func (x *AssistantCodeCompletionResponse) GetMessageId() string
func (*AssistantCodeCompletionResponse) GetOutput ¶
func (x *AssistantCodeCompletionResponse) GetOutput() *Output
func (*AssistantCodeCompletionResponse) GetSessionId ¶ added in v1.6.0
func (x *AssistantCodeCompletionResponse) GetSessionId() string
func (*AssistantCodeCompletionResponse) ProtoMessage ¶
func (*AssistantCodeCompletionResponse) ProtoMessage()
func (*AssistantCodeCompletionResponse) ProtoReflect ¶
func (x *AssistantCodeCompletionResponse) ProtoReflect() protoreflect.Message
func (*AssistantCodeCompletionResponse) Reset ¶
func (x *AssistantCodeCompletionResponse) Reset()
func (*AssistantCodeCompletionResponse) String ¶
func (x *AssistantCodeCompletionResponse) String() string
type AssistantCompletionRequest ¶
type AssistantCompletionRequest struct { Message string `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"` // contains filtered or unexported fields }
func (*AssistantCompletionRequest) Descriptor
deprecated
func (*AssistantCompletionRequest) Descriptor() ([]byte, []int)
Deprecated: Use AssistantCompletionRequest.ProtoReflect.Descriptor instead.
func (*AssistantCompletionRequest) GetMessage ¶
func (x *AssistantCompletionRequest) GetMessage() string
func (*AssistantCompletionRequest) ProtoMessage ¶
func (*AssistantCompletionRequest) ProtoMessage()
func (*AssistantCompletionRequest) ProtoReflect ¶
func (x *AssistantCompletionRequest) ProtoReflect() protoreflect.Message
func (*AssistantCompletionRequest) Reset ¶
func (x *AssistantCompletionRequest) Reset()
func (*AssistantCompletionRequest) String ¶
func (x *AssistantCompletionRequest) String() string
type AssistantCompletionResponse ¶
type AssistantCompletionResponse struct { Message string `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"` SessionId string `protobuf:"bytes,2,opt,name=sessionId,proto3" json:"sessionId,omitempty"` MessageId string `protobuf:"bytes,3,opt,name=messageId,proto3" json:"messageId,omitempty"` // contains filtered or unexported fields }
func (*AssistantCompletionResponse) Descriptor
deprecated
func (*AssistantCompletionResponse) Descriptor() ([]byte, []int)
Deprecated: Use AssistantCompletionResponse.ProtoReflect.Descriptor instead.
func (*AssistantCompletionResponse) GetMessage ¶
func (x *AssistantCompletionResponse) GetMessage() string
func (*AssistantCompletionResponse) GetMessageId ¶ added in v1.6.0
func (x *AssistantCompletionResponse) GetMessageId() string
func (*AssistantCompletionResponse) GetSessionId ¶ added in v1.6.0
func (x *AssistantCompletionResponse) GetSessionId() string
func (*AssistantCompletionResponse) ProtoMessage ¶
func (*AssistantCompletionResponse) ProtoMessage()
func (*AssistantCompletionResponse) ProtoReflect ¶
func (x *AssistantCompletionResponse) ProtoReflect() protoreflect.Message
func (*AssistantCompletionResponse) Reset ¶
func (x *AssistantCompletionResponse) Reset()
func (*AssistantCompletionResponse) String ¶
func (x *AssistantCompletionResponse) String() string
type AssistantSpeechRequest ¶ added in v1.6.0
type AssistantSpeechRequest struct { Message string `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"` // contains filtered or unexported fields }
func (*AssistantSpeechRequest) Descriptor
deprecated
added in
v1.6.0
func (*AssistantSpeechRequest) Descriptor() ([]byte, []int)
Deprecated: Use AssistantSpeechRequest.ProtoReflect.Descriptor instead.
func (*AssistantSpeechRequest) GetMessage ¶ added in v1.6.0
func (x *AssistantSpeechRequest) GetMessage() string
func (*AssistantSpeechRequest) ProtoMessage ¶ added in v1.6.0
func (*AssistantSpeechRequest) ProtoMessage()
func (*AssistantSpeechRequest) ProtoReflect ¶ added in v1.6.0
func (x *AssistantSpeechRequest) ProtoReflect() protoreflect.Message
func (*AssistantSpeechRequest) Reset ¶ added in v1.6.0
func (x *AssistantSpeechRequest) Reset()
func (*AssistantSpeechRequest) String ¶ added in v1.6.0
func (x *AssistantSpeechRequest) String() string
type AssistantSpeechResponse ¶ added in v1.6.0
type AssistantSpeechResponse struct { Audio []byte `protobuf:"bytes,1,opt,name=audio,proto3" json:"audio,omitempty"` // contains filtered or unexported fields }
func (*AssistantSpeechResponse) Descriptor
deprecated
added in
v1.6.0
func (*AssistantSpeechResponse) Descriptor() ([]byte, []int)
Deprecated: Use AssistantSpeechResponse.ProtoReflect.Descriptor instead.
func (*AssistantSpeechResponse) GetAudio ¶ added in v1.6.0
func (x *AssistantSpeechResponse) GetAudio() []byte
func (*AssistantSpeechResponse) ProtoMessage ¶ added in v1.6.0
func (*AssistantSpeechResponse) ProtoMessage()
func (*AssistantSpeechResponse) ProtoReflect ¶ added in v1.6.0
func (x *AssistantSpeechResponse) ProtoReflect() protoreflect.Message
func (*AssistantSpeechResponse) Reset ¶ added in v1.6.0
func (x *AssistantSpeechResponse) Reset()
func (*AssistantSpeechResponse) String ¶ added in v1.6.0
func (x *AssistantSpeechResponse) String() string
type CodeSnippetContext ¶
type CodeSnippetContext struct { Language string `protobuf:"bytes,1,opt,name=language,proto3" json:"language,omitempty"` Snippet string `protobuf:"bytes,2,opt,name=snippet,proto3" json:"snippet,omitempty"` RelativePath string `protobuf:"bytes,3,opt,name=relativePath,proto3" json:"relativePath,omitempty"` Score float64 `protobuf:"fixed64,4,opt,name=score,proto3" json:"score,omitempty"` // contains filtered or unexported fields }
func (*CodeSnippetContext) Descriptor
deprecated
func (*CodeSnippetContext) Descriptor() ([]byte, []int)
Deprecated: Use CodeSnippetContext.ProtoReflect.Descriptor instead.
func (*CodeSnippetContext) GetLanguage ¶
func (x *CodeSnippetContext) GetLanguage() string
func (*CodeSnippetContext) GetRelativePath ¶
func (x *CodeSnippetContext) GetRelativePath() string
func (*CodeSnippetContext) GetScore ¶
func (x *CodeSnippetContext) GetScore() float64
func (*CodeSnippetContext) GetSnippet ¶
func (x *CodeSnippetContext) GetSnippet() string
func (*CodeSnippetContext) ProtoMessage ¶
func (*CodeSnippetContext) ProtoMessage()
func (*CodeSnippetContext) ProtoReflect ¶
func (x *CodeSnippetContext) ProtoReflect() protoreflect.Message
func (*CodeSnippetContext) Reset ¶
func (x *CodeSnippetContext) Reset()
func (*CodeSnippetContext) String ¶
func (x *CodeSnippetContext) String() string
type CodemakerServiceClient ¶
type CodemakerServiceClient interface { AssistantCompletion(ctx context.Context, in *AssistantCompletionRequest, opts ...grpc.CallOption) (*AssistantCompletionResponse, error) AssistantCodeCompletion(ctx context.Context, in *AssistantCodeCompletionRequest, opts ...grpc.CallOption) (*AssistantCodeCompletionResponse, error) AssistantSpeech(ctx context.Context, in *AssistantSpeechRequest, opts ...grpc.CallOption) (*AssistantSpeechResponse, error) RegisterAssistantFeedback(ctx context.Context, in *RegisterAssistantFeedbackRequest, opts ...grpc.CallOption) (*RegisterAssistantFeedbackResponse, error) Completion(ctx context.Context, in *CompletionRequest, opts ...grpc.CallOption) (*CompletionResponse, error) Process(ctx context.Context, in *ProcessRequest, opts ...grpc.CallOption) (*ProcessResponse, error) Predict(ctx context.Context, in *PredictRequest, opts ...grpc.CallOption) (*PredictResponse, error) DiscoverContext(ctx context.Context, in *DiscoverSourceContextRequest, opts ...grpc.CallOption) (*DiscoverSourceContextResponse, error) CreateContext(ctx context.Context, in *CreateSourceContextRequest, opts ...grpc.CallOption) (*CreateSourceContextResponse, error) RegisterContext(ctx context.Context, in *RegisterSourceContextRequest, opts ...grpc.CallOption) (*RegisterSourceContextResponse, error) ListModels(ctx context.Context, in *ListModelsRequest, opts ...grpc.CallOption) (*ListModelsResponse, error) }
CodemakerServiceClient is the client API for CodemakerService service.
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.
func NewCodemakerServiceClient ¶
func NewCodemakerServiceClient(cc grpc.ClientConnInterface) CodemakerServiceClient
type CodemakerServiceServer ¶
type CodemakerServiceServer interface { AssistantCompletion(context.Context, *AssistantCompletionRequest) (*AssistantCompletionResponse, error) AssistantCodeCompletion(context.Context, *AssistantCodeCompletionRequest) (*AssistantCodeCompletionResponse, error) AssistantSpeech(context.Context, *AssistantSpeechRequest) (*AssistantSpeechResponse, error) RegisterAssistantFeedback(context.Context, *RegisterAssistantFeedbackRequest) (*RegisterAssistantFeedbackResponse, error) Completion(context.Context, *CompletionRequest) (*CompletionResponse, error) Process(context.Context, *ProcessRequest) (*ProcessResponse, error) Predict(context.Context, *PredictRequest) (*PredictResponse, error) DiscoverContext(context.Context, *DiscoverSourceContextRequest) (*DiscoverSourceContextResponse, error) CreateContext(context.Context, *CreateSourceContextRequest) (*CreateSourceContextResponse, error) RegisterContext(context.Context, *RegisterSourceContextRequest) (*RegisterSourceContextResponse, error) ListModels(context.Context, *ListModelsRequest) (*ListModelsResponse, error) // contains filtered or unexported methods }
CodemakerServiceServer is the server API for CodemakerService service. All implementations must embed UnimplementedCodemakerServiceServer for forward compatibility
type CompletionOptions ¶
type CompletionOptions struct { CodePath string `protobuf:"bytes,1,opt,name=codePath,proto3" json:"codePath,omitempty"` AllowMultiLineAutocomplete bool `protobuf:"varint,2,opt,name=allowMultiLineAutocomplete,proto3" json:"allowMultiLineAutocomplete,omitempty"` CodeSnippetContexts []*CodeSnippetContext `protobuf:"bytes,3,rep,name=codeSnippetContexts,proto3" json:"codeSnippetContexts,omitempty"` ContextId string `protobuf:"bytes,4,opt,name=contextId,proto3" json:"contextId,omitempty"` Model string `protobuf:"bytes,5,opt,name=model,proto3" json:"model,omitempty"` // contains filtered or unexported fields }
func (*CompletionOptions) Descriptor
deprecated
func (*CompletionOptions) Descriptor() ([]byte, []int)
Deprecated: Use CompletionOptions.ProtoReflect.Descriptor instead.
func (*CompletionOptions) GetAllowMultiLineAutocomplete ¶
func (x *CompletionOptions) GetAllowMultiLineAutocomplete() bool
func (*CompletionOptions) GetCodePath ¶
func (x *CompletionOptions) GetCodePath() string
func (*CompletionOptions) GetCodeSnippetContexts ¶
func (x *CompletionOptions) GetCodeSnippetContexts() []*CodeSnippetContext
func (*CompletionOptions) GetContextId ¶
func (x *CompletionOptions) GetContextId() string
func (*CompletionOptions) GetModel ¶
func (x *CompletionOptions) GetModel() string
func (*CompletionOptions) ProtoMessage ¶
func (*CompletionOptions) ProtoMessage()
func (*CompletionOptions) ProtoReflect ¶
func (x *CompletionOptions) ProtoReflect() protoreflect.Message
func (*CompletionOptions) Reset ¶
func (x *CompletionOptions) Reset()
func (*CompletionOptions) String ¶
func (x *CompletionOptions) String() string
type CompletionRequest ¶
type CompletionRequest struct { Language Language `protobuf:"varint,1,opt,name=language,proto3,enum=ai.codemaker.service.Language" json:"language,omitempty"` Input *Input `protobuf:"bytes,2,opt,name=input,proto3" json:"input,omitempty"` Options *CompletionOptions `protobuf:"bytes,3,opt,name=options,proto3" json:"options,omitempty"` // contains filtered or unexported fields }
func (*CompletionRequest) Descriptor
deprecated
func (*CompletionRequest) Descriptor() ([]byte, []int)
Deprecated: Use CompletionRequest.ProtoReflect.Descriptor instead.
func (*CompletionRequest) GetInput ¶
func (x *CompletionRequest) GetInput() *Input
func (*CompletionRequest) GetLanguage ¶
func (x *CompletionRequest) GetLanguage() Language
func (*CompletionRequest) GetOptions ¶
func (x *CompletionRequest) GetOptions() *CompletionOptions
func (*CompletionRequest) ProtoMessage ¶
func (*CompletionRequest) ProtoMessage()
func (*CompletionRequest) ProtoReflect ¶
func (x *CompletionRequest) ProtoReflect() protoreflect.Message
func (*CompletionRequest) Reset ¶
func (x *CompletionRequest) Reset()
func (*CompletionRequest) String ¶
func (x *CompletionRequest) String() string
type CompletionResponse ¶
type CompletionResponse struct { Output *Output `protobuf:"bytes,1,opt,name=output,proto3" json:"output,omitempty"` // contains filtered or unexported fields }
func (*CompletionResponse) Descriptor
deprecated
func (*CompletionResponse) Descriptor() ([]byte, []int)
Deprecated: Use CompletionResponse.ProtoReflect.Descriptor instead.
func (*CompletionResponse) GetOutput ¶
func (x *CompletionResponse) GetOutput() *Output
func (*CompletionResponse) ProtoMessage ¶
func (*CompletionResponse) ProtoMessage()
func (*CompletionResponse) ProtoReflect ¶
func (x *CompletionResponse) ProtoReflect() protoreflect.Message
func (*CompletionResponse) Reset ¶
func (x *CompletionResponse) Reset()
func (*CompletionResponse) String ¶
func (x *CompletionResponse) String() string
type CreateSourceContextRequest ¶
type CreateSourceContextRequest struct {
// contains filtered or unexported fields
}
func (*CreateSourceContextRequest) Descriptor
deprecated
func (*CreateSourceContextRequest) Descriptor() ([]byte, []int)
Deprecated: Use CreateSourceContextRequest.ProtoReflect.Descriptor instead.
func (*CreateSourceContextRequest) ProtoMessage ¶
func (*CreateSourceContextRequest) ProtoMessage()
func (*CreateSourceContextRequest) ProtoReflect ¶
func (x *CreateSourceContextRequest) ProtoReflect() protoreflect.Message
func (*CreateSourceContextRequest) Reset ¶
func (x *CreateSourceContextRequest) Reset()
func (*CreateSourceContextRequest) String ¶
func (x *CreateSourceContextRequest) String() string
type CreateSourceContextResponse ¶
type CreateSourceContextResponse struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*CreateSourceContextResponse) Descriptor
deprecated
func (*CreateSourceContextResponse) Descriptor() ([]byte, []int)
Deprecated: Use CreateSourceContextResponse.ProtoReflect.Descriptor instead.
func (*CreateSourceContextResponse) GetId ¶
func (x *CreateSourceContextResponse) GetId() string
func (*CreateSourceContextResponse) ProtoMessage ¶
func (*CreateSourceContextResponse) ProtoMessage()
func (*CreateSourceContextResponse) ProtoReflect ¶
func (x *CreateSourceContextResponse) ProtoReflect() protoreflect.Message
func (*CreateSourceContextResponse) Reset ¶
func (x *CreateSourceContextResponse) Reset()
func (*CreateSourceContextResponse) String ¶
func (x *CreateSourceContextResponse) String() string
type DiscoverSourceContextRequest ¶
type DiscoverSourceContextRequest struct { Context *SourceContext `protobuf:"bytes,1,opt,name=context,proto3" json:"context,omitempty"` // contains filtered or unexported fields }
func (*DiscoverSourceContextRequest) Descriptor
deprecated
func (*DiscoverSourceContextRequest) Descriptor() ([]byte, []int)
Deprecated: Use DiscoverSourceContextRequest.ProtoReflect.Descriptor instead.
func (*DiscoverSourceContextRequest) GetContext ¶
func (x *DiscoverSourceContextRequest) GetContext() *SourceContext
func (*DiscoverSourceContextRequest) ProtoMessage ¶
func (*DiscoverSourceContextRequest) ProtoMessage()
func (*DiscoverSourceContextRequest) ProtoReflect ¶
func (x *DiscoverSourceContextRequest) ProtoReflect() protoreflect.Message
func (*DiscoverSourceContextRequest) Reset ¶
func (x *DiscoverSourceContextRequest) Reset()
func (*DiscoverSourceContextRequest) String ¶
func (x *DiscoverSourceContextRequest) String() string
type DiscoverSourceContextResponse ¶
type DiscoverSourceContextResponse struct { Contexts []*RequiredSourceContext `protobuf:"bytes,1,rep,name=contexts,proto3" json:"contexts,omitempty"` RequiresProcessing bool `protobuf:"varint,2,opt,name=requiresProcessing,proto3" json:"requiresProcessing,omitempty"` // contains filtered or unexported fields }
func (*DiscoverSourceContextResponse) Descriptor
deprecated
func (*DiscoverSourceContextResponse) Descriptor() ([]byte, []int)
Deprecated: Use DiscoverSourceContextResponse.ProtoReflect.Descriptor instead.
func (*DiscoverSourceContextResponse) GetContexts ¶
func (x *DiscoverSourceContextResponse) GetContexts() []*RequiredSourceContext
func (*DiscoverSourceContextResponse) GetRequiresProcessing ¶
func (x *DiscoverSourceContextResponse) GetRequiresProcessing() bool
func (*DiscoverSourceContextResponse) ProtoMessage ¶
func (*DiscoverSourceContextResponse) ProtoMessage()
func (*DiscoverSourceContextResponse) ProtoReflect ¶
func (x *DiscoverSourceContextResponse) ProtoReflect() protoreflect.Message
func (*DiscoverSourceContextResponse) Reset ¶
func (x *DiscoverSourceContextResponse) Reset()
func (*DiscoverSourceContextResponse) String ¶
func (x *DiscoverSourceContextResponse) String() string
type Encoding ¶
type Encoding int32
func (Encoding) Descriptor ¶
func (Encoding) Descriptor() protoreflect.EnumDescriptor
func (Encoding) EnumDescriptor
deprecated
func (Encoding) Number ¶
func (x Encoding) Number() protoreflect.EnumNumber
func (Encoding) Type ¶
func (Encoding) Type() protoreflect.EnumType
type IndentationCharacter ¶ added in v1.4.0
type IndentationCharacter int32
const ( IndentationCharacter_SPACE IndentationCharacter = 0 IndentationCharacter_TAB IndentationCharacter = 1 )
func (IndentationCharacter) Descriptor ¶ added in v1.4.0
func (IndentationCharacter) Descriptor() protoreflect.EnumDescriptor
func (IndentationCharacter) Enum ¶ added in v1.4.0
func (x IndentationCharacter) Enum() *IndentationCharacter
func (IndentationCharacter) EnumDescriptor
deprecated
added in
v1.4.0
func (IndentationCharacter) EnumDescriptor() ([]byte, []int)
Deprecated: Use IndentationCharacter.Descriptor instead.
func (IndentationCharacter) Number ¶ added in v1.4.0
func (x IndentationCharacter) Number() protoreflect.EnumNumber
func (IndentationCharacter) String ¶ added in v1.4.0
func (x IndentationCharacter) String() string
func (IndentationCharacter) Type ¶ added in v1.4.0
func (IndentationCharacter) Type() protoreflect.EnumType
type Input ¶
type Input struct { Source *Source `protobuf:"bytes,1,opt,name=source,proto3" json:"source,omitempty"` // contains filtered or unexported fields }
func (*Input) Descriptor
deprecated
func (*Input) ProtoMessage ¶
func (*Input) ProtoMessage()
func (*Input) ProtoReflect ¶
func (x *Input) ProtoReflect() protoreflect.Message
type Language ¶
type Language int32
const ( Language_SQL Language = 0 Language_C Language = 1 Language_OBJECTIVEC Language = 2 Language_CPP Language = 3 Language_PYTHON Language = 4 Language_R Language = 5 Language_HTML Language = 6 Language_JAVA Language = 7 Language_PHP Language = 8 Language_JAVASCRIPT Language = 9 Language_RUBY Language = 10 Language_XML Language = 11 Language_CSS Language = 12 Language_CSHARP Language = 13 Language_YAML Language = 14 Language_JSON Language = 15 Language_SCALA Language = 16 Language_SASS Language = 17 Language_GO Language = 18 Language_KOTLIN Language = 19 Language_TYPESCRIPT Language = 20 Language_TOML Language = 21 Language_SWIFT Language = 22 Language_RUST Language = 23 Language_DART Language = 24 )
func (Language) Descriptor ¶
func (Language) Descriptor() protoreflect.EnumDescriptor
func (Language) EnumDescriptor
deprecated
func (Language) Number ¶
func (x Language) Number() protoreflect.EnumNumber
func (Language) Type ¶
func (Language) Type() protoreflect.EnumType
type ListModelsRequest ¶
type ListModelsRequest struct {
// contains filtered or unexported fields
}
func (*ListModelsRequest) Descriptor
deprecated
func (*ListModelsRequest) Descriptor() ([]byte, []int)
Deprecated: Use ListModelsRequest.ProtoReflect.Descriptor instead.
func (*ListModelsRequest) ProtoMessage ¶
func (*ListModelsRequest) ProtoMessage()
func (*ListModelsRequest) ProtoReflect ¶
func (x *ListModelsRequest) ProtoReflect() protoreflect.Message
func (*ListModelsRequest) Reset ¶
func (x *ListModelsRequest) Reset()
func (*ListModelsRequest) String ¶
func (x *ListModelsRequest) String() string
type ListModelsResponse ¶
type ListModelsResponse struct { Models []*Model `protobuf:"bytes,1,rep,name=models,proto3" json:"models,omitempty"` // contains filtered or unexported fields }
func (*ListModelsResponse) Descriptor
deprecated
func (*ListModelsResponse) Descriptor() ([]byte, []int)
Deprecated: Use ListModelsResponse.ProtoReflect.Descriptor instead.
func (*ListModelsResponse) GetModels ¶
func (x *ListModelsResponse) GetModels() []*Model
func (*ListModelsResponse) ProtoMessage ¶
func (*ListModelsResponse) ProtoMessage()
func (*ListModelsResponse) ProtoReflect ¶
func (x *ListModelsResponse) ProtoReflect() protoreflect.Message
func (*ListModelsResponse) Reset ¶
func (x *ListModelsResponse) Reset()
func (*ListModelsResponse) String ¶
func (x *ListModelsResponse) String() string
type Metadata ¶
type Metadata struct { Path string `protobuf:"bytes,1,opt,name=path,proto3" json:"path,omitempty"` // contains filtered or unexported fields }
func (*Metadata) Descriptor
deprecated
func (*Metadata) ProtoMessage ¶
func (*Metadata) ProtoMessage()
func (*Metadata) ProtoReflect ¶
func (x *Metadata) ProtoReflect() protoreflect.Message
type Mode ¶
type Mode int32
func (Mode) Descriptor ¶
func (Mode) Descriptor() protoreflect.EnumDescriptor
func (Mode) EnumDescriptor
deprecated
func (Mode) Number ¶
func (x Mode) Number() protoreflect.EnumNumber
func (Mode) Type ¶
func (Mode) Type() protoreflect.EnumType
type Model ¶
type Model struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` // contains filtered or unexported fields }
func (*Model) Descriptor
deprecated
func (*Model) ProtoMessage ¶
func (*Model) ProtoMessage()
func (*Model) ProtoReflect ¶
func (x *Model) ProtoReflect() protoreflect.Message
type Modify ¶
type Modify int32
func (Modify) Descriptor ¶
func (Modify) Descriptor() protoreflect.EnumDescriptor
func (Modify) EnumDescriptor
deprecated
func (Modify) Number ¶
func (x Modify) Number() protoreflect.EnumNumber
func (Modify) Type ¶
func (Modify) Type() protoreflect.EnumType
type Output ¶
type Output struct { Source *Source `protobuf:"bytes,1,opt,name=source,proto3" json:"source,omitempty"` // contains filtered or unexported fields }
func (*Output) Descriptor
deprecated
func (*Output) ProtoMessage ¶
func (*Output) ProtoMessage()
func (*Output) ProtoReflect ¶
func (x *Output) ProtoReflect() protoreflect.Message
type PredictRequest ¶
type PredictRequest struct { Language Language `protobuf:"varint,1,opt,name=language,proto3,enum=ai.codemaker.service.Language" json:"language,omitempty"` Input *Input `protobuf:"bytes,2,opt,name=input,proto3" json:"input,omitempty"` Options *PredictionOptions `protobuf:"bytes,3,opt,name=options,proto3" json:"options,omitempty"` // contains filtered or unexported fields }
func (*PredictRequest) Descriptor
deprecated
func (*PredictRequest) Descriptor() ([]byte, []int)
Deprecated: Use PredictRequest.ProtoReflect.Descriptor instead.
func (*PredictRequest) GetInput ¶
func (x *PredictRequest) GetInput() *Input
func (*PredictRequest) GetLanguage ¶
func (x *PredictRequest) GetLanguage() Language
func (*PredictRequest) GetOptions ¶
func (x *PredictRequest) GetOptions() *PredictionOptions
func (*PredictRequest) ProtoMessage ¶
func (*PredictRequest) ProtoMessage()
func (*PredictRequest) ProtoReflect ¶
func (x *PredictRequest) ProtoReflect() protoreflect.Message
func (*PredictRequest) Reset ¶
func (x *PredictRequest) Reset()
func (*PredictRequest) String ¶
func (x *PredictRequest) String() string
type PredictResponse ¶
type PredictResponse struct {
// contains filtered or unexported fields
}
func (*PredictResponse) Descriptor
deprecated
func (*PredictResponse) Descriptor() ([]byte, []int)
Deprecated: Use PredictResponse.ProtoReflect.Descriptor instead.
func (*PredictResponse) ProtoMessage ¶
func (*PredictResponse) ProtoMessage()
func (*PredictResponse) ProtoReflect ¶
func (x *PredictResponse) ProtoReflect() protoreflect.Message
func (*PredictResponse) Reset ¶
func (x *PredictResponse) Reset()
func (*PredictResponse) String ¶
func (x *PredictResponse) String() string
type PredictionOptions ¶
type PredictionOptions struct { ContextId string `protobuf:"bytes,1,opt,name=contextId,proto3" json:"contextId,omitempty"` Model string `protobuf:"bytes,2,opt,name=model,proto3" json:"model,omitempty"` // contains filtered or unexported fields }
func (*PredictionOptions) Descriptor
deprecated
func (*PredictionOptions) Descriptor() ([]byte, []int)
Deprecated: Use PredictionOptions.ProtoReflect.Descriptor instead.
func (*PredictionOptions) GetContextId ¶
func (x *PredictionOptions) GetContextId() string
func (*PredictionOptions) GetModel ¶
func (x *PredictionOptions) GetModel() string
func (*PredictionOptions) ProtoMessage ¶
func (*PredictionOptions) ProtoMessage()
func (*PredictionOptions) ProtoReflect ¶
func (x *PredictionOptions) ProtoReflect() protoreflect.Message
func (*PredictionOptions) Reset ¶
func (x *PredictionOptions) Reset()
func (*PredictionOptions) String ¶
func (x *PredictionOptions) String() string
type ProcessOptions ¶
type ProcessOptions struct { Modify Modify `protobuf:"varint,1,opt,name=modify,proto3,enum=ai.codemaker.service.Modify" json:"modify,omitempty"` CodePath string `protobuf:"bytes,2,opt,name=codePath,proto3" json:"codePath,omitempty"` Prompt string `protobuf:"bytes,3,opt,name=prompt,proto3" json:"prompt,omitempty"` DetectSyntaxErrors bool `protobuf:"varint,4,opt,name=detectSyntaxErrors,proto3" json:"detectSyntaxErrors,omitempty"` ContextId string `protobuf:"bytes,5,opt,name=contextId,proto3" json:"contextId,omitempty"` Model string `protobuf:"bytes,6,opt,name=model,proto3" json:"model,omitempty"` IndentationCharacter IndentationCharacter `` /* 141-byte string literal not displayed */ OverrideIndent int32 `protobuf:"varint,8,opt,name=overrideIndent,proto3" json:"overrideIndent,omitempty"` MinimalLinesLength int32 `protobuf:"varint,9,opt,name=minimalLinesLength,proto3" json:"minimalLinesLength,omitempty"` Visibility Visibility `protobuf:"varint,10,opt,name=visibility,proto3,enum=ai.codemaker.service.Visibility" json:"visibility,omitempty"` // contains filtered or unexported fields }
func (*ProcessOptions) Descriptor
deprecated
func (*ProcessOptions) Descriptor() ([]byte, []int)
Deprecated: Use ProcessOptions.ProtoReflect.Descriptor instead.
func (*ProcessOptions) GetCodePath ¶
func (x *ProcessOptions) GetCodePath() string
func (*ProcessOptions) GetContextId ¶
func (x *ProcessOptions) GetContextId() string
func (*ProcessOptions) GetDetectSyntaxErrors ¶
func (x *ProcessOptions) GetDetectSyntaxErrors() bool
func (*ProcessOptions) GetIndentationCharacter ¶ added in v1.4.0
func (x *ProcessOptions) GetIndentationCharacter() IndentationCharacter
func (*ProcessOptions) GetMinimalLinesLength ¶ added in v1.4.0
func (x *ProcessOptions) GetMinimalLinesLength() int32
func (*ProcessOptions) GetModel ¶
func (x *ProcessOptions) GetModel() string
func (*ProcessOptions) GetModify ¶
func (x *ProcessOptions) GetModify() Modify
func (*ProcessOptions) GetOverrideIndent ¶ added in v1.4.0
func (x *ProcessOptions) GetOverrideIndent() int32
func (*ProcessOptions) GetPrompt ¶
func (x *ProcessOptions) GetPrompt() string
func (*ProcessOptions) GetVisibility ¶ added in v1.4.0
func (x *ProcessOptions) GetVisibility() Visibility
func (*ProcessOptions) ProtoMessage ¶
func (*ProcessOptions) ProtoMessage()
func (*ProcessOptions) ProtoReflect ¶
func (x *ProcessOptions) ProtoReflect() protoreflect.Message
func (*ProcessOptions) Reset ¶
func (x *ProcessOptions) Reset()
func (*ProcessOptions) String ¶
func (x *ProcessOptions) String() string
type ProcessRequest ¶
type ProcessRequest struct { Mode Mode `protobuf:"varint,1,opt,name=mode,proto3,enum=ai.codemaker.service.Mode" json:"mode,omitempty"` Language Language `protobuf:"varint,2,opt,name=language,proto3,enum=ai.codemaker.service.Language" json:"language,omitempty"` Input *Input `protobuf:"bytes,3,opt,name=input,proto3" json:"input,omitempty"` Options *ProcessOptions `protobuf:"bytes,4,opt,name=options,proto3" json:"options,omitempty"` Metadata *Metadata `protobuf:"bytes,5,opt,name=metadata,proto3" json:"metadata,omitempty"` // contains filtered or unexported fields }
func (*ProcessRequest) Descriptor
deprecated
func (*ProcessRequest) Descriptor() ([]byte, []int)
Deprecated: Use ProcessRequest.ProtoReflect.Descriptor instead.
func (*ProcessRequest) GetInput ¶
func (x *ProcessRequest) GetInput() *Input
func (*ProcessRequest) GetLanguage ¶
func (x *ProcessRequest) GetLanguage() Language
func (*ProcessRequest) GetMetadata ¶ added in v1.7.0
func (x *ProcessRequest) GetMetadata() *Metadata
func (*ProcessRequest) GetMode ¶
func (x *ProcessRequest) GetMode() Mode
func (*ProcessRequest) GetOptions ¶
func (x *ProcessRequest) GetOptions() *ProcessOptions
func (*ProcessRequest) ProtoMessage ¶
func (*ProcessRequest) ProtoMessage()
func (*ProcessRequest) ProtoReflect ¶
func (x *ProcessRequest) ProtoReflect() protoreflect.Message
func (*ProcessRequest) Reset ¶
func (x *ProcessRequest) Reset()
func (*ProcessRequest) String ¶
func (x *ProcessRequest) String() string
type ProcessResponse ¶
type ProcessResponse struct { Output *Output `protobuf:"bytes,1,opt,name=output,proto3" json:"output,omitempty"` // contains filtered or unexported fields }
func (*ProcessResponse) Descriptor
deprecated
func (*ProcessResponse) Descriptor() ([]byte, []int)
Deprecated: Use ProcessResponse.ProtoReflect.Descriptor instead.
func (*ProcessResponse) GetOutput ¶
func (x *ProcessResponse) GetOutput() *Output
func (*ProcessResponse) ProtoMessage ¶
func (*ProcessResponse) ProtoMessage()
func (*ProcessResponse) ProtoReflect ¶
func (x *ProcessResponse) ProtoReflect() protoreflect.Message
func (*ProcessResponse) Reset ¶
func (x *ProcessResponse) Reset()
func (*ProcessResponse) String ¶
func (x *ProcessResponse) String() string
type RegisterAssistantFeedbackRequest ¶ added in v1.6.0
type RegisterAssistantFeedbackRequest struct { SessionId string `protobuf:"bytes,1,opt,name=sessionId,proto3" json:"sessionId,omitempty"` MessageId string `protobuf:"bytes,2,opt,name=messageId,proto3" json:"messageId,omitempty"` Vote Vote `protobuf:"varint,3,opt,name=vote,proto3,enum=ai.codemaker.service.Vote" json:"vote,omitempty"` // contains filtered or unexported fields }
func (*RegisterAssistantFeedbackRequest) Descriptor
deprecated
added in
v1.6.0
func (*RegisterAssistantFeedbackRequest) Descriptor() ([]byte, []int)
Deprecated: Use RegisterAssistantFeedbackRequest.ProtoReflect.Descriptor instead.
func (*RegisterAssistantFeedbackRequest) GetMessageId ¶ added in v1.6.0
func (x *RegisterAssistantFeedbackRequest) GetMessageId() string
func (*RegisterAssistantFeedbackRequest) GetSessionId ¶ added in v1.6.0
func (x *RegisterAssistantFeedbackRequest) GetSessionId() string
func (*RegisterAssistantFeedbackRequest) GetVote ¶ added in v1.6.0
func (x *RegisterAssistantFeedbackRequest) GetVote() Vote
func (*RegisterAssistantFeedbackRequest) ProtoMessage ¶ added in v1.6.0
func (*RegisterAssistantFeedbackRequest) ProtoMessage()
func (*RegisterAssistantFeedbackRequest) ProtoReflect ¶ added in v1.6.0
func (x *RegisterAssistantFeedbackRequest) ProtoReflect() protoreflect.Message
func (*RegisterAssistantFeedbackRequest) Reset ¶ added in v1.6.0
func (x *RegisterAssistantFeedbackRequest) Reset()
func (*RegisterAssistantFeedbackRequest) String ¶ added in v1.6.0
func (x *RegisterAssistantFeedbackRequest) String() string
type RegisterAssistantFeedbackResponse ¶ added in v1.6.0
type RegisterAssistantFeedbackResponse struct {
// contains filtered or unexported fields
}
func (*RegisterAssistantFeedbackResponse) Descriptor
deprecated
added in
v1.6.0
func (*RegisterAssistantFeedbackResponse) Descriptor() ([]byte, []int)
Deprecated: Use RegisterAssistantFeedbackResponse.ProtoReflect.Descriptor instead.
func (*RegisterAssistantFeedbackResponse) ProtoMessage ¶ added in v1.6.0
func (*RegisterAssistantFeedbackResponse) ProtoMessage()
func (*RegisterAssistantFeedbackResponse) ProtoReflect ¶ added in v1.6.0
func (x *RegisterAssistantFeedbackResponse) ProtoReflect() protoreflect.Message
func (*RegisterAssistantFeedbackResponse) Reset ¶ added in v1.6.0
func (x *RegisterAssistantFeedbackResponse) Reset()
func (*RegisterAssistantFeedbackResponse) String ¶ added in v1.6.0
func (x *RegisterAssistantFeedbackResponse) String() string
type RegisterSourceContextRequest ¶
type RegisterSourceContextRequest struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` SourceContexts []*SourceContext `protobuf:"bytes,2,rep,name=sourceContexts,proto3" json:"sourceContexts,omitempty"` // contains filtered or unexported fields }
func (*RegisterSourceContextRequest) Descriptor
deprecated
func (*RegisterSourceContextRequest) Descriptor() ([]byte, []int)
Deprecated: Use RegisterSourceContextRequest.ProtoReflect.Descriptor instead.
func (*RegisterSourceContextRequest) GetId ¶
func (x *RegisterSourceContextRequest) GetId() string
func (*RegisterSourceContextRequest) GetSourceContexts ¶
func (x *RegisterSourceContextRequest) GetSourceContexts() []*SourceContext
func (*RegisterSourceContextRequest) ProtoMessage ¶
func (*RegisterSourceContextRequest) ProtoMessage()
func (*RegisterSourceContextRequest) ProtoReflect ¶
func (x *RegisterSourceContextRequest) ProtoReflect() protoreflect.Message
func (*RegisterSourceContextRequest) Reset ¶
func (x *RegisterSourceContextRequest) Reset()
func (*RegisterSourceContextRequest) String ¶
func (x *RegisterSourceContextRequest) String() string
type RegisterSourceContextResponse ¶
type RegisterSourceContextResponse struct {
// contains filtered or unexported fields
}
func (*RegisterSourceContextResponse) Descriptor
deprecated
func (*RegisterSourceContextResponse) Descriptor() ([]byte, []int)
Deprecated: Use RegisterSourceContextResponse.ProtoReflect.Descriptor instead.
func (*RegisterSourceContextResponse) ProtoMessage ¶
func (*RegisterSourceContextResponse) ProtoMessage()
func (*RegisterSourceContextResponse) ProtoReflect ¶
func (x *RegisterSourceContextResponse) ProtoReflect() protoreflect.Message
func (*RegisterSourceContextResponse) Reset ¶
func (x *RegisterSourceContextResponse) Reset()
func (*RegisterSourceContextResponse) String ¶
func (x *RegisterSourceContextResponse) String() string
type RequiredSourceContext ¶
type RequiredSourceContext struct { Path string `protobuf:"bytes,1,opt,name=path,proto3" json:"path,omitempty"` // contains filtered or unexported fields }
func (*RequiredSourceContext) Descriptor
deprecated
func (*RequiredSourceContext) Descriptor() ([]byte, []int)
Deprecated: Use RequiredSourceContext.ProtoReflect.Descriptor instead.
func (*RequiredSourceContext) GetPath ¶
func (x *RequiredSourceContext) GetPath() string
func (*RequiredSourceContext) ProtoMessage ¶
func (*RequiredSourceContext) ProtoMessage()
func (*RequiredSourceContext) ProtoReflect ¶
func (x *RequiredSourceContext) ProtoReflect() protoreflect.Message
func (*RequiredSourceContext) Reset ¶
func (x *RequiredSourceContext) Reset()
func (*RequiredSourceContext) String ¶
func (x *RequiredSourceContext) String() string
type Source ¶
type Source struct { Content []byte `protobuf:"bytes,1,opt,name=content,proto3" json:"content,omitempty"` Encoding Encoding `protobuf:"varint,2,opt,name=encoding,proto3,enum=ai.codemaker.service.Encoding" json:"encoding,omitempty"` Checksum string `protobuf:"bytes,3,opt,name=checksum,proto3" json:"checksum,omitempty"` // contains filtered or unexported fields }
func (*Source) Descriptor
deprecated
func (*Source) GetChecksum ¶
func (*Source) GetContent ¶
func (*Source) GetEncoding ¶
func (*Source) ProtoMessage ¶
func (*Source) ProtoMessage()
func (*Source) ProtoReflect ¶
func (x *Source) ProtoReflect() protoreflect.Message
type SourceContext ¶
type SourceContext struct { Language Language `protobuf:"varint,1,opt,name=language,proto3,enum=ai.codemaker.service.Language" json:"language,omitempty"` Input *Input `protobuf:"bytes,2,opt,name=input,proto3" json:"input,omitempty"` Metadata *Metadata `protobuf:"bytes,3,opt,name=metadata,proto3" json:"metadata,omitempty"` // contains filtered or unexported fields }
func (*SourceContext) Descriptor
deprecated
func (*SourceContext) Descriptor() ([]byte, []int)
Deprecated: Use SourceContext.ProtoReflect.Descriptor instead.
func (*SourceContext) GetInput ¶
func (x *SourceContext) GetInput() *Input
func (*SourceContext) GetLanguage ¶
func (x *SourceContext) GetLanguage() Language
func (*SourceContext) GetMetadata ¶
func (x *SourceContext) GetMetadata() *Metadata
func (*SourceContext) ProtoMessage ¶
func (*SourceContext) ProtoMessage()
func (*SourceContext) ProtoReflect ¶
func (x *SourceContext) ProtoReflect() protoreflect.Message
func (*SourceContext) Reset ¶
func (x *SourceContext) Reset()
func (*SourceContext) String ¶
func (x *SourceContext) String() string
type UnimplementedCodemakerServiceServer ¶
type UnimplementedCodemakerServiceServer struct { }
UnimplementedCodemakerServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedCodemakerServiceServer) AssistantCodeCompletion ¶
func (UnimplementedCodemakerServiceServer) AssistantCodeCompletion(context.Context, *AssistantCodeCompletionRequest) (*AssistantCodeCompletionResponse, error)
func (UnimplementedCodemakerServiceServer) AssistantCompletion ¶
func (UnimplementedCodemakerServiceServer) AssistantCompletion(context.Context, *AssistantCompletionRequest) (*AssistantCompletionResponse, error)
func (UnimplementedCodemakerServiceServer) AssistantSpeech ¶ added in v1.6.0
func (UnimplementedCodemakerServiceServer) AssistantSpeech(context.Context, *AssistantSpeechRequest) (*AssistantSpeechResponse, error)
func (UnimplementedCodemakerServiceServer) Completion ¶
func (UnimplementedCodemakerServiceServer) Completion(context.Context, *CompletionRequest) (*CompletionResponse, error)
func (UnimplementedCodemakerServiceServer) CreateContext ¶
func (UnimplementedCodemakerServiceServer) CreateContext(context.Context, *CreateSourceContextRequest) (*CreateSourceContextResponse, error)
func (UnimplementedCodemakerServiceServer) DiscoverContext ¶
func (UnimplementedCodemakerServiceServer) DiscoverContext(context.Context, *DiscoverSourceContextRequest) (*DiscoverSourceContextResponse, error)
func (UnimplementedCodemakerServiceServer) ListModels ¶
func (UnimplementedCodemakerServiceServer) ListModels(context.Context, *ListModelsRequest) (*ListModelsResponse, error)
func (UnimplementedCodemakerServiceServer) Predict ¶
func (UnimplementedCodemakerServiceServer) Predict(context.Context, *PredictRequest) (*PredictResponse, error)
func (UnimplementedCodemakerServiceServer) Process ¶
func (UnimplementedCodemakerServiceServer) Process(context.Context, *ProcessRequest) (*ProcessResponse, error)
func (UnimplementedCodemakerServiceServer) RegisterAssistantFeedback ¶ added in v1.6.0
func (UnimplementedCodemakerServiceServer) RegisterAssistantFeedback(context.Context, *RegisterAssistantFeedbackRequest) (*RegisterAssistantFeedbackResponse, error)
func (UnimplementedCodemakerServiceServer) RegisterContext ¶
func (UnimplementedCodemakerServiceServer) RegisterContext(context.Context, *RegisterSourceContextRequest) (*RegisterSourceContextResponse, error)
type UnsafeCodemakerServiceServer ¶
type UnsafeCodemakerServiceServer interface {
// contains filtered or unexported methods
}
UnsafeCodemakerServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to CodemakerServiceServer will result in compilation errors.
type Visibility ¶ added in v1.4.0
type Visibility int32
const ( Visibility_ALL Visibility = 0 Visibility_PUBLIC Visibility = 1 )
func (Visibility) Descriptor ¶ added in v1.4.0
func (Visibility) Descriptor() protoreflect.EnumDescriptor
func (Visibility) Enum ¶ added in v1.4.0
func (x Visibility) Enum() *Visibility
func (Visibility) EnumDescriptor
deprecated
added in
v1.4.0
func (Visibility) EnumDescriptor() ([]byte, []int)
Deprecated: Use Visibility.Descriptor instead.
func (Visibility) Number ¶ added in v1.4.0
func (x Visibility) Number() protoreflect.EnumNumber
func (Visibility) String ¶ added in v1.4.0
func (x Visibility) String() string
func (Visibility) Type ¶ added in v1.4.0
func (Visibility) Type() protoreflect.EnumType
type Vote ¶ added in v1.6.0
type Vote int32
func (Vote) Descriptor ¶ added in v1.6.0
func (Vote) Descriptor() protoreflect.EnumDescriptor
func (Vote) EnumDescriptor
deprecated
added in
v1.6.0
func (Vote) Number ¶ added in v1.6.0
func (x Vote) Number() protoreflect.EnumNumber
func (Vote) Type ¶ added in v1.6.0
func (Vote) Type() protoreflect.EnumType