stub

package
v1.7.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 30, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
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.

View Source
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.

View Source
var (
	Encoding_name = map[int32]string{
		0: "NONE",
		1: "GZIP",
	}
	Encoding_value = map[string]int32{
		"NONE": 0,
		"GZIP": 1,
	}
)

Enum value maps for Encoding.

View Source
var (
	Modify_name = map[int32]string{
		0: "UNMODIFIED",
		1: "REPLACE",
	}
	Modify_value = map[string]int32{
		"UNMODIFIED": 0,
		"REPLACE":    1,
	}
)

Enum value maps for Modify.

View Source
var (
	IndentationCharacter_name = map[int32]string{
		0: "SPACE",
		1: "TAB",
	}
	IndentationCharacter_value = map[string]int32{
		"SPACE": 0,
		"TAB":   1,
	}
)

Enum value maps for IndentationCharacter.

View Source
var (
	Visibility_name = map[int32]string{
		0: "ALL",
		1: "PUBLIC",
	}
	Visibility_value = map[string]int32{
		"ALL":    0,
		"PUBLIC": 1,
	}
)

Enum value maps for Visibility.

View Source
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.

View Source
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)

View Source
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 (*AssistantCodeCompletionOptions) Reset

func (x *AssistantCodeCompletionOptions) Reset()

func (*AssistantCodeCompletionOptions) 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 (*AssistantCodeCompletionRequest) ProtoMessage

func (*AssistantCodeCompletionRequest) ProtoMessage()

func (*AssistantCodeCompletionRequest) ProtoReflect

func (*AssistantCodeCompletionRequest) Reset

func (x *AssistantCodeCompletionRequest) Reset()

func (*AssistantCodeCompletionRequest) 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 (*AssistantCodeCompletionResponse) Reset

func (*AssistantCodeCompletionResponse) 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 (*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 (*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

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.

type CodemakerServiceServer

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 (*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 (*CreateSourceContextResponse) ProtoMessage

func (*CreateSourceContextResponse) ProtoMessage()

func (*CreateSourceContextResponse) ProtoReflect

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 (*DiscoverSourceContextRequest) ProtoMessage

func (*DiscoverSourceContextRequest) ProtoMessage()

func (*DiscoverSourceContextRequest) ProtoReflect

func (*DiscoverSourceContextRequest) Reset

func (x *DiscoverSourceContextRequest) Reset()

func (*DiscoverSourceContextRequest) 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 (*DiscoverSourceContextResponse) GetRequiresProcessing

func (x *DiscoverSourceContextResponse) GetRequiresProcessing() bool

func (*DiscoverSourceContextResponse) ProtoMessage

func (*DiscoverSourceContextResponse) ProtoMessage()

func (*DiscoverSourceContextResponse) ProtoReflect

func (*DiscoverSourceContextResponse) Reset

func (x *DiscoverSourceContextResponse) Reset()

func (*DiscoverSourceContextResponse) String

type Encoding

type Encoding int32
const (
	Encoding_NONE Encoding = 0
	Encoding_GZIP Encoding = 1
)

func (Encoding) Descriptor

func (Encoding) Descriptor() protoreflect.EnumDescriptor

func (Encoding) Enum

func (x Encoding) Enum() *Encoding

func (Encoding) EnumDescriptor deprecated

func (Encoding) EnumDescriptor() ([]byte, []int)

Deprecated: Use Encoding.Descriptor instead.

func (Encoding) Number

func (x Encoding) Number() protoreflect.EnumNumber

func (Encoding) String

func (x Encoding) String() string

func (Encoding) Type

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) Enum added in v1.4.0

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 (IndentationCharacter) String added in v1.4.0

func (x IndentationCharacter) String() string

func (IndentationCharacter) Type added in v1.4.0

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) Descriptor() ([]byte, []int)

Deprecated: Use Input.ProtoReflect.Descriptor instead.

func (*Input) GetSource

func (x *Input) GetSource() *Source

func (*Input) ProtoMessage

func (*Input) ProtoMessage()

func (*Input) ProtoReflect

func (x *Input) ProtoReflect() protoreflect.Message

func (*Input) Reset

func (x *Input) Reset()

func (*Input) String

func (x *Input) String() string

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) Enum

func (x Language) Enum() *Language

func (Language) EnumDescriptor deprecated

func (Language) EnumDescriptor() ([]byte, []int)

Deprecated: Use Language.Descriptor instead.

func (Language) Number

func (x Language) Number() protoreflect.EnumNumber

func (Language) String

func (x Language) String() string

func (Language) Type

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) Descriptor() ([]byte, []int)

Deprecated: Use Metadata.ProtoReflect.Descriptor instead.

func (*Metadata) GetPath

func (x *Metadata) GetPath() string

func (*Metadata) ProtoMessage

func (*Metadata) ProtoMessage()

func (*Metadata) ProtoReflect

func (x *Metadata) ProtoReflect() protoreflect.Message

func (*Metadata) Reset

func (x *Metadata) Reset()

func (*Metadata) String

func (x *Metadata) String() string

type Mode

type Mode int32
const (
	Mode_CODE        Mode = 0
	Mode_INLINE_CODE Mode = 1
	Mode_EDIT_CODE   Mode = 2
	Mode_DOCUMENT    Mode = 3
	Mode_FIX_SYNTAX  Mode = 4
)

func (Mode) Descriptor

func (Mode) Descriptor() protoreflect.EnumDescriptor

func (Mode) Enum

func (x Mode) Enum() *Mode

func (Mode) EnumDescriptor deprecated

func (Mode) EnumDescriptor() ([]byte, []int)

Deprecated: Use Mode.Descriptor instead.

func (Mode) Number

func (x Mode) Number() protoreflect.EnumNumber

func (Mode) String

func (x Mode) String() string

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) Descriptor() ([]byte, []int)

Deprecated: Use Model.ProtoReflect.Descriptor instead.

func (*Model) GetId

func (x *Model) GetId() string

func (*Model) GetName

func (x *Model) GetName() string

func (*Model) ProtoMessage

func (*Model) ProtoMessage()

func (*Model) ProtoReflect

func (x *Model) ProtoReflect() protoreflect.Message

func (*Model) Reset

func (x *Model) Reset()

func (*Model) String

func (x *Model) String() string

type Modify

type Modify int32
const (
	Modify_UNMODIFIED Modify = 0
	Modify_REPLACE    Modify = 1
)

func (Modify) Descriptor

func (Modify) Descriptor() protoreflect.EnumDescriptor

func (Modify) Enum

func (x Modify) Enum() *Modify

func (Modify) EnumDescriptor deprecated

func (Modify) EnumDescriptor() ([]byte, []int)

Deprecated: Use Modify.Descriptor instead.

func (Modify) Number

func (x Modify) Number() protoreflect.EnumNumber

func (Modify) String

func (x Modify) String() string

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) Descriptor() ([]byte, []int)

Deprecated: Use Output.ProtoReflect.Descriptor instead.

func (*Output) GetSource

func (x *Output) GetSource() *Source

func (*Output) ProtoMessage

func (*Output) ProtoMessage()

func (*Output) ProtoReflect

func (x *Output) ProtoReflect() protoreflect.Message

func (*Output) Reset

func (x *Output) Reset()

func (*Output) String

func (x *Output) String() string

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 (*RegisterAssistantFeedbackRequest) ProtoMessage added in v1.6.0

func (*RegisterAssistantFeedbackRequest) ProtoMessage()

func (*RegisterAssistantFeedbackRequest) ProtoReflect added in v1.6.0

func (*RegisterAssistantFeedbackRequest) Reset added in v1.6.0

func (*RegisterAssistantFeedbackRequest) String added in v1.6.0

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 (*RegisterAssistantFeedbackResponse) Reset added in v1.6.0

func (*RegisterAssistantFeedbackResponse) String added in v1.6.0

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 (*RegisterSourceContextRequest) GetSourceContexts

func (x *RegisterSourceContextRequest) GetSourceContexts() []*SourceContext

func (*RegisterSourceContextRequest) ProtoMessage

func (*RegisterSourceContextRequest) ProtoMessage()

func (*RegisterSourceContextRequest) ProtoReflect

func (*RegisterSourceContextRequest) Reset

func (x *RegisterSourceContextRequest) Reset()

func (*RegisterSourceContextRequest) 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 (*RegisterSourceContextResponse) Reset

func (x *RegisterSourceContextResponse) Reset()

func (*RegisterSourceContextResponse) 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) Descriptor() ([]byte, []int)

Deprecated: Use Source.ProtoReflect.Descriptor instead.

func (*Source) GetChecksum

func (x *Source) GetChecksum() string

func (*Source) GetContent

func (x *Source) GetContent() []byte

func (*Source) GetEncoding

func (x *Source) GetEncoding() Encoding

func (*Source) ProtoMessage

func (*Source) ProtoMessage()

func (*Source) ProtoReflect

func (x *Source) ProtoReflect() protoreflect.Message

func (*Source) Reset

func (x *Source) Reset()

func (*Source) String

func (x *Source) String() string

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) AssistantCompletion

func (UnimplementedCodemakerServiceServer) AssistantSpeech added in v1.6.0

func (UnimplementedCodemakerServiceServer) Completion

func (UnimplementedCodemakerServiceServer) ListModels

func (UnimplementedCodemakerServiceServer) Predict

func (UnimplementedCodemakerServiceServer) Process

func (UnimplementedCodemakerServiceServer) RegisterAssistantFeedback added in v1.6.0

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

type Vote added in v1.6.0

type Vote int32
const (
	Vote_UP_VOTE   Vote = 0
	Vote_DOWN_VOTE Vote = 1
)

func (Vote) Descriptor added in v1.6.0

func (Vote) Descriptor() protoreflect.EnumDescriptor

func (Vote) Enum added in v1.6.0

func (x Vote) Enum() *Vote

func (Vote) EnumDescriptor deprecated added in v1.6.0

func (Vote) EnumDescriptor() ([]byte, []int)

Deprecated: Use Vote.Descriptor instead.

func (Vote) Number added in v1.6.0

func (x Vote) Number() protoreflect.EnumNumber

func (Vote) String added in v1.6.0

func (x Vote) String() string

func (Vote) Type added in v1.6.0

func (Vote) Type() protoreflect.EnumType

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL