// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// 	protoc-gen-go v1.36.6
// 	protoc        (unknown)
// source: xyz/block/ftl/pubsub/v1/admin.proto

package pubsubpb

import (
	v11 "github.com/block/ftl/backend/protos/xyz/block/ftl/admin/v1"
	v12 "github.com/block/ftl/backend/protos/xyz/block/ftl/v1"
	v1 "github.com/block/ftl/common/protos/xyz/block/ftl/schema/v1"
	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 ResetOffsetsOfSubscriptionRequest struct {
	state         protoimpl.MessageState `protogen:"open.v1"`
	Subscription  *v1.Ref                `protobuf:"bytes,1,opt,name=subscription,proto3" json:"subscription,omitempty"`
	Offset        v11.SubscriptionOffset `protobuf:"varint,2,opt,name=offset,proto3,enum=xyz.block.ftl.admin.v1.SubscriptionOffset" json:"offset,omitempty"`
	Partitions    []int32                `protobuf:"varint,3,rep,packed,name=partitions,proto3" json:"partitions,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

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

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

func (*ResetOffsetsOfSubscriptionRequest) ProtoMessage() {}

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

func (x *ResetOffsetsOfSubscriptionRequest) GetSubscription() *v1.Ref {
	if x != nil {
		return x.Subscription
	}
	return nil
}

func (x *ResetOffsetsOfSubscriptionRequest) GetOffset() v11.SubscriptionOffset {
	if x != nil {
		return x.Offset
	}
	return v11.SubscriptionOffset(0)
}

func (x *ResetOffsetsOfSubscriptionRequest) GetPartitions() []int32 {
	if x != nil {
		return x.Partitions
	}
	return nil
}

type ResetOffsetsOfSubscriptionResponse struct {
	state         protoimpl.MessageState `protogen:"open.v1"`
	Partitions    []int32                `protobuf:"varint,1,rep,packed,name=partitions,proto3" json:"partitions,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

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

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

func (*ResetOffsetsOfSubscriptionResponse) ProtoMessage() {}

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

func (x *ResetOffsetsOfSubscriptionResponse) GetPartitions() []int32 {
	if x != nil {
		return x.Partitions
	}
	return nil
}

var File_xyz_block_ftl_pubsub_v1_admin_proto protoreflect.FileDescriptor

const file_xyz_block_ftl_pubsub_v1_admin_proto_rawDesc = "" +
	"\n" +
	"#xyz/block/ftl/pubsub/v1/admin.proto\x12\x17xyz.block.ftl.pubsub.v1\x1a\"xyz/block/ftl/admin/v1/admin.proto\x1a$xyz/block/ftl/schema/v1/schema.proto\x1a\x1axyz/block/ftl/v1/ftl.proto\"\xc9\x01\n" +
	"!ResetOffsetsOfSubscriptionRequest\x12@\n" +
	"\fsubscription\x18\x01 \x01(\v2\x1c.xyz.block.ftl.schema.v1.RefR\fsubscription\x12B\n" +
	"\x06offset\x18\x02 \x01(\x0e2*.xyz.block.ftl.admin.v1.SubscriptionOffsetR\x06offset\x12\x1e\n" +
	"\n" +
	"partitions\x18\x03 \x03(\x05R\n" +
	"partitions\"D\n" +
	"\"ResetOffsetsOfSubscriptionResponse\x12\x1e\n" +
	"\n" +
	"partitions\x18\x01 \x03(\x05R\n" +
	"partitions2\xf8\x01\n" +
	"\x12PubSubAdminService\x12J\n" +
	"\x04Ping\x12\x1d.xyz.block.ftl.v1.PingRequest\x1a\x1e.xyz.block.ftl.v1.PingResponse\"\x03\x90\x02\x01\x12\x95\x01\n" +
	"\x1aResetOffsetsOfSubscription\x12:.xyz.block.ftl.pubsub.v1.ResetOffsetsOfSubscriptionRequest\x1a;.xyz.block.ftl.pubsub.v1.ResetOffsetsOfSubscriptionResponseBHP\x01ZDgithub.com/block/ftl/backend/protos/xyz/block/ftl/pubsub/v1;pubsubpbb\x06proto3"

var (
	file_xyz_block_ftl_pubsub_v1_admin_proto_rawDescOnce sync.Once
	file_xyz_block_ftl_pubsub_v1_admin_proto_rawDescData []byte
)

func file_xyz_block_ftl_pubsub_v1_admin_proto_rawDescGZIP() []byte {
	file_xyz_block_ftl_pubsub_v1_admin_proto_rawDescOnce.Do(func() {
		file_xyz_block_ftl_pubsub_v1_admin_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_xyz_block_ftl_pubsub_v1_admin_proto_rawDesc), len(file_xyz_block_ftl_pubsub_v1_admin_proto_rawDesc)))
	})
	return file_xyz_block_ftl_pubsub_v1_admin_proto_rawDescData
}

var file_xyz_block_ftl_pubsub_v1_admin_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
var file_xyz_block_ftl_pubsub_v1_admin_proto_goTypes = []any{
	(*ResetOffsetsOfSubscriptionRequest)(nil),  // 0: xyz.block.ftl.pubsub.v1.ResetOffsetsOfSubscriptionRequest
	(*ResetOffsetsOfSubscriptionResponse)(nil), // 1: xyz.block.ftl.pubsub.v1.ResetOffsetsOfSubscriptionResponse
	(*v1.Ref)(nil),              // 2: xyz.block.ftl.schema.v1.Ref
	(v11.SubscriptionOffset)(0), // 3: xyz.block.ftl.admin.v1.SubscriptionOffset
	(*v12.PingRequest)(nil),     // 4: xyz.block.ftl.v1.PingRequest
	(*v12.PingResponse)(nil),    // 5: xyz.block.ftl.v1.PingResponse
}
var file_xyz_block_ftl_pubsub_v1_admin_proto_depIdxs = []int32{
	2, // 0: xyz.block.ftl.pubsub.v1.ResetOffsetsOfSubscriptionRequest.subscription:type_name -> xyz.block.ftl.schema.v1.Ref
	3, // 1: xyz.block.ftl.pubsub.v1.ResetOffsetsOfSubscriptionRequest.offset:type_name -> xyz.block.ftl.admin.v1.SubscriptionOffset
	4, // 2: xyz.block.ftl.pubsub.v1.PubSubAdminService.Ping:input_type -> xyz.block.ftl.v1.PingRequest
	0, // 3: xyz.block.ftl.pubsub.v1.PubSubAdminService.ResetOffsetsOfSubscription:input_type -> xyz.block.ftl.pubsub.v1.ResetOffsetsOfSubscriptionRequest
	5, // 4: xyz.block.ftl.pubsub.v1.PubSubAdminService.Ping:output_type -> xyz.block.ftl.v1.PingResponse
	1, // 5: xyz.block.ftl.pubsub.v1.PubSubAdminService.ResetOffsetsOfSubscription:output_type -> xyz.block.ftl.pubsub.v1.ResetOffsetsOfSubscriptionResponse
	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_xyz_block_ftl_pubsub_v1_admin_proto_init() }
func file_xyz_block_ftl_pubsub_v1_admin_proto_init() {
	if File_xyz_block_ftl_pubsub_v1_admin_proto != nil {
		return
	}
	type x struct{}
	out := protoimpl.TypeBuilder{
		File: protoimpl.DescBuilder{
			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
			RawDescriptor: unsafe.Slice(unsafe.StringData(file_xyz_block_ftl_pubsub_v1_admin_proto_rawDesc), len(file_xyz_block_ftl_pubsub_v1_admin_proto_rawDesc)),
			NumEnums:      0,
			NumMessages:   2,
			NumExtensions: 0,
			NumServices:   1,
		},
		GoTypes:           file_xyz_block_ftl_pubsub_v1_admin_proto_goTypes,
		DependencyIndexes: file_xyz_block_ftl_pubsub_v1_admin_proto_depIdxs,
		MessageInfos:      file_xyz_block_ftl_pubsub_v1_admin_proto_msgTypes,
	}.Build()
	File_xyz_block_ftl_pubsub_v1_admin_proto = out.File
	file_xyz_block_ftl_pubsub_v1_admin_proto_goTypes = nil
	file_xyz_block_ftl_pubsub_v1_admin_proto_depIdxs = nil
}
