// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// 	protoc-gen-go v1.36.6
// 	protoc        v3.21.12
// source: yandex/cloud/marketplace/licensemanager/v1/instance_service.proto

package licensemanager

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

type GetInstanceRequest struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// ID of the subscription instance.
	InstanceId    string `protobuf:"bytes,1,opt,name=instance_id,json=instanceId,proto3" json:"instance_id,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

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

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

func (*GetInstanceRequest) ProtoMessage() {}

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

func (x *GetInstanceRequest) GetInstanceId() string {
	if x != nil {
		return x.InstanceId
	}
	return ""
}

type ListInstancesRequest struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// ID of the folder that the subscription instance belongs to.
	FolderId string `protobuf:"bytes,1,opt,name=folder_id,json=folderId,proto3" json:"folder_id,omitempty"`
	// The maximum number of results per page to return. If the number of available
	// results is larger than `page_size`, the service returns a [ListInstancesResponse.next_page_token]
	// that can be used to get the next page of results in subsequent list requests.
	// Default value: 100.
	PageSize int64 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
	// Page token. To get the next page of results, set `page_token` to the
	// [ListInstancesResponse.next_page_token] returned by a previous list request.
	PageToken string `protobuf:"bytes,3,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
	// A filter expression that filters subscription instances listed in the response.
	//
	// The expression must specify:
	// 1. The field name. Currently you can use filtering only on [Instance.name] field.
	// 2. An operator. Can be either `=` or `!=` for single values, `IN` or `NOT IN` for lists of values.
	// 3. The value. Must be in double quotes `""`. Must be 3-63 characters long and match the regular expression `^[a-z][-a-z0-9]{1,61}[a-z0-9]`.
	// Example of a filter: `name="my-subscription-instance"`.
	Filter string `protobuf:"bytes,4,opt,name=filter,proto3" json:"filter,omitempty"`
	// Sorting order for the list of subscription instances.
	OrderBy       string `protobuf:"bytes,5,opt,name=order_by,json=orderBy,proto3" json:"order_by,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

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

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

func (*ListInstancesRequest) ProtoMessage() {}

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

func (x *ListInstancesRequest) GetFolderId() string {
	if x != nil {
		return x.FolderId
	}
	return ""
}

func (x *ListInstancesRequest) GetPageSize() int64 {
	if x != nil {
		return x.PageSize
	}
	return 0
}

func (x *ListInstancesRequest) GetPageToken() string {
	if x != nil {
		return x.PageToken
	}
	return ""
}

func (x *ListInstancesRequest) GetFilter() string {
	if x != nil {
		return x.Filter
	}
	return ""
}

func (x *ListInstancesRequest) GetOrderBy() string {
	if x != nil {
		return x.OrderBy
	}
	return ""
}

type ListInstancesResponse struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// List of subscription instances.
	Instances []*Instance `protobuf:"bytes,1,rep,name=instances,proto3" json:"instances,omitempty"`
	// Token for getting the next page of the list. If the number of results is greater than
	// the specified [ListInstancesRequest.page_size], use `next_page_token` as the value
	// for the [ListInstancesRequest.page_token] parameter in the next list request.
	//
	// Each subsequent page will have its own `next_page_token` to continue paging through the results.
	NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

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

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

func (*ListInstancesResponse) ProtoMessage() {}

func (x *ListInstancesResponse) ProtoReflect() protoreflect.Message {
	mi := &file_yandex_cloud_marketplace_licensemanager_v1_instance_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 ListInstancesResponse.ProtoReflect.Descriptor instead.
func (*ListInstancesResponse) Descriptor() ([]byte, []int) {
	return file_yandex_cloud_marketplace_licensemanager_v1_instance_service_proto_rawDescGZIP(), []int{2}
}

func (x *ListInstancesResponse) GetInstances() []*Instance {
	if x != nil {
		return x.Instances
	}
	return nil
}

func (x *ListInstancesResponse) GetNextPageToken() string {
	if x != nil {
		return x.NextPageToken
	}
	return ""
}

var File_yandex_cloud_marketplace_licensemanager_v1_instance_service_proto protoreflect.FileDescriptor

const file_yandex_cloud_marketplace_licensemanager_v1_instance_service_proto_rawDesc = "" +
	"\n" +
	"Ayandex/cloud/marketplace/licensemanager/v1/instance_service.proto\x12*yandex.cloud.marketplace.licensemanager.v1\x1a\x1cgoogle/api/annotations.proto\x1a9yandex/cloud/marketplace/licensemanager/v1/instance.proto\x1a\x1dyandex/cloud/validation.proto\";\n" +
	"\x12GetInstanceRequest\x12%\n" +
	"\vinstance_id\x18\x01 \x01(\tB\x04\xe8\xc71\x01R\n" +
	"instanceId\"\xd6\x01\n" +
	"\x14ListInstancesRequest\x12!\n" +
	"\tfolder_id\x18\x01 \x01(\tB\x04\xe8\xc71\x01R\bfolderId\x12'\n" +
	"\tpage_size\x18\x02 \x01(\x03B\n" +
	"\xfa\xc71\x060-1000R\bpageSize\x12(\n" +
	"\n" +
	"page_token\x18\x03 \x01(\tB\t\x8a\xc81\x05<=100R\tpageToken\x12\"\n" +
	"\x06filter\x18\x04 \x01(\tB\n" +
	"\x8a\xc81\x06<=1000R\x06filter\x12$\n" +
	"\border_by\x18\x05 \x01(\tB\t\x8a\xc81\x05<=100R\aorderBy\"\x93\x01\n" +
	"\x15ListInstancesResponse\x12R\n" +
	"\tinstances\x18\x01 \x03(\v24.yandex.cloud.marketplace.licensemanager.v1.InstanceR\tinstances\x12&\n" +
	"\x0fnext_page_token\x18\x02 \x01(\tR\rnextPageToken2\x91\x03\n" +
	"\x0fInstanceService\x12\xbc\x01\n" +
	"\x03Get\x12>.yandex.cloud.marketplace.licensemanager.v1.GetInstanceRequest\x1a4.yandex.cloud.marketplace.licensemanager.v1.Instance\"?\x82\xd3\xe4\x93\x029\x127/marketplace/license-manager/v1/instances/{instance_id}\x12\xbe\x01\n" +
	"\x04List\x12@.yandex.cloud.marketplace.licensemanager.v1.ListInstancesRequest\x1aA.yandex.cloud.marketplace.licensemanager.v1.ListInstancesResponse\"1\x82\xd3\xe4\x93\x02+\x12)/marketplace/license-manager/v1/instancesB\x8f\x01\n" +
	".yandex.cloud.api.marketplace.licensemanager.v1Z]github.com/yandex-cloud/go-genproto/yandex/cloud/marketplace/licensemanager/v1;licensemanagerb\x06proto3"

var (
	file_yandex_cloud_marketplace_licensemanager_v1_instance_service_proto_rawDescOnce sync.Once
	file_yandex_cloud_marketplace_licensemanager_v1_instance_service_proto_rawDescData []byte
)

func file_yandex_cloud_marketplace_licensemanager_v1_instance_service_proto_rawDescGZIP() []byte {
	file_yandex_cloud_marketplace_licensemanager_v1_instance_service_proto_rawDescOnce.Do(func() {
		file_yandex_cloud_marketplace_licensemanager_v1_instance_service_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_yandex_cloud_marketplace_licensemanager_v1_instance_service_proto_rawDesc), len(file_yandex_cloud_marketplace_licensemanager_v1_instance_service_proto_rawDesc)))
	})
	return file_yandex_cloud_marketplace_licensemanager_v1_instance_service_proto_rawDescData
}

var file_yandex_cloud_marketplace_licensemanager_v1_instance_service_proto_msgTypes = make([]protoimpl.MessageInfo, 3)
var file_yandex_cloud_marketplace_licensemanager_v1_instance_service_proto_goTypes = []any{
	(*GetInstanceRequest)(nil),    // 0: yandex.cloud.marketplace.licensemanager.v1.GetInstanceRequest
	(*ListInstancesRequest)(nil),  // 1: yandex.cloud.marketplace.licensemanager.v1.ListInstancesRequest
	(*ListInstancesResponse)(nil), // 2: yandex.cloud.marketplace.licensemanager.v1.ListInstancesResponse
	(*Instance)(nil),              // 3: yandex.cloud.marketplace.licensemanager.v1.Instance
}
var file_yandex_cloud_marketplace_licensemanager_v1_instance_service_proto_depIdxs = []int32{
	3, // 0: yandex.cloud.marketplace.licensemanager.v1.ListInstancesResponse.instances:type_name -> yandex.cloud.marketplace.licensemanager.v1.Instance
	0, // 1: yandex.cloud.marketplace.licensemanager.v1.InstanceService.Get:input_type -> yandex.cloud.marketplace.licensemanager.v1.GetInstanceRequest
	1, // 2: yandex.cloud.marketplace.licensemanager.v1.InstanceService.List:input_type -> yandex.cloud.marketplace.licensemanager.v1.ListInstancesRequest
	3, // 3: yandex.cloud.marketplace.licensemanager.v1.InstanceService.Get:output_type -> yandex.cloud.marketplace.licensemanager.v1.Instance
	2, // 4: yandex.cloud.marketplace.licensemanager.v1.InstanceService.List:output_type -> yandex.cloud.marketplace.licensemanager.v1.ListInstancesResponse
	3, // [3:5] is the sub-list for method output_type
	1, // [1:3] 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_marketplace_licensemanager_v1_instance_service_proto_init() }
func file_yandex_cloud_marketplace_licensemanager_v1_instance_service_proto_init() {
	if File_yandex_cloud_marketplace_licensemanager_v1_instance_service_proto != nil {
		return
	}
	file_yandex_cloud_marketplace_licensemanager_v1_instance_proto_init()
	type x struct{}
	out := protoimpl.TypeBuilder{
		File: protoimpl.DescBuilder{
			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
			RawDescriptor: unsafe.Slice(unsafe.StringData(file_yandex_cloud_marketplace_licensemanager_v1_instance_service_proto_rawDesc), len(file_yandex_cloud_marketplace_licensemanager_v1_instance_service_proto_rawDesc)),
			NumEnums:      0,
			NumMessages:   3,
			NumExtensions: 0,
			NumServices:   1,
		},
		GoTypes:           file_yandex_cloud_marketplace_licensemanager_v1_instance_service_proto_goTypes,
		DependencyIndexes: file_yandex_cloud_marketplace_licensemanager_v1_instance_service_proto_depIdxs,
		MessageInfos:      file_yandex_cloud_marketplace_licensemanager_v1_instance_service_proto_msgTypes,
	}.Build()
	File_yandex_cloud_marketplace_licensemanager_v1_instance_service_proto = out.File
	file_yandex_cloud_marketplace_licensemanager_v1_instance_service_proto_goTypes = nil
	file_yandex_cloud_marketplace_licensemanager_v1_instance_service_proto_depIdxs = nil
}
