// Code generated by protoc-gen-go-pulsar. DO NOT EDIT.
package rollup

import (
	fmt "fmt"
	runtime "github.com/cosmos/cosmos-proto/runtime"
	protoreflect "google.golang.org/protobuf/reflect/protoreflect"
	protoiface "google.golang.org/protobuf/runtime/protoiface"
	protoimpl "google.golang.org/protobuf/runtime/protoimpl"
	io "io"
	reflect "reflect"
	sync "sync"
)

var (
	md_Batch                        protoreflect.MessageDescriptor
	fd_Batch_submitter              protoreflect.FieldDescriptor
	fd_Batch_rollupId               protoreflect.FieldDescriptor
	fd_Batch_batchNo                protoreflect.FieldDescriptor
	fd_Batch_merkleRootHash         protoreflect.FieldDescriptor
	fd_Batch_previousMerkleRootHash protoreflect.FieldDescriptor
	fd_Batch_zkProof                protoreflect.FieldDescriptor
	fd_Batch_publicWitness          protoreflect.FieldDescriptor
	fd_Batch_timestamp              protoreflect.FieldDescriptor
	fd_Batch_daName                 protoreflect.FieldDescriptor
	fd_Batch_daCommitment           protoreflect.FieldDescriptor
	fd_Batch_daHash                 protoreflect.FieldDescriptor
	fd_Batch_daPointer              protoreflect.FieldDescriptor
	fd_Batch_daNamespace            protoreflect.FieldDescriptor
	fd_Batch_isFinalized            protoreflect.FieldDescriptor
)

func init() {
	file_junction_rollup_batch_proto_init()
	md_Batch = File_junction_rollup_batch_proto.Messages().ByName("Batch")
	fd_Batch_submitter = md_Batch.Fields().ByName("submitter")
	fd_Batch_rollupId = md_Batch.Fields().ByName("rollupId")
	fd_Batch_batchNo = md_Batch.Fields().ByName("batchNo")
	fd_Batch_merkleRootHash = md_Batch.Fields().ByName("merkleRootHash")
	fd_Batch_previousMerkleRootHash = md_Batch.Fields().ByName("previousMerkleRootHash")
	fd_Batch_zkProof = md_Batch.Fields().ByName("zkProof")
	fd_Batch_publicWitness = md_Batch.Fields().ByName("publicWitness")
	fd_Batch_timestamp = md_Batch.Fields().ByName("timestamp")
	fd_Batch_daName = md_Batch.Fields().ByName("daName")
	fd_Batch_daCommitment = md_Batch.Fields().ByName("daCommitment")
	fd_Batch_daHash = md_Batch.Fields().ByName("daHash")
	fd_Batch_daPointer = md_Batch.Fields().ByName("daPointer")
	fd_Batch_daNamespace = md_Batch.Fields().ByName("daNamespace")
	fd_Batch_isFinalized = md_Batch.Fields().ByName("isFinalized")
}

var _ protoreflect.Message = (*fastReflection_Batch)(nil)

type fastReflection_Batch Batch

func (x *Batch) ProtoReflect() protoreflect.Message {
	return (*fastReflection_Batch)(x)
}

func (x *Batch) slowProtoReflect() protoreflect.Message {
	mi := &file_junction_rollup_batch_proto_msgTypes[0]
	if protoimpl.UnsafeEnabled && x != nil {
		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
		if ms.LoadMessageInfo() == nil {
			ms.StoreMessageInfo(mi)
		}
		return ms
	}
	return mi.MessageOf(x)
}

var _fastReflection_Batch_messageType fastReflection_Batch_messageType
var _ protoreflect.MessageType = fastReflection_Batch_messageType{}

type fastReflection_Batch_messageType struct{}

func (x fastReflection_Batch_messageType) Zero() protoreflect.Message {
	return (*fastReflection_Batch)(nil)
}
func (x fastReflection_Batch_messageType) New() protoreflect.Message {
	return new(fastReflection_Batch)
}
func (x fastReflection_Batch_messageType) Descriptor() protoreflect.MessageDescriptor {
	return md_Batch
}

// Descriptor returns message descriptor, which contains only the protobuf
// type information for the message.
func (x *fastReflection_Batch) Descriptor() protoreflect.MessageDescriptor {
	return md_Batch
}

// Type returns the message type, which encapsulates both Go and protobuf
// type information. If the Go type information is not needed,
// it is recommended that the message descriptor be used instead.
func (x *fastReflection_Batch) Type() protoreflect.MessageType {
	return _fastReflection_Batch_messageType
}

// New returns a newly allocated and mutable empty message.
func (x *fastReflection_Batch) New() protoreflect.Message {
	return new(fastReflection_Batch)
}

// Interface unwraps the message reflection interface and
// returns the underlying ProtoMessage interface.
func (x *fastReflection_Batch) Interface() protoreflect.ProtoMessage {
	return (*Batch)(x)
}

// Range iterates over every populated field in an undefined order,
// calling f for each field descriptor and value encountered.
// Range returns immediately if f returns false.
// While iterating, mutating operations may only be performed
// on the current field descriptor.
func (x *fastReflection_Batch) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) {
	if x.Submitter != "" {
		value := protoreflect.ValueOfString(x.Submitter)
		if !f(fd_Batch_submitter, value) {
			return
		}
	}
	if x.RollupId != "" {
		value := protoreflect.ValueOfString(x.RollupId)
		if !f(fd_Batch_rollupId, value) {
			return
		}
	}
	if x.BatchNo != uint64(0) {
		value := protoreflect.ValueOfUint64(x.BatchNo)
		if !f(fd_Batch_batchNo, value) {
			return
		}
	}
	if x.MerkleRootHash != "" {
		value := protoreflect.ValueOfString(x.MerkleRootHash)
		if !f(fd_Batch_merkleRootHash, value) {
			return
		}
	}
	if x.PreviousMerkleRootHash != "" {
		value := protoreflect.ValueOfString(x.PreviousMerkleRootHash)
		if !f(fd_Batch_previousMerkleRootHash, value) {
			return
		}
	}
	if len(x.ZkProof) != 0 {
		value := protoreflect.ValueOfBytes(x.ZkProof)
		if !f(fd_Batch_zkProof, value) {
			return
		}
	}
	if len(x.PublicWitness) != 0 {
		value := protoreflect.ValueOfBytes(x.PublicWitness)
		if !f(fd_Batch_publicWitness, value) {
			return
		}
	}
	if x.Timestamp != "" {
		value := protoreflect.ValueOfString(x.Timestamp)
		if !f(fd_Batch_timestamp, value) {
			return
		}
	}
	if x.DaName != "" {
		value := protoreflect.ValueOfString(x.DaName)
		if !f(fd_Batch_daName, value) {
			return
		}
	}
	if x.DaCommitment != "" {
		value := protoreflect.ValueOfString(x.DaCommitment)
		if !f(fd_Batch_daCommitment, value) {
			return
		}
	}
	if x.DaHash != "" {
		value := protoreflect.ValueOfString(x.DaHash)
		if !f(fd_Batch_daHash, value) {
			return
		}
	}
	if x.DaPointer != "" {
		value := protoreflect.ValueOfString(x.DaPointer)
		if !f(fd_Batch_daPointer, value) {
			return
		}
	}
	if x.DaNamespace != "" {
		value := protoreflect.ValueOfString(x.DaNamespace)
		if !f(fd_Batch_daNamespace, value) {
			return
		}
	}
	if x.IsFinalized != false {
		value := protoreflect.ValueOfBool(x.IsFinalized)
		if !f(fd_Batch_isFinalized, value) {
			return
		}
	}
}

// Has reports whether a field is populated.
//
// Some fields have the property of nullability where it is possible to
// distinguish between the default value of a field and whether the field
// was explicitly populated with the default value. Singular message fields,
// member fields of a oneof, and proto2 scalar fields are nullable. Such
// fields are populated only if explicitly set.
//
// In other cases (aside from the nullable cases above),
// a proto3 scalar field is populated if it contains a non-zero value, and
// a repeated field is populated if it is non-empty.
func (x *fastReflection_Batch) Has(fd protoreflect.FieldDescriptor) bool {
	switch fd.FullName() {
	case "junction.rollup.Batch.submitter":
		return x.Submitter != ""
	case "junction.rollup.Batch.rollupId":
		return x.RollupId != ""
	case "junction.rollup.Batch.batchNo":
		return x.BatchNo != uint64(0)
	case "junction.rollup.Batch.merkleRootHash":
		return x.MerkleRootHash != ""
	case "junction.rollup.Batch.previousMerkleRootHash":
		return x.PreviousMerkleRootHash != ""
	case "junction.rollup.Batch.zkProof":
		return len(x.ZkProof) != 0
	case "junction.rollup.Batch.publicWitness":
		return len(x.PublicWitness) != 0
	case "junction.rollup.Batch.timestamp":
		return x.Timestamp != ""
	case "junction.rollup.Batch.daName":
		return x.DaName != ""
	case "junction.rollup.Batch.daCommitment":
		return x.DaCommitment != ""
	case "junction.rollup.Batch.daHash":
		return x.DaHash != ""
	case "junction.rollup.Batch.daPointer":
		return x.DaPointer != ""
	case "junction.rollup.Batch.daNamespace":
		return x.DaNamespace != ""
	case "junction.rollup.Batch.isFinalized":
		return x.IsFinalized != false
	default:
		if fd.IsExtension() {
			panic(fmt.Errorf("proto3 declared messages do not support extensions: junction.rollup.Batch"))
		}
		panic(fmt.Errorf("message junction.rollup.Batch does not contain field %s", fd.FullName()))
	}
}

// Clear clears the field such that a subsequent Has call reports false.
//
// Clearing an extension field clears both the extension type and value
// associated with the given field number.
//
// Clear is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_Batch) Clear(fd protoreflect.FieldDescriptor) {
	switch fd.FullName() {
	case "junction.rollup.Batch.submitter":
		x.Submitter = ""
	case "junction.rollup.Batch.rollupId":
		x.RollupId = ""
	case "junction.rollup.Batch.batchNo":
		x.BatchNo = uint64(0)
	case "junction.rollup.Batch.merkleRootHash":
		x.MerkleRootHash = ""
	case "junction.rollup.Batch.previousMerkleRootHash":
		x.PreviousMerkleRootHash = ""
	case "junction.rollup.Batch.zkProof":
		x.ZkProof = nil
	case "junction.rollup.Batch.publicWitness":
		x.PublicWitness = nil
	case "junction.rollup.Batch.timestamp":
		x.Timestamp = ""
	case "junction.rollup.Batch.daName":
		x.DaName = ""
	case "junction.rollup.Batch.daCommitment":
		x.DaCommitment = ""
	case "junction.rollup.Batch.daHash":
		x.DaHash = ""
	case "junction.rollup.Batch.daPointer":
		x.DaPointer = ""
	case "junction.rollup.Batch.daNamespace":
		x.DaNamespace = ""
	case "junction.rollup.Batch.isFinalized":
		x.IsFinalized = false
	default:
		if fd.IsExtension() {
			panic(fmt.Errorf("proto3 declared messages do not support extensions: junction.rollup.Batch"))
		}
		panic(fmt.Errorf("message junction.rollup.Batch does not contain field %s", fd.FullName()))
	}
}

// Get retrieves the value for a field.
//
// For unpopulated scalars, it returns the default value, where
// the default value of a bytes scalar is guaranteed to be a copy.
// For unpopulated composite types, it returns an empty, read-only view
// of the value; to obtain a mutable reference, use Mutable.
func (x *fastReflection_Batch) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value {
	switch descriptor.FullName() {
	case "junction.rollup.Batch.submitter":
		value := x.Submitter
		return protoreflect.ValueOfString(value)
	case "junction.rollup.Batch.rollupId":
		value := x.RollupId
		return protoreflect.ValueOfString(value)
	case "junction.rollup.Batch.batchNo":
		value := x.BatchNo
		return protoreflect.ValueOfUint64(value)
	case "junction.rollup.Batch.merkleRootHash":
		value := x.MerkleRootHash
		return protoreflect.ValueOfString(value)
	case "junction.rollup.Batch.previousMerkleRootHash":
		value := x.PreviousMerkleRootHash
		return protoreflect.ValueOfString(value)
	case "junction.rollup.Batch.zkProof":
		value := x.ZkProof
		return protoreflect.ValueOfBytes(value)
	case "junction.rollup.Batch.publicWitness":
		value := x.PublicWitness
		return protoreflect.ValueOfBytes(value)
	case "junction.rollup.Batch.timestamp":
		value := x.Timestamp
		return protoreflect.ValueOfString(value)
	case "junction.rollup.Batch.daName":
		value := x.DaName
		return protoreflect.ValueOfString(value)
	case "junction.rollup.Batch.daCommitment":
		value := x.DaCommitment
		return protoreflect.ValueOfString(value)
	case "junction.rollup.Batch.daHash":
		value := x.DaHash
		return protoreflect.ValueOfString(value)
	case "junction.rollup.Batch.daPointer":
		value := x.DaPointer
		return protoreflect.ValueOfString(value)
	case "junction.rollup.Batch.daNamespace":
		value := x.DaNamespace
		return protoreflect.ValueOfString(value)
	case "junction.rollup.Batch.isFinalized":
		value := x.IsFinalized
		return protoreflect.ValueOfBool(value)
	default:
		if descriptor.IsExtension() {
			panic(fmt.Errorf("proto3 declared messages do not support extensions: junction.rollup.Batch"))
		}
		panic(fmt.Errorf("message junction.rollup.Batch does not contain field %s", descriptor.FullName()))
	}
}

// Set stores the value for a field.
//
// For a field belonging to a oneof, it implicitly clears any other field
// that may be currently set within the same oneof.
// For extension fields, it implicitly stores the provided ExtensionType.
// When setting a composite type, it is unspecified whether the stored value
// aliases the source's memory in any way. If the composite value is an
// empty, read-only value, then it panics.
//
// Set is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_Batch) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) {
	switch fd.FullName() {
	case "junction.rollup.Batch.submitter":
		x.Submitter = value.Interface().(string)
	case "junction.rollup.Batch.rollupId":
		x.RollupId = value.Interface().(string)
	case "junction.rollup.Batch.batchNo":
		x.BatchNo = value.Uint()
	case "junction.rollup.Batch.merkleRootHash":
		x.MerkleRootHash = value.Interface().(string)
	case "junction.rollup.Batch.previousMerkleRootHash":
		x.PreviousMerkleRootHash = value.Interface().(string)
	case "junction.rollup.Batch.zkProof":
		x.ZkProof = value.Bytes()
	case "junction.rollup.Batch.publicWitness":
		x.PublicWitness = value.Bytes()
	case "junction.rollup.Batch.timestamp":
		x.Timestamp = value.Interface().(string)
	case "junction.rollup.Batch.daName":
		x.DaName = value.Interface().(string)
	case "junction.rollup.Batch.daCommitment":
		x.DaCommitment = value.Interface().(string)
	case "junction.rollup.Batch.daHash":
		x.DaHash = value.Interface().(string)
	case "junction.rollup.Batch.daPointer":
		x.DaPointer = value.Interface().(string)
	case "junction.rollup.Batch.daNamespace":
		x.DaNamespace = value.Interface().(string)
	case "junction.rollup.Batch.isFinalized":
		x.IsFinalized = value.Bool()
	default:
		if fd.IsExtension() {
			panic(fmt.Errorf("proto3 declared messages do not support extensions: junction.rollup.Batch"))
		}
		panic(fmt.Errorf("message junction.rollup.Batch does not contain field %s", fd.FullName()))
	}
}

// Mutable returns a mutable reference to a composite type.
//
// If the field is unpopulated, it may allocate a composite value.
// For a field belonging to a oneof, it implicitly clears any other field
// that may be currently set within the same oneof.
// For extension fields, it implicitly stores the provided ExtensionType
// if not already stored.
// It panics if the field does not contain a composite type.
//
// Mutable is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_Batch) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value {
	switch fd.FullName() {
	case "junction.rollup.Batch.submitter":
		panic(fmt.Errorf("field submitter of message junction.rollup.Batch is not mutable"))
	case "junction.rollup.Batch.rollupId":
		panic(fmt.Errorf("field rollupId of message junction.rollup.Batch is not mutable"))
	case "junction.rollup.Batch.batchNo":
		panic(fmt.Errorf("field batchNo of message junction.rollup.Batch is not mutable"))
	case "junction.rollup.Batch.merkleRootHash":
		panic(fmt.Errorf("field merkleRootHash of message junction.rollup.Batch is not mutable"))
	case "junction.rollup.Batch.previousMerkleRootHash":
		panic(fmt.Errorf("field previousMerkleRootHash of message junction.rollup.Batch is not mutable"))
	case "junction.rollup.Batch.zkProof":
		panic(fmt.Errorf("field zkProof of message junction.rollup.Batch is not mutable"))
	case "junction.rollup.Batch.publicWitness":
		panic(fmt.Errorf("field publicWitness of message junction.rollup.Batch is not mutable"))
	case "junction.rollup.Batch.timestamp":
		panic(fmt.Errorf("field timestamp of message junction.rollup.Batch is not mutable"))
	case "junction.rollup.Batch.daName":
		panic(fmt.Errorf("field daName of message junction.rollup.Batch is not mutable"))
	case "junction.rollup.Batch.daCommitment":
		panic(fmt.Errorf("field daCommitment of message junction.rollup.Batch is not mutable"))
	case "junction.rollup.Batch.daHash":
		panic(fmt.Errorf("field daHash of message junction.rollup.Batch is not mutable"))
	case "junction.rollup.Batch.daPointer":
		panic(fmt.Errorf("field daPointer of message junction.rollup.Batch is not mutable"))
	case "junction.rollup.Batch.daNamespace":
		panic(fmt.Errorf("field daNamespace of message junction.rollup.Batch is not mutable"))
	case "junction.rollup.Batch.isFinalized":
		panic(fmt.Errorf("field isFinalized of message junction.rollup.Batch is not mutable"))
	default:
		if fd.IsExtension() {
			panic(fmt.Errorf("proto3 declared messages do not support extensions: junction.rollup.Batch"))
		}
		panic(fmt.Errorf("message junction.rollup.Batch does not contain field %s", fd.FullName()))
	}
}

// NewField returns a new value that is assignable to the field
// for the given descriptor. For scalars, this returns the default value.
// For lists, maps, and messages, this returns a new, empty, mutable value.
func (x *fastReflection_Batch) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value {
	switch fd.FullName() {
	case "junction.rollup.Batch.submitter":
		return protoreflect.ValueOfString("")
	case "junction.rollup.Batch.rollupId":
		return protoreflect.ValueOfString("")
	case "junction.rollup.Batch.batchNo":
		return protoreflect.ValueOfUint64(uint64(0))
	case "junction.rollup.Batch.merkleRootHash":
		return protoreflect.ValueOfString("")
	case "junction.rollup.Batch.previousMerkleRootHash":
		return protoreflect.ValueOfString("")
	case "junction.rollup.Batch.zkProof":
		return protoreflect.ValueOfBytes(nil)
	case "junction.rollup.Batch.publicWitness":
		return protoreflect.ValueOfBytes(nil)
	case "junction.rollup.Batch.timestamp":
		return protoreflect.ValueOfString("")
	case "junction.rollup.Batch.daName":
		return protoreflect.ValueOfString("")
	case "junction.rollup.Batch.daCommitment":
		return protoreflect.ValueOfString("")
	case "junction.rollup.Batch.daHash":
		return protoreflect.ValueOfString("")
	case "junction.rollup.Batch.daPointer":
		return protoreflect.ValueOfString("")
	case "junction.rollup.Batch.daNamespace":
		return protoreflect.ValueOfString("")
	case "junction.rollup.Batch.isFinalized":
		return protoreflect.ValueOfBool(false)
	default:
		if fd.IsExtension() {
			panic(fmt.Errorf("proto3 declared messages do not support extensions: junction.rollup.Batch"))
		}
		panic(fmt.Errorf("message junction.rollup.Batch does not contain field %s", fd.FullName()))
	}
}

// WhichOneof reports which field within the oneof is populated,
// returning nil if none are populated.
// It panics if the oneof descriptor does not belong to this message.
func (x *fastReflection_Batch) WhichOneof(d protoreflect.OneofDescriptor) protoreflect.FieldDescriptor {
	switch d.FullName() {
	default:
		panic(fmt.Errorf("%s is not a oneof field in junction.rollup.Batch", d.FullName()))
	}
	panic("unreachable")
}

// GetUnknown retrieves the entire list of unknown fields.
// The caller may only mutate the contents of the RawFields
// if the mutated bytes are stored back into the message with SetUnknown.
func (x *fastReflection_Batch) GetUnknown() protoreflect.RawFields {
	return x.unknownFields
}

// SetUnknown stores an entire list of unknown fields.
// The raw fields must be syntactically valid according to the wire format.
// An implementation may panic if this is not the case.
// Once stored, the caller must not mutate the content of the RawFields.
// An empty RawFields may be passed to clear the fields.
//
// SetUnknown is a mutating operation and unsafe for concurrent use.
func (x *fastReflection_Batch) SetUnknown(fields protoreflect.RawFields) {
	x.unknownFields = fields
}

// IsValid reports whether the message is valid.
//
// An invalid message is an empty, read-only value.
//
// An invalid message often corresponds to a nil pointer of the concrete
// message type, but the details are implementation dependent.
// Validity is not part of the protobuf data model, and may not
// be preserved in marshaling or other operations.
func (x *fastReflection_Batch) IsValid() bool {
	return x != nil
}

// ProtoMethods returns optional fastReflectionFeature-path implementations of various operations.
// This method may return nil.
//
// The returned methods type is identical to
// "google.golang.org/protobuf/runtime/protoiface".Methods.
// Consult the protoiface package documentation for details.
func (x *fastReflection_Batch) ProtoMethods() *protoiface.Methods {
	size := func(input protoiface.SizeInput) protoiface.SizeOutput {
		x := input.Message.Interface().(*Batch)
		if x == nil {
			return protoiface.SizeOutput{
				NoUnkeyedLiterals: input.NoUnkeyedLiterals,
				Size:              0,
			}
		}
		options := runtime.SizeInputToOptions(input)
		_ = options
		var n int
		var l int
		_ = l
		l = len(x.Submitter)
		if l > 0 {
			n += 1 + l + runtime.Sov(uint64(l))
		}
		l = len(x.RollupId)
		if l > 0 {
			n += 1 + l + runtime.Sov(uint64(l))
		}
		if x.BatchNo != 0 {
			n += 1 + runtime.Sov(uint64(x.BatchNo))
		}
		l = len(x.MerkleRootHash)
		if l > 0 {
			n += 1 + l + runtime.Sov(uint64(l))
		}
		l = len(x.PreviousMerkleRootHash)
		if l > 0 {
			n += 1 + l + runtime.Sov(uint64(l))
		}
		l = len(x.ZkProof)
		if l > 0 {
			n += 1 + l + runtime.Sov(uint64(l))
		}
		l = len(x.PublicWitness)
		if l > 0 {
			n += 1 + l + runtime.Sov(uint64(l))
		}
		l = len(x.Timestamp)
		if l > 0 {
			n += 1 + l + runtime.Sov(uint64(l))
		}
		l = len(x.DaName)
		if l > 0 {
			n += 1 + l + runtime.Sov(uint64(l))
		}
		l = len(x.DaCommitment)
		if l > 0 {
			n += 1 + l + runtime.Sov(uint64(l))
		}
		l = len(x.DaHash)
		if l > 0 {
			n += 1 + l + runtime.Sov(uint64(l))
		}
		l = len(x.DaPointer)
		if l > 0 {
			n += 1 + l + runtime.Sov(uint64(l))
		}
		l = len(x.DaNamespace)
		if l > 0 {
			n += 1 + l + runtime.Sov(uint64(l))
		}
		if x.IsFinalized {
			n += 2
		}
		if x.unknownFields != nil {
			n += len(x.unknownFields)
		}
		return protoiface.SizeOutput{
			NoUnkeyedLiterals: input.NoUnkeyedLiterals,
			Size:              n,
		}
	}

	marshal := func(input protoiface.MarshalInput) (protoiface.MarshalOutput, error) {
		x := input.Message.Interface().(*Batch)
		if x == nil {
			return protoiface.MarshalOutput{
				NoUnkeyedLiterals: input.NoUnkeyedLiterals,
				Buf:               input.Buf,
			}, nil
		}
		options := runtime.MarshalInputToOptions(input)
		_ = options
		size := options.Size(x)
		dAtA := make([]byte, size)
		i := len(dAtA)
		_ = i
		var l int
		_ = l
		if x.unknownFields != nil {
			i -= len(x.unknownFields)
			copy(dAtA[i:], x.unknownFields)
		}
		if x.IsFinalized {
			i--
			if x.IsFinalized {
				dAtA[i] = 1
			} else {
				dAtA[i] = 0
			}
			i--
			dAtA[i] = 0x70
		}
		if len(x.DaNamespace) > 0 {
			i -= len(x.DaNamespace)
			copy(dAtA[i:], x.DaNamespace)
			i = runtime.EncodeVarint(dAtA, i, uint64(len(x.DaNamespace)))
			i--
			dAtA[i] = 0x6a
		}
		if len(x.DaPointer) > 0 {
			i -= len(x.DaPointer)
			copy(dAtA[i:], x.DaPointer)
			i = runtime.EncodeVarint(dAtA, i, uint64(len(x.DaPointer)))
			i--
			dAtA[i] = 0x62
		}
		if len(x.DaHash) > 0 {
			i -= len(x.DaHash)
			copy(dAtA[i:], x.DaHash)
			i = runtime.EncodeVarint(dAtA, i, uint64(len(x.DaHash)))
			i--
			dAtA[i] = 0x5a
		}
		if len(x.DaCommitment) > 0 {
			i -= len(x.DaCommitment)
			copy(dAtA[i:], x.DaCommitment)
			i = runtime.EncodeVarint(dAtA, i, uint64(len(x.DaCommitment)))
			i--
			dAtA[i] = 0x52
		}
		if len(x.DaName) > 0 {
			i -= len(x.DaName)
			copy(dAtA[i:], x.DaName)
			i = runtime.EncodeVarint(dAtA, i, uint64(len(x.DaName)))
			i--
			dAtA[i] = 0x4a
		}
		if len(x.Timestamp) > 0 {
			i -= len(x.Timestamp)
			copy(dAtA[i:], x.Timestamp)
			i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Timestamp)))
			i--
			dAtA[i] = 0x42
		}
		if len(x.PublicWitness) > 0 {
			i -= len(x.PublicWitness)
			copy(dAtA[i:], x.PublicWitness)
			i = runtime.EncodeVarint(dAtA, i, uint64(len(x.PublicWitness)))
			i--
			dAtA[i] = 0x3a
		}
		if len(x.ZkProof) > 0 {
			i -= len(x.ZkProof)
			copy(dAtA[i:], x.ZkProof)
			i = runtime.EncodeVarint(dAtA, i, uint64(len(x.ZkProof)))
			i--
			dAtA[i] = 0x32
		}
		if len(x.PreviousMerkleRootHash) > 0 {
			i -= len(x.PreviousMerkleRootHash)
			copy(dAtA[i:], x.PreviousMerkleRootHash)
			i = runtime.EncodeVarint(dAtA, i, uint64(len(x.PreviousMerkleRootHash)))
			i--
			dAtA[i] = 0x2a
		}
		if len(x.MerkleRootHash) > 0 {
			i -= len(x.MerkleRootHash)
			copy(dAtA[i:], x.MerkleRootHash)
			i = runtime.EncodeVarint(dAtA, i, uint64(len(x.MerkleRootHash)))
			i--
			dAtA[i] = 0x22
		}
		if x.BatchNo != 0 {
			i = runtime.EncodeVarint(dAtA, i, uint64(x.BatchNo))
			i--
			dAtA[i] = 0x18
		}
		if len(x.RollupId) > 0 {
			i -= len(x.RollupId)
			copy(dAtA[i:], x.RollupId)
			i = runtime.EncodeVarint(dAtA, i, uint64(len(x.RollupId)))
			i--
			dAtA[i] = 0x12
		}
		if len(x.Submitter) > 0 {
			i -= len(x.Submitter)
			copy(dAtA[i:], x.Submitter)
			i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Submitter)))
			i--
			dAtA[i] = 0xa
		}
		if input.Buf != nil {
			input.Buf = append(input.Buf, dAtA...)
		} else {
			input.Buf = dAtA
		}
		return protoiface.MarshalOutput{
			NoUnkeyedLiterals: input.NoUnkeyedLiterals,
			Buf:               input.Buf,
		}, nil
	}
	unmarshal := func(input protoiface.UnmarshalInput) (protoiface.UnmarshalOutput, error) {
		x := input.Message.Interface().(*Batch)
		if x == nil {
			return protoiface.UnmarshalOutput{
				NoUnkeyedLiterals: input.NoUnkeyedLiterals,
				Flags:             input.Flags,
			}, nil
		}
		options := runtime.UnmarshalInputToOptions(input)
		_ = options
		dAtA := input.Buf
		l := len(dAtA)
		iNdEx := 0
		for iNdEx < l {
			preIndex := iNdEx
			var wire uint64
			for shift := uint(0); ; shift += 7 {
				if shift >= 64 {
					return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
				}
				if iNdEx >= l {
					return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
				}
				b := dAtA[iNdEx]
				iNdEx++
				wire |= uint64(b&0x7F) << shift
				if b < 0x80 {
					break
				}
			}
			fieldNum := int32(wire >> 3)
			wireType := int(wire & 0x7)
			if wireType == 4 {
				return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: Batch: wiretype end group for non-group")
			}
			if fieldNum <= 0 {
				return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: Batch: illegal tag %d (wire type %d)", fieldNum, wire)
			}
			switch fieldNum {
			case 1:
				if wireType != 2 {
					return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Submitter", wireType)
				}
				var stringLen uint64
				for shift := uint(0); ; shift += 7 {
					if shift >= 64 {
						return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
					}
					if iNdEx >= l {
						return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
					}
					b := dAtA[iNdEx]
					iNdEx++
					stringLen |= uint64(b&0x7F) << shift
					if b < 0x80 {
						break
					}
				}
				intStringLen := int(stringLen)
				if intStringLen < 0 {
					return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
				}
				postIndex := iNdEx + intStringLen
				if postIndex < 0 {
					return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
				}
				if postIndex > l {
					return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
				}
				x.Submitter = string(dAtA[iNdEx:postIndex])
				iNdEx = postIndex
			case 2:
				if wireType != 2 {
					return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field RollupId", wireType)
				}
				var stringLen uint64
				for shift := uint(0); ; shift += 7 {
					if shift >= 64 {
						return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
					}
					if iNdEx >= l {
						return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
					}
					b := dAtA[iNdEx]
					iNdEx++
					stringLen |= uint64(b&0x7F) << shift
					if b < 0x80 {
						break
					}
				}
				intStringLen := int(stringLen)
				if intStringLen < 0 {
					return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
				}
				postIndex := iNdEx + intStringLen
				if postIndex < 0 {
					return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
				}
				if postIndex > l {
					return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
				}
				x.RollupId = string(dAtA[iNdEx:postIndex])
				iNdEx = postIndex
			case 3:
				if wireType != 0 {
					return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field BatchNo", wireType)
				}
				x.BatchNo = 0
				for shift := uint(0); ; shift += 7 {
					if shift >= 64 {
						return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
					}
					if iNdEx >= l {
						return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
					}
					b := dAtA[iNdEx]
					iNdEx++
					x.BatchNo |= uint64(b&0x7F) << shift
					if b < 0x80 {
						break
					}
				}
			case 4:
				if wireType != 2 {
					return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field MerkleRootHash", wireType)
				}
				var stringLen uint64
				for shift := uint(0); ; shift += 7 {
					if shift >= 64 {
						return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
					}
					if iNdEx >= l {
						return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
					}
					b := dAtA[iNdEx]
					iNdEx++
					stringLen |= uint64(b&0x7F) << shift
					if b < 0x80 {
						break
					}
				}
				intStringLen := int(stringLen)
				if intStringLen < 0 {
					return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
				}
				postIndex := iNdEx + intStringLen
				if postIndex < 0 {
					return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
				}
				if postIndex > l {
					return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
				}
				x.MerkleRootHash = string(dAtA[iNdEx:postIndex])
				iNdEx = postIndex
			case 5:
				if wireType != 2 {
					return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field PreviousMerkleRootHash", wireType)
				}
				var stringLen uint64
				for shift := uint(0); ; shift += 7 {
					if shift >= 64 {
						return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
					}
					if iNdEx >= l {
						return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
					}
					b := dAtA[iNdEx]
					iNdEx++
					stringLen |= uint64(b&0x7F) << shift
					if b < 0x80 {
						break
					}
				}
				intStringLen := int(stringLen)
				if intStringLen < 0 {
					return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
				}
				postIndex := iNdEx + intStringLen
				if postIndex < 0 {
					return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
				}
				if postIndex > l {
					return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
				}
				x.PreviousMerkleRootHash = string(dAtA[iNdEx:postIndex])
				iNdEx = postIndex
			case 6:
				if wireType != 2 {
					return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field ZkProof", wireType)
				}
				var byteLen int
				for shift := uint(0); ; shift += 7 {
					if shift >= 64 {
						return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
					}
					if iNdEx >= l {
						return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
					}
					b := dAtA[iNdEx]
					iNdEx++
					byteLen |= int(b&0x7F) << shift
					if b < 0x80 {
						break
					}
				}
				if byteLen < 0 {
					return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
				}
				postIndex := iNdEx + byteLen
				if postIndex < 0 {
					return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
				}
				if postIndex > l {
					return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
				}
				x.ZkProof = append(x.ZkProof[:0], dAtA[iNdEx:postIndex]...)
				if x.ZkProof == nil {
					x.ZkProof = []byte{}
				}
				iNdEx = postIndex
			case 7:
				if wireType != 2 {
					return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field PublicWitness", wireType)
				}
				var byteLen int
				for shift := uint(0); ; shift += 7 {
					if shift >= 64 {
						return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
					}
					if iNdEx >= l {
						return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
					}
					b := dAtA[iNdEx]
					iNdEx++
					byteLen |= int(b&0x7F) << shift
					if b < 0x80 {
						break
					}
				}
				if byteLen < 0 {
					return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
				}
				postIndex := iNdEx + byteLen
				if postIndex < 0 {
					return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
				}
				if postIndex > l {
					return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
				}
				x.PublicWitness = append(x.PublicWitness[:0], dAtA[iNdEx:postIndex]...)
				if x.PublicWitness == nil {
					x.PublicWitness = []byte{}
				}
				iNdEx = postIndex
			case 8:
				if wireType != 2 {
					return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Timestamp", wireType)
				}
				var stringLen uint64
				for shift := uint(0); ; shift += 7 {
					if shift >= 64 {
						return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
					}
					if iNdEx >= l {
						return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
					}
					b := dAtA[iNdEx]
					iNdEx++
					stringLen |= uint64(b&0x7F) << shift
					if b < 0x80 {
						break
					}
				}
				intStringLen := int(stringLen)
				if intStringLen < 0 {
					return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
				}
				postIndex := iNdEx + intStringLen
				if postIndex < 0 {
					return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
				}
				if postIndex > l {
					return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
				}
				x.Timestamp = string(dAtA[iNdEx:postIndex])
				iNdEx = postIndex
			case 9:
				if wireType != 2 {
					return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field DaName", wireType)
				}
				var stringLen uint64
				for shift := uint(0); ; shift += 7 {
					if shift >= 64 {
						return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
					}
					if iNdEx >= l {
						return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
					}
					b := dAtA[iNdEx]
					iNdEx++
					stringLen |= uint64(b&0x7F) << shift
					if b < 0x80 {
						break
					}
				}
				intStringLen := int(stringLen)
				if intStringLen < 0 {
					return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
				}
				postIndex := iNdEx + intStringLen
				if postIndex < 0 {
					return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
				}
				if postIndex > l {
					return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
				}
				x.DaName = string(dAtA[iNdEx:postIndex])
				iNdEx = postIndex
			case 10:
				if wireType != 2 {
					return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field DaCommitment", wireType)
				}
				var stringLen uint64
				for shift := uint(0); ; shift += 7 {
					if shift >= 64 {
						return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
					}
					if iNdEx >= l {
						return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
					}
					b := dAtA[iNdEx]
					iNdEx++
					stringLen |= uint64(b&0x7F) << shift
					if b < 0x80 {
						break
					}
				}
				intStringLen := int(stringLen)
				if intStringLen < 0 {
					return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
				}
				postIndex := iNdEx + intStringLen
				if postIndex < 0 {
					return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
				}
				if postIndex > l {
					return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
				}
				x.DaCommitment = string(dAtA[iNdEx:postIndex])
				iNdEx = postIndex
			case 11:
				if wireType != 2 {
					return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field DaHash", wireType)
				}
				var stringLen uint64
				for shift := uint(0); ; shift += 7 {
					if shift >= 64 {
						return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
					}
					if iNdEx >= l {
						return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
					}
					b := dAtA[iNdEx]
					iNdEx++
					stringLen |= uint64(b&0x7F) << shift
					if b < 0x80 {
						break
					}
				}
				intStringLen := int(stringLen)
				if intStringLen < 0 {
					return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
				}
				postIndex := iNdEx + intStringLen
				if postIndex < 0 {
					return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
				}
				if postIndex > l {
					return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
				}
				x.DaHash = string(dAtA[iNdEx:postIndex])
				iNdEx = postIndex
			case 12:
				if wireType != 2 {
					return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field DaPointer", wireType)
				}
				var stringLen uint64
				for shift := uint(0); ; shift += 7 {
					if shift >= 64 {
						return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
					}
					if iNdEx >= l {
						return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
					}
					b := dAtA[iNdEx]
					iNdEx++
					stringLen |= uint64(b&0x7F) << shift
					if b < 0x80 {
						break
					}
				}
				intStringLen := int(stringLen)
				if intStringLen < 0 {
					return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
				}
				postIndex := iNdEx + intStringLen
				if postIndex < 0 {
					return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
				}
				if postIndex > l {
					return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
				}
				x.DaPointer = string(dAtA[iNdEx:postIndex])
				iNdEx = postIndex
			case 13:
				if wireType != 2 {
					return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field DaNamespace", wireType)
				}
				var stringLen uint64
				for shift := uint(0); ; shift += 7 {
					if shift >= 64 {
						return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
					}
					if iNdEx >= l {
						return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
					}
					b := dAtA[iNdEx]
					iNdEx++
					stringLen |= uint64(b&0x7F) << shift
					if b < 0x80 {
						break
					}
				}
				intStringLen := int(stringLen)
				if intStringLen < 0 {
					return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
				}
				postIndex := iNdEx + intStringLen
				if postIndex < 0 {
					return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
				}
				if postIndex > l {
					return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
				}
				x.DaNamespace = string(dAtA[iNdEx:postIndex])
				iNdEx = postIndex
			case 14:
				if wireType != 0 {
					return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field IsFinalized", wireType)
				}
				var v int
				for shift := uint(0); ; shift += 7 {
					if shift >= 64 {
						return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow
					}
					if iNdEx >= l {
						return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
					}
					b := dAtA[iNdEx]
					iNdEx++
					v |= int(b&0x7F) << shift
					if b < 0x80 {
						break
					}
				}
				x.IsFinalized = bool(v != 0)
			default:
				iNdEx = preIndex
				skippy, err := runtime.Skip(dAtA[iNdEx:])
				if err != nil {
					return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, err
				}
				if (skippy < 0) || (iNdEx+skippy) < 0 {
					return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrInvalidLength
				}
				if (iNdEx + skippy) > l {
					return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
				}
				if !options.DiscardUnknown {
					x.unknownFields = append(x.unknownFields, dAtA[iNdEx:iNdEx+skippy]...)
				}
				iNdEx += skippy
			}
		}

		if iNdEx > l {
			return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF
		}
		return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, nil
	}
	return &protoiface.Methods{
		NoUnkeyedLiterals: struct{}{},
		Flags:             protoiface.SupportMarshalDeterministic | protoiface.SupportUnmarshalDiscardUnknown,
		Size:              size,
		Marshal:           marshal,
		Unmarshal:         unmarshal,
		Merge:             nil,
		CheckInitialized:  nil,
	}
}

// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// 	protoc-gen-go v1.27.0
// 	protoc        (unknown)
// source: junction/rollup/batch.proto

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 Batch struct {
	state         protoimpl.MessageState
	sizeCache     protoimpl.SizeCache
	unknownFields protoimpl.UnknownFields

	Submitter              string `protobuf:"bytes,1,opt,name=submitter,proto3" json:"submitter,omitempty"`
	RollupId               string `protobuf:"bytes,2,opt,name=rollupId,proto3" json:"rollupId,omitempty"`
	BatchNo                uint64 `protobuf:"varint,3,opt,name=batchNo,proto3" json:"batchNo,omitempty"`
	MerkleRootHash         string `protobuf:"bytes,4,opt,name=merkleRootHash,proto3" json:"merkleRootHash,omitempty"`
	PreviousMerkleRootHash string `protobuf:"bytes,5,opt,name=previousMerkleRootHash,proto3" json:"previousMerkleRootHash,omitempty"`
	// prover data for a batch
	ZkProof       []byte `protobuf:"bytes,6,opt,name=zkProof,proto3" json:"zkProof,omitempty"`
	PublicWitness []byte `protobuf:"bytes,7,opt,name=publicWitness,proto3" json:"publicWitness,omitempty"`
	// da data for a batch
	Timestamp    string `protobuf:"bytes,8,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
	DaName       string `protobuf:"bytes,9,opt,name=daName,proto3" json:"daName,omitempty"`
	DaCommitment string `protobuf:"bytes,10,opt,name=daCommitment,proto3" json:"daCommitment,omitempty"`
	DaHash       string `protobuf:"bytes,11,opt,name=daHash,proto3" json:"daHash,omitempty"`
	DaPointer    string `protobuf:"bytes,12,opt,name=daPointer,proto3" json:"daPointer,omitempty"`
	DaNamespace  string `protobuf:"bytes,13,opt,name=daNamespace,proto3" json:"daNamespace,omitempty"`
	IsFinalized  bool   `protobuf:"varint,14,opt,name=isFinalized,proto3" json:"isFinalized,omitempty"`
}

func (x *Batch) Reset() {
	*x = Batch{}
	if protoimpl.UnsafeEnabled {
		mi := &file_junction_rollup_batch_proto_msgTypes[0]
		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
		ms.StoreMessageInfo(mi)
	}
}

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

func (*Batch) ProtoMessage() {}

// Deprecated: Use Batch.ProtoReflect.Descriptor instead.
func (*Batch) Descriptor() ([]byte, []int) {
	return file_junction_rollup_batch_proto_rawDescGZIP(), []int{0}
}

func (x *Batch) GetSubmitter() string {
	if x != nil {
		return x.Submitter
	}
	return ""
}

func (x *Batch) GetRollupId() string {
	if x != nil {
		return x.RollupId
	}
	return ""
}

func (x *Batch) GetBatchNo() uint64 {
	if x != nil {
		return x.BatchNo
	}
	return 0
}

func (x *Batch) GetMerkleRootHash() string {
	if x != nil {
		return x.MerkleRootHash
	}
	return ""
}

func (x *Batch) GetPreviousMerkleRootHash() string {
	if x != nil {
		return x.PreviousMerkleRootHash
	}
	return ""
}

func (x *Batch) GetZkProof() []byte {
	if x != nil {
		return x.ZkProof
	}
	return nil
}

func (x *Batch) GetPublicWitness() []byte {
	if x != nil {
		return x.PublicWitness
	}
	return nil
}

func (x *Batch) GetTimestamp() string {
	if x != nil {
		return x.Timestamp
	}
	return ""
}

func (x *Batch) GetDaName() string {
	if x != nil {
		return x.DaName
	}
	return ""
}

func (x *Batch) GetDaCommitment() string {
	if x != nil {
		return x.DaCommitment
	}
	return ""
}

func (x *Batch) GetDaHash() string {
	if x != nil {
		return x.DaHash
	}
	return ""
}

func (x *Batch) GetDaPointer() string {
	if x != nil {
		return x.DaPointer
	}
	return ""
}

func (x *Batch) GetDaNamespace() string {
	if x != nil {
		return x.DaNamespace
	}
	return ""
}

func (x *Batch) GetIsFinalized() bool {
	if x != nil {
		return x.IsFinalized
	}
	return false
}

var File_junction_rollup_batch_proto protoreflect.FileDescriptor

var file_junction_rollup_batch_proto_rawDesc = []byte{
	0x0a, 0x1b, 0x6a, 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x2f, 0x72, 0x6f, 0x6c, 0x6c, 0x75,
	0x70, 0x2f, 0x62, 0x61, 0x74, 0x63, 0x68, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0f, 0x6a,
	0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x72, 0x6f, 0x6c, 0x6c, 0x75, 0x70, 0x22, 0xcf,
	0x03, 0x0a, 0x05, 0x42, 0x61, 0x74, 0x63, 0x68, 0x12, 0x1c, 0x0a, 0x09, 0x73, 0x75, 0x62, 0x6d,
	0x69, 0x74, 0x74, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x73, 0x75, 0x62,
	0x6d, 0x69, 0x74, 0x74, 0x65, 0x72, 0x12, 0x1a, 0x0a, 0x08, 0x72, 0x6f, 0x6c, 0x6c, 0x75, 0x70,
	0x49, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x72, 0x6f, 0x6c, 0x6c, 0x75, 0x70,
	0x49, 0x64, 0x12, 0x18, 0x0a, 0x07, 0x62, 0x61, 0x74, 0x63, 0x68, 0x4e, 0x6f, 0x18, 0x03, 0x20,
	0x01, 0x28, 0x04, 0x52, 0x07, 0x62, 0x61, 0x74, 0x63, 0x68, 0x4e, 0x6f, 0x12, 0x26, 0x0a, 0x0e,
	0x6d, 0x65, 0x72, 0x6b, 0x6c, 0x65, 0x52, 0x6f, 0x6f, 0x74, 0x48, 0x61, 0x73, 0x68, 0x18, 0x04,
	0x20, 0x01, 0x28, 0x09, 0x52, 0x0e, 0x6d, 0x65, 0x72, 0x6b, 0x6c, 0x65, 0x52, 0x6f, 0x6f, 0x74,
	0x48, 0x61, 0x73, 0x68, 0x12, 0x36, 0x0a, 0x16, 0x70, 0x72, 0x65, 0x76, 0x69, 0x6f, 0x75, 0x73,
	0x4d, 0x65, 0x72, 0x6b, 0x6c, 0x65, 0x52, 0x6f, 0x6f, 0x74, 0x48, 0x61, 0x73, 0x68, 0x18, 0x05,
	0x20, 0x01, 0x28, 0x09, 0x52, 0x16, 0x70, 0x72, 0x65, 0x76, 0x69, 0x6f, 0x75, 0x73, 0x4d, 0x65,
	0x72, 0x6b, 0x6c, 0x65, 0x52, 0x6f, 0x6f, 0x74, 0x48, 0x61, 0x73, 0x68, 0x12, 0x18, 0x0a, 0x07,
	0x7a, 0x6b, 0x50, 0x72, 0x6f, 0x6f, 0x66, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x07, 0x7a,
	0x6b, 0x50, 0x72, 0x6f, 0x6f, 0x66, 0x12, 0x24, 0x0a, 0x0d, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x63,
	0x57, 0x69, 0x74, 0x6e, 0x65, 0x73, 0x73, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0d, 0x70,
	0x75, 0x62, 0x6c, 0x69, 0x63, 0x57, 0x69, 0x74, 0x6e, 0x65, 0x73, 0x73, 0x12, 0x1c, 0x0a, 0x09,
	0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x18, 0x08, 0x20, 0x01, 0x28, 0x09, 0x52,
	0x09, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x12, 0x16, 0x0a, 0x06, 0x64, 0x61,
	0x4e, 0x61, 0x6d, 0x65, 0x18, 0x09, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x64, 0x61, 0x4e, 0x61,
	0x6d, 0x65, 0x12, 0x22, 0x0a, 0x0c, 0x64, 0x61, 0x43, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x6d, 0x65,
	0x6e, 0x74, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x64, 0x61, 0x43, 0x6f, 0x6d, 0x6d,
	0x69, 0x74, 0x6d, 0x65, 0x6e, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x64, 0x61, 0x48, 0x61, 0x73, 0x68,
	0x18, 0x0b, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x64, 0x61, 0x48, 0x61, 0x73, 0x68, 0x12, 0x1c,
	0x0a, 0x09, 0x64, 0x61, 0x50, 0x6f, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x18, 0x0c, 0x20, 0x01, 0x28,
	0x09, 0x52, 0x09, 0x64, 0x61, 0x50, 0x6f, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x12, 0x20, 0x0a, 0x0b,
	0x64, 0x61, 0x4e, 0x61, 0x6d, 0x65, 0x73, 0x70, 0x61, 0x63, 0x65, 0x18, 0x0d, 0x20, 0x01, 0x28,
	0x09, 0x52, 0x0b, 0x64, 0x61, 0x4e, 0x61, 0x6d, 0x65, 0x73, 0x70, 0x61, 0x63, 0x65, 0x12, 0x20,
	0x0a, 0x0b, 0x69, 0x73, 0x46, 0x69, 0x6e, 0x61, 0x6c, 0x69, 0x7a, 0x65, 0x64, 0x18, 0x0e, 0x20,
	0x01, 0x28, 0x08, 0x52, 0x0b, 0x69, 0x73, 0x46, 0x69, 0x6e, 0x61, 0x6c, 0x69, 0x7a, 0x65, 0x64,
	0x42, 0xb9, 0x01, 0x0a, 0x13, 0x63, 0x6f, 0x6d, 0x2e, 0x6a, 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f,
	0x6e, 0x2e, 0x72, 0x6f, 0x6c, 0x6c, 0x75, 0x70, 0x42, 0x0a, 0x42, 0x61, 0x74, 0x63, 0x68, 0x50,
	0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x39, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63,
	0x6f, 0x6d, 0x2f, 0x61, 0x69, 0x72, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x73, 0x2d, 0x6e, 0x65, 0x74,
	0x77, 0x6f, 0x72, 0x6b, 0x2f, 0x6a, 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x2f, 0x61, 0x70,
	0x69, 0x2f, 0x6a, 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x2f, 0x72, 0x6f, 0x6c, 0x6c, 0x75,
	0x70, 0xa2, 0x02, 0x03, 0x4a, 0x52, 0x58, 0xaa, 0x02, 0x0f, 0x4a, 0x75, 0x6e, 0x63, 0x74, 0x69,
	0x6f, 0x6e, 0x2e, 0x52, 0x6f, 0x6c, 0x6c, 0x75, 0x70, 0xca, 0x02, 0x0f, 0x4a, 0x75, 0x6e, 0x63,
	0x74, 0x69, 0x6f, 0x6e, 0x5c, 0x52, 0x6f, 0x6c, 0x6c, 0x75, 0x70, 0xe2, 0x02, 0x1b, 0x4a, 0x75,
	0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x5c, 0x52, 0x6f, 0x6c, 0x6c, 0x75, 0x70, 0x5c, 0x47, 0x50,
	0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x10, 0x4a, 0x75, 0x6e, 0x63,
	0x74, 0x69, 0x6f, 0x6e, 0x3a, 0x3a, 0x52, 0x6f, 0x6c, 0x6c, 0x75, 0x70, 0x62, 0x06, 0x70, 0x72,
	0x6f, 0x74, 0x6f, 0x33,
}

var (
	file_junction_rollup_batch_proto_rawDescOnce sync.Once
	file_junction_rollup_batch_proto_rawDescData = file_junction_rollup_batch_proto_rawDesc
)

func file_junction_rollup_batch_proto_rawDescGZIP() []byte {
	file_junction_rollup_batch_proto_rawDescOnce.Do(func() {
		file_junction_rollup_batch_proto_rawDescData = protoimpl.X.CompressGZIP(file_junction_rollup_batch_proto_rawDescData)
	})
	return file_junction_rollup_batch_proto_rawDescData
}

var file_junction_rollup_batch_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
var file_junction_rollup_batch_proto_goTypes = []interface{}{
	(*Batch)(nil), // 0: junction.rollup.Batch
}
var file_junction_rollup_batch_proto_depIdxs = []int32{
	0, // [0:0] is the sub-list for method output_type
	0, // [0:0] is the sub-list for method input_type
	0, // [0:0] is the sub-list for extension type_name
	0, // [0:0] is the sub-list for extension extendee
	0, // [0:0] is the sub-list for field type_name
}

func init() { file_junction_rollup_batch_proto_init() }
func file_junction_rollup_batch_proto_init() {
	if File_junction_rollup_batch_proto != nil {
		return
	}
	if !protoimpl.UnsafeEnabled {
		file_junction_rollup_batch_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
			switch v := v.(*Batch); i {
			case 0:
				return &v.state
			case 1:
				return &v.sizeCache
			case 2:
				return &v.unknownFields
			default:
				return nil
			}
		}
	}
	type x struct{}
	out := protoimpl.TypeBuilder{
		File: protoimpl.DescBuilder{
			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
			RawDescriptor: file_junction_rollup_batch_proto_rawDesc,
			NumEnums:      0,
			NumMessages:   1,
			NumExtensions: 0,
			NumServices:   0,
		},
		GoTypes:           file_junction_rollup_batch_proto_goTypes,
		DependencyIndexes: file_junction_rollup_batch_proto_depIdxs,
		MessageInfos:      file_junction_rollup_batch_proto_msgTypes,
	}.Build()
	File_junction_rollup_batch_proto = out.File
	file_junction_rollup_batch_proto_rawDesc = nil
	file_junction_rollup_batch_proto_goTypes = nil
	file_junction_rollup_batch_proto_depIdxs = nil
}
