blob: 41456da40f067d3d7668c1f0141b6b29c8c5f25d [file] [log] [blame]
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.25.0-devel
// protoc v3.6.1
// source: chromite/api/api.proto
package api
import (
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
reflect "reflect"
sync "sync"
)
const (
// Verify that this generated code is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
// Verify that runtime/protoimpl is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
)
// Request for the method discovery endpoint.
type MethodGetRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
}
func (x *MethodGetRequest) Reset() {
*x = MethodGetRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_chromite_api_api_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *MethodGetRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*MethodGetRequest) ProtoMessage() {}
func (x *MethodGetRequest) ProtoReflect() protoreflect.Message {
mi := &file_chromite_api_api_proto_msgTypes[0]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use MethodGetRequest.ProtoReflect.Descriptor instead.
func (*MethodGetRequest) Descriptor() ([]byte, []int) {
return file_chromite_api_api_proto_rawDescGZIP(), []int{0}
}
// Response from the method discovery endpoint.
type MethodGetResponse struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// All registered methods.
Methods []*MethodGetResponse_Method `protobuf:"bytes,1,rep,name=methods,proto3" json:"methods,omitempty"`
}
func (x *MethodGetResponse) Reset() {
*x = MethodGetResponse{}
if protoimpl.UnsafeEnabled {
mi := &file_chromite_api_api_proto_msgTypes[1]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *MethodGetResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*MethodGetResponse) ProtoMessage() {}
func (x *MethodGetResponse) ProtoReflect() protoreflect.Message {
mi := &file_chromite_api_api_proto_msgTypes[1]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use MethodGetResponse.ProtoReflect.Descriptor instead.
func (*MethodGetResponse) Descriptor() ([]byte, []int) {
return file_chromite_api_api_proto_rawDescGZIP(), []int{1}
}
func (x *MethodGetResponse) GetMethods() []*MethodGetResponse_Method {
if x != nil {
return x.Methods
}
return nil
}
// Request for the API (major) version number.
type VersionGetRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
}
func (x *VersionGetRequest) Reset() {
*x = VersionGetRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_chromite_api_api_proto_msgTypes[2]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *VersionGetRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*VersionGetRequest) ProtoMessage() {}
func (x *VersionGetRequest) ProtoReflect() protoreflect.Message {
mi := &file_chromite_api_api_proto_msgTypes[2]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use VersionGetRequest.ProtoReflect.Descriptor instead.
func (*VersionGetRequest) Descriptor() ([]byte, []int) {
return file_chromite_api_api_proto_rawDescGZIP(), []int{2}
}
// Response with the API (major) version number.
type VersionGetResponse struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
Version *VersionGetResponse_Version `protobuf:"bytes,1,opt,name=version,proto3" json:"version,omitempty"`
}
func (x *VersionGetResponse) Reset() {
*x = VersionGetResponse{}
if protoimpl.UnsafeEnabled {
mi := &file_chromite_api_api_proto_msgTypes[3]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *VersionGetResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*VersionGetResponse) ProtoMessage() {}
func (x *VersionGetResponse) ProtoReflect() protoreflect.Message {
mi := &file_chromite_api_api_proto_msgTypes[3]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use VersionGetResponse.ProtoReflect.Descriptor instead.
func (*VersionGetResponse) Descriptor() ([]byte, []int) {
return file_chromite_api_api_proto_rawDescGZIP(), []int{3}
}
func (x *VersionGetResponse) GetVersion() *VersionGetResponse_Version {
if x != nil {
return x.Version
}
return nil
}
type MethodGetResponse_Method struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// The full method name, i.e. package.Service/Method.
Method string `protobuf:"bytes,1,opt,name=method,proto3" json:"method,omitempty"`
}
func (x *MethodGetResponse_Method) Reset() {
*x = MethodGetResponse_Method{}
if protoimpl.UnsafeEnabled {
mi := &file_chromite_api_api_proto_msgTypes[4]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *MethodGetResponse_Method) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*MethodGetResponse_Method) ProtoMessage() {}
func (x *MethodGetResponse_Method) ProtoReflect() protoreflect.Message {
mi := &file_chromite_api_api_proto_msgTypes[4]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use MethodGetResponse_Method.ProtoReflect.Descriptor instead.
func (*MethodGetResponse_Method) Descriptor() ([]byte, []int) {
return file_chromite_api_api_proto_rawDescGZIP(), []int{1, 0}
}
func (x *MethodGetResponse_Method) GetMethod() string {
if x != nil {
return x.Method
}
return ""
}
type VersionGetResponse_Version struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Version number components: "major.minor.bug".
Major int32 `protobuf:"varint,1,opt,name=major,proto3" json:"major,omitempty"`
Minor int32 `protobuf:"varint,2,opt,name=minor,proto3" json:"minor,omitempty"`
Bug int32 `protobuf:"varint,3,opt,name=bug,proto3" json:"bug,omitempty"`
}
func (x *VersionGetResponse_Version) Reset() {
*x = VersionGetResponse_Version{}
if protoimpl.UnsafeEnabled {
mi := &file_chromite_api_api_proto_msgTypes[5]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *VersionGetResponse_Version) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*VersionGetResponse_Version) ProtoMessage() {}
func (x *VersionGetResponse_Version) ProtoReflect() protoreflect.Message {
mi := &file_chromite_api_api_proto_msgTypes[5]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use VersionGetResponse_Version.ProtoReflect.Descriptor instead.
func (*VersionGetResponse_Version) Descriptor() ([]byte, []int) {
return file_chromite_api_api_proto_rawDescGZIP(), []int{3, 0}
}
func (x *VersionGetResponse_Version) GetMajor() int32 {
if x != nil {
return x.Major
}
return 0
}
func (x *VersionGetResponse_Version) GetMinor() int32 {
if x != nil {
return x.Minor
}
return 0
}
func (x *VersionGetResponse_Version) GetBug() int32 {
if x != nil {
return x.Bug
}
return 0
}
var File_chromite_api_api_proto protoreflect.FileDescriptor
var file_chromite_api_api_proto_rawDesc = []byte{
0x0a, 0x16, 0x63, 0x68, 0x72, 0x6f, 0x6d, 0x69, 0x74, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x61,
0x70, 0x69, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0c, 0x63, 0x68, 0x72, 0x6f, 0x6d, 0x69,
0x74, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x1a, 0x1c, 0x63, 0x68, 0x72, 0x6f, 0x6d, 0x69, 0x74, 0x65,
0x2f, 0x61, 0x70, 0x69, 0x2f, 0x62, 0x75, 0x69, 0x6c, 0x64, 0x5f, 0x61, 0x70, 0x69, 0x2e, 0x70,
0x72, 0x6f, 0x74, 0x6f, 0x22, 0x12, 0x0a, 0x10, 0x4d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x47, 0x65,
0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, 0x77, 0x0a, 0x11, 0x4d, 0x65, 0x74, 0x68,
0x6f, 0x64, 0x47, 0x65, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x40, 0x0a,
0x07, 0x6d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x26,
0x2e, 0x63, 0x68, 0x72, 0x6f, 0x6d, 0x69, 0x74, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x4d, 0x65,
0x74, 0x68, 0x6f, 0x64, 0x47, 0x65, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2e,
0x4d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x52, 0x07, 0x6d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x73, 0x1a,
0x20, 0x0a, 0x06, 0x4d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x12, 0x16, 0x0a, 0x06, 0x6d, 0x65, 0x74,
0x68, 0x6f, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x6d, 0x65, 0x74, 0x68, 0x6f,
0x64, 0x22, 0x13, 0x0a, 0x11, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x47, 0x65, 0x74, 0x52,
0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, 0xa1, 0x01, 0x0a, 0x12, 0x56, 0x65, 0x72, 0x73, 0x69,
0x6f, 0x6e, 0x47, 0x65, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x42, 0x0a,
0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x28,
0x2e, 0x63, 0x68, 0x72, 0x6f, 0x6d, 0x69, 0x74, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x56, 0x65,
0x72, 0x73, 0x69, 0x6f, 0x6e, 0x47, 0x65, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65,
0x2e, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f,
0x6e, 0x1a, 0x47, 0x0a, 0x07, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x14, 0x0a, 0x05,
0x6d, 0x61, 0x6a, 0x6f, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x05, 0x6d, 0x61, 0x6a,
0x6f, 0x72, 0x12, 0x14, 0x0a, 0x05, 0x6d, 0x69, 0x6e, 0x6f, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28,
0x05, 0x52, 0x05, 0x6d, 0x69, 0x6e, 0x6f, 0x72, 0x12, 0x10, 0x0a, 0x03, 0x62, 0x75, 0x67, 0x18,
0x03, 0x20, 0x01, 0x28, 0x05, 0x52, 0x03, 0x62, 0x75, 0x67, 0x32, 0x76, 0x0a, 0x0d, 0x4d, 0x65,
0x74, 0x68, 0x6f, 0x64, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x58, 0x0a, 0x03, 0x47,
0x65, 0x74, 0x12, 0x1e, 0x2e, 0x63, 0x68, 0x72, 0x6f, 0x6d, 0x69, 0x74, 0x65, 0x2e, 0x61, 0x70,
0x69, 0x2e, 0x4d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x47, 0x65, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65,
0x73, 0x74, 0x1a, 0x1f, 0x2e, 0x63, 0x68, 0x72, 0x6f, 0x6d, 0x69, 0x74, 0x65, 0x2e, 0x61, 0x70,
0x69, 0x2e, 0x4d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x47, 0x65, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f,
0x6e, 0x73, 0x65, 0x22, 0x10, 0xc2, 0xed, 0x1a, 0x0c, 0x0a, 0x0a, 0x47, 0x65, 0x74, 0x4d, 0x65,
0x74, 0x68, 0x6f, 0x64, 0x73, 0x1a, 0x0b, 0xc2, 0xed, 0x1a, 0x07, 0x0a, 0x03, 0x61, 0x70, 0x69,
0x10, 0x02, 0x32, 0x79, 0x0a, 0x0e, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x53, 0x65, 0x72,
0x76, 0x69, 0x63, 0x65, 0x12, 0x5a, 0x0a, 0x03, 0x47, 0x65, 0x74, 0x12, 0x1f, 0x2e, 0x63, 0x68,
0x72, 0x6f, 0x6d, 0x69, 0x74, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x56, 0x65, 0x72, 0x73, 0x69,
0x6f, 0x6e, 0x47, 0x65, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x20, 0x2e, 0x63,
0x68, 0x72, 0x6f, 0x6d, 0x69, 0x74, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x56, 0x65, 0x72, 0x73,
0x69, 0x6f, 0x6e, 0x47, 0x65, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x10,
0xc2, 0xed, 0x1a, 0x0c, 0x0a, 0x0a, 0x47, 0x65, 0x74, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e,
0x1a, 0x0b, 0xc2, 0xed, 0x1a, 0x07, 0x0a, 0x03, 0x61, 0x70, 0x69, 0x10, 0x02, 0x42, 0x38, 0x5a,
0x36, 0x67, 0x6f, 0x2e, 0x63, 0x68, 0x72, 0x6f, 0x6d, 0x69, 0x75, 0x6d, 0x2e, 0x6f, 0x72, 0x67,
0x2f, 0x63, 0x68, 0x72, 0x6f, 0x6d, 0x69, 0x75, 0x6d, 0x6f, 0x73, 0x2f, 0x69, 0x6e, 0x66, 0x72,
0x61, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x2f, 0x63, 0x68, 0x72, 0x6f, 0x6d,
0x69, 0x74, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
}
var (
file_chromite_api_api_proto_rawDescOnce sync.Once
file_chromite_api_api_proto_rawDescData = file_chromite_api_api_proto_rawDesc
)
func file_chromite_api_api_proto_rawDescGZIP() []byte {
file_chromite_api_api_proto_rawDescOnce.Do(func() {
file_chromite_api_api_proto_rawDescData = protoimpl.X.CompressGZIP(file_chromite_api_api_proto_rawDescData)
})
return file_chromite_api_api_proto_rawDescData
}
var file_chromite_api_api_proto_msgTypes = make([]protoimpl.MessageInfo, 6)
var file_chromite_api_api_proto_goTypes = []interface{}{
(*MethodGetRequest)(nil), // 0: chromite.api.MethodGetRequest
(*MethodGetResponse)(nil), // 1: chromite.api.MethodGetResponse
(*VersionGetRequest)(nil), // 2: chromite.api.VersionGetRequest
(*VersionGetResponse)(nil), // 3: chromite.api.VersionGetResponse
(*MethodGetResponse_Method)(nil), // 4: chromite.api.MethodGetResponse.Method
(*VersionGetResponse_Version)(nil), // 5: chromite.api.VersionGetResponse.Version
}
var file_chromite_api_api_proto_depIdxs = []int32{
4, // 0: chromite.api.MethodGetResponse.methods:type_name -> chromite.api.MethodGetResponse.Method
5, // 1: chromite.api.VersionGetResponse.version:type_name -> chromite.api.VersionGetResponse.Version
0, // 2: chromite.api.MethodService.Get:input_type -> chromite.api.MethodGetRequest
2, // 3: chromite.api.VersionService.Get:input_type -> chromite.api.VersionGetRequest
1, // 4: chromite.api.MethodService.Get:output_type -> chromite.api.MethodGetResponse
3, // 5: chromite.api.VersionService.Get:output_type -> chromite.api.VersionGetResponse
4, // [4:6] is the sub-list for method output_type
2, // [2:4] is the sub-list for method input_type
2, // [2:2] is the sub-list for extension type_name
2, // [2:2] is the sub-list for extension extendee
0, // [0:2] is the sub-list for field type_name
}
func init() { file_chromite_api_api_proto_init() }
func file_chromite_api_api_proto_init() {
if File_chromite_api_api_proto != nil {
return
}
file_chromite_api_build_api_proto_init()
if !protoimpl.UnsafeEnabled {
file_chromite_api_api_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*MethodGetRequest); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_chromite_api_api_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*MethodGetResponse); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_chromite_api_api_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*VersionGetRequest); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_chromite_api_api_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*VersionGetResponse); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_chromite_api_api_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*MethodGetResponse_Method); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_chromite_api_api_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*VersionGetResponse_Version); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
}
type x struct{}
out := protoimpl.TypeBuilder{
File: protoimpl.DescBuilder{
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: file_chromite_api_api_proto_rawDesc,
NumEnums: 0,
NumMessages: 6,
NumExtensions: 0,
NumServices: 2,
},
GoTypes: file_chromite_api_api_proto_goTypes,
DependencyIndexes: file_chromite_api_api_proto_depIdxs,
MessageInfos: file_chromite_api_api_proto_msgTypes,
}.Build()
File_chromite_api_api_proto = out.File
file_chromite_api_api_proto_rawDesc = nil
file_chromite_api_api_proto_goTypes = nil
file_chromite_api_api_proto_depIdxs = nil
}