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

package postgresql

import (
	_ "github.com/yandex-cloud/go-genproto/yandex/cloud"
	protoreflect "google.golang.org/protobuf/reflect/protoreflect"
	protoimpl "google.golang.org/protobuf/runtime/protoimpl"
	timestamppb "google.golang.org/protobuf/types/known/timestamppb"
	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 ListRawStatementsRequest struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// ID of a PostgreSQL cluster to request query statistics for.
	//
	// To get a PostgreSQL cluster ID, use the [ClusterService.List] method.
	ClusterId string `protobuf:"bytes,1,opt,name=cluster_id,json=clusterId,proto3" json:"cluster_id,omitempty"`
	// Beginning of the period for which you need to request data (in the [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format).
	FromTime *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=from_time,json=fromTime,proto3" json:"from_time,omitempty"`
	// End of the period for which you need to request data (in the [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format).
	ToTime *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=to_time,json=toTime,proto3" json:"to_time,omitempty"`
	// The maximum number of results per page to return. If the number of the results is larger than [page_size], the service returns [ListRawStatementsResponse.next_page_token]. You can use it to get the next page of the results in subsequent requests.
	PageSize int64 `protobuf:"varint,4,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 [ListRawStatementsResponse.next_page_token] returned by the previous SQL statement list request.
	PageToken     string `protobuf:"bytes,5,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

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

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

func (*ListRawStatementsRequest) ProtoMessage() {}

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

func (x *ListRawStatementsRequest) GetClusterId() string {
	if x != nil {
		return x.ClusterId
	}
	return ""
}

func (x *ListRawStatementsRequest) GetFromTime() *timestamppb.Timestamp {
	if x != nil {
		return x.FromTime
	}
	return nil
}

func (x *ListRawStatementsRequest) GetToTime() *timestamppb.Timestamp {
	if x != nil {
		return x.ToTime
	}
	return nil
}

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

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

type ListRawSessionStatesRequest struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// ID of a PostgreSQL cluster to request session statistics for.
	//
	// To get a PostgreSQL cluster ID, use the [ClusterService.List] request.
	ClusterId string `protobuf:"bytes,1,opt,name=cluster_id,json=clusterId,proto3" json:"cluster_id,omitempty"`
	// Beginning of the period for which you need to request data (in the [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format).
	FromTime *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=from_time,json=fromTime,proto3" json:"from_time,omitempty"`
	// End of the period for which you need to request data (in the [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format).
	ToTime *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=to_time,json=toTime,proto3" json:"to_time,omitempty"`
	// The maximum number of results per page to return. If the number of the results is larger than [page_size], the service returns [ListRawSessionStatesResponse.next_page_token]. You can use it to get the next page of the results in subsequent requests.
	PageSize int64 `protobuf:"varint,4,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 [ListRawSessionStatesResponse.next_page_token] returned by the previous PostgreSQL session list request.
	PageToken     string `protobuf:"bytes,5,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

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

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

func (*ListRawSessionStatesRequest) ProtoMessage() {}

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

func (x *ListRawSessionStatesRequest) GetClusterId() string {
	if x != nil {
		return x.ClusterId
	}
	return ""
}

func (x *ListRawSessionStatesRequest) GetFromTime() *timestamppb.Timestamp {
	if x != nil {
		return x.FromTime
	}
	return nil
}

func (x *ListRawSessionStatesRequest) GetToTime() *timestamppb.Timestamp {
	if x != nil {
		return x.ToTime
	}
	return nil
}

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

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

type ListRawSessionStatesResponse struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// List of PostgreSQL sessions.
	SessionStates []*SessionState `protobuf:"bytes,1,rep,name=session_states,json=sessionStates,proto3" json:"session_states,omitempty"`
	// This token allows you to get the next page of results when requesting the PostgreSQL session list. If the number of the results is larger than [ListRawSessionStatesRequest.page_size], use the [next_page_token] as the value for the [ListRawSessionStatesRequest.page_token] parameter in the next request. Each subsequent request 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 *ListRawSessionStatesResponse) Reset() {
	*x = ListRawSessionStatesResponse{}
	mi := &file_yandex_cloud_mdb_postgresql_v1_perf_diag_service_proto_msgTypes[2]
	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
	ms.StoreMessageInfo(mi)
}

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

func (*ListRawSessionStatesResponse) ProtoMessage() {}

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

func (x *ListRawSessionStatesResponse) GetSessionStates() []*SessionState {
	if x != nil {
		return x.SessionStates
	}
	return nil
}

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

type ListRawStatementsResponse struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// List of SQL statements (queries).
	Statements []*QueryStatement `protobuf:"bytes,1,rep,name=statements,proto3" json:"statements,omitempty"`
	// This token allows you to get the next page of results when requesting the PostgreSQL session list. If the number of the results is larger than [ListRawStatementsRequest.page_size], use the [next_page_token] as the value for the [ListRawStatementsRequest.page_token] parameter in the next request. Each subsequent request 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 *ListRawStatementsResponse) Reset() {
	*x = ListRawStatementsResponse{}
	mi := &file_yandex_cloud_mdb_postgresql_v1_perf_diag_service_proto_msgTypes[3]
	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
	ms.StoreMessageInfo(mi)
}

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

func (*ListRawStatementsResponse) ProtoMessage() {}

func (x *ListRawStatementsResponse) ProtoReflect() protoreflect.Message {
	mi := &file_yandex_cloud_mdb_postgresql_v1_perf_diag_service_proto_msgTypes[3]
	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 ListRawStatementsResponse.ProtoReflect.Descriptor instead.
func (*ListRawStatementsResponse) Descriptor() ([]byte, []int) {
	return file_yandex_cloud_mdb_postgresql_v1_perf_diag_service_proto_rawDescGZIP(), []int{3}
}

func (x *ListRawStatementsResponse) GetStatements() []*QueryStatement {
	if x != nil {
		return x.Statements
	}
	return nil
}

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

var File_yandex_cloud_mdb_postgresql_v1_perf_diag_service_proto protoreflect.FileDescriptor

const file_yandex_cloud_mdb_postgresql_v1_perf_diag_service_proto_rawDesc = "" +
	"\n" +
	"6yandex/cloud/mdb/postgresql/v1/perf_diag_service.proto\x12\x1eyandex.cloud.mdb.postgresql.v1\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x1dyandex/cloud/validation.proto\x1a.yandex/cloud/mdb/postgresql/v1/perf_diag.proto\"\x89\x02\n" +
	"\x18ListRawStatementsRequest\x12+\n" +
	"\n" +
	"cluster_id\x18\x01 \x01(\tB\f\xe8\xc71\x01\x8a\xc81\x04<=50R\tclusterId\x127\n" +
	"\tfrom_time\x18\x02 \x01(\v2\x1a.google.protobuf.TimestampR\bfromTime\x123\n" +
	"\ato_time\x18\x03 \x01(\v2\x1a.google.protobuf.TimestampR\x06toTime\x12(\n" +
	"\tpage_size\x18\x04 \x01(\x03B\v\xfa\xc71\a<=10000R\bpageSize\x12(\n" +
	"\n" +
	"page_token\x18\x05 \x01(\tB\t\x8a\xc81\x05<=100R\tpageToken\"\x8c\x02\n" +
	"\x1bListRawSessionStatesRequest\x12+\n" +
	"\n" +
	"cluster_id\x18\x01 \x01(\tB\f\xe8\xc71\x01\x8a\xc81\x04<=50R\tclusterId\x127\n" +
	"\tfrom_time\x18\x02 \x01(\v2\x1a.google.protobuf.TimestampR\bfromTime\x123\n" +
	"\ato_time\x18\x03 \x01(\v2\x1a.google.protobuf.TimestampR\x06toTime\x12(\n" +
	"\tpage_size\x18\x04 \x01(\x03B\v\xfa\xc71\a<=10000R\bpageSize\x12(\n" +
	"\n" +
	"page_token\x18\x05 \x01(\tB\t\x8a\xc81\x05<=100R\tpageToken\"\x9b\x01\n" +
	"\x1cListRawSessionStatesResponse\x12S\n" +
	"\x0esession_states\x18\x01 \x03(\v2,.yandex.cloud.mdb.postgresql.v1.SessionStateR\rsessionStates\x12&\n" +
	"\x0fnext_page_token\x18\x02 \x01(\tR\rnextPageToken\"\x93\x01\n" +
	"\x19ListRawStatementsResponse\x12N\n" +
	"\n" +
	"statements\x18\x01 \x03(\v2..yandex.cloud.mdb.postgresql.v1.QueryStatementR\n" +
	"statements\x12&\n" +
	"\x0fnext_page_token\x18\x02 \x01(\tR\rnextPageToken2\xbe\x02\n" +
	"\x1dPerformanceDiagnosticsService\x12\x91\x01\n" +
	"\x14ListRawSessionStates\x12;.yandex.cloud.mdb.postgresql.v1.ListRawSessionStatesRequest\x1a<.yandex.cloud.mdb.postgresql.v1.ListRawSessionStatesResponse\x12\x88\x01\n" +
	"\x11ListRawStatements\x128.yandex.cloud.mdb.postgresql.v1.ListRawStatementsRequest\x1a9.yandex.cloud.mdb.postgresql.v1.ListRawStatementsResponseBs\n" +
	"\"yandex.cloud.api.mdb.postgresql.v1ZMgithub.com/yandex-cloud/go-genproto/yandex/cloud/mdb/postgresql/v1;postgresqlb\x06proto3"

var (
	file_yandex_cloud_mdb_postgresql_v1_perf_diag_service_proto_rawDescOnce sync.Once
	file_yandex_cloud_mdb_postgresql_v1_perf_diag_service_proto_rawDescData []byte
)

func file_yandex_cloud_mdb_postgresql_v1_perf_diag_service_proto_rawDescGZIP() []byte {
	file_yandex_cloud_mdb_postgresql_v1_perf_diag_service_proto_rawDescOnce.Do(func() {
		file_yandex_cloud_mdb_postgresql_v1_perf_diag_service_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_yandex_cloud_mdb_postgresql_v1_perf_diag_service_proto_rawDesc), len(file_yandex_cloud_mdb_postgresql_v1_perf_diag_service_proto_rawDesc)))
	})
	return file_yandex_cloud_mdb_postgresql_v1_perf_diag_service_proto_rawDescData
}

var file_yandex_cloud_mdb_postgresql_v1_perf_diag_service_proto_msgTypes = make([]protoimpl.MessageInfo, 4)
var file_yandex_cloud_mdb_postgresql_v1_perf_diag_service_proto_goTypes = []any{
	(*ListRawStatementsRequest)(nil),     // 0: yandex.cloud.mdb.postgresql.v1.ListRawStatementsRequest
	(*ListRawSessionStatesRequest)(nil),  // 1: yandex.cloud.mdb.postgresql.v1.ListRawSessionStatesRequest
	(*ListRawSessionStatesResponse)(nil), // 2: yandex.cloud.mdb.postgresql.v1.ListRawSessionStatesResponse
	(*ListRawStatementsResponse)(nil),    // 3: yandex.cloud.mdb.postgresql.v1.ListRawStatementsResponse
	(*timestamppb.Timestamp)(nil),        // 4: google.protobuf.Timestamp
	(*SessionState)(nil),                 // 5: yandex.cloud.mdb.postgresql.v1.SessionState
	(*QueryStatement)(nil),               // 6: yandex.cloud.mdb.postgresql.v1.QueryStatement
}
var file_yandex_cloud_mdb_postgresql_v1_perf_diag_service_proto_depIdxs = []int32{
	4, // 0: yandex.cloud.mdb.postgresql.v1.ListRawStatementsRequest.from_time:type_name -> google.protobuf.Timestamp
	4, // 1: yandex.cloud.mdb.postgresql.v1.ListRawStatementsRequest.to_time:type_name -> google.protobuf.Timestamp
	4, // 2: yandex.cloud.mdb.postgresql.v1.ListRawSessionStatesRequest.from_time:type_name -> google.protobuf.Timestamp
	4, // 3: yandex.cloud.mdb.postgresql.v1.ListRawSessionStatesRequest.to_time:type_name -> google.protobuf.Timestamp
	5, // 4: yandex.cloud.mdb.postgresql.v1.ListRawSessionStatesResponse.session_states:type_name -> yandex.cloud.mdb.postgresql.v1.SessionState
	6, // 5: yandex.cloud.mdb.postgresql.v1.ListRawStatementsResponse.statements:type_name -> yandex.cloud.mdb.postgresql.v1.QueryStatement
	1, // 6: yandex.cloud.mdb.postgresql.v1.PerformanceDiagnosticsService.ListRawSessionStates:input_type -> yandex.cloud.mdb.postgresql.v1.ListRawSessionStatesRequest
	0, // 7: yandex.cloud.mdb.postgresql.v1.PerformanceDiagnosticsService.ListRawStatements:input_type -> yandex.cloud.mdb.postgresql.v1.ListRawStatementsRequest
	2, // 8: yandex.cloud.mdb.postgresql.v1.PerformanceDiagnosticsService.ListRawSessionStates:output_type -> yandex.cloud.mdb.postgresql.v1.ListRawSessionStatesResponse
	3, // 9: yandex.cloud.mdb.postgresql.v1.PerformanceDiagnosticsService.ListRawStatements:output_type -> yandex.cloud.mdb.postgresql.v1.ListRawStatementsResponse
	8, // [8:10] is the sub-list for method output_type
	6, // [6:8] is the sub-list for method input_type
	6, // [6:6] is the sub-list for extension type_name
	6, // [6:6] is the sub-list for extension extendee
	0, // [0:6] is the sub-list for field type_name
}

func init() { file_yandex_cloud_mdb_postgresql_v1_perf_diag_service_proto_init() }
func file_yandex_cloud_mdb_postgresql_v1_perf_diag_service_proto_init() {
	if File_yandex_cloud_mdb_postgresql_v1_perf_diag_service_proto != nil {
		return
	}
	file_yandex_cloud_mdb_postgresql_v1_perf_diag_proto_init()
	type x struct{}
	out := protoimpl.TypeBuilder{
		File: protoimpl.DescBuilder{
			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
			RawDescriptor: unsafe.Slice(unsafe.StringData(file_yandex_cloud_mdb_postgresql_v1_perf_diag_service_proto_rawDesc), len(file_yandex_cloud_mdb_postgresql_v1_perf_diag_service_proto_rawDesc)),
			NumEnums:      0,
			NumMessages:   4,
			NumExtensions: 0,
			NumServices:   1,
		},
		GoTypes:           file_yandex_cloud_mdb_postgresql_v1_perf_diag_service_proto_goTypes,
		DependencyIndexes: file_yandex_cloud_mdb_postgresql_v1_perf_diag_service_proto_depIdxs,
		MessageInfos:      file_yandex_cloud_mdb_postgresql_v1_perf_diag_service_proto_msgTypes,
	}.Build()
	File_yandex_cloud_mdb_postgresql_v1_perf_diag_service_proto = out.File
	file_yandex_cloud_mdb_postgresql_v1_perf_diag_service_proto_goTypes = nil
	file_yandex_cloud_mdb_postgresql_v1_perf_diag_service_proto_depIdxs = nil
}
