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

package ydb

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 GetLocationRequest struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// Required. ID of the location to return.
	LocationId    string `protobuf:"bytes,1,opt,name=location_id,json=locationId,proto3" json:"location_id,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

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

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

func (*GetLocationRequest) ProtoMessage() {}

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

func (x *GetLocationRequest) GetLocationId() string {
	if x != nil {
		return x.LocationId
	}
	return ""
}

type ListLocationsRequest struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// The maximum number of results per page that should be returned. If the number of available
	// results is larger than `page_size`, the service returns a `next_page_token` that can be used
	// to get the next page of results in subsequent ListLocations requests.
	// Acceptable values are 0 to 1000, inclusive. Default value: 100.
	PageSize int64 `protobuf:"varint,1,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
	// Page token. Set `page_token` to the `next_page_token` returned by a previous ListLocations
	// request to get the next page of results.
	PageToken     string `protobuf:"bytes,2,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

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

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

func (*ListLocationsRequest) ProtoMessage() {}

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

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

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

type ListLocationsResponse struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// Requested list of locations.
	Locations []*Location `protobuf:"bytes,1,rep,name=locations,proto3" json:"locations,omitempty"`
	// This token allows you to get the next page of results for ListLocations requests,
	// if the number of results is larger than `page_size` specified in the request.
	// To get the next page, specify the value of `next_page_token` as a value for
	// the `page_token` parameter in the next ListLocations request. Subsequent ListLocations
	// requests will have their 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 *ListLocationsResponse) Reset() {
	*x = ListLocationsResponse{}
	mi := &file_yandex_cloud_ydb_v1_location_service_proto_msgTypes[2]
	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
	ms.StoreMessageInfo(mi)
}

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

func (*ListLocationsResponse) ProtoMessage() {}

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

func (x *ListLocationsResponse) GetLocations() []*Location {
	if x != nil {
		return x.Locations
	}
	return nil
}

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

var File_yandex_cloud_ydb_v1_location_service_proto protoreflect.FileDescriptor

const file_yandex_cloud_ydb_v1_location_service_proto_rawDesc = "" +
	"\n" +
	"*yandex/cloud/ydb/v1/location_service.proto\x12\x13yandex.cloud.ydb.v1\x1a\x1cgoogle/api/annotations.proto\x1a\"yandex/cloud/ydb/v1/location.proto\x1a\x1dyandex/cloud/validation.proto\";\n" +
	"\x12GetLocationRequest\x12%\n" +
	"\vlocation_id\x18\x01 \x01(\tB\x04\xe8\xc71\x01R\n" +
	"locationId\"i\n" +
	"\x14ListLocationsRequest\x12'\n" +
	"\tpage_size\x18\x01 \x01(\x03B\n" +
	"\xfa\xc71\x060-1000R\bpageSize\x12(\n" +
	"\n" +
	"page_token\x18\x02 \x01(\tB\t\x8a\xc81\x05<=100R\tpageToken\"|\n" +
	"\x15ListLocationsResponse\x12;\n" +
	"\tlocations\x18\x01 \x03(\v2\x1d.yandex.cloud.ydb.v1.LocationR\tlocations\x12&\n" +
	"\x0fnext_page_token\x18\x02 \x01(\tR\rnextPageToken2\x83\x02\n" +
	"\x0fLocationService\x12v\n" +
	"\x03Get\x12'.yandex.cloud.ydb.v1.GetLocationRequest\x1a\x1d.yandex.cloud.ydb.v1.Location\"'\x82\xd3\xe4\x93\x02!\x12\x1f/ydb/v1/locations/{location_id}\x12x\n" +
	"\x04List\x12).yandex.cloud.ydb.v1.ListLocationsRequest\x1a*.yandex.cloud.ydb.v1.ListLocationsResponse\"\x19\x82\xd3\xe4\x93\x02\x13\x12\x11/ydb/v1/locationsBV\n" +
	"\x17yandex.cloud.api.ydb.v1Z;github.com/yandex-cloud/go-genproto/yandex/cloud/ydb/v1;ydbb\x06proto3"

var (
	file_yandex_cloud_ydb_v1_location_service_proto_rawDescOnce sync.Once
	file_yandex_cloud_ydb_v1_location_service_proto_rawDescData []byte
)

func file_yandex_cloud_ydb_v1_location_service_proto_rawDescGZIP() []byte {
	file_yandex_cloud_ydb_v1_location_service_proto_rawDescOnce.Do(func() {
		file_yandex_cloud_ydb_v1_location_service_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_yandex_cloud_ydb_v1_location_service_proto_rawDesc), len(file_yandex_cloud_ydb_v1_location_service_proto_rawDesc)))
	})
	return file_yandex_cloud_ydb_v1_location_service_proto_rawDescData
}

var file_yandex_cloud_ydb_v1_location_service_proto_msgTypes = make([]protoimpl.MessageInfo, 3)
var file_yandex_cloud_ydb_v1_location_service_proto_goTypes = []any{
	(*GetLocationRequest)(nil),    // 0: yandex.cloud.ydb.v1.GetLocationRequest
	(*ListLocationsRequest)(nil),  // 1: yandex.cloud.ydb.v1.ListLocationsRequest
	(*ListLocationsResponse)(nil), // 2: yandex.cloud.ydb.v1.ListLocationsResponse
	(*Location)(nil),              // 3: yandex.cloud.ydb.v1.Location
}
var file_yandex_cloud_ydb_v1_location_service_proto_depIdxs = []int32{
	3, // 0: yandex.cloud.ydb.v1.ListLocationsResponse.locations:type_name -> yandex.cloud.ydb.v1.Location
	0, // 1: yandex.cloud.ydb.v1.LocationService.Get:input_type -> yandex.cloud.ydb.v1.GetLocationRequest
	1, // 2: yandex.cloud.ydb.v1.LocationService.List:input_type -> yandex.cloud.ydb.v1.ListLocationsRequest
	3, // 3: yandex.cloud.ydb.v1.LocationService.Get:output_type -> yandex.cloud.ydb.v1.Location
	2, // 4: yandex.cloud.ydb.v1.LocationService.List:output_type -> yandex.cloud.ydb.v1.ListLocationsResponse
	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_ydb_v1_location_service_proto_init() }
func file_yandex_cloud_ydb_v1_location_service_proto_init() {
	if File_yandex_cloud_ydb_v1_location_service_proto != nil {
		return
	}
	file_yandex_cloud_ydb_v1_location_proto_init()
	type x struct{}
	out := protoimpl.TypeBuilder{
		File: protoimpl.DescBuilder{
			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
			RawDescriptor: unsafe.Slice(unsafe.StringData(file_yandex_cloud_ydb_v1_location_service_proto_rawDesc), len(file_yandex_cloud_ydb_v1_location_service_proto_rawDesc)),
			NumEnums:      0,
			NumMessages:   3,
			NumExtensions: 0,
			NumServices:   1,
		},
		GoTypes:           file_yandex_cloud_ydb_v1_location_service_proto_goTypes,
		DependencyIndexes: file_yandex_cloud_ydb_v1_location_service_proto_depIdxs,
		MessageInfos:      file_yandex_cloud_ydb_v1_location_service_proto_msgTypes,
	}.Build()
	File_yandex_cloud_ydb_v1_location_service_proto = out.File
	file_yandex_cloud_ydb_v1_location_service_proto_goTypes = nil
	file_yandex_cloud_ydb_v1_location_service_proto_depIdxs = nil
}
