// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// 	protoc-gen-go v1.36.11
// 	protoc        v3.21.12
// source: yandex/cloud/devtools/ycvc/v1/control_service.proto

package ycvc

import (
	_ "github.com/yandex-cloud/go-genproto/yandex/cloud"
	_ "google.golang.org/genproto/googleapis/api/annotations"
	protoreflect "google.golang.org/protobuf/reflect/protoreflect"
	protoimpl "google.golang.org/protobuf/runtime/protoimpl"
	reflect "reflect"
	sync "sync"
	unsafe "unsafe"
)

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 to initialize and check version.
type InitRequest struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// Tool name to check.
	ToolName string `protobuf:"bytes,1,opt,name=tool_name,json=toolName,proto3" json:"tool_name,omitempty"`
	// Version to check.
	Version       string `protobuf:"bytes,2,opt,name=version,proto3" json:"version,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

func (x *InitRequest) Reset() {
	*x = InitRequest{}
	mi := &file_yandex_cloud_devtools_ycvc_v1_control_service_proto_msgTypes[0]
	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
	ms.StoreMessageInfo(mi)
}

func (x *InitRequest) String() string {
	return protoimpl.X.MessageStringOf(x)
}

func (*InitRequest) ProtoMessage() {}

func (x *InitRequest) ProtoReflect() protoreflect.Message {
	mi := &file_yandex_cloud_devtools_ycvc_v1_control_service_proto_msgTypes[0]
	if x != nil {
		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
		if ms.LoadMessageInfo() == nil {
			ms.StoreMessageInfo(mi)
		}
		return ms
	}
	return mi.MessageOf(x)
}

// Deprecated: Use InitRequest.ProtoReflect.Descriptor instead.
func (*InitRequest) Descriptor() ([]byte, []int) {
	return file_yandex_cloud_devtools_ycvc_v1_control_service_proto_rawDescGZIP(), []int{0}
}

func (x *InitRequest) GetToolName() string {
	if x != nil {
		return x.ToolName
	}
	return ""
}

func (x *InitRequest) GetVersion() string {
	if x != nil {
		return x.Version
	}
	return ""
}

// Response for initialization.
// Blocked versions return FAILED_PRECONDITION error instead.
type InitResponse struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// Warning information for versions being phased out.
	DeprecationWarning *InitResponse_DeprecationWarning `protobuf:"bytes,1,opt,name=deprecation_warning,json=deprecationWarning,proto3" json:"deprecation_warning,omitempty"`
	unknownFields      protoimpl.UnknownFields
	sizeCache          protoimpl.SizeCache
}

func (x *InitResponse) Reset() {
	*x = InitResponse{}
	mi := &file_yandex_cloud_devtools_ycvc_v1_control_service_proto_msgTypes[1]
	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
	ms.StoreMessageInfo(mi)
}

func (x *InitResponse) String() string {
	return protoimpl.X.MessageStringOf(x)
}

func (*InitResponse) ProtoMessage() {}

func (x *InitResponse) ProtoReflect() protoreflect.Message {
	mi := &file_yandex_cloud_devtools_ycvc_v1_control_service_proto_msgTypes[1]
	if x != nil {
		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
		if ms.LoadMessageInfo() == nil {
			ms.StoreMessageInfo(mi)
		}
		return ms
	}
	return mi.MessageOf(x)
}

// Deprecated: Use InitResponse.ProtoReflect.Descriptor instead.
func (*InitResponse) Descriptor() ([]byte, []int) {
	return file_yandex_cloud_devtools_ycvc_v1_control_service_proto_rawDescGZIP(), []int{1}
}

func (x *InitResponse) GetDeprecationWarning() *InitResponse_DeprecationWarning {
	if x != nil {
		return x.DeprecationWarning
	}
	return nil
}

// Warning details for versions being phased out.
type InitResponse_DeprecationWarning struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// Reason why the version is being phased out.
	Reason        string `protobuf:"bytes,1,opt,name=reason,proto3" json:"reason,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

func (x *InitResponse_DeprecationWarning) Reset() {
	*x = InitResponse_DeprecationWarning{}
	mi := &file_yandex_cloud_devtools_ycvc_v1_control_service_proto_msgTypes[2]
	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
	ms.StoreMessageInfo(mi)
}

func (x *InitResponse_DeprecationWarning) String() string {
	return protoimpl.X.MessageStringOf(x)
}

func (*InitResponse_DeprecationWarning) ProtoMessage() {}

func (x *InitResponse_DeprecationWarning) ProtoReflect() protoreflect.Message {
	mi := &file_yandex_cloud_devtools_ycvc_v1_control_service_proto_msgTypes[2]
	if x != nil {
		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
		if ms.LoadMessageInfo() == nil {
			ms.StoreMessageInfo(mi)
		}
		return ms
	}
	return mi.MessageOf(x)
}

// Deprecated: Use InitResponse_DeprecationWarning.ProtoReflect.Descriptor instead.
func (*InitResponse_DeprecationWarning) Descriptor() ([]byte, []int) {
	return file_yandex_cloud_devtools_ycvc_v1_control_service_proto_rawDescGZIP(), []int{1, 0}
}

func (x *InitResponse_DeprecationWarning) GetReason() string {
	if x != nil {
		return x.Reason
	}
	return ""
}

var File_yandex_cloud_devtools_ycvc_v1_control_service_proto protoreflect.FileDescriptor

const file_yandex_cloud_devtools_ycvc_v1_control_service_proto_rawDesc = "" +
	"\n" +
	"3yandex/cloud/devtools/ycvc/v1/control_service.proto\x12\x1dyandex.cloud.devtools.ycvc.v1\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x1dyandex/cloud/validation.proto\"V\n" +
	"\vInitRequest\x12$\n" +
	"\ttool_name\x18\x01 \x01(\tB\a\xe0A\x02\xe8\xc71\x01R\btoolName\x12!\n" +
	"\aversion\x18\x02 \x01(\tB\a\xe0A\x02\xe8\xc71\x01R\aversion\"\xb6\x01\n" +
	"\fInitResponse\x12o\n" +
	"\x13deprecation_warning\x18\x01 \x01(\v2>.yandex.cloud.devtools.ycvc.v1.InitResponse.DeprecationWarningR\x12deprecationWarning\x1a5\n" +
	"\x12DeprecationWarning\x12\x1f\n" +
	"\x06reason\x18\x01 \x01(\tB\a\xe0A\x02\xe8\xc71\x01R\x06reason2\xc3\x01\n" +
	"\x15VersionControlService\x12\xa9\x01\n" +
	"\x04Init\x12*.yandex.cloud.devtools.ycvc.v1.InitRequest\x1a+.yandex.cloud.devtools.ycvc.v1.InitResponse\"H\xdaA\x11tool_name,version\x82\xd3\xe4\x93\x02.:\x01*\")/v1/obsolete_collections/{tool_name}:initB\x89\x01\n" +
	"!yandex.cloud.api.devtools.ycvc.v1B\x1aVersionControlServiceProtoP\x01ZFgithub.com/yandex-cloud/go-genproto/yandex/cloud/devtools/ycvc/v1;ycvcb\x06proto3"

var (
	file_yandex_cloud_devtools_ycvc_v1_control_service_proto_rawDescOnce sync.Once
	file_yandex_cloud_devtools_ycvc_v1_control_service_proto_rawDescData []byte
)

func file_yandex_cloud_devtools_ycvc_v1_control_service_proto_rawDescGZIP() []byte {
	file_yandex_cloud_devtools_ycvc_v1_control_service_proto_rawDescOnce.Do(func() {
		file_yandex_cloud_devtools_ycvc_v1_control_service_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_yandex_cloud_devtools_ycvc_v1_control_service_proto_rawDesc), len(file_yandex_cloud_devtools_ycvc_v1_control_service_proto_rawDesc)))
	})
	return file_yandex_cloud_devtools_ycvc_v1_control_service_proto_rawDescData
}

var file_yandex_cloud_devtools_ycvc_v1_control_service_proto_msgTypes = make([]protoimpl.MessageInfo, 3)
var file_yandex_cloud_devtools_ycvc_v1_control_service_proto_goTypes = []any{
	(*InitRequest)(nil),                     // 0: yandex.cloud.devtools.ycvc.v1.InitRequest
	(*InitResponse)(nil),                    // 1: yandex.cloud.devtools.ycvc.v1.InitResponse
	(*InitResponse_DeprecationWarning)(nil), // 2: yandex.cloud.devtools.ycvc.v1.InitResponse.DeprecationWarning
}
var file_yandex_cloud_devtools_ycvc_v1_control_service_proto_depIdxs = []int32{
	2, // 0: yandex.cloud.devtools.ycvc.v1.InitResponse.deprecation_warning:type_name -> yandex.cloud.devtools.ycvc.v1.InitResponse.DeprecationWarning
	0, // 1: yandex.cloud.devtools.ycvc.v1.VersionControlService.Init:input_type -> yandex.cloud.devtools.ycvc.v1.InitRequest
	1, // 2: yandex.cloud.devtools.ycvc.v1.VersionControlService.Init:output_type -> yandex.cloud.devtools.ycvc.v1.InitResponse
	2, // [2:3] is the sub-list for method output_type
	1, // [1:2] is the sub-list for method input_type
	1, // [1:1] is the sub-list for extension type_name
	1, // [1:1] is the sub-list for extension extendee
	0, // [0:1] is the sub-list for field type_name
}

func init() { file_yandex_cloud_devtools_ycvc_v1_control_service_proto_init() }
func file_yandex_cloud_devtools_ycvc_v1_control_service_proto_init() {
	if File_yandex_cloud_devtools_ycvc_v1_control_service_proto != nil {
		return
	}
	type x struct{}
	out := protoimpl.TypeBuilder{
		File: protoimpl.DescBuilder{
			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
			RawDescriptor: unsafe.Slice(unsafe.StringData(file_yandex_cloud_devtools_ycvc_v1_control_service_proto_rawDesc), len(file_yandex_cloud_devtools_ycvc_v1_control_service_proto_rawDesc)),
			NumEnums:      0,
			NumMessages:   3,
			NumExtensions: 0,
			NumServices:   1,
		},
		GoTypes:           file_yandex_cloud_devtools_ycvc_v1_control_service_proto_goTypes,
		DependencyIndexes: file_yandex_cloud_devtools_ycvc_v1_control_service_proto_depIdxs,
		MessageInfos:      file_yandex_cloud_devtools_ycvc_v1_control_service_proto_msgTypes,
	}.Build()
	File_yandex_cloud_devtools_ycvc_v1_control_service_proto = out.File
	file_yandex_cloud_devtools_ycvc_v1_control_service_proto_goTypes = nil
	file_yandex_cloud_devtools_ycvc_v1_control_service_proto_depIdxs = nil
}
