// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// 	protoc-gen-go v1.36.6
// 	protoc        v3.21.12
// source: yandex/cloud/cloudapps/workload/v1/cloud_application_service.proto

package workload

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"
	emptypb "google.golang.org/protobuf/types/known/emptypb"
	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)
)

type ResolveByWorkloadRequest_WorkloadType int32

const (
	ResolveByWorkloadRequest_WORKLOAD_TYPE_UNSPECIFIED ResolveByWorkloadRequest_WorkloadType = 0
	// Compute Instance
	ResolveByWorkloadRequest_COMPUTE_INSTANCE ResolveByWorkloadRequest_WorkloadType = 1
)

// Enum value maps for ResolveByWorkloadRequest_WorkloadType.
var (
	ResolveByWorkloadRequest_WorkloadType_name = map[int32]string{
		0: "WORKLOAD_TYPE_UNSPECIFIED",
		1: "COMPUTE_INSTANCE",
	}
	ResolveByWorkloadRequest_WorkloadType_value = map[string]int32{
		"WORKLOAD_TYPE_UNSPECIFIED": 0,
		"COMPUTE_INSTANCE":          1,
	}
)

func (x ResolveByWorkloadRequest_WorkloadType) Enum() *ResolveByWorkloadRequest_WorkloadType {
	p := new(ResolveByWorkloadRequest_WorkloadType)
	*p = x
	return p
}

func (x ResolveByWorkloadRequest_WorkloadType) String() string {
	return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}

func (ResolveByWorkloadRequest_WorkloadType) Descriptor() protoreflect.EnumDescriptor {
	return file_yandex_cloud_cloudapps_workload_v1_cloud_application_service_proto_enumTypes[0].Descriptor()
}

func (ResolveByWorkloadRequest_WorkloadType) Type() protoreflect.EnumType {
	return &file_yandex_cloud_cloudapps_workload_v1_cloud_application_service_proto_enumTypes[0]
}

func (x ResolveByWorkloadRequest_WorkloadType) Number() protoreflect.EnumNumber {
	return protoreflect.EnumNumber(x)
}

// Deprecated: Use ResolveByWorkloadRequest_WorkloadType.Descriptor instead.
func (ResolveByWorkloadRequest_WorkloadType) EnumDescriptor() ([]byte, []int) {
	return file_yandex_cloud_cloudapps_workload_v1_cloud_application_service_proto_rawDescGZIP(), []int{0, 0}
}

type ResolveByWorkloadRequest struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// Type of workload. See WorkloadType.
	WorkloadType ResolveByWorkloadRequest_WorkloadType `protobuf:"varint,1,opt,name=workload_type,json=workloadType,proto3,enum=yandex.cloud.cloudapps.workload.v1.ResolveByWorkloadRequest_WorkloadType" json:"workload_type,omitempty"`
	// Identifier of workload
	WorkloadId    string `protobuf:"bytes,2,opt,name=workload_id,json=workloadId,proto3" json:"workload_id,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

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

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

func (*ResolveByWorkloadRequest) ProtoMessage() {}

func (x *ResolveByWorkloadRequest) ProtoReflect() protoreflect.Message {
	mi := &file_yandex_cloud_cloudapps_workload_v1_cloud_application_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 ResolveByWorkloadRequest.ProtoReflect.Descriptor instead.
func (*ResolveByWorkloadRequest) Descriptor() ([]byte, []int) {
	return file_yandex_cloud_cloudapps_workload_v1_cloud_application_service_proto_rawDescGZIP(), []int{0}
}

func (x *ResolveByWorkloadRequest) GetWorkloadType() ResolveByWorkloadRequest_WorkloadType {
	if x != nil {
		return x.WorkloadType
	}
	return ResolveByWorkloadRequest_WORKLOAD_TYPE_UNSPECIFIED
}

func (x *ResolveByWorkloadRequest) GetWorkloadId() string {
	if x != nil {
		return x.WorkloadId
	}
	return ""
}

type ResolveByWorkloadResponse struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// Details of cloud application
	CloudApplication *CloudApplication `protobuf:"bytes,1,opt,name=cloud_application,json=cloudApplication,proto3" json:"cloud_application,omitempty"`
	unknownFields    protoimpl.UnknownFields
	sizeCache        protoimpl.SizeCache
}

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

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

func (*ResolveByWorkloadResponse) ProtoMessage() {}

func (x *ResolveByWorkloadResponse) ProtoReflect() protoreflect.Message {
	mi := &file_yandex_cloud_cloudapps_workload_v1_cloud_application_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 ResolveByWorkloadResponse.ProtoReflect.Descriptor instead.
func (*ResolveByWorkloadResponse) Descriptor() ([]byte, []int) {
	return file_yandex_cloud_cloudapps_workload_v1_cloud_application_service_proto_rawDescGZIP(), []int{1}
}

func (x *ResolveByWorkloadResponse) GetCloudApplication() *CloudApplication {
	if x != nil {
		return x.CloudApplication
	}
	return nil
}

var File_yandex_cloud_cloudapps_workload_v1_cloud_application_service_proto protoreflect.FileDescriptor

const file_yandex_cloud_cloudapps_workload_v1_cloud_application_service_proto_rawDesc = "" +
	"\n" +
	"Byandex/cloud/cloudapps/workload/v1/cloud_application_service.proto\x12\"yandex.cloud.cloudapps.workload.v1\x1a\x1cgoogle/api/annotations.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a\x1dyandex/cloud/validation.proto\x1a:yandex/cloud/cloudapps/workload/v1/cloud_application.proto\"\x84\x02\n" +
	"\x18ResolveByWorkloadRequest\x12t\n" +
	"\rworkload_type\x18\x01 \x01(\x0e2I.yandex.cloud.cloudapps.workload.v1.ResolveByWorkloadRequest.WorkloadTypeB\x04\xe8\xc71\x01R\fworkloadType\x12-\n" +
	"\vworkload_id\x18\x02 \x01(\tB\f\xe8\xc71\x01\x8a\xc81\x04<=50R\n" +
	"workloadId\"C\n" +
	"\fWorkloadType\x12\x1d\n" +
	"\x19WORKLOAD_TYPE_UNSPECIFIED\x10\x00\x12\x14\n" +
	"\x10COMPUTE_INSTANCE\x10\x01\"~\n" +
	"\x19ResolveByWorkloadResponse\x12a\n" +
	"\x11cloud_application\x18\x01 \x01(\v24.yandex.cloud.cloudapps.workload.v1.CloudApplicationR\x10cloudApplication2\xff\x02\n" +
	"\x17CloudApplicationService\x12\x86\x01\n" +
	"\x03Get\x12\x16.google.protobuf.Empty\x1a4.yandex.cloud.cloudapps.workload.v1.CloudApplication\"1\x82\xd3\xe4\x93\x02+\x12)/cloudapps/workload/v1/cloud-applications\x12\xda\x01\n" +
	"\x11ResolveByWorkload\x12<.yandex.cloud.cloudapps.workload.v1.ResolveByWorkloadRequest\x1a=.yandex.cloud.cloudapps.workload.v1.ResolveByWorkloadResponse\"H\x82\xd3\xe4\x93\x02B:\x01*\"=/cloudapps/workload/v1/cloud-applications:resolve-by-workloadBy\n" +
	"&yandex.cloud.api.cloudapps.workload.v1ZOgithub.com/yandex-cloud/go-genproto/yandex/cloud/cloudapps/workload/v1;workloadb\x06proto3"

var (
	file_yandex_cloud_cloudapps_workload_v1_cloud_application_service_proto_rawDescOnce sync.Once
	file_yandex_cloud_cloudapps_workload_v1_cloud_application_service_proto_rawDescData []byte
)

func file_yandex_cloud_cloudapps_workload_v1_cloud_application_service_proto_rawDescGZIP() []byte {
	file_yandex_cloud_cloudapps_workload_v1_cloud_application_service_proto_rawDescOnce.Do(func() {
		file_yandex_cloud_cloudapps_workload_v1_cloud_application_service_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_yandex_cloud_cloudapps_workload_v1_cloud_application_service_proto_rawDesc), len(file_yandex_cloud_cloudapps_workload_v1_cloud_application_service_proto_rawDesc)))
	})
	return file_yandex_cloud_cloudapps_workload_v1_cloud_application_service_proto_rawDescData
}

var file_yandex_cloud_cloudapps_workload_v1_cloud_application_service_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
var file_yandex_cloud_cloudapps_workload_v1_cloud_application_service_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
var file_yandex_cloud_cloudapps_workload_v1_cloud_application_service_proto_goTypes = []any{
	(ResolveByWorkloadRequest_WorkloadType)(0), // 0: yandex.cloud.cloudapps.workload.v1.ResolveByWorkloadRequest.WorkloadType
	(*ResolveByWorkloadRequest)(nil),           // 1: yandex.cloud.cloudapps.workload.v1.ResolveByWorkloadRequest
	(*ResolveByWorkloadResponse)(nil),          // 2: yandex.cloud.cloudapps.workload.v1.ResolveByWorkloadResponse
	(*CloudApplication)(nil),                   // 3: yandex.cloud.cloudapps.workload.v1.CloudApplication
	(*emptypb.Empty)(nil),                      // 4: google.protobuf.Empty
}
var file_yandex_cloud_cloudapps_workload_v1_cloud_application_service_proto_depIdxs = []int32{
	0, // 0: yandex.cloud.cloudapps.workload.v1.ResolveByWorkloadRequest.workload_type:type_name -> yandex.cloud.cloudapps.workload.v1.ResolveByWorkloadRequest.WorkloadType
	3, // 1: yandex.cloud.cloudapps.workload.v1.ResolveByWorkloadResponse.cloud_application:type_name -> yandex.cloud.cloudapps.workload.v1.CloudApplication
	4, // 2: yandex.cloud.cloudapps.workload.v1.CloudApplicationService.Get:input_type -> google.protobuf.Empty
	1, // 3: yandex.cloud.cloudapps.workload.v1.CloudApplicationService.ResolveByWorkload:input_type -> yandex.cloud.cloudapps.workload.v1.ResolveByWorkloadRequest
	3, // 4: yandex.cloud.cloudapps.workload.v1.CloudApplicationService.Get:output_type -> yandex.cloud.cloudapps.workload.v1.CloudApplication
	2, // 5: yandex.cloud.cloudapps.workload.v1.CloudApplicationService.ResolveByWorkload:output_type -> yandex.cloud.cloudapps.workload.v1.ResolveByWorkloadResponse
	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_yandex_cloud_cloudapps_workload_v1_cloud_application_service_proto_init() }
func file_yandex_cloud_cloudapps_workload_v1_cloud_application_service_proto_init() {
	if File_yandex_cloud_cloudapps_workload_v1_cloud_application_service_proto != nil {
		return
	}
	file_yandex_cloud_cloudapps_workload_v1_cloud_application_proto_init()
	type x struct{}
	out := protoimpl.TypeBuilder{
		File: protoimpl.DescBuilder{
			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
			RawDescriptor: unsafe.Slice(unsafe.StringData(file_yandex_cloud_cloudapps_workload_v1_cloud_application_service_proto_rawDesc), len(file_yandex_cloud_cloudapps_workload_v1_cloud_application_service_proto_rawDesc)),
			NumEnums:      1,
			NumMessages:   2,
			NumExtensions: 0,
			NumServices:   1,
		},
		GoTypes:           file_yandex_cloud_cloudapps_workload_v1_cloud_application_service_proto_goTypes,
		DependencyIndexes: file_yandex_cloud_cloudapps_workload_v1_cloud_application_service_proto_depIdxs,
		EnumInfos:         file_yandex_cloud_cloudapps_workload_v1_cloud_application_service_proto_enumTypes,
		MessageInfos:      file_yandex_cloud_cloudapps_workload_v1_cloud_application_service_proto_msgTypes,
	}.Build()
	File_yandex_cloud_cloudapps_workload_v1_cloud_application_service_proto = out.File
	file_yandex_cloud_cloudapps_workload_v1_cloud_application_service_proto_goTypes = nil
	file_yandex_cloud_cloudapps_workload_v1_cloud_application_service_proto_depIdxs = nil
}
