diff --git a/pkg/ccl/streamingccl/streampb/stream.pb.go b/pkg/ccl/streamingccl/streampb/stream.pb.go deleted file mode 100644 index 651444cd1315..000000000000 --- a/pkg/ccl/streamingccl/streampb/stream.pb.go +++ /dev/null @@ -1,2159 +0,0 @@ -// Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: ccl/streamingccl/streampb/stream.proto - -package streampb - -import ( - fmt "fmt" - github_com_cockroachdb_cockroach_pkg_roachpb "github.com/cockroachdb/cockroach/pkg/roachpb" - roachpb "github.com/cockroachdb/cockroach/pkg/roachpb" - util "github.com/cockroachdb/cockroach/pkg/util" - hlc "github.com/cockroachdb/cockroach/pkg/util/hlc" - _ "github.com/gogo/protobuf/gogoproto" - proto "github.com/gogo/protobuf/proto" - _ "github.com/gogo/protobuf/types" - github_com_gogo_protobuf_types "github.com/gogo/protobuf/types" - io "io" - math "math" - math_bits "math/bits" - time "time" -) - -// Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf -var _ = time.Kitchen - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the proto package it is being compiled against. -// A compilation error at this line likely means your copy of the -// proto package needs to be updated. -const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package - -type StreamReplicationStatus_StreamStatus int32 - -const ( - // Stream is running. Consumers should continue to heartbeat. - StreamReplicationStatus_STREAM_ACTIVE StreamReplicationStatus_StreamStatus = 0 - // Stream stopped running. Consumers should stop heartbeating and - // optionally start a new replication stream. - StreamReplicationStatus_STREAM_INACTIVE StreamReplicationStatus_StreamStatus = 1 - // Stream replication is paused. Consumers can resume the job and start heartbeating. - StreamReplicationStatus_STREAM_PAUSED StreamReplicationStatus_StreamStatus = 2 - // Stream status is unknown. Consumers should retry heartbeating. - StreamReplicationStatus_UNKNOWN_STREAM_STATUS_RETRY StreamReplicationStatus_StreamStatus = 4 -) - -var StreamReplicationStatus_StreamStatus_name = map[int32]string{ - 0: "STREAM_ACTIVE", - 1: "STREAM_INACTIVE", - 2: "STREAM_PAUSED", - 4: "UNKNOWN_STREAM_STATUS_RETRY", -} - -var StreamReplicationStatus_StreamStatus_value = map[string]int32{ - "STREAM_ACTIVE": 0, - "STREAM_INACTIVE": 1, - "STREAM_PAUSED": 2, - "UNKNOWN_STREAM_STATUS_RETRY": 4, -} - -func (x StreamReplicationStatus_StreamStatus) String() string { - return proto.EnumName(StreamReplicationStatus_StreamStatus_name, int32(x)) -} - -func (StreamReplicationStatus_StreamStatus) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_44eb106be4866a3a, []int{3, 0} -} - -// StreamPartitionSpec is the stream partition specification. -type StreamPartitionSpec struct { - // start_from specifies the starting point for all spans. If its empty, - // an initial scan is performed. - StartFrom hlc.Timestamp `protobuf:"bytes,1,opt,name=start_from,json=startFrom,proto3" json:"start_from"` - // List of spans to stream. - Spans []roachpb.Span `protobuf:"bytes,2,rep,name=spans,proto3" json:"spans"` - Config StreamPartitionSpec_ExecutionConfig `protobuf:"bytes,3,opt,name=config,proto3" json:"config"` -} - -func (m *StreamPartitionSpec) Reset() { *m = StreamPartitionSpec{} } -func (m *StreamPartitionSpec) String() string { return proto.CompactTextString(m) } -func (*StreamPartitionSpec) ProtoMessage() {} -func (*StreamPartitionSpec) Descriptor() ([]byte, []int) { - return fileDescriptor_44eb106be4866a3a, []int{0} -} -func (m *StreamPartitionSpec) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *StreamPartitionSpec) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *StreamPartitionSpec) XXX_Merge(src proto.Message) { - xxx_messageInfo_StreamPartitionSpec.Merge(m, src) -} -func (m *StreamPartitionSpec) XXX_Size() int { - return m.Size() -} -func (m *StreamPartitionSpec) XXX_DiscardUnknown() { - xxx_messageInfo_StreamPartitionSpec.DiscardUnknown(m) -} - -var xxx_messageInfo_StreamPartitionSpec proto.InternalMessageInfo - -// ExecutionConfig describes various knobs to control execution behavior -// of the stream. If unspecified, reasonable defaults will be set. -type StreamPartitionSpec_ExecutionConfig struct { - // Controls the number of concurrent scan requests issued during initial scan. - InitialScanParallelism int32 `protobuf:"varint,1,opt,name=initial_scan_parallelism,json=initialScanParallelism,proto3" json:"initial_scan_parallelism,omitempty"` - // Controls how often checkpoint records are published. - MinCheckpointFrequency time.Duration `protobuf:"bytes,2,opt,name=min_checkpoint_frequency,json=minCheckpointFrequency,proto3,stdduration" json:"min_checkpoint_frequency"` - // Controls batch size in bytes. - BatchByteSize int64 `protobuf:"varint,3,opt,name=batch_byte_size,json=batchByteSize,proto3" json:"batch_byte_size,omitempty"` -} - -func (m *StreamPartitionSpec_ExecutionConfig) Reset() { *m = StreamPartitionSpec_ExecutionConfig{} } -func (m *StreamPartitionSpec_ExecutionConfig) String() string { return proto.CompactTextString(m) } -func (*StreamPartitionSpec_ExecutionConfig) ProtoMessage() {} -func (*StreamPartitionSpec_ExecutionConfig) Descriptor() ([]byte, []int) { - return fileDescriptor_44eb106be4866a3a, []int{0, 0} -} -func (m *StreamPartitionSpec_ExecutionConfig) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *StreamPartitionSpec_ExecutionConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *StreamPartitionSpec_ExecutionConfig) XXX_Merge(src proto.Message) { - xxx_messageInfo_StreamPartitionSpec_ExecutionConfig.Merge(m, src) -} -func (m *StreamPartitionSpec_ExecutionConfig) XXX_Size() int { - return m.Size() -} -func (m *StreamPartitionSpec_ExecutionConfig) XXX_DiscardUnknown() { - xxx_messageInfo_StreamPartitionSpec_ExecutionConfig.DiscardUnknown(m) -} - -var xxx_messageInfo_StreamPartitionSpec_ExecutionConfig proto.InternalMessageInfo - -type ReplicationStreamSpec struct { - Partitions []ReplicationStreamSpec_Partition `protobuf:"bytes,1,rep,name=partitions,proto3" json:"partitions"` -} - -func (m *ReplicationStreamSpec) Reset() { *m = ReplicationStreamSpec{} } -func (m *ReplicationStreamSpec) String() string { return proto.CompactTextString(m) } -func (*ReplicationStreamSpec) ProtoMessage() {} -func (*ReplicationStreamSpec) Descriptor() ([]byte, []int) { - return fileDescriptor_44eb106be4866a3a, []int{1} -} -func (m *ReplicationStreamSpec) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *ReplicationStreamSpec) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *ReplicationStreamSpec) XXX_Merge(src proto.Message) { - xxx_messageInfo_ReplicationStreamSpec.Merge(m, src) -} -func (m *ReplicationStreamSpec) XXX_Size() int { - return m.Size() -} -func (m *ReplicationStreamSpec) XXX_DiscardUnknown() { - xxx_messageInfo_ReplicationStreamSpec.DiscardUnknown(m) -} - -var xxx_messageInfo_ReplicationStreamSpec proto.InternalMessageInfo - -type ReplicationStreamSpec_Partition struct { - // ID of the node this partition resides - NodeID github_com_cockroachdb_cockroach_pkg_roachpb.NodeID `protobuf:"varint,1,opt,name=node_id,json=nodeId,proto3,casttype=github.com/cockroachdb/cockroach/pkg/roachpb.NodeID" json:"node_id,omitempty"` - // The SQL address of the node. - SQLAddress util.UnresolvedAddr `protobuf:"bytes,2,opt,name=sql_address,json=sqlAddress,proto3" json:"sql_address"` - // Locality of the node - Locality roachpb.Locality `protobuf:"bytes,3,opt,name=locality,proto3" json:"locality"` - // The spec of the processor responsible for streaming this partition - PartitionSpec *StreamPartitionSpec `protobuf:"bytes,4,opt,name=partition_spec,json=partitionSpec,proto3" json:"partition_spec,omitempty"` -} - -func (m *ReplicationStreamSpec_Partition) Reset() { *m = ReplicationStreamSpec_Partition{} } -func (m *ReplicationStreamSpec_Partition) String() string { return proto.CompactTextString(m) } -func (*ReplicationStreamSpec_Partition) ProtoMessage() {} -func (*ReplicationStreamSpec_Partition) Descriptor() ([]byte, []int) { - return fileDescriptor_44eb106be4866a3a, []int{1, 0} -} -func (m *ReplicationStreamSpec_Partition) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *ReplicationStreamSpec_Partition) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *ReplicationStreamSpec_Partition) XXX_Merge(src proto.Message) { - xxx_messageInfo_ReplicationStreamSpec_Partition.Merge(m, src) -} -func (m *ReplicationStreamSpec_Partition) XXX_Size() int { - return m.Size() -} -func (m *ReplicationStreamSpec_Partition) XXX_DiscardUnknown() { - xxx_messageInfo_ReplicationStreamSpec_Partition.DiscardUnknown(m) -} - -var xxx_messageInfo_ReplicationStreamSpec_Partition proto.InternalMessageInfo - -// StreamEvent describes a replication stream event -type StreamEvent struct { - // Only 1 field ought to be set. - Batch *StreamEvent_Batch `protobuf:"bytes,1,opt,name=batch,proto3" json:"batch,omitempty"` - Checkpoint *StreamEvent_StreamCheckpoint `protobuf:"bytes,2,opt,name=checkpoint,proto3" json:"checkpoint,omitempty"` -} - -func (m *StreamEvent) Reset() { *m = StreamEvent{} } -func (m *StreamEvent) String() string { return proto.CompactTextString(m) } -func (*StreamEvent) ProtoMessage() {} -func (*StreamEvent) Descriptor() ([]byte, []int) { - return fileDescriptor_44eb106be4866a3a, []int{2} -} -func (m *StreamEvent) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *StreamEvent) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *StreamEvent) XXX_Merge(src proto.Message) { - xxx_messageInfo_StreamEvent.Merge(m, src) -} -func (m *StreamEvent) XXX_Size() int { - return m.Size() -} -func (m *StreamEvent) XXX_DiscardUnknown() { - xxx_messageInfo_StreamEvent.DiscardUnknown(m) -} - -var xxx_messageInfo_StreamEvent proto.InternalMessageInfo - -type StreamEvent_Batch struct { - KeyValues []roachpb.KeyValue `protobuf:"bytes,1,rep,name=key_values,json=keyValues,proto3" json:"key_values"` -} - -func (m *StreamEvent_Batch) Reset() { *m = StreamEvent_Batch{} } -func (m *StreamEvent_Batch) String() string { return proto.CompactTextString(m) } -func (*StreamEvent_Batch) ProtoMessage() {} -func (*StreamEvent_Batch) Descriptor() ([]byte, []int) { - return fileDescriptor_44eb106be4866a3a, []int{2, 0} -} -func (m *StreamEvent_Batch) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *StreamEvent_Batch) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *StreamEvent_Batch) XXX_Merge(src proto.Message) { - xxx_messageInfo_StreamEvent_Batch.Merge(m, src) -} -func (m *StreamEvent_Batch) XXX_Size() int { - return m.Size() -} -func (m *StreamEvent_Batch) XXX_DiscardUnknown() { - xxx_messageInfo_StreamEvent_Batch.DiscardUnknown(m) -} - -var xxx_messageInfo_StreamEvent_Batch proto.InternalMessageInfo - -// SpanCheckpoint represents a checkpoint record for completed span. -// All events up to timestamp must already have been emitted. -type StreamEvent_SpanCheckpoint struct { - Span roachpb.Span `protobuf:"bytes,1,opt,name=span,proto3" json:"span"` - Timestamp hlc.Timestamp `protobuf:"bytes,2,opt,name=timestamp,proto3" json:"timestamp"` -} - -func (m *StreamEvent_SpanCheckpoint) Reset() { *m = StreamEvent_SpanCheckpoint{} } -func (m *StreamEvent_SpanCheckpoint) String() string { return proto.CompactTextString(m) } -func (*StreamEvent_SpanCheckpoint) ProtoMessage() {} -func (*StreamEvent_SpanCheckpoint) Descriptor() ([]byte, []int) { - return fileDescriptor_44eb106be4866a3a, []int{2, 1} -} -func (m *StreamEvent_SpanCheckpoint) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *StreamEvent_SpanCheckpoint) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *StreamEvent_SpanCheckpoint) XXX_Merge(src proto.Message) { - xxx_messageInfo_StreamEvent_SpanCheckpoint.Merge(m, src) -} -func (m *StreamEvent_SpanCheckpoint) XXX_Size() int { - return m.Size() -} -func (m *StreamEvent_SpanCheckpoint) XXX_DiscardUnknown() { - xxx_messageInfo_StreamEvent_SpanCheckpoint.DiscardUnknown(m) -} - -var xxx_messageInfo_StreamEvent_SpanCheckpoint proto.InternalMessageInfo - -// Checkpoint represents stream checkpoint. -type StreamEvent_StreamCheckpoint struct { - Spans []StreamEvent_SpanCheckpoint `protobuf:"bytes,1,rep,name=spans,proto3" json:"spans"` -} - -func (m *StreamEvent_StreamCheckpoint) Reset() { *m = StreamEvent_StreamCheckpoint{} } -func (m *StreamEvent_StreamCheckpoint) String() string { return proto.CompactTextString(m) } -func (*StreamEvent_StreamCheckpoint) ProtoMessage() {} -func (*StreamEvent_StreamCheckpoint) Descriptor() ([]byte, []int) { - return fileDescriptor_44eb106be4866a3a, []int{2, 2} -} -func (m *StreamEvent_StreamCheckpoint) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *StreamEvent_StreamCheckpoint) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *StreamEvent_StreamCheckpoint) XXX_Merge(src proto.Message) { - xxx_messageInfo_StreamEvent_StreamCheckpoint.Merge(m, src) -} -func (m *StreamEvent_StreamCheckpoint) XXX_Size() int { - return m.Size() -} -func (m *StreamEvent_StreamCheckpoint) XXX_DiscardUnknown() { - xxx_messageInfo_StreamEvent_StreamCheckpoint.DiscardUnknown(m) -} - -var xxx_messageInfo_StreamEvent_StreamCheckpoint proto.InternalMessageInfo - -type StreamReplicationStatus struct { - StreamStatus StreamReplicationStatus_StreamStatus `protobuf:"varint,1,opt,name=stream_status,json=streamStatus,proto3,enum=cockroach.ccl.streamingccl.StreamReplicationStatus_StreamStatus" json:"stream_status,omitempty"` - // Current protected timestamp for spans being replicated. It is absent - // when the replication stream is 'STOPPED'. - ProtectedTimestamp *hlc.Timestamp `protobuf:"bytes,2,opt,name=protected_timestamp,json=protectedTimestamp,proto3" json:"protected_timestamp,omitempty"` -} - -func (m *StreamReplicationStatus) Reset() { *m = StreamReplicationStatus{} } -func (m *StreamReplicationStatus) String() string { return proto.CompactTextString(m) } -func (*StreamReplicationStatus) ProtoMessage() {} -func (*StreamReplicationStatus) Descriptor() ([]byte, []int) { - return fileDescriptor_44eb106be4866a3a, []int{3} -} -func (m *StreamReplicationStatus) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *StreamReplicationStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - b = b[:cap(b)] - n, err := m.MarshalToSizedBuffer(b) - if err != nil { - return nil, err - } - return b[:n], nil -} -func (m *StreamReplicationStatus) XXX_Merge(src proto.Message) { - xxx_messageInfo_StreamReplicationStatus.Merge(m, src) -} -func (m *StreamReplicationStatus) XXX_Size() int { - return m.Size() -} -func (m *StreamReplicationStatus) XXX_DiscardUnknown() { - xxx_messageInfo_StreamReplicationStatus.DiscardUnknown(m) -} - -var xxx_messageInfo_StreamReplicationStatus proto.InternalMessageInfo - -func init() { - proto.RegisterEnum("cockroach.ccl.streamingccl.StreamReplicationStatus_StreamStatus", StreamReplicationStatus_StreamStatus_name, StreamReplicationStatus_StreamStatus_value) - proto.RegisterType((*StreamPartitionSpec)(nil), "cockroach.ccl.streamingccl.StreamPartitionSpec") - proto.RegisterType((*StreamPartitionSpec_ExecutionConfig)(nil), "cockroach.ccl.streamingccl.StreamPartitionSpec.ExecutionConfig") - proto.RegisterType((*ReplicationStreamSpec)(nil), "cockroach.ccl.streamingccl.ReplicationStreamSpec") - proto.RegisterType((*ReplicationStreamSpec_Partition)(nil), "cockroach.ccl.streamingccl.ReplicationStreamSpec.Partition") - proto.RegisterType((*StreamEvent)(nil), "cockroach.ccl.streamingccl.StreamEvent") - proto.RegisterType((*StreamEvent_Batch)(nil), "cockroach.ccl.streamingccl.StreamEvent.Batch") - proto.RegisterType((*StreamEvent_SpanCheckpoint)(nil), "cockroach.ccl.streamingccl.StreamEvent.SpanCheckpoint") - proto.RegisterType((*StreamEvent_StreamCheckpoint)(nil), "cockroach.ccl.streamingccl.StreamEvent.StreamCheckpoint") - proto.RegisterType((*StreamReplicationStatus)(nil), "cockroach.ccl.streamingccl.StreamReplicationStatus") -} - -func init() { - proto.RegisterFile("ccl/streamingccl/streampb/stream.proto", fileDescriptor_44eb106be4866a3a) -} - -var fileDescriptor_44eb106be4866a3a = []byte{ - // 921 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x55, 0x4f, 0x6f, 0x1b, 0x45, - 0x14, 0xf7, 0xda, 0x49, 0x48, 0x5e, 0xea, 0x24, 0x9d, 0x40, 0x6a, 0x5c, 0xb1, 0xae, 0x7c, 0xa8, - 0x2a, 0x24, 0x76, 0x45, 0x22, 0xa1, 0x4a, 0x08, 0x51, 0x3b, 0x71, 0x25, 0xab, 0xc5, 0x84, 0x5d, - 0xa7, 0x40, 0xa5, 0x6a, 0x35, 0x9e, 0x9d, 0xd8, 0x83, 0xd7, 0x3b, 0x9b, 0x9d, 0x71, 0x84, 0xfb, - 0x01, 0x38, 0x73, 0xe4, 0xc3, 0x70, 0xe2, 0x94, 0x63, 0xc5, 0xa9, 0x27, 0x03, 0x8e, 0x84, 0xf8, - 0x0c, 0x9c, 0xd0, 0xce, 0xce, 0xae, 0x9d, 0x10, 0x48, 0x72, 0x9b, 0x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, 0xd1, 0xda, 0x2a, 0xa0, 0x6d, 0xd8, 0xd4, 0xae, 0x76, 0x47, 0x3b, 0x8d, 0x85, - 0xbc, 0xc3, 0xc6, 0x91, 0xdb, 0x3a, 0xd8, 0x2a, 0xa2, 0x1a, 0xdc, 0x3f, 0xea, 0x3c, 0xeb, 0x7c, - 0xf9, 0x75, 0xc7, 0xd3, 0x21, 0xb7, 0xdb, 0xe8, 0x1e, 0xb9, 0x9e, 0xd3, 0xea, 0x3a, 0xdf, 0x6e, - 0x2d, 0x35, 0x3f, 0x3c, 0xfb, 0xc3, 0x2c, 0x9c, 0xcd, 0x4c, 0xe3, 0xcd, 0xcc, 0x34, 0xde, 0xce, - 0x4c, 0xe3, 0xf7, 0x99, 0x69, 0xfc, 0x78, 0x6e, 0x16, 0xde, 0x9c, 0x9b, 0x85, 0xb7, 0xe7, 0x66, - 0xe1, 0xe5, 0x6a, 0xf6, 0x07, 0xef, 0xad, 0xa8, 0xc5, 0xbc, 0xf7, 0x4f, 0x00, 0x00, 0x00, 0xff, - 0xff, 0xe2, 0x00, 0x16, 0x3f, 0xe5, 0x07, 0x00, 0x00, -} - -func (m *StreamPartitionSpec) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *StreamPartitionSpec) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *StreamPartitionSpec) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - { - size, err := m.Config.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintStream(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1a - if len(m.Spans) > 0 { - for iNdEx := len(m.Spans) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Spans[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintStream(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - } - { - size, err := m.StartFrom.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintStream(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *StreamPartitionSpec_ExecutionConfig) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *StreamPartitionSpec_ExecutionConfig) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *StreamPartitionSpec_ExecutionConfig) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.BatchByteSize != 0 { - i = encodeVarintStream(dAtA, i, uint64(m.BatchByteSize)) - i-- - dAtA[i] = 0x18 - } - n3, err3 := github_com_gogo_protobuf_types.StdDurationMarshalTo(m.MinCheckpointFrequency, dAtA[i-github_com_gogo_protobuf_types.SizeOfStdDuration(m.MinCheckpointFrequency):]) - if err3 != nil { - return 0, err3 - } - i -= n3 - i = encodeVarintStream(dAtA, i, uint64(n3)) - i-- - dAtA[i] = 0x12 - if m.InitialScanParallelism != 0 { - i = encodeVarintStream(dAtA, i, uint64(m.InitialScanParallelism)) - i-- - dAtA[i] = 0x8 - } - return len(dAtA) - i, nil -} - -func (m *ReplicationStreamSpec) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *ReplicationStreamSpec) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ReplicationStreamSpec) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Partitions) > 0 { - for iNdEx := len(m.Partitions) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Partitions[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintStream(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - } - } - return len(dAtA) - i, nil -} - -func (m *ReplicationStreamSpec_Partition) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *ReplicationStreamSpec_Partition) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *ReplicationStreamSpec_Partition) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.PartitionSpec != nil { - { - size, err := m.PartitionSpec.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintStream(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x22 - } - { - size, err := m.Locality.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintStream(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x1a - { - size, err := m.SQLAddress.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintStream(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - if m.NodeID != 0 { - i = encodeVarintStream(dAtA, i, uint64(m.NodeID)) - i-- - dAtA[i] = 0x8 - } - return len(dAtA) - i, nil -} - -func (m *StreamEvent) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *StreamEvent) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *StreamEvent) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.Checkpoint != nil { - { - size, err := m.Checkpoint.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintStream(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - if m.Batch != nil { - { - size, err := m.Batch.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintStream(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - } - return len(dAtA) - i, nil -} - -func (m *StreamEvent_Batch) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *StreamEvent_Batch) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *StreamEvent_Batch) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.KeyValues) > 0 { - for iNdEx := len(m.KeyValues) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.KeyValues[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintStream(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - } - } - return len(dAtA) - i, nil -} - -func (m *StreamEvent_SpanCheckpoint) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *StreamEvent_SpanCheckpoint) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *StreamEvent_SpanCheckpoint) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - { - size, err := m.Timestamp.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintStream(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - { - size, err := m.Span.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintStream(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - return len(dAtA) - i, nil -} - -func (m *StreamEvent_StreamCheckpoint) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *StreamEvent_StreamCheckpoint) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *StreamEvent_StreamCheckpoint) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if len(m.Spans) > 0 { - for iNdEx := len(m.Spans) - 1; iNdEx >= 0; iNdEx-- { - { - size, err := m.Spans[iNdEx].MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintStream(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0xa - } - } - return len(dAtA) - i, nil -} - -func (m *StreamReplicationStatus) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalToSizedBuffer(dAtA[:size]) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *StreamReplicationStatus) MarshalTo(dAtA []byte) (int, error) { - size := m.Size() - return m.MarshalToSizedBuffer(dAtA[:size]) -} - -func (m *StreamReplicationStatus) MarshalToSizedBuffer(dAtA []byte) (int, error) { - i := len(dAtA) - _ = i - var l int - _ = l - if m.ProtectedTimestamp != nil { - { - size, err := m.ProtectedTimestamp.MarshalToSizedBuffer(dAtA[:i]) - if err != nil { - return 0, err - } - i -= size - i = encodeVarintStream(dAtA, i, uint64(size)) - } - i-- - dAtA[i] = 0x12 - } - if m.StreamStatus != 0 { - i = encodeVarintStream(dAtA, i, uint64(m.StreamStatus)) - i-- - dAtA[i] = 0x8 - } - return len(dAtA) - i, nil -} - -func encodeVarintStream(dAtA []byte, offset int, v uint64) int { - offset -= sovStream(v) - base := offset - for v >= 1<<7 { - dAtA[offset] = uint8(v&0x7f | 0x80) - v >>= 7 - offset++ - } - dAtA[offset] = uint8(v) - return base -} -func (m *StreamPartitionSpec) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = m.StartFrom.Size() - n += 1 + l + sovStream(uint64(l)) - if len(m.Spans) > 0 { - for _, e := range m.Spans { - l = e.Size() - n += 1 + l + sovStream(uint64(l)) - } - } - l = m.Config.Size() - n += 1 + l + sovStream(uint64(l)) - return n -} - -func (m *StreamPartitionSpec_ExecutionConfig) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.InitialScanParallelism != 0 { - n += 1 + sovStream(uint64(m.InitialScanParallelism)) - } - l = github_com_gogo_protobuf_types.SizeOfStdDuration(m.MinCheckpointFrequency) - n += 1 + l + sovStream(uint64(l)) - if m.BatchByteSize != 0 { - n += 1 + sovStream(uint64(m.BatchByteSize)) - } - return n -} - -func (m *ReplicationStreamSpec) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if len(m.Partitions) > 0 { - for _, e := range m.Partitions { - l = e.Size() - n += 1 + l + sovStream(uint64(l)) - } - } - return n -} - -func (m *ReplicationStreamSpec_Partition) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.NodeID != 0 { - n += 1 + sovStream(uint64(m.NodeID)) - } - l = m.SQLAddress.Size() - n += 1 + l + sovStream(uint64(l)) - l = m.Locality.Size() - n += 1 + l + sovStream(uint64(l)) - if m.PartitionSpec != nil { - l = m.PartitionSpec.Size() - n += 1 + l + sovStream(uint64(l)) - } - return n -} - -func (m *StreamEvent) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.Batch != nil { - l = m.Batch.Size() - n += 1 + l + sovStream(uint64(l)) - } - if m.Checkpoint != nil { - l = m.Checkpoint.Size() - n += 1 + l + sovStream(uint64(l)) - } - return n -} - -func (m *StreamEvent_Batch) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if len(m.KeyValues) > 0 { - for _, e := range m.KeyValues { - l = e.Size() - n += 1 + l + sovStream(uint64(l)) - } - } - return n -} - -func (m *StreamEvent_SpanCheckpoint) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - l = m.Span.Size() - n += 1 + l + sovStream(uint64(l)) - l = m.Timestamp.Size() - n += 1 + l + sovStream(uint64(l)) - return n -} - -func (m *StreamEvent_StreamCheckpoint) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if len(m.Spans) > 0 { - for _, e := range m.Spans { - l = e.Size() - n += 1 + l + sovStream(uint64(l)) - } - } - return n -} - -func (m *StreamReplicationStatus) Size() (n int) { - if m == nil { - return 0 - } - var l int - _ = l - if m.StreamStatus != 0 { - n += 1 + sovStream(uint64(m.StreamStatus)) - } - if m.ProtectedTimestamp != nil { - l = m.ProtectedTimestamp.Size() - n += 1 + l + sovStream(uint64(l)) - } - return n -} - -func sovStream(x uint64) (n int) { - return (math_bits.Len64(x|1) + 6) / 7 -} -func sozStream(x uint64) (n int) { - return sovStream(uint64((x << 1) ^ uint64((int64(x) >> 63)))) -} -func (m *StreamPartitionSpec) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowStream - } - if iNdEx >= l { - return 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 fmt.Errorf("proto: StreamPartitionSpec: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: StreamPartitionSpec: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field StartFrom", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowStream - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthStream - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthStream - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.StartFrom.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Spans", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowStream - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthStream - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthStream - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Spans = append(m.Spans, roachpb.Span{}) - if err := m.Spans[len(m.Spans)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Config", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowStream - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthStream - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthStream - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.Config.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipStream(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthStream - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *StreamPartitionSpec_ExecutionConfig) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowStream - } - if iNdEx >= l { - return 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 fmt.Errorf("proto: ExecutionConfig: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ExecutionConfig: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field InitialScanParallelism", wireType) - } - m.InitialScanParallelism = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowStream - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.InitialScanParallelism |= int32(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field MinCheckpointFrequency", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowStream - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthStream - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthStream - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := github_com_gogo_protobuf_types.StdDurationUnmarshal(&m.MinCheckpointFrequency, dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 3: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field BatchByteSize", wireType) - } - m.BatchByteSize = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowStream - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.BatchByteSize |= int64(b&0x7F) << shift - if b < 0x80 { - break - } - } - default: - iNdEx = preIndex - skippy, err := skipStream(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthStream - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *ReplicationStreamSpec) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowStream - } - if iNdEx >= l { - return 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 fmt.Errorf("proto: ReplicationStreamSpec: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ReplicationStreamSpec: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Partitions", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowStream - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthStream - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthStream - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Partitions = append(m.Partitions, ReplicationStreamSpec_Partition{}) - if err := m.Partitions[len(m.Partitions)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipStream(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthStream - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *ReplicationStreamSpec_Partition) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowStream - } - if iNdEx >= l { - return 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 fmt.Errorf("proto: Partition: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Partition: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field NodeID", wireType) - } - m.NodeID = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowStream - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.NodeID |= github_com_cockroachdb_cockroach_pkg_roachpb.NodeID(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field SQLAddress", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowStream - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthStream - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthStream - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.SQLAddress.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 3: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Locality", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowStream - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthStream - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthStream - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.Locality.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 4: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field PartitionSpec", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowStream - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthStream - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthStream - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.PartitionSpec == nil { - m.PartitionSpec = &StreamPartitionSpec{} - } - if err := m.PartitionSpec.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipStream(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthStream - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *StreamEvent) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowStream - } - if iNdEx >= l { - return 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 fmt.Errorf("proto: StreamEvent: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: StreamEvent: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Batch", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowStream - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthStream - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthStream - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Batch == nil { - m.Batch = &StreamEvent_Batch{} - } - if err := m.Batch.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Checkpoint", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowStream - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthStream - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthStream - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.Checkpoint == nil { - m.Checkpoint = &StreamEvent_StreamCheckpoint{} - } - if err := m.Checkpoint.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipStream(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthStream - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *StreamEvent_Batch) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowStream - } - if iNdEx >= l { - return 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 fmt.Errorf("proto: Batch: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Batch: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field KeyValues", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowStream - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthStream - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthStream - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.KeyValues = append(m.KeyValues, roachpb.KeyValue{}) - if err := m.KeyValues[len(m.KeyValues)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipStream(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthStream - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *StreamEvent_SpanCheckpoint) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowStream - } - if iNdEx >= l { - return 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 fmt.Errorf("proto: SpanCheckpoint: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: SpanCheckpoint: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Span", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowStream - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthStream - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthStream - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.Span.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Timestamp", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowStream - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthStream - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthStream - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if err := m.Timestamp.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipStream(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthStream - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *StreamEvent_StreamCheckpoint) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowStream - } - if iNdEx >= l { - return 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 fmt.Errorf("proto: StreamCheckpoint: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: StreamCheckpoint: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Spans", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowStream - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthStream - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthStream - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Spans = append(m.Spans, StreamEvent_SpanCheckpoint{}) - if err := m.Spans[len(m.Spans)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipStream(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthStream - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *StreamReplicationStatus) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowStream - } - if iNdEx >= l { - return 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 fmt.Errorf("proto: StreamReplicationStatus: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: StreamReplicationStatus: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field StreamStatus", wireType) - } - m.StreamStatus = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowStream - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.StreamStatus |= StreamReplicationStatus_StreamStatus(b&0x7F) << shift - if b < 0x80 { - break - } - } - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ProtectedTimestamp", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowStream - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= int(b&0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthStream - } - postIndex := iNdEx + msglen - if postIndex < 0 { - return ErrInvalidLengthStream - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.ProtectedTimestamp == nil { - m.ProtectedTimestamp = &hlc.Timestamp{} - } - if err := m.ProtectedTimestamp.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipStream(dAtA[iNdEx:]) - if err != nil { - return err - } - if (skippy < 0) || (iNdEx+skippy) < 0 { - return ErrInvalidLengthStream - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func skipStream(dAtA []byte) (n int, err error) { - l := len(dAtA) - iNdEx := 0 - depth := 0 - for iNdEx < l { - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowStream - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - wireType := int(wire & 0x7) - switch wireType { - case 0: - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowStream - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - iNdEx++ - if dAtA[iNdEx-1] < 0x80 { - break - } - } - case 1: - iNdEx += 8 - case 2: - var length int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowStream - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - length |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if length < 0 { - return 0, ErrInvalidLengthStream - } - iNdEx += length - case 3: - depth++ - case 4: - if depth == 0 { - return 0, ErrUnexpectedEndOfGroupStream - } - depth-- - case 5: - iNdEx += 4 - default: - return 0, fmt.Errorf("proto: illegal wireType %d", wireType) - } - if iNdEx < 0 { - return 0, ErrInvalidLengthStream - } - if depth == 0 { - return iNdEx, nil - } - } - return 0, io.ErrUnexpectedEOF -} - -var ( - ErrInvalidLengthStream = fmt.Errorf("proto: negative length found during unmarshaling") - ErrIntOverflowStream = fmt.Errorf("proto: integer overflow") - ErrUnexpectedEndOfGroupStream = fmt.Errorf("proto: unexpected end of group") -)