From 0e9be3864a6d9e233c0553cdb8a30d75225ab30f Mon Sep 17 00:00:00 2001 From: Tung Hoang Date: Sun, 10 May 2020 16:36:44 +0200 Subject: [PATCH 1/6] Add custom stream level config --- Makefile | 5 +- api.proto | 9 +- go/api.pb.go | 600 ++++++++++++++++++++++++++++++++++----------- py/api_pb2.py | 294 +++++++++++++--------- py/api_pb2_grpc.py | 406 +++++++++++++++++++----------- 5 files changed, 906 insertions(+), 408 deletions(-) diff --git a/Makefile b/Makefile index 3aa848e..b968c1b 100644 --- a/Makefile +++ b/Makefile @@ -3,7 +3,10 @@ all: go py .PHONY: go go: - protoc --gofast_out=plugins=grpc:go api.proto + protoc -I. \ + --gofast_out=\ +Mgoogle/protobuf/duration.proto=github.com/gogo/protobuf/types,\ +plugins=grpc:go api.proto .PHONY: py py: diff --git a/api.proto b/api.proto index 20d14a8..75216d9 100644 --- a/api.proto +++ b/api.proto @@ -1,6 +1,6 @@ syntax = "proto3"; package proto; - +import "google/protobuf/duration.proto"; option java_package = "io.liftbridge.proto"; // CreateStreamRequest is sent to create a new stream. @@ -10,6 +10,13 @@ message CreateStreamRequest { string group = 3; // Partitions NATS subject amongst group members int32 replicationFactor = 4; // Number of stream replicas int32 partitions = 5; // Number of stream partitions + int64 RetentionMaxBytes =6; // Custom StreamConfig + int64 RetentionMaxMessages =7; // Custom StreamConfig + google.protobuf.Duration RetentionMaxAge =8; // Custom StreamConfig + google.protobuf.Duration CleanerInterval =9; // Custom StreamConfig + int64 SegmentMaxBytes =10; // Custom StreamConfig + google.protobuf.Duration SegmentMaxAge =11; // Custom StreamConfig + int64 CompactMaxGoroutines =12; // Custom StreamConfig } // CreateStreamResponse is sent by server after creating a stream. diff --git a/go/api.pb.go b/go/api.pb.go index e46fc62..382372c 100644 --- a/go/api.pb.go +++ b/go/api.pb.go @@ -37,9 +37,12 @@ package proto import proto1 "github.com/golang/protobuf/proto" import fmt "fmt" import math "math" +import google_protobuf "github.com/gogo/protobuf/types" -import context "golang.org/x/net/context" -import grpc "google.golang.org/grpc" +import ( + context "golang.org/x/net/context" + grpc "google.golang.org/grpc" +) import io "io" @@ -161,11 +164,18 @@ func (StreamMetadata_Error) EnumDescriptor() ([]byte, []int) { return fileDescri // CreateStreamRequest is sent to create a new stream. type CreateStreamRequest struct { - Subject string `protobuf:"bytes,1,opt,name=subject,proto3" json:"subject,omitempty"` - Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` - Group string `protobuf:"bytes,3,opt,name=group,proto3" json:"group,omitempty"` - ReplicationFactor int32 `protobuf:"varint,4,opt,name=replicationFactor,proto3" json:"replicationFactor,omitempty"` - Partitions int32 `protobuf:"varint,5,opt,name=partitions,proto3" json:"partitions,omitempty"` + Subject string `protobuf:"bytes,1,opt,name=subject,proto3" json:"subject,omitempty"` + Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` + Group string `protobuf:"bytes,3,opt,name=group,proto3" json:"group,omitempty"` + ReplicationFactor int32 `protobuf:"varint,4,opt,name=replicationFactor,proto3" json:"replicationFactor,omitempty"` + Partitions int32 `protobuf:"varint,5,opt,name=partitions,proto3" json:"partitions,omitempty"` + RetentionMaxBytes int64 `protobuf:"varint,6,opt,name=RetentionMaxBytes,proto3" json:"RetentionMaxBytes,omitempty"` + RetentionMaxMessages int64 `protobuf:"varint,7,opt,name=RetentionMaxMessages,proto3" json:"RetentionMaxMessages,omitempty"` + RetentionMaxAge *google_protobuf.Duration `protobuf:"bytes,8,opt,name=RetentionMaxAge" json:"RetentionMaxAge,omitempty"` + CleanerInterval *google_protobuf.Duration `protobuf:"bytes,9,opt,name=CleanerInterval" json:"CleanerInterval,omitempty"` + SegmentMaxBytes int64 `protobuf:"varint,10,opt,name=SegmentMaxBytes,proto3" json:"SegmentMaxBytes,omitempty"` + SegmentMaxAge *google_protobuf.Duration `protobuf:"bytes,11,opt,name=SegmentMaxAge" json:"SegmentMaxAge,omitempty"` + CompactMaxGoroutines int64 `protobuf:"varint,12,opt,name=CompactMaxGoroutines,proto3" json:"CompactMaxGoroutines,omitempty"` } func (m *CreateStreamRequest) Reset() { *m = CreateStreamRequest{} } @@ -208,6 +218,55 @@ func (m *CreateStreamRequest) GetPartitions() int32 { return 0 } +func (m *CreateStreamRequest) GetRetentionMaxBytes() int64 { + if m != nil { + return m.RetentionMaxBytes + } + return 0 +} + +func (m *CreateStreamRequest) GetRetentionMaxMessages() int64 { + if m != nil { + return m.RetentionMaxMessages + } + return 0 +} + +func (m *CreateStreamRequest) GetRetentionMaxAge() *google_protobuf.Duration { + if m != nil { + return m.RetentionMaxAge + } + return nil +} + +func (m *CreateStreamRequest) GetCleanerInterval() *google_protobuf.Duration { + if m != nil { + return m.CleanerInterval + } + return nil +} + +func (m *CreateStreamRequest) GetSegmentMaxBytes() int64 { + if m != nil { + return m.SegmentMaxBytes + } + return 0 +} + +func (m *CreateStreamRequest) GetSegmentMaxAge() *google_protobuf.Duration { + if m != nil { + return m.SegmentMaxAge + } + return nil +} + +func (m *CreateStreamRequest) GetCompactMaxGoroutines() int64 { + if m != nil { + return m.CompactMaxGoroutines + } + return 0 +} + // CreateStreamResponse is sent by server after creating a stream. type CreateStreamResponse struct { } @@ -1418,6 +1477,56 @@ func (m *CreateStreamRequest) MarshalTo(dAtA []byte) (int, error) { i++ i = encodeVarintApi(dAtA, i, uint64(m.Partitions)) } + if m.RetentionMaxBytes != 0 { + dAtA[i] = 0x30 + i++ + i = encodeVarintApi(dAtA, i, uint64(m.RetentionMaxBytes)) + } + if m.RetentionMaxMessages != 0 { + dAtA[i] = 0x38 + i++ + i = encodeVarintApi(dAtA, i, uint64(m.RetentionMaxMessages)) + } + if m.RetentionMaxAge != nil { + dAtA[i] = 0x42 + i++ + i = encodeVarintApi(dAtA, i, uint64(m.RetentionMaxAge.Size())) + n1, err := m.RetentionMaxAge.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n1 + } + if m.CleanerInterval != nil { + dAtA[i] = 0x4a + i++ + i = encodeVarintApi(dAtA, i, uint64(m.CleanerInterval.Size())) + n2, err := m.CleanerInterval.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n2 + } + if m.SegmentMaxBytes != 0 { + dAtA[i] = 0x50 + i++ + i = encodeVarintApi(dAtA, i, uint64(m.SegmentMaxBytes)) + } + if m.SegmentMaxAge != nil { + dAtA[i] = 0x5a + i++ + i = encodeVarintApi(dAtA, i, uint64(m.SegmentMaxAge.Size())) + n3, err := m.SegmentMaxAge.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n3 + } + if m.CompactMaxGoroutines != 0 { + dAtA[i] = 0x60 + i++ + i = encodeVarintApi(dAtA, i, uint64(m.CompactMaxGoroutines)) + } return i, nil } @@ -1503,22 +1612,22 @@ func (m *PauseStreamRequest) MarshalTo(dAtA []byte) (int, error) { i += copy(dAtA[i:], m.Name) } if len(m.Partitions) > 0 { - dAtA2 := make([]byte, len(m.Partitions)*10) - var j1 int + dAtA5 := make([]byte, len(m.Partitions)*10) + var j4 int for _, num1 := range m.Partitions { num := uint64(num1) for num >= 1<<7 { - dAtA2[j1] = uint8(uint64(num)&0x7f | 0x80) + dAtA5[j4] = uint8(uint64(num)&0x7f | 0x80) num >>= 7 - j1++ + j4++ } - dAtA2[j1] = uint8(num) - j1++ + dAtA5[j4] = uint8(num) + j4++ } dAtA[i] = 0x12 i++ - i = encodeVarintApi(dAtA, i, uint64(j1)) - i += copy(dAtA[i:], dAtA2[:j1]) + i = encodeVarintApi(dAtA, i, uint64(j4)) + i += copy(dAtA[i:], dAtA5[:j4]) } if m.ResumeAll { dAtA[i] = 0x18 @@ -1780,11 +1889,11 @@ func (m *PublishResponse) MarshalTo(dAtA []byte) (int, error) { dAtA[i] = 0xa i++ i = encodeVarintApi(dAtA, i, uint64(m.Ack.Size())) - n3, err := m.Ack.MarshalTo(dAtA[i:]) + n6, err := m.Ack.MarshalTo(dAtA[i:]) if err != nil { return 0, err } - i += n3 + i += n6 } return i, nil } @@ -1884,11 +1993,11 @@ func (m *PublishToSubjectResponse) MarshalTo(dAtA []byte) (int, error) { dAtA[i] = 0xa i++ i = encodeVarintApi(dAtA, i, uint64(m.Ack.Size())) - n4, err := m.Ack.MarshalTo(dAtA[i:]) + n7, err := m.Ack.MarshalTo(dAtA[i:]) if err != nil { return 0, err } - i += n4 + i += n7 } return i, nil } @@ -1979,11 +2088,11 @@ func (m *StreamMetadata) MarshalTo(dAtA []byte) (int, error) { dAtA[i] = 0x12 i++ i = encodeVarintApi(dAtA, i, uint64(v.Size())) - n5, err := v.MarshalTo(dAtA[i:]) + n8, err := v.MarshalTo(dAtA[i:]) if err != nil { return 0, err } - i += n5 + i += n8 } } } @@ -2232,22 +2341,22 @@ func (m *CreateStreamOp) MarshalTo(dAtA []byte) (int, error) { i += copy(dAtA[i:], m.Stream) } if len(m.Partitions) > 0 { - dAtA7 := make([]byte, len(m.Partitions)*10) - var j6 int + dAtA10 := make([]byte, len(m.Partitions)*10) + var j9 int for _, num1 := range m.Partitions { num := uint64(num1) for num >= 1<<7 { - dAtA7[j6] = uint8(uint64(num)&0x7f | 0x80) + dAtA10[j9] = uint8(uint64(num)&0x7f | 0x80) num >>= 7 - j6++ + j9++ } - dAtA7[j6] = uint8(num) - j6++ + dAtA10[j9] = uint8(num) + j9++ } dAtA[i] = 0x12 i++ - i = encodeVarintApi(dAtA, i, uint64(j6)) - i += copy(dAtA[i:], dAtA7[:j6]) + i = encodeVarintApi(dAtA, i, uint64(j9)) + i += copy(dAtA[i:], dAtA10[:j9]) } return i, nil } @@ -2298,22 +2407,22 @@ func (m *PauseStreamOp) MarshalTo(dAtA []byte) (int, error) { i += copy(dAtA[i:], m.Stream) } if len(m.Partitions) > 0 { - dAtA9 := make([]byte, len(m.Partitions)*10) - var j8 int + dAtA12 := make([]byte, len(m.Partitions)*10) + var j11 int for _, num1 := range m.Partitions { num := uint64(num1) for num >= 1<<7 { - dAtA9[j8] = uint8(uint64(num)&0x7f | 0x80) + dAtA12[j11] = uint8(uint64(num)&0x7f | 0x80) num >>= 7 - j8++ + j11++ } - dAtA9[j8] = uint8(num) - j8++ + dAtA12[j11] = uint8(num) + j11++ } dAtA[i] = 0x12 i++ - i = encodeVarintApi(dAtA, i, uint64(j8)) - i += copy(dAtA[i:], dAtA9[:j8]) + i = encodeVarintApi(dAtA, i, uint64(j11)) + i += copy(dAtA[i:], dAtA12[:j11]) } if m.ResumeAll { dAtA[i] = 0x18 @@ -2350,22 +2459,22 @@ func (m *ResumeStreamOp) MarshalTo(dAtA []byte) (int, error) { i += copy(dAtA[i:], m.Stream) } if len(m.Partitions) > 0 { - dAtA11 := make([]byte, len(m.Partitions)*10) - var j10 int + dAtA14 := make([]byte, len(m.Partitions)*10) + var j13 int for _, num1 := range m.Partitions { num := uint64(num1) for num >= 1<<7 { - dAtA11[j10] = uint8(uint64(num)&0x7f | 0x80) + dAtA14[j13] = uint8(uint64(num)&0x7f | 0x80) num >>= 7 - j10++ + j13++ } - dAtA11[j10] = uint8(num) - j10++ + dAtA14[j13] = uint8(num) + j13++ } dAtA[i] = 0x12 i++ - i = encodeVarintApi(dAtA, i, uint64(j10)) - i += copy(dAtA[i:], dAtA11[:j10]) + i = encodeVarintApi(dAtA, i, uint64(j13)) + i += copy(dAtA[i:], dAtA14[:j13]) } return i, nil } @@ -2399,41 +2508,41 @@ func (m *ActivityStreamEvent) MarshalTo(dAtA []byte) (int, error) { dAtA[i] = 0x1a i++ i = encodeVarintApi(dAtA, i, uint64(m.CreateStreamOp.Size())) - n12, err := m.CreateStreamOp.MarshalTo(dAtA[i:]) + n15, err := m.CreateStreamOp.MarshalTo(dAtA[i:]) if err != nil { return 0, err } - i += n12 + i += n15 } if m.DeleteStreamOp != nil { dAtA[i] = 0x22 i++ i = encodeVarintApi(dAtA, i, uint64(m.DeleteStreamOp.Size())) - n13, err := m.DeleteStreamOp.MarshalTo(dAtA[i:]) + n16, err := m.DeleteStreamOp.MarshalTo(dAtA[i:]) if err != nil { return 0, err } - i += n13 + i += n16 } if m.PauseStreamOp != nil { dAtA[i] = 0x2a i++ i = encodeVarintApi(dAtA, i, uint64(m.PauseStreamOp.Size())) - n14, err := m.PauseStreamOp.MarshalTo(dAtA[i:]) + n17, err := m.PauseStreamOp.MarshalTo(dAtA[i:]) if err != nil { return 0, err } - i += n14 + i += n17 } if m.ResumeStreamOp != nil { dAtA[i] = 0x32 i++ i = encodeVarintApi(dAtA, i, uint64(m.ResumeStreamOp.Size())) - n15, err := m.ResumeStreamOp.MarshalTo(dAtA[i:]) + n18, err := m.ResumeStreamOp.MarshalTo(dAtA[i:]) if err != nil { return 0, err } - i += n15 + i += n18 } return i, nil } @@ -2468,6 +2577,30 @@ func (m *CreateStreamRequest) Size() (n int) { if m.Partitions != 0 { n += 1 + sovApi(uint64(m.Partitions)) } + if m.RetentionMaxBytes != 0 { + n += 1 + sovApi(uint64(m.RetentionMaxBytes)) + } + if m.RetentionMaxMessages != 0 { + n += 1 + sovApi(uint64(m.RetentionMaxMessages)) + } + if m.RetentionMaxAge != nil { + l = m.RetentionMaxAge.Size() + n += 1 + l + sovApi(uint64(l)) + } + if m.CleanerInterval != nil { + l = m.CleanerInterval.Size() + n += 1 + l + sovApi(uint64(l)) + } + if m.SegmentMaxBytes != 0 { + n += 1 + sovApi(uint64(m.SegmentMaxBytes)) + } + if m.SegmentMaxAge != nil { + l = m.SegmentMaxAge.Size() + n += 1 + l + sovApi(uint64(l)) + } + if m.CompactMaxGoroutines != 0 { + n += 1 + sovApi(uint64(m.CompactMaxGoroutines)) + } return n } @@ -3100,6 +3233,181 @@ func (m *CreateStreamRequest) Unmarshal(dAtA []byte) error { break } } + case 6: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field RetentionMaxBytes", wireType) + } + m.RetentionMaxBytes = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowApi + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.RetentionMaxBytes |= (int64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + case 7: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field RetentionMaxMessages", wireType) + } + m.RetentionMaxMessages = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowApi + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.RetentionMaxMessages |= (int64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + case 8: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field RetentionMaxAge", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowApi + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthApi + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.RetentionMaxAge == nil { + m.RetentionMaxAge = &google_protobuf.Duration{} + } + if err := m.RetentionMaxAge.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 9: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field CleanerInterval", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowApi + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthApi + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.CleanerInterval == nil { + m.CleanerInterval = &google_protobuf.Duration{} + } + if err := m.CleanerInterval.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 10: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field SegmentMaxBytes", wireType) + } + m.SegmentMaxBytes = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowApi + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.SegmentMaxBytes |= (int64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + case 11: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field SegmentMaxAge", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowApi + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthApi + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.SegmentMaxAge == nil { + m.SegmentMaxAge = &google_protobuf.Duration{} + } + if err := m.SegmentMaxAge.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 12: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field CompactMaxGoroutines", wireType) + } + m.CompactMaxGoroutines = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowApi + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.CompactMaxGoroutines |= (int64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } default: iNdEx = preIndex skippy, err := skipApi(dAtA[iNdEx:]) @@ -6793,92 +7101,102 @@ var ( func init() { proto1.RegisterFile("api.proto", fileDescriptorApi) } var fileDescriptorApi = []byte{ - // 1384 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xbc, 0x57, 0xdb, 0x6e, 0xdb, 0x46, - 0x13, 0x16, 0x49, 0x1d, 0xac, 0xd1, 0x21, 0xcc, 0xfa, 0x10, 0xfe, 0x4a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 0x64, 0x40, 0x43, 0x9b, 0x4b, 0x9f, 0x02, 0x9d, - 0xad, 0x22, 0x39, 0x93, 0x3d, 0x02, 0xb5, 0x38, 0xdc, 0xa1, 0xed, 0x77, 0x0f, 0xb5, 0x9d, 0xff, - 0x5f, 0xb9, 0x9f, 0xaa, 0x7d, 0x74, 0xe7, 0xd5, 0x9b, 0x6d, 0xe9, 0xf5, 0x9b, 0x6d, 0xe9, 0xf7, - 0x37, 0xdb, 0xd2, 0x4f, 0x7f, 0x6c, 0x97, 0x60, 0xdd, 0xf5, 0xf6, 0x66, 0xee, 0x71, 0x34, 0x09, - 0xdc, 0xe9, 0x09, 0x89, 0x35, 0x4c, 0xaa, 0xec, 0xf3, 0xc5, 0x5f, 0x01, 0x00, 0x00, 0xff, 0xff, - 0xb4, 0xba, 0x77, 0xe8, 0x82, 0x10, 0x00, 0x00, + // 1540 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xbc, 0x58, 0xdb, 0x6e, 0xdb, 0x46, + 0x13, 0x16, 0x49, 0x1d, 0xcc, 0xd1, 0xc1, 0xcc, 0xfa, 0x10, 0x46, 0x09, 0xfc, 0x1b, 0xfc, 0x93, + 0x3f, 0xfe, 0xdd, 0x42, 0x49, 0x54, 0x14, 0x08, 0x8c, 0x16, 0xad, 0x6c, 0xd3, 0x8d, 0x10, 0xdb, + 0x12, 0x56, 0x32, 0x82, 0x5e, 0x14, 0x01, 0x25, 0xad, 0x65, 0xd6, 0x92, 0xc8, 0x92, 0x94, 0x11, + 0xbf, 0x49, 0x9f, 0xa3, 0x17, 0x7d, 0x85, 0xe6, 0x32, 0xd7, 0xbd, 0x2a, 0xd2, 0x87, 0xe8, 0x5d, + 0x50, 0xec, 0xf2, 0xb4, 0xa4, 0xe8, 0x28, 0x6d, 0x91, 0x5e, 0x89, 0xfb, 0xed, 0xcc, 0xec, 0xee, + 0x7c, 0x33, 0xb3, 0x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 0x6c, 0x1c, 0x06, 0x5e, 0xc4, + 0x69, 0x0d, 0x6a, 0xe4, 0x60, 0x42, 0x8c, 0x19, 0x71, 0xda, 0x33, 0x8f, 0x38, 0x57, 0xc6, 0x44, + 0x95, 0x97, 0x1a, 0x49, 0x69, 0xa0, 0x1d, 0x58, 0xed, 0x91, 0xf1, 0x94, 0xcc, 0xbc, 0xe8, 0xa4, + 0xc0, 0x36, 0x9e, 0x86, 0xd1, 0x57, 0x50, 0x8d, 0x21, 0xba, 0xe3, 0xf2, 0xb2, 0xc5, 0x92, 0xf2, + 0xd4, 0x51, 0x07, 0xd6, 0xd4, 0x36, 0x86, 0x14, 0xf8, 0xc6, 0x72, 0xac, 0xb9, 0x67, 0xce, 0x88, + 0xab, 0x56, 0x7c, 0x47, 0x65, 0xcd, 0x69, 0x9b, 0xb0, 0x9e, 0x8c, 0x19, 0xd7, 0xb6, 0x66, 0x2e, + 0xd1, 0xfe, 0x0f, 0x6b, 0x87, 0x64, 0x42, 0xd2, 0xb1, 0x14, 0x46, 0x8c, 0x10, 0x47, 0x0c, 0x35, + 0x91, 0x14, 0x0d, 0x4c, 0x9c, 0x03, 0xea, 0x1a, 0x73, 0x77, 0xb9, 0x85, 0x54, 0xbc, 0x88, 0xdb, + 0x52, 0x2a, 0x5e, 0xee, 0x81, 0xec, 0x10, 0x77, 0x3e, 0x25, 0xad, 0xc9, 0x84, 0xc5, 0xe5, 0x0a, + 0x8e, 0x01, 0x6d, 0x03, 0xd6, 0x12, 0xeb, 0x04, 0xcb, 0xbf, 0x13, 0x40, 0xe9, 0xcd, 0x07, 0xee, + 0xd0, 0x31, 0x07, 0x24, 0x5c, 0x7d, 0x13, 0x8a, 0x2e, 0x13, 0x0b, 0xd6, 0x0f, 0x46, 0x74, 0x85, + 0x68, 0x3d, 0x96, 0x0e, 0x05, 0x1c, 0x03, 0x68, 0x0f, 0xaa, 0xae, 0x67, 0x38, 0x5e, 0xd7, 0x72, + 0x7d, 0x09, 0xba, 0x87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0x1b, + 0x2a, 0x3c, 0x85, 0xa8, 0x9e, 0xc1, 0x6b, 0xd0, 0x2a, 0xd5, 0xef, 0x66, 0xce, 0x05, 0x8f, 0xa1, + 0x1c, 0x35, 0xc5, 0xd3, 0x19, 0x99, 0xca, 0x78, 0xe5, 0x45, 0xa6, 0x32, 0x9f, 0x75, 0x39, 0x74, + 0x04, 0x65, 0x8e, 0x5b, 0x74, 0x67, 0x91, 0xef, 0xd0, 0x50, 0x3d, 0x6b, 0x2a, 0xb2, 0xf3, 0x14, + 0xe4, 0xe8, 0x81, 0x86, 0xc2, 0x38, 0x4f, 0x3f, 0xd9, 0xea, 0xb5, 0xe4, 0x3d, 0xa1, 0xe5, 0x1e, + 0x0b, 0xe8, 0x18, 0xaa, 0x89, 0x87, 0x0a, 0x0a, 0x77, 0x9c, 0xf5, 0xe0, 0xa9, 0xdf, 0xcb, 0x9e, + 0x8c, 0xf6, 0xb1, 0x07, 0xa5, 0xa0, 0x41, 0x43, 0x1b, 0x99, 0x4f, 0x81, 0xfa, 0x66, 0x1a, 0x8e, + 0x74, 0xcf, 0x40, 0x49, 0x37, 0x77, 0x68, 0xeb, 0xfd, 0x4d, 0x6d, 0xfd, 0x3f, 0x37, 0xce, 0x87, + 0x66, 0xf7, 0x1f, 0xbc, 0x7e, 0xbb, 0x25, 0xbc, 0x79, 0xbb, 0x25, 0xfc, 0xf6, 0x76, 0x4b, 0xf8, + 0xf1, 0xf7, 0xad, 0x1c, 0xac, 0x99, 0x56, 0x63, 0x62, 0x9e, 0x7b, 0x03, 0xc7, 0x1c, 0x8d, 0xc3, + 0x3f, 0x03, 0x8a, 0xec, 0xe7, 0xb3, 0x3f, 0x03, 0x00, 0x00, 0xff, 0xff, 0x85, 0x2b, 0x7e, 0xb6, + 0x2d, 0x12, 0x00, 0x00, } diff --git a/py/api_pb2.py b/py/api_pb2.py index cabe256..b06c825 100644 --- a/py/api_pb2.py +++ b/py/api_pb2.py @@ -2,8 +2,6 @@ # Generated by the protocol buffer compiler. DO NOT EDIT! # source: api.proto -import sys -_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) from google.protobuf.internal import enum_type_wrapper from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message @@ -14,15 +12,17 @@ _sym_db = _symbol_database.Default() +from google.protobuf import duration_pb2 as google_dot_protobuf_dot_duration__pb2 DESCRIPTOR = _descriptor.FileDescriptor( name='api.proto', package='proto', syntax='proto3', - serialized_options=_b('\n\023io.liftbridge.proto'), - serialized_pb=_b('\n\tapi.proto\x12\x05proto\"r\n\x13\x43reateStreamRequest\x12\x0f\n\x07subject\x18\x01 \x01(\t\x12\x0c\n\x04name\x18\x02 \x01(\t\x12\r\n\x05group\x18\x03 \x01(\t\x12\x19\n\x11replicationFactor\x18\x04 \x01(\x05\x12\x12\n\npartitions\x18\x05 \x01(\x05\"\x16\n\x14\x43reateStreamResponse\"#\n\x13\x44\x65leteStreamRequest\x12\x0c\n\x04name\x18\x01 \x01(\t\"\x16\n\x14\x44\x65leteStreamResponse\"I\n\x12PauseStreamRequest\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x12\n\npartitions\x18\x02 \x03(\x05\x12\x11\n\tresumeAll\x18\x03 \x01(\x08\"\x15\n\x13PauseStreamResponse\"\xaf\x01\n\x10SubscribeRequest\x12\x0e\n\x06stream\x18\x01 \x01(\t\x12\x11\n\tpartition\x18\x02 \x01(\x05\x12+\n\rstartPosition\x18\x03 \x01(\x0e\x32\x14.proto.StartPosition\x12\x17\n\x0bstartOffset\x18\x04 \x01(\x03\x42\x02\x30\x01\x12\x1a\n\x0estartTimestamp\x18\x05 \x01(\x03\x42\x02\x30\x01\x12\x16\n\x0ereadISRReplica\x18\x06 \x01(\x08\"\'\n\x14\x46\x65tchMetadataRequest\x12\x0f\n\x07streams\x18\x01 \x03(\t\"`\n\x15\x46\x65tchMetadataResponse\x12\x1e\n\x07\x62rokers\x18\x01 \x03(\x0b\x32\r.proto.Broker\x12\'\n\x08metadata\x18\x02 \x03(\x0b\x32\x15.proto.StreamMetadata\"\x82\x02\n\x0ePublishRequest\x12\x0b\n\x03key\x18\x01 \x01(\x0c\x12\r\n\x05value\x18\x02 \x01(\x0c\x12\x0e\n\x06stream\x18\x03 \x01(\t\x12\x11\n\tpartition\x18\x04 \x01(\x05\x12\x33\n\x07headers\x18\x05 \x03(\x0b\x32\".proto.PublishRequest.HeadersEntry\x12\x10\n\x08\x61\x63kInbox\x18\x06 \x01(\t\x12\x15\n\rcorrelationId\x18\x07 \x01(\t\x12#\n\tackPolicy\x18\x08 \x01(\x0e\x32\x10.proto.AckPolicy\x1a.\n\x0cHeadersEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\x0c:\x02\x38\x01\"*\n\x0fPublishResponse\x12\x17\n\x03\x61\x63k\x18\x01 \x01(\x0b\x32\n.proto.Ack\"\x82\x02\n\x17PublishToSubjectRequest\x12\x0b\n\x03key\x18\x01 \x01(\x0c\x12\r\n\x05value\x18\x02 \x01(\x0c\x12\x0f\n\x07subject\x18\x03 \x01(\t\x12<\n\x07headers\x18\x04 \x03(\x0b\x32+.proto.PublishToSubjectRequest.HeadersEntry\x12\x10\n\x08\x61\x63kInbox\x18\x05 \x01(\t\x12\x15\n\rcorrelationId\x18\x06 \x01(\t\x12#\n\tackPolicy\x18\x07 \x01(\x0e\x32\x10.proto.AckPolicy\x1a.\n\x0cHeadersEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\x0c:\x02\x38\x01\"3\n\x18PublishToSubjectResponse\x12\x17\n\x03\x61\x63k\x18\x01 \x01(\x0b\x32\n.proto.Ack\"0\n\x06\x42roker\x12\n\n\x02id\x18\x01 \x01(\t\x12\x0c\n\x04host\x18\x02 \x01(\t\x12\x0c\n\x04port\x18\x03 \x01(\x05\"\x88\x02\n\x0eStreamMetadata\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x0f\n\x07subject\x18\x02 \x01(\t\x12*\n\x05\x65rror\x18\x03 \x01(\x0e\x32\x1b.proto.StreamMetadata.Error\x12\x39\n\npartitions\x18\x04 \x03(\x0b\x32%.proto.StreamMetadata.PartitionsEntry\x1aK\n\x0fPartitionsEntry\x12\x0b\n\x03key\x18\x01 \x01(\x05\x12\'\n\x05value\x18\x02 \x01(\x0b\x32\x18.proto.PartitionMetadata:\x02\x38\x01\"#\n\x05\x45rror\x12\x06\n\x02OK\x10\x00\x12\x12\n\x0eUNKNOWN_STREAM\x10\x01\"N\n\x11PartitionMetadata\x12\n\n\x02id\x18\x01 \x01(\x05\x12\x0e\n\x06leader\x18\x02 \x01(\t\x12\x10\n\x08replicas\x18\x03 \x03(\t\x12\x0b\n\x03isr\x18\x04 \x03(\t\"\xc6\x02\n\x07Message\x12\x12\n\x06offset\x18\x01 \x01(\x03\x42\x02\x30\x01\x12\x0b\n\x03key\x18\x02 \x01(\x0c\x12\r\n\x05value\x18\x03 \x01(\x0c\x12\x15\n\ttimestamp\x18\x04 \x01(\x03\x42\x02\x30\x01\x12\x0e\n\x06stream\x18\x05 \x01(\t\x12\x11\n\tpartition\x18\x06 \x01(\x05\x12\x0f\n\x07subject\x18\x07 \x01(\t\x12\x14\n\x0creplySubject\x18\x08 \x01(\t\x12,\n\x07headers\x18\t \x03(\x0b\x32\x1b.proto.Message.HeadersEntry\x12\x10\n\x08\x61\x63kInbox\x18\n \x01(\t\x12\x15\n\rcorrelationId\x18\x0b \x01(\t\x12#\n\tackPolicy\x18\x0c \x01(\x0e\x32\x10.proto.AckPolicy\x1a.\n\x0cHeadersEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\x0c:\x02\x38\x01\"\xa5\x01\n\x03\x41\x63k\x12\x0e\n\x06stream\x18\x01 \x01(\t\x12\x18\n\x10partitionSubject\x18\x02 \x01(\t\x12\x12\n\nmsgSubject\x18\x03 \x01(\t\x12\x12\n\x06offset\x18\x04 \x01(\x03\x42\x02\x30\x01\x12\x10\n\x08\x61\x63kInbox\x18\x05 \x01(\t\x12\x15\n\rcorrelationId\x18\x06 \x01(\t\x12#\n\tackPolicy\x18\x07 \x01(\x0e\x32\x10.proto.AckPolicy\"4\n\x0e\x43reateStreamOp\x12\x0e\n\x06stream\x18\x01 \x01(\t\x12\x12\n\npartitions\x18\x02 \x03(\x05\" \n\x0e\x44\x65leteStreamOp\x12\x0e\n\x06stream\x18\x01 \x01(\t\"F\n\rPauseStreamOp\x12\x0e\n\x06stream\x18\x01 \x01(\t\x12\x12\n\npartitions\x18\x02 \x03(\x05\x12\x11\n\tresumeAll\x18\x03 \x01(\x08\"4\n\x0eResumeStreamOp\x12\x0e\n\x06stream\x18\x01 \x01(\t\x12\x12\n\npartitions\x18\x02 \x03(\x05\"\x80\x02\n\x13\x41\x63tivityStreamEvent\x12\n\n\x02id\x18\x01 \x01(\x04\x12#\n\x02op\x18\x02 \x01(\x0e\x32\x17.proto.ActivityStreamOp\x12-\n\x0e\x63reateStreamOp\x18\x03 \x01(\x0b\x32\x15.proto.CreateStreamOp\x12-\n\x0e\x64\x65leteStreamOp\x18\x04 \x01(\x0b\x32\x15.proto.DeleteStreamOp\x12+\n\rpauseStreamOp\x18\x05 \x01(\x0b\x32\x14.proto.PauseStreamOp\x12-\n\x0eresumeStreamOp\x18\x06 \x01(\x0b\x32\x15.proto.ResumeStreamOp*R\n\rStartPosition\x12\x0c\n\x08NEW_ONLY\x10\x00\x12\n\n\x06OFFSET\x10\x01\x12\x0c\n\x08\x45\x41RLIEST\x10\x02\x12\n\n\x06LATEST\x10\x03\x12\r\n\tTIMESTAMP\x10\x04**\n\tAckPolicy\x12\n\n\x06LEADER\x10\x00\x12\x07\n\x03\x41LL\x10\x01\x12\x08\n\x04NONE\x10\x02*]\n\x10\x41\x63tivityStreamOp\x12\x11\n\rCREATE_STREAM\x10\x00\x12\x11\n\rDELETE_STREAM\x10\x01\x12\x10\n\x0cPAUSE_STREAM\x10\x02\x12\x11\n\rRESUME_STREAM\x10\x03\x32\xfe\x03\n\x03\x41PI\x12I\n\x0c\x43reateStream\x12\x1a.proto.CreateStreamRequest\x1a\x1b.proto.CreateStreamResponse\"\x00\x12I\n\x0c\x44\x65leteStream\x12\x1a.proto.DeleteStreamRequest\x1a\x1b.proto.DeleteStreamResponse\"\x00\x12\x46\n\x0bPauseStream\x12\x19.proto.PauseStreamRequest\x1a\x1a.proto.PauseStreamResponse\"\x00\x12\x38\n\tSubscribe\x12\x17.proto.SubscribeRequest\x1a\x0e.proto.Message\"\x00\x30\x01\x12L\n\rFetchMetadata\x12\x1b.proto.FetchMetadataRequest\x1a\x1c.proto.FetchMetadataResponse\"\x00\x12:\n\x07Publish\x12\x15.proto.PublishRequest\x1a\x16.proto.PublishResponse\"\x00\x12U\n\x10PublishToSubject\x12\x1e.proto.PublishToSubjectRequest\x1a\x1f.proto.PublishToSubjectResponse\"\x00\x42\x15\n\x13io.liftbridge.protob\x06proto3') -) + serialized_options=b'\n\023io.liftbridge.proto', + serialized_pb=b'\n\tapi.proto\x12\x05proto\x1a\x1egoogle/protobuf/duration.proto\"\xfc\x02\n\x13\x43reateStreamRequest\x12\x0f\n\x07subject\x18\x01 \x01(\t\x12\x0c\n\x04name\x18\x02 \x01(\t\x12\r\n\x05group\x18\x03 \x01(\t\x12\x19\n\x11replicationFactor\x18\x04 \x01(\x05\x12\x12\n\npartitions\x18\x05 \x01(\x05\x12\x19\n\x11RetentionMaxBytes\x18\x06 \x01(\x03\x12\x1c\n\x14RetentionMaxMessages\x18\x07 \x01(\x03\x12\x32\n\x0fRetentionMaxAge\x18\x08 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x32\n\x0f\x43leanerInterval\x18\t \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x17\n\x0fSegmentMaxBytes\x18\n \x01(\x03\x12\x30\n\rSegmentMaxAge\x18\x0b \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x1c\n\x14\x43ompactMaxGoroutines\x18\x0c \x01(\x03\"\x16\n\x14\x43reateStreamResponse\"#\n\x13\x44\x65leteStreamRequest\x12\x0c\n\x04name\x18\x01 \x01(\t\"\x16\n\x14\x44\x65leteStreamResponse\"I\n\x12PauseStreamRequest\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x12\n\npartitions\x18\x02 \x03(\x05\x12\x11\n\tresumeAll\x18\x03 \x01(\x08\"\x15\n\x13PauseStreamResponse\"\xaf\x01\n\x10SubscribeRequest\x12\x0e\n\x06stream\x18\x01 \x01(\t\x12\x11\n\tpartition\x18\x02 \x01(\x05\x12+\n\rstartPosition\x18\x03 \x01(\x0e\x32\x14.proto.StartPosition\x12\x17\n\x0bstartOffset\x18\x04 \x01(\x03\x42\x02\x30\x01\x12\x1a\n\x0estartTimestamp\x18\x05 \x01(\x03\x42\x02\x30\x01\x12\x16\n\x0ereadISRReplica\x18\x06 \x01(\x08\"\'\n\x14\x46\x65tchMetadataRequest\x12\x0f\n\x07streams\x18\x01 \x03(\t\"`\n\x15\x46\x65tchMetadataResponse\x12\x1e\n\x07\x62rokers\x18\x01 \x03(\x0b\x32\r.proto.Broker\x12\'\n\x08metadata\x18\x02 \x03(\x0b\x32\x15.proto.StreamMetadata\"\x82\x02\n\x0ePublishRequest\x12\x0b\n\x03key\x18\x01 \x01(\x0c\x12\r\n\x05value\x18\x02 \x01(\x0c\x12\x0e\n\x06stream\x18\x03 \x01(\t\x12\x11\n\tpartition\x18\x04 \x01(\x05\x12\x33\n\x07headers\x18\x05 \x03(\x0b\x32\".proto.PublishRequest.HeadersEntry\x12\x10\n\x08\x61\x63kInbox\x18\x06 \x01(\t\x12\x15\n\rcorrelationId\x18\x07 \x01(\t\x12#\n\tackPolicy\x18\x08 \x01(\x0e\x32\x10.proto.AckPolicy\x1a.\n\x0cHeadersEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\x0c:\x02\x38\x01\"*\n\x0fPublishResponse\x12\x17\n\x03\x61\x63k\x18\x01 \x01(\x0b\x32\n.proto.Ack\"\x82\x02\n\x17PublishToSubjectRequest\x12\x0b\n\x03key\x18\x01 \x01(\x0c\x12\r\n\x05value\x18\x02 \x01(\x0c\x12\x0f\n\x07subject\x18\x03 \x01(\t\x12<\n\x07headers\x18\x04 \x03(\x0b\x32+.proto.PublishToSubjectRequest.HeadersEntry\x12\x10\n\x08\x61\x63kInbox\x18\x05 \x01(\t\x12\x15\n\rcorrelationId\x18\x06 \x01(\t\x12#\n\tackPolicy\x18\x07 \x01(\x0e\x32\x10.proto.AckPolicy\x1a.\n\x0cHeadersEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\x0c:\x02\x38\x01\"3\n\x18PublishToSubjectResponse\x12\x17\n\x03\x61\x63k\x18\x01 \x01(\x0b\x32\n.proto.Ack\"0\n\x06\x42roker\x12\n\n\x02id\x18\x01 \x01(\t\x12\x0c\n\x04host\x18\x02 \x01(\t\x12\x0c\n\x04port\x18\x03 \x01(\x05\"\x88\x02\n\x0eStreamMetadata\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x0f\n\x07subject\x18\x02 \x01(\t\x12*\n\x05\x65rror\x18\x03 \x01(\x0e\x32\x1b.proto.StreamMetadata.Error\x12\x39\n\npartitions\x18\x04 \x03(\x0b\x32%.proto.StreamMetadata.PartitionsEntry\x1aK\n\x0fPartitionsEntry\x12\x0b\n\x03key\x18\x01 \x01(\x05\x12\'\n\x05value\x18\x02 \x01(\x0b\x32\x18.proto.PartitionMetadata:\x02\x38\x01\"#\n\x05\x45rror\x12\x06\n\x02OK\x10\x00\x12\x12\n\x0eUNKNOWN_STREAM\x10\x01\"N\n\x11PartitionMetadata\x12\n\n\x02id\x18\x01 \x01(\x05\x12\x0e\n\x06leader\x18\x02 \x01(\t\x12\x10\n\x08replicas\x18\x03 \x03(\t\x12\x0b\n\x03isr\x18\x04 \x03(\t\"\xc6\x02\n\x07Message\x12\x12\n\x06offset\x18\x01 \x01(\x03\x42\x02\x30\x01\x12\x0b\n\x03key\x18\x02 \x01(\x0c\x12\r\n\x05value\x18\x03 \x01(\x0c\x12\x15\n\ttimestamp\x18\x04 \x01(\x03\x42\x02\x30\x01\x12\x0e\n\x06stream\x18\x05 \x01(\t\x12\x11\n\tpartition\x18\x06 \x01(\x05\x12\x0f\n\x07subject\x18\x07 \x01(\t\x12\x14\n\x0creplySubject\x18\x08 \x01(\t\x12,\n\x07headers\x18\t \x03(\x0b\x32\x1b.proto.Message.HeadersEntry\x12\x10\n\x08\x61\x63kInbox\x18\n \x01(\t\x12\x15\n\rcorrelationId\x18\x0b \x01(\t\x12#\n\tackPolicy\x18\x0c \x01(\x0e\x32\x10.proto.AckPolicy\x1a.\n\x0cHeadersEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\x0c:\x02\x38\x01\"\xa5\x01\n\x03\x41\x63k\x12\x0e\n\x06stream\x18\x01 \x01(\t\x12\x18\n\x10partitionSubject\x18\x02 \x01(\t\x12\x12\n\nmsgSubject\x18\x03 \x01(\t\x12\x12\n\x06offset\x18\x04 \x01(\x03\x42\x02\x30\x01\x12\x10\n\x08\x61\x63kInbox\x18\x05 \x01(\t\x12\x15\n\rcorrelationId\x18\x06 \x01(\t\x12#\n\tackPolicy\x18\x07 \x01(\x0e\x32\x10.proto.AckPolicy\"4\n\x0e\x43reateStreamOp\x12\x0e\n\x06stream\x18\x01 \x01(\t\x12\x12\n\npartitions\x18\x02 \x03(\x05\" \n\x0e\x44\x65leteStreamOp\x12\x0e\n\x06stream\x18\x01 \x01(\t\"F\n\rPauseStreamOp\x12\x0e\n\x06stream\x18\x01 \x01(\t\x12\x12\n\npartitions\x18\x02 \x03(\x05\x12\x11\n\tresumeAll\x18\x03 \x01(\x08\"4\n\x0eResumeStreamOp\x12\x0e\n\x06stream\x18\x01 \x01(\t\x12\x12\n\npartitions\x18\x02 \x03(\x05\"\x80\x02\n\x13\x41\x63tivityStreamEvent\x12\n\n\x02id\x18\x01 \x01(\x04\x12#\n\x02op\x18\x02 \x01(\x0e\x32\x17.proto.ActivityStreamOp\x12-\n\x0e\x63reateStreamOp\x18\x03 \x01(\x0b\x32\x15.proto.CreateStreamOp\x12-\n\x0e\x64\x65leteStreamOp\x18\x04 \x01(\x0b\x32\x15.proto.DeleteStreamOp\x12+\n\rpauseStreamOp\x18\x05 \x01(\x0b\x32\x14.proto.PauseStreamOp\x12-\n\x0eresumeStreamOp\x18\x06 \x01(\x0b\x32\x15.proto.ResumeStreamOp*R\n\rStartPosition\x12\x0c\n\x08NEW_ONLY\x10\x00\x12\n\n\x06OFFSET\x10\x01\x12\x0c\n\x08\x45\x41RLIEST\x10\x02\x12\n\n\x06LATEST\x10\x03\x12\r\n\tTIMESTAMP\x10\x04**\n\tAckPolicy\x12\n\n\x06LEADER\x10\x00\x12\x07\n\x03\x41LL\x10\x01\x12\x08\n\x04NONE\x10\x02*]\n\x10\x41\x63tivityStreamOp\x12\x11\n\rCREATE_STREAM\x10\x00\x12\x11\n\rDELETE_STREAM\x10\x01\x12\x10\n\x0cPAUSE_STREAM\x10\x02\x12\x11\n\rRESUME_STREAM\x10\x03\x32\xfe\x03\n\x03\x41PI\x12I\n\x0c\x43reateStream\x12\x1a.proto.CreateStreamRequest\x1a\x1b.proto.CreateStreamResponse\"\x00\x12I\n\x0c\x44\x65leteStream\x12\x1a.proto.DeleteStreamRequest\x1a\x1b.proto.DeleteStreamResponse\"\x00\x12\x46\n\x0bPauseStream\x12\x19.proto.PauseStreamRequest\x1a\x1a.proto.PauseStreamResponse\"\x00\x12\x38\n\tSubscribe\x12\x17.proto.SubscribeRequest\x1a\x0e.proto.Message\"\x00\x30\x01\x12L\n\rFetchMetadata\x12\x1b.proto.FetchMetadataRequest\x1a\x1c.proto.FetchMetadataResponse\"\x00\x12:\n\x07Publish\x12\x15.proto.PublishRequest\x1a\x16.proto.PublishResponse\"\x00\x12U\n\x10PublishToSubject\x12\x1e.proto.PublishToSubjectRequest\x1a\x1f.proto.PublishToSubjectResponse\"\x00\x42\x15\n\x13io.liftbridge.protob\x06proto3' + , + dependencies=[google_dot_protobuf_dot_duration__pb2.DESCRIPTOR,]) _STARTPOSITION = _descriptor.EnumDescriptor( name='StartPosition', @@ -53,8 +53,8 @@ ], containing_type=None, serialized_options=None, - serialized_start=2622, - serialized_end=2704, + serialized_start=2921, + serialized_end=3003, ) _sym_db.RegisterEnumDescriptor(_STARTPOSITION) @@ -80,8 +80,8 @@ ], containing_type=None, serialized_options=None, - serialized_start=2706, - serialized_end=2748, + serialized_start=3005, + serialized_end=3047, ) _sym_db.RegisterEnumDescriptor(_ACKPOLICY) @@ -111,8 +111,8 @@ ], containing_type=None, serialized_options=None, - serialized_start=2750, - serialized_end=2843, + serialized_start=3049, + serialized_end=3142, ) _sym_db.RegisterEnumDescriptor(_ACTIVITYSTREAMOP) @@ -148,8 +148,8 @@ ], containing_type=None, serialized_options=None, - serialized_start=1535, - serialized_end=1570, + serialized_start=1834, + serialized_end=1869, ) _sym_db.RegisterEnumDescriptor(_STREAMMETADATA_ERROR) @@ -164,21 +164,21 @@ _descriptor.FieldDescriptor( name='subject', full_name='proto.CreateStreamRequest.subject', index=0, number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), + has_default_value=False, default_value=b"".decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( name='name', full_name='proto.CreateStreamRequest.name', index=1, number=2, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), + has_default_value=False, default_value=b"".decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( name='group', full_name='proto.CreateStreamRequest.group', index=2, number=3, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), + has_default_value=False, default_value=b"".decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), @@ -196,6 +196,55 @@ message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='RetentionMaxBytes', full_name='proto.CreateStreamRequest.RetentionMaxBytes', index=5, + number=6, type=3, cpp_type=2, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='RetentionMaxMessages', full_name='proto.CreateStreamRequest.RetentionMaxMessages', index=6, + number=7, type=3, cpp_type=2, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='RetentionMaxAge', full_name='proto.CreateStreamRequest.RetentionMaxAge', index=7, + number=8, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='CleanerInterval', full_name='proto.CreateStreamRequest.CleanerInterval', index=8, + number=9, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='SegmentMaxBytes', full_name='proto.CreateStreamRequest.SegmentMaxBytes', index=9, + number=10, type=3, cpp_type=2, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='SegmentMaxAge', full_name='proto.CreateStreamRequest.SegmentMaxAge', index=10, + number=11, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='CompactMaxGoroutines', full_name='proto.CreateStreamRequest.CompactMaxGoroutines', index=11, + number=12, type=3, cpp_type=2, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), ], extensions=[ ], @@ -208,8 +257,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=20, - serialized_end=134, + serialized_start=53, + serialized_end=433, ) @@ -232,8 +281,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=136, - serialized_end=158, + serialized_start=435, + serialized_end=457, ) @@ -247,7 +296,7 @@ _descriptor.FieldDescriptor( name='name', full_name='proto.DeleteStreamRequest.name', index=0, number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), + has_default_value=False, default_value=b"".decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), @@ -263,8 +312,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=160, - serialized_end=195, + serialized_start=459, + serialized_end=494, ) @@ -287,8 +336,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=197, - serialized_end=219, + serialized_start=496, + serialized_end=518, ) @@ -302,7 +351,7 @@ _descriptor.FieldDescriptor( name='name', full_name='proto.PauseStreamRequest.name', index=0, number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), + has_default_value=False, default_value=b"".decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), @@ -332,8 +381,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=221, - serialized_end=294, + serialized_start=520, + serialized_end=593, ) @@ -356,8 +405,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=296, - serialized_end=317, + serialized_start=595, + serialized_end=616, ) @@ -371,7 +420,7 @@ _descriptor.FieldDescriptor( name='stream', full_name='proto.SubscribeRequest.stream', index=0, number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), + has_default_value=False, default_value=b"".decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), @@ -395,14 +444,14 @@ has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=_b('0\001'), file=DESCRIPTOR), + serialized_options=b'0\001', file=DESCRIPTOR), _descriptor.FieldDescriptor( name='startTimestamp', full_name='proto.SubscribeRequest.startTimestamp', index=4, number=5, type=3, cpp_type=2, label=1, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=_b('0\001'), file=DESCRIPTOR), + serialized_options=b'0\001', file=DESCRIPTOR), _descriptor.FieldDescriptor( name='readISRReplica', full_name='proto.SubscribeRequest.readISRReplica', index=5, number=6, type=8, cpp_type=7, label=1, @@ -422,8 +471,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=320, - serialized_end=495, + serialized_start=619, + serialized_end=794, ) @@ -453,8 +502,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=497, - serialized_end=536, + serialized_start=796, + serialized_end=835, ) @@ -491,8 +540,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=538, - serialized_end=634, + serialized_start=837, + serialized_end=933, ) @@ -506,14 +555,14 @@ _descriptor.FieldDescriptor( name='key', full_name='proto.PublishRequest.HeadersEntry.key', index=0, number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), + has_default_value=False, default_value=b"".decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( name='value', full_name='proto.PublishRequest.HeadersEntry.value', index=1, number=2, type=12, cpp_type=9, label=1, - has_default_value=False, default_value=_b(""), + has_default_value=False, default_value=b"", message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), @@ -523,14 +572,14 @@ nested_types=[], enum_types=[ ], - serialized_options=_b('8\001'), + serialized_options=b'8\001', is_extendable=False, syntax='proto3', extension_ranges=[], oneofs=[ ], - serialized_start=849, - serialized_end=895, + serialized_start=1148, + serialized_end=1194, ) _PUBLISHREQUEST = _descriptor.Descriptor( @@ -543,21 +592,21 @@ _descriptor.FieldDescriptor( name='key', full_name='proto.PublishRequest.key', index=0, number=1, type=12, cpp_type=9, label=1, - has_default_value=False, default_value=_b(""), + has_default_value=False, default_value=b"", message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( name='value', full_name='proto.PublishRequest.value', index=1, number=2, type=12, cpp_type=9, label=1, - has_default_value=False, default_value=_b(""), + has_default_value=False, default_value=b"", message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( name='stream', full_name='proto.PublishRequest.stream', index=2, number=3, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), + has_default_value=False, default_value=b"".decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), @@ -578,14 +627,14 @@ _descriptor.FieldDescriptor( name='ackInbox', full_name='proto.PublishRequest.ackInbox', index=5, number=6, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), + has_default_value=False, default_value=b"".decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( name='correlationId', full_name='proto.PublishRequest.correlationId', index=6, number=7, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), + has_default_value=False, default_value=b"".decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), @@ -608,8 +657,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=637, - serialized_end=895, + serialized_start=936, + serialized_end=1194, ) @@ -639,8 +688,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=897, - serialized_end=939, + serialized_start=1196, + serialized_end=1238, ) @@ -654,14 +703,14 @@ _descriptor.FieldDescriptor( name='key', full_name='proto.PublishToSubjectRequest.HeadersEntry.key', index=0, number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), + has_default_value=False, default_value=b"".decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( name='value', full_name='proto.PublishToSubjectRequest.HeadersEntry.value', index=1, number=2, type=12, cpp_type=9, label=1, - has_default_value=False, default_value=_b(""), + has_default_value=False, default_value=b"", message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), @@ -671,14 +720,14 @@ nested_types=[], enum_types=[ ], - serialized_options=_b('8\001'), + serialized_options=b'8\001', is_extendable=False, syntax='proto3', extension_ranges=[], oneofs=[ ], - serialized_start=849, - serialized_end=895, + serialized_start=1148, + serialized_end=1194, ) _PUBLISHTOSUBJECTREQUEST = _descriptor.Descriptor( @@ -691,21 +740,21 @@ _descriptor.FieldDescriptor( name='key', full_name='proto.PublishToSubjectRequest.key', index=0, number=1, type=12, cpp_type=9, label=1, - has_default_value=False, default_value=_b(""), + has_default_value=False, default_value=b"", message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( name='value', full_name='proto.PublishToSubjectRequest.value', index=1, number=2, type=12, cpp_type=9, label=1, - has_default_value=False, default_value=_b(""), + has_default_value=False, default_value=b"", message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( name='subject', full_name='proto.PublishToSubjectRequest.subject', index=2, number=3, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), + has_default_value=False, default_value=b"".decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), @@ -719,14 +768,14 @@ _descriptor.FieldDescriptor( name='ackInbox', full_name='proto.PublishToSubjectRequest.ackInbox', index=4, number=5, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), + has_default_value=False, default_value=b"".decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( name='correlationId', full_name='proto.PublishToSubjectRequest.correlationId', index=5, number=6, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), + has_default_value=False, default_value=b"".decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), @@ -749,8 +798,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=942, - serialized_end=1200, + serialized_start=1241, + serialized_end=1499, ) @@ -780,8 +829,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=1202, - serialized_end=1253, + serialized_start=1501, + serialized_end=1552, ) @@ -795,14 +844,14 @@ _descriptor.FieldDescriptor( name='id', full_name='proto.Broker.id', index=0, number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), + has_default_value=False, default_value=b"".decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( name='host', full_name='proto.Broker.host', index=1, number=2, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), + has_default_value=False, default_value=b"".decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), @@ -825,8 +874,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=1255, - serialized_end=1303, + serialized_start=1554, + serialized_end=1602, ) @@ -857,14 +906,14 @@ nested_types=[], enum_types=[ ], - serialized_options=_b('8\001'), + serialized_options=b'8\001', is_extendable=False, syntax='proto3', extension_ranges=[], oneofs=[ ], - serialized_start=1458, - serialized_end=1533, + serialized_start=1757, + serialized_end=1832, ) _STREAMMETADATA = _descriptor.Descriptor( @@ -877,14 +926,14 @@ _descriptor.FieldDescriptor( name='name', full_name='proto.StreamMetadata.name', index=0, number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), + has_default_value=False, default_value=b"".decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( name='subject', full_name='proto.StreamMetadata.subject', index=1, number=2, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), + has_default_value=False, default_value=b"".decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), @@ -915,8 +964,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=1306, - serialized_end=1570, + serialized_start=1605, + serialized_end=1869, ) @@ -937,7 +986,7 @@ _descriptor.FieldDescriptor( name='leader', full_name='proto.PartitionMetadata.leader', index=1, number=2, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), + has_default_value=False, default_value=b"".decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), @@ -967,8 +1016,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=1572, - serialized_end=1650, + serialized_start=1871, + serialized_end=1949, ) @@ -982,14 +1031,14 @@ _descriptor.FieldDescriptor( name='key', full_name='proto.Message.HeadersEntry.key', index=0, number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), + has_default_value=False, default_value=b"".decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( name='value', full_name='proto.Message.HeadersEntry.value', index=1, number=2, type=12, cpp_type=9, label=1, - has_default_value=False, default_value=_b(""), + has_default_value=False, default_value=b"", message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), @@ -999,14 +1048,14 @@ nested_types=[], enum_types=[ ], - serialized_options=_b('8\001'), + serialized_options=b'8\001', is_extendable=False, syntax='proto3', extension_ranges=[], oneofs=[ ], - serialized_start=849, - serialized_end=895, + serialized_start=1148, + serialized_end=1194, ) _MESSAGE = _descriptor.Descriptor( @@ -1022,18 +1071,18 @@ has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=_b('0\001'), file=DESCRIPTOR), + serialized_options=b'0\001', file=DESCRIPTOR), _descriptor.FieldDescriptor( name='key', full_name='proto.Message.key', index=1, number=2, type=12, cpp_type=9, label=1, - has_default_value=False, default_value=_b(""), + has_default_value=False, default_value=b"", message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( name='value', full_name='proto.Message.value', index=2, number=3, type=12, cpp_type=9, label=1, - has_default_value=False, default_value=_b(""), + has_default_value=False, default_value=b"", message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), @@ -1043,11 +1092,11 @@ has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=_b('0\001'), file=DESCRIPTOR), + serialized_options=b'0\001', file=DESCRIPTOR), _descriptor.FieldDescriptor( name='stream', full_name='proto.Message.stream', index=4, number=5, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), + has_default_value=False, default_value=b"".decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), @@ -1061,14 +1110,14 @@ _descriptor.FieldDescriptor( name='subject', full_name='proto.Message.subject', index=6, number=7, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), + has_default_value=False, default_value=b"".decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( name='replySubject', full_name='proto.Message.replySubject', index=7, number=8, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), + has_default_value=False, default_value=b"".decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), @@ -1082,14 +1131,14 @@ _descriptor.FieldDescriptor( name='ackInbox', full_name='proto.Message.ackInbox', index=9, number=10, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), + has_default_value=False, default_value=b"".decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( name='correlationId', full_name='proto.Message.correlationId', index=10, number=11, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), + has_default_value=False, default_value=b"".decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), @@ -1112,8 +1161,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=1653, - serialized_end=1979, + serialized_start=1952, + serialized_end=2278, ) @@ -1127,21 +1176,21 @@ _descriptor.FieldDescriptor( name='stream', full_name='proto.Ack.stream', index=0, number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), + has_default_value=False, default_value=b"".decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( name='partitionSubject', full_name='proto.Ack.partitionSubject', index=1, number=2, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), + has_default_value=False, default_value=b"".decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( name='msgSubject', full_name='proto.Ack.msgSubject', index=2, number=3, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), + has_default_value=False, default_value=b"".decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), @@ -1151,18 +1200,18 @@ has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=_b('0\001'), file=DESCRIPTOR), + serialized_options=b'0\001', file=DESCRIPTOR), _descriptor.FieldDescriptor( name='ackInbox', full_name='proto.Ack.ackInbox', index=4, number=5, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), + has_default_value=False, default_value=b"".decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( name='correlationId', full_name='proto.Ack.correlationId', index=5, number=6, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), + has_default_value=False, default_value=b"".decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), @@ -1185,8 +1234,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=1982, - serialized_end=2147, + serialized_start=2281, + serialized_end=2446, ) @@ -1200,7 +1249,7 @@ _descriptor.FieldDescriptor( name='stream', full_name='proto.CreateStreamOp.stream', index=0, number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), + has_default_value=False, default_value=b"".decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), @@ -1223,8 +1272,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=2149, - serialized_end=2201, + serialized_start=2448, + serialized_end=2500, ) @@ -1238,7 +1287,7 @@ _descriptor.FieldDescriptor( name='stream', full_name='proto.DeleteStreamOp.stream', index=0, number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), + has_default_value=False, default_value=b"".decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), @@ -1254,8 +1303,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=2203, - serialized_end=2235, + serialized_start=2502, + serialized_end=2534, ) @@ -1269,7 +1318,7 @@ _descriptor.FieldDescriptor( name='stream', full_name='proto.PauseStreamOp.stream', index=0, number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), + has_default_value=False, default_value=b"".decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), @@ -1299,8 +1348,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=2237, - serialized_end=2307, + serialized_start=2536, + serialized_end=2606, ) @@ -1314,7 +1363,7 @@ _descriptor.FieldDescriptor( name='stream', full_name='proto.ResumeStreamOp.stream', index=0, number=1, type=9, cpp_type=9, label=1, - has_default_value=False, default_value=_b("").decode('utf-8'), + has_default_value=False, default_value=b"".decode('utf-8'), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), @@ -1337,8 +1386,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=2309, - serialized_end=2361, + serialized_start=2608, + serialized_end=2660, ) @@ -1403,10 +1452,13 @@ extension_ranges=[], oneofs=[ ], - serialized_start=2364, - serialized_end=2620, + serialized_start=2663, + serialized_end=2919, ) +_CREATESTREAMREQUEST.fields_by_name['RetentionMaxAge'].message_type = google_dot_protobuf_dot_duration__pb2._DURATION +_CREATESTREAMREQUEST.fields_by_name['CleanerInterval'].message_type = google_dot_protobuf_dot_duration__pb2._DURATION +_CREATESTREAMREQUEST.fields_by_name['SegmentMaxAge'].message_type = google_dot_protobuf_dot_duration__pb2._DURATION _SUBSCRIBEREQUEST.fields_by_name['startPosition'].enum_type = _STARTPOSITION _FETCHMETADATARESPONSE.fields_by_name['brokers'].message_type = _BROKER _FETCHMETADATARESPONSE.fields_by_name['metadata'].message_type = _STREAMMETADATA @@ -1671,8 +1723,8 @@ file=DESCRIPTOR, index=0, serialized_options=None, - serialized_start=2846, - serialized_end=3356, + serialized_start=3145, + serialized_end=3655, methods=[ _descriptor.MethodDescriptor( name='CreateStream', diff --git a/py/api_pb2_grpc.py b/py/api_pb2_grpc.py index af12967..fdc5139 100644 --- a/py/api_pb2_grpc.py +++ b/py/api_pb2_grpc.py @@ -5,158 +5,276 @@ class APIStub(object): - """API is the main Liftbridge server interface clients interact with. - """ + """API is the main Liftbridge server interface clients interact with. + """ - def __init__(self, channel): - """Constructor. + def __init__(self, channel): + """Constructor. - Args: - channel: A grpc.Channel. - """ - self.CreateStream = channel.unary_unary( - '/proto.API/CreateStream', - request_serializer=api__pb2.CreateStreamRequest.SerializeToString, - response_deserializer=api__pb2.CreateStreamResponse.FromString, - ) - self.DeleteStream = channel.unary_unary( - '/proto.API/DeleteStream', - request_serializer=api__pb2.DeleteStreamRequest.SerializeToString, - response_deserializer=api__pb2.DeleteStreamResponse.FromString, - ) - self.PauseStream = channel.unary_unary( - '/proto.API/PauseStream', - request_serializer=api__pb2.PauseStreamRequest.SerializeToString, - response_deserializer=api__pb2.PauseStreamResponse.FromString, - ) - self.Subscribe = channel.unary_stream( - '/proto.API/Subscribe', - request_serializer=api__pb2.SubscribeRequest.SerializeToString, - response_deserializer=api__pb2.Message.FromString, - ) - self.FetchMetadata = channel.unary_unary( - '/proto.API/FetchMetadata', - request_serializer=api__pb2.FetchMetadataRequest.SerializeToString, - response_deserializer=api__pb2.FetchMetadataResponse.FromString, - ) - self.Publish = channel.unary_unary( - '/proto.API/Publish', - request_serializer=api__pb2.PublishRequest.SerializeToString, - response_deserializer=api__pb2.PublishResponse.FromString, - ) - self.PublishToSubject = channel.unary_unary( - '/proto.API/PublishToSubject', - request_serializer=api__pb2.PublishToSubjectRequest.SerializeToString, - response_deserializer=api__pb2.PublishToSubjectResponse.FromString, - ) + Args: + channel: A grpc.Channel. + """ + self.CreateStream = channel.unary_unary( + '/proto.API/CreateStream', + request_serializer=api__pb2.CreateStreamRequest.SerializeToString, + response_deserializer=api__pb2.CreateStreamResponse.FromString, + ) + self.DeleteStream = channel.unary_unary( + '/proto.API/DeleteStream', + request_serializer=api__pb2.DeleteStreamRequest.SerializeToString, + response_deserializer=api__pb2.DeleteStreamResponse.FromString, + ) + self.PauseStream = channel.unary_unary( + '/proto.API/PauseStream', + request_serializer=api__pb2.PauseStreamRequest.SerializeToString, + response_deserializer=api__pb2.PauseStreamResponse.FromString, + ) + self.Subscribe = channel.unary_stream( + '/proto.API/Subscribe', + request_serializer=api__pb2.SubscribeRequest.SerializeToString, + response_deserializer=api__pb2.Message.FromString, + ) + self.FetchMetadata = channel.unary_unary( + '/proto.API/FetchMetadata', + request_serializer=api__pb2.FetchMetadataRequest.SerializeToString, + response_deserializer=api__pb2.FetchMetadataResponse.FromString, + ) + self.Publish = channel.unary_unary( + '/proto.API/Publish', + request_serializer=api__pb2.PublishRequest.SerializeToString, + response_deserializer=api__pb2.PublishResponse.FromString, + ) + self.PublishToSubject = channel.unary_unary( + '/proto.API/PublishToSubject', + request_serializer=api__pb2.PublishToSubjectRequest.SerializeToString, + response_deserializer=api__pb2.PublishToSubjectResponse.FromString, + ) class APIServicer(object): - """API is the main Liftbridge server interface clients interact with. - """ - - def CreateStream(self, request, context): - """CreateStream creates a new stream attached to a NATS subject. It returns - an AlreadyExists status code if a stream with the given subject and name - already exists. + """API is the main Liftbridge server interface clients interact with. """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - def DeleteStream(self, request, context): - """DeleteStream deletes a stream. - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def PauseStream(self, request, context): - """PauseStream pauses a stream's partitions. If no partitions are - specified, all of the stream's partitions will be paused. Partitions are - resumed when they are published to via the Liftbridge Publish API. - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def Subscribe(self, request, context): - """Subscribe creates an ephemeral subscription for the given stream. It - begins to receive messages starting at the given offset and waits for - new messages when it reaches the end of the stream. Use the request - context to close the subscription. - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') + def CreateStream(self, request, context): + """CreateStream creates a new stream attached to a NATS subject. It returns + an AlreadyExists status code if a stream with the given subject and name + already exists. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') - def FetchMetadata(self, request, context): - """FetchMetadata retrieves the latest cluster metadata, including stream - broker information. - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def Publish(self, request, context): - """Publish a new message to a stream. If the AckPolicy is not NONE and a - deadline is provided, this will synchronously block until the ack is - received. If the ack is not received in time, a DeadlineExceeded status - code is returned. - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def PublishToSubject(self, request, context): - """Publish a Liftbridge message to a NATS subject. If the AckPolicy is not NONE and a - deadline is provided, this will synchronously block until the first ack - is received. If an ack is not received in time, a DeadlineExceeded - status code is returned. - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') + def DeleteStream(self, request, context): + """DeleteStream deletes a stream. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def PauseStream(self, request, context): + """PauseStream pauses a stream's partitions. If no partitions are + specified, all of the stream's partitions will be paused. Partitions are + resumed when they are published to via the Liftbridge Publish API. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def Subscribe(self, request, context): + """Subscribe creates an ephemeral subscription for the given stream. It + begins to receive messages starting at the given offset and waits for + new messages when it reaches the end of the stream. Use the request + context to close the subscription. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def FetchMetadata(self, request, context): + """FetchMetadata retrieves the latest cluster metadata, including stream + broker information. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def Publish(self, request, context): + """Publish a new message to a stream. If the AckPolicy is not NONE and a + deadline is provided, this will synchronously block until the ack is + received. If the ack is not received in time, a DeadlineExceeded status + code is returned. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def PublishToSubject(self, request, context): + """Publish a Liftbridge message to a NATS subject. If the AckPolicy is not NONE and a + deadline is provided, this will synchronously block until the first ack + is received. If an ack is not received in time, a DeadlineExceeded + status code is returned. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') def add_APIServicer_to_server(servicer, server): - rpc_method_handlers = { - 'CreateStream': grpc.unary_unary_rpc_method_handler( - servicer.CreateStream, - request_deserializer=api__pb2.CreateStreamRequest.FromString, - response_serializer=api__pb2.CreateStreamResponse.SerializeToString, - ), - 'DeleteStream': grpc.unary_unary_rpc_method_handler( - servicer.DeleteStream, - request_deserializer=api__pb2.DeleteStreamRequest.FromString, - response_serializer=api__pb2.DeleteStreamResponse.SerializeToString, - ), - 'PauseStream': grpc.unary_unary_rpc_method_handler( - servicer.PauseStream, - request_deserializer=api__pb2.PauseStreamRequest.FromString, - response_serializer=api__pb2.PauseStreamResponse.SerializeToString, - ), - 'Subscribe': grpc.unary_stream_rpc_method_handler( - servicer.Subscribe, - request_deserializer=api__pb2.SubscribeRequest.FromString, - response_serializer=api__pb2.Message.SerializeToString, - ), - 'FetchMetadata': grpc.unary_unary_rpc_method_handler( - servicer.FetchMetadata, - request_deserializer=api__pb2.FetchMetadataRequest.FromString, - response_serializer=api__pb2.FetchMetadataResponse.SerializeToString, - ), - 'Publish': grpc.unary_unary_rpc_method_handler( - servicer.Publish, - request_deserializer=api__pb2.PublishRequest.FromString, - response_serializer=api__pb2.PublishResponse.SerializeToString, - ), - 'PublishToSubject': grpc.unary_unary_rpc_method_handler( - servicer.PublishToSubject, - request_deserializer=api__pb2.PublishToSubjectRequest.FromString, - response_serializer=api__pb2.PublishToSubjectResponse.SerializeToString, - ), - } - generic_handler = grpc.method_handlers_generic_handler( - 'proto.API', rpc_method_handlers) - server.add_generic_rpc_handlers((generic_handler,)) + rpc_method_handlers = { + 'CreateStream': grpc.unary_unary_rpc_method_handler( + servicer.CreateStream, + request_deserializer=api__pb2.CreateStreamRequest.FromString, + response_serializer=api__pb2.CreateStreamResponse.SerializeToString, + ), + 'DeleteStream': grpc.unary_unary_rpc_method_handler( + servicer.DeleteStream, + request_deserializer=api__pb2.DeleteStreamRequest.FromString, + response_serializer=api__pb2.DeleteStreamResponse.SerializeToString, + ), + 'PauseStream': grpc.unary_unary_rpc_method_handler( + servicer.PauseStream, + request_deserializer=api__pb2.PauseStreamRequest.FromString, + response_serializer=api__pb2.PauseStreamResponse.SerializeToString, + ), + 'Subscribe': grpc.unary_stream_rpc_method_handler( + servicer.Subscribe, + request_deserializer=api__pb2.SubscribeRequest.FromString, + response_serializer=api__pb2.Message.SerializeToString, + ), + 'FetchMetadata': grpc.unary_unary_rpc_method_handler( + servicer.FetchMetadata, + request_deserializer=api__pb2.FetchMetadataRequest.FromString, + response_serializer=api__pb2.FetchMetadataResponse.SerializeToString, + ), + 'Publish': grpc.unary_unary_rpc_method_handler( + servicer.Publish, + request_deserializer=api__pb2.PublishRequest.FromString, + response_serializer=api__pb2.PublishResponse.SerializeToString, + ), + 'PublishToSubject': grpc.unary_unary_rpc_method_handler( + servicer.PublishToSubject, + request_deserializer=api__pb2.PublishToSubjectRequest.FromString, + response_serializer=api__pb2.PublishToSubjectResponse.SerializeToString, + ), + } + generic_handler = grpc.method_handlers_generic_handler( + 'proto.API', rpc_method_handlers) + server.add_generic_rpc_handlers((generic_handler,)) + + + # This class is part of an EXPERIMENTAL API. +class API(object): + """API is the main Liftbridge server interface clients interact with. + """ + + @staticmethod + def CreateStream(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/proto.API/CreateStream', + api__pb2.CreateStreamRequest.SerializeToString, + api__pb2.CreateStreamResponse.FromString, + options, channel_credentials, + call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def DeleteStream(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/proto.API/DeleteStream', + api__pb2.DeleteStreamRequest.SerializeToString, + api__pb2.DeleteStreamResponse.FromString, + options, channel_credentials, + call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def PauseStream(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/proto.API/PauseStream', + api__pb2.PauseStreamRequest.SerializeToString, + api__pb2.PauseStreamResponse.FromString, + options, channel_credentials, + call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def Subscribe(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_stream(request, target, '/proto.API/Subscribe', + api__pb2.SubscribeRequest.SerializeToString, + api__pb2.Message.FromString, + options, channel_credentials, + call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def FetchMetadata(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/proto.API/FetchMetadata', + api__pb2.FetchMetadataRequest.SerializeToString, + api__pb2.FetchMetadataResponse.FromString, + options, channel_credentials, + call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def Publish(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/proto.API/Publish', + api__pb2.PublishRequest.SerializeToString, + api__pb2.PublishResponse.FromString, + options, channel_credentials, + call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def PublishToSubject(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/proto.API/PublishToSubject', + api__pb2.PublishToSubjectRequest.SerializeToString, + api__pb2.PublishToSubjectResponse.FromString, + options, channel_credentials, + call_credentials, compression, wait_for_ready, timeout, metadata) From 21151ee198c30113b796aff788b78dd574643dba Mon Sep 17 00:00:00 2001 From: Tung Hoang Date: Sat, 23 May 2020 13:55:48 +0200 Subject: [PATCH 2/6] Use int64 instead of Duration in CreateStreamRequest --- Makefile | 6 +- api.proto | 16 +- go/api.pb.go | 479 +++++++++++++++++++++----------------------------- py/api_pb2.py | 149 ++++++++-------- 4 files changed, 279 insertions(+), 371 deletions(-) diff --git a/Makefile b/Makefile index b968c1b..8951293 100644 --- a/Makefile +++ b/Makefile @@ -3,11 +3,7 @@ all: go py .PHONY: go go: - protoc -I. \ - --gofast_out=\ -Mgoogle/protobuf/duration.proto=github.com/gogo/protobuf/types,\ -plugins=grpc:go api.proto - + protoc --gofast_out=plugins=grpc:go api.proto .PHONY: py py: python -m grpc_tools.protoc -I. --python_out=py --grpc_python_out=py api.proto diff --git a/api.proto b/api.proto index c2dec6c..7b3465c 100644 --- a/api.proto +++ b/api.proto @@ -1,6 +1,6 @@ syntax = "proto3"; package proto; -import "google/protobuf/duration.proto"; + option java_package = "io.liftbridge.proto"; // CreateStreamRequest is sent to create a new stream. @@ -10,13 +10,13 @@ message CreateStreamRequest { string group = 3; // Partitions NATS subject amongst group members int32 replicationFactor = 4; // Number of stream replicas int32 partitions = 5; // Number of stream partitions - int64 RetentionMaxBytes =6; // Custom StreamConfig - int64 RetentionMaxMessages =7; // Custom StreamConfig - google.protobuf.Duration RetentionMaxAge =8; // Custom StreamConfig - google.protobuf.Duration CleanerInterval =9; // Custom StreamConfig - int64 SegmentMaxBytes =10; // Custom StreamConfig - google.protobuf.Duration SegmentMaxAge =11; // Custom StreamConfig - int64 CompactMaxGoroutines =12; // Custom StreamConfig + int64 RetentionMaxBytes =6; // Custom StreamConfig + int64 RetentionMaxMessages =7; // Custom StreamConfig + double RetentionMaxAge =8; // Custom StreamConfig + double CleanerInterval =9; // Custom StreamConfig + int64 SegmentMaxBytes =10; // Custom StreamConfig + double SegmentMaxAge =11; // Custom StreamConfig + int64 CompactMaxGoroutines =12; // Custom StreamConfig } // CreateStreamResponse is sent by server after creating a stream. diff --git a/go/api.pb.go b/go/api.pb.go index 55e0623..8ceffa0 100644 --- a/go/api.pb.go +++ b/go/api.pb.go @@ -37,13 +37,14 @@ package proto import proto1 "github.com/golang/protobuf/proto" import fmt "fmt" import math "math" -import google_protobuf "github.com/gogo/protobuf/types" import ( context "golang.org/x/net/context" grpc "google.golang.org/grpc" ) +import encoding_binary "encoding/binary" + import io "io" // Reference imports to suppress errors if they are not otherwise used. @@ -164,18 +165,18 @@ func (StreamMetadata_Error) EnumDescriptor() ([]byte, []int) { return fileDescri // CreateStreamRequest is sent to create a new stream. type CreateStreamRequest struct { - Subject string `protobuf:"bytes,1,opt,name=subject,proto3" json:"subject,omitempty"` - Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` - Group string `protobuf:"bytes,3,opt,name=group,proto3" json:"group,omitempty"` - ReplicationFactor int32 `protobuf:"varint,4,opt,name=replicationFactor,proto3" json:"replicationFactor,omitempty"` - Partitions int32 `protobuf:"varint,5,opt,name=partitions,proto3" json:"partitions,omitempty"` - RetentionMaxBytes int64 `protobuf:"varint,6,opt,name=RetentionMaxBytes,proto3" json:"RetentionMaxBytes,omitempty"` - RetentionMaxMessages int64 `protobuf:"varint,7,opt,name=RetentionMaxMessages,proto3" json:"RetentionMaxMessages,omitempty"` - RetentionMaxAge *google_protobuf.Duration `protobuf:"bytes,8,opt,name=RetentionMaxAge" json:"RetentionMaxAge,omitempty"` - CleanerInterval *google_protobuf.Duration `protobuf:"bytes,9,opt,name=CleanerInterval" json:"CleanerInterval,omitempty"` - SegmentMaxBytes int64 `protobuf:"varint,10,opt,name=SegmentMaxBytes,proto3" json:"SegmentMaxBytes,omitempty"` - SegmentMaxAge *google_protobuf.Duration `protobuf:"bytes,11,opt,name=SegmentMaxAge" json:"SegmentMaxAge,omitempty"` - CompactMaxGoroutines int64 `protobuf:"varint,12,opt,name=CompactMaxGoroutines,proto3" json:"CompactMaxGoroutines,omitempty"` + Subject string `protobuf:"bytes,1,opt,name=subject,proto3" json:"subject,omitempty"` + Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` + Group string `protobuf:"bytes,3,opt,name=group,proto3" json:"group,omitempty"` + ReplicationFactor int32 `protobuf:"varint,4,opt,name=replicationFactor,proto3" json:"replicationFactor,omitempty"` + Partitions int32 `protobuf:"varint,5,opt,name=partitions,proto3" json:"partitions,omitempty"` + RetentionMaxBytes int64 `protobuf:"varint,6,opt,name=RetentionMaxBytes,proto3" json:"RetentionMaxBytes,omitempty"` + RetentionMaxMessages int64 `protobuf:"varint,7,opt,name=RetentionMaxMessages,proto3" json:"RetentionMaxMessages,omitempty"` + RetentionMaxAge float64 `protobuf:"fixed64,8,opt,name=RetentionMaxAge,proto3" json:"RetentionMaxAge,omitempty"` + CleanerInterval float64 `protobuf:"fixed64,9,opt,name=CleanerInterval,proto3" json:"CleanerInterval,omitempty"` + SegmentMaxBytes int64 `protobuf:"varint,10,opt,name=SegmentMaxBytes,proto3" json:"SegmentMaxBytes,omitempty"` + SegmentMaxAge float64 `protobuf:"fixed64,11,opt,name=SegmentMaxAge,proto3" json:"SegmentMaxAge,omitempty"` + CompactMaxGoroutines int64 `protobuf:"varint,12,opt,name=CompactMaxGoroutines,proto3" json:"CompactMaxGoroutines,omitempty"` } func (m *CreateStreamRequest) Reset() { *m = CreateStreamRequest{} } @@ -232,18 +233,18 @@ func (m *CreateStreamRequest) GetRetentionMaxMessages() int64 { return 0 } -func (m *CreateStreamRequest) GetRetentionMaxAge() *google_protobuf.Duration { +func (m *CreateStreamRequest) GetRetentionMaxAge() float64 { if m != nil { return m.RetentionMaxAge } - return nil + return 0 } -func (m *CreateStreamRequest) GetCleanerInterval() *google_protobuf.Duration { +func (m *CreateStreamRequest) GetCleanerInterval() float64 { if m != nil { return m.CleanerInterval } - return nil + return 0 } func (m *CreateStreamRequest) GetSegmentMaxBytes() int64 { @@ -253,11 +254,11 @@ func (m *CreateStreamRequest) GetSegmentMaxBytes() int64 { return 0 } -func (m *CreateStreamRequest) GetSegmentMaxAge() *google_protobuf.Duration { +func (m *CreateStreamRequest) GetSegmentMaxAge() float64 { if m != nil { return m.SegmentMaxAge } - return nil + return 0 } func (m *CreateStreamRequest) GetCompactMaxGoroutines() int64 { @@ -1556,40 +1557,28 @@ func (m *CreateStreamRequest) MarshalTo(dAtA []byte) (int, error) { i++ i = encodeVarintApi(dAtA, i, uint64(m.RetentionMaxMessages)) } - if m.RetentionMaxAge != nil { - dAtA[i] = 0x42 + if m.RetentionMaxAge != 0 { + dAtA[i] = 0x41 i++ - i = encodeVarintApi(dAtA, i, uint64(m.RetentionMaxAge.Size())) - n1, err := m.RetentionMaxAge.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n1 + encoding_binary.LittleEndian.PutUint64(dAtA[i:], uint64(math.Float64bits(float64(m.RetentionMaxAge)))) + i += 8 } - if m.CleanerInterval != nil { - dAtA[i] = 0x4a + if m.CleanerInterval != 0 { + dAtA[i] = 0x49 i++ - i = encodeVarintApi(dAtA, i, uint64(m.CleanerInterval.Size())) - n2, err := m.CleanerInterval.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n2 + encoding_binary.LittleEndian.PutUint64(dAtA[i:], uint64(math.Float64bits(float64(m.CleanerInterval)))) + i += 8 } if m.SegmentMaxBytes != 0 { dAtA[i] = 0x50 i++ i = encodeVarintApi(dAtA, i, uint64(m.SegmentMaxBytes)) } - if m.SegmentMaxAge != nil { - dAtA[i] = 0x5a + if m.SegmentMaxAge != 0 { + dAtA[i] = 0x59 i++ - i = encodeVarintApi(dAtA, i, uint64(m.SegmentMaxAge.Size())) - n3, err := m.SegmentMaxAge.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n3 + encoding_binary.LittleEndian.PutUint64(dAtA[i:], uint64(math.Float64bits(float64(m.SegmentMaxAge)))) + i += 8 } if m.CompactMaxGoroutines != 0 { dAtA[i] = 0x60 @@ -1681,22 +1670,22 @@ func (m *PauseStreamRequest) MarshalTo(dAtA []byte) (int, error) { i += copy(dAtA[i:], m.Name) } if len(m.Partitions) > 0 { - dAtA5 := make([]byte, len(m.Partitions)*10) - var j4 int + dAtA2 := make([]byte, len(m.Partitions)*10) + var j1 int for _, num1 := range m.Partitions { num := uint64(num1) for num >= 1<<7 { - dAtA5[j4] = uint8(uint64(num)&0x7f | 0x80) + dAtA2[j1] = uint8(uint64(num)&0x7f | 0x80) num >>= 7 - j4++ + j1++ } - dAtA5[j4] = uint8(num) - j4++ + dAtA2[j1] = uint8(num) + j1++ } dAtA[i] = 0x12 i++ - i = encodeVarintApi(dAtA, i, uint64(j4)) - i += copy(dAtA[i:], dAtA5[:j4]) + i = encodeVarintApi(dAtA, i, uint64(j1)) + i += copy(dAtA[i:], dAtA2[:j1]) } if m.ResumeAll { dAtA[i] = 0x18 @@ -1958,11 +1947,11 @@ func (m *PublishResponse) MarshalTo(dAtA []byte) (int, error) { dAtA[i] = 0xa i++ i = encodeVarintApi(dAtA, i, uint64(m.Ack.Size())) - n6, err := m.Ack.MarshalTo(dAtA[i:]) + n3, err := m.Ack.MarshalTo(dAtA[i:]) if err != nil { return 0, err } - i += n6 + i += n3 } return i, nil } @@ -2062,11 +2051,11 @@ func (m *PublishToSubjectResponse) MarshalTo(dAtA []byte) (int, error) { dAtA[i] = 0xa i++ i = encodeVarintApi(dAtA, i, uint64(m.Ack.Size())) - n7, err := m.Ack.MarshalTo(dAtA[i:]) + n4, err := m.Ack.MarshalTo(dAtA[i:]) if err != nil { return 0, err } - i += n7 + i += n4 } return i, nil } @@ -2157,11 +2146,11 @@ func (m *StreamMetadata) MarshalTo(dAtA []byte) (int, error) { dAtA[i] = 0x12 i++ i = encodeVarintApi(dAtA, i, uint64(v.Size())) - n8, err := v.MarshalTo(dAtA[i:]) + n5, err := v.MarshalTo(dAtA[i:]) if err != nil { return 0, err } - i += n8 + i += n5 } } } @@ -2410,22 +2399,22 @@ func (m *CreateStreamOp) MarshalTo(dAtA []byte) (int, error) { i += copy(dAtA[i:], m.Stream) } if len(m.Partitions) > 0 { - dAtA10 := make([]byte, len(m.Partitions)*10) - var j9 int + dAtA7 := make([]byte, len(m.Partitions)*10) + var j6 int for _, num1 := range m.Partitions { num := uint64(num1) for num >= 1<<7 { - dAtA10[j9] = uint8(uint64(num)&0x7f | 0x80) + dAtA7[j6] = uint8(uint64(num)&0x7f | 0x80) num >>= 7 - j9++ + j6++ } - dAtA10[j9] = uint8(num) - j9++ + dAtA7[j6] = uint8(num) + j6++ } dAtA[i] = 0x12 i++ - i = encodeVarintApi(dAtA, i, uint64(j9)) - i += copy(dAtA[i:], dAtA10[:j9]) + i = encodeVarintApi(dAtA, i, uint64(j6)) + i += copy(dAtA[i:], dAtA7[:j6]) } return i, nil } @@ -2476,22 +2465,22 @@ func (m *PauseStreamOp) MarshalTo(dAtA []byte) (int, error) { i += copy(dAtA[i:], m.Stream) } if len(m.Partitions) > 0 { - dAtA12 := make([]byte, len(m.Partitions)*10) - var j11 int + dAtA9 := make([]byte, len(m.Partitions)*10) + var j8 int for _, num1 := range m.Partitions { num := uint64(num1) for num >= 1<<7 { - dAtA12[j11] = uint8(uint64(num)&0x7f | 0x80) + dAtA9[j8] = uint8(uint64(num)&0x7f | 0x80) num >>= 7 - j11++ + j8++ } - dAtA12[j11] = uint8(num) - j11++ + dAtA9[j8] = uint8(num) + j8++ } dAtA[i] = 0x12 i++ - i = encodeVarintApi(dAtA, i, uint64(j11)) - i += copy(dAtA[i:], dAtA12[:j11]) + i = encodeVarintApi(dAtA, i, uint64(j8)) + i += copy(dAtA[i:], dAtA9[:j8]) } if m.ResumeAll { dAtA[i] = 0x18 @@ -2528,22 +2517,22 @@ func (m *ResumeStreamOp) MarshalTo(dAtA []byte) (int, error) { i += copy(dAtA[i:], m.Stream) } if len(m.Partitions) > 0 { - dAtA14 := make([]byte, len(m.Partitions)*10) - var j13 int + dAtA11 := make([]byte, len(m.Partitions)*10) + var j10 int for _, num1 := range m.Partitions { num := uint64(num1) for num >= 1<<7 { - dAtA14[j13] = uint8(uint64(num)&0x7f | 0x80) + dAtA11[j10] = uint8(uint64(num)&0x7f | 0x80) num >>= 7 - j13++ + j10++ } - dAtA14[j13] = uint8(num) - j13++ + dAtA11[j10] = uint8(num) + j10++ } dAtA[i] = 0x12 i++ - i = encodeVarintApi(dAtA, i, uint64(j13)) - i += copy(dAtA[i:], dAtA14[:j13]) + i = encodeVarintApi(dAtA, i, uint64(j10)) + i += copy(dAtA[i:], dAtA11[:j10]) } return i, nil } @@ -2577,41 +2566,41 @@ func (m *ActivityStreamEvent) MarshalTo(dAtA []byte) (int, error) { dAtA[i] = 0x1a i++ i = encodeVarintApi(dAtA, i, uint64(m.CreateStreamOp.Size())) - n15, err := m.CreateStreamOp.MarshalTo(dAtA[i:]) + n12, err := m.CreateStreamOp.MarshalTo(dAtA[i:]) if err != nil { return 0, err } - i += n15 + i += n12 } if m.DeleteStreamOp != nil { dAtA[i] = 0x22 i++ i = encodeVarintApi(dAtA, i, uint64(m.DeleteStreamOp.Size())) - n16, err := m.DeleteStreamOp.MarshalTo(dAtA[i:]) + n13, err := m.DeleteStreamOp.MarshalTo(dAtA[i:]) if err != nil { return 0, err } - i += n16 + i += n13 } if m.PauseStreamOp != nil { dAtA[i] = 0x2a i++ i = encodeVarintApi(dAtA, i, uint64(m.PauseStreamOp.Size())) - n17, err := m.PauseStreamOp.MarshalTo(dAtA[i:]) + n14, err := m.PauseStreamOp.MarshalTo(dAtA[i:]) if err != nil { return 0, err } - i += n17 + i += n14 } if m.ResumeStreamOp != nil { dAtA[i] = 0x32 i++ i = encodeVarintApi(dAtA, i, uint64(m.ResumeStreamOp.Size())) - n18, err := m.ResumeStreamOp.MarshalTo(dAtA[i:]) + n15, err := m.ResumeStreamOp.MarshalTo(dAtA[i:]) if err != nil { return 0, err } - i += n18 + i += n15 } return i, nil } @@ -2652,20 +2641,17 @@ func (m *CreateStreamRequest) Size() (n int) { if m.RetentionMaxMessages != 0 { n += 1 + sovApi(uint64(m.RetentionMaxMessages)) } - if m.RetentionMaxAge != nil { - l = m.RetentionMaxAge.Size() - n += 1 + l + sovApi(uint64(l)) + if m.RetentionMaxAge != 0 { + n += 9 } - if m.CleanerInterval != nil { - l = m.CleanerInterval.Size() - n += 1 + l + sovApi(uint64(l)) + if m.CleanerInterval != 0 { + n += 9 } if m.SegmentMaxBytes != 0 { n += 1 + sovApi(uint64(m.SegmentMaxBytes)) } - if m.SegmentMaxAge != nil { - l = m.SegmentMaxAge.Size() - n += 1 + l + sovApi(uint64(l)) + if m.SegmentMaxAge != 0 { + n += 9 } if m.CompactMaxGoroutines != 0 { n += 1 + sovApi(uint64(m.CompactMaxGoroutines)) @@ -3341,71 +3327,27 @@ func (m *CreateStreamRequest) Unmarshal(dAtA []byte) error { } } case 8: - if wireType != 2 { + if wireType != 1 { return fmt.Errorf("proto: wrong wireType = %d for field RetentionMaxAge", wireType) } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowApi - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthApi - } - postIndex := iNdEx + msglen - if postIndex > l { + var v uint64 + if (iNdEx + 8) > l { return io.ErrUnexpectedEOF } - if m.RetentionMaxAge == nil { - m.RetentionMaxAge = &google_protobuf.Duration{} - } - if err := m.RetentionMaxAge.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex + v = uint64(encoding_binary.LittleEndian.Uint64(dAtA[iNdEx:])) + iNdEx += 8 + m.RetentionMaxAge = float64(math.Float64frombits(v)) case 9: - if wireType != 2 { + if wireType != 1 { return fmt.Errorf("proto: wrong wireType = %d for field CleanerInterval", wireType) } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowApi - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthApi - } - postIndex := iNdEx + msglen - if postIndex > l { + var v uint64 + if (iNdEx + 8) > l { return io.ErrUnexpectedEOF } - if m.CleanerInterval == nil { - m.CleanerInterval = &google_protobuf.Duration{} - } - if err := m.CleanerInterval.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex + v = uint64(encoding_binary.LittleEndian.Uint64(dAtA[iNdEx:])) + iNdEx += 8 + m.CleanerInterval = float64(math.Float64frombits(v)) case 10: if wireType != 0 { return fmt.Errorf("proto: wrong wireType = %d for field SegmentMaxBytes", wireType) @@ -3426,38 +3368,16 @@ func (m *CreateStreamRequest) Unmarshal(dAtA []byte) error { } } case 11: - if wireType != 2 { + if wireType != 1 { return fmt.Errorf("proto: wrong wireType = %d for field SegmentMaxAge", wireType) } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowApi - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthApi - } - postIndex := iNdEx + msglen - if postIndex > l { + var v uint64 + if (iNdEx + 8) > l { return io.ErrUnexpectedEOF } - if m.SegmentMaxAge == nil { - m.SegmentMaxAge = &google_protobuf.Duration{} - } - if err := m.SegmentMaxAge.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex + v = uint64(encoding_binary.LittleEndian.Uint64(dAtA[iNdEx:])) + iNdEx += 8 + m.SegmentMaxAge = float64(math.Float64frombits(v)) case 12: if wireType != 0 { return fmt.Errorf("proto: wrong wireType = %d for field CompactMaxGoroutines", wireType) @@ -7170,103 +7090,100 @@ var ( func init() { proto1.RegisterFile("api.proto", fileDescriptorApi) } var fileDescriptorApi = []byte{ - // 1556 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xbc, 0x58, 0xcd, 0x6e, 0xdb, 0xc6, - 0x13, 0x17, 0x49, 0x7d, 0x98, 0xa3, 0x0f, 0x33, 0xeb, 0x8f, 0x30, 0x4a, 0xe0, 0xbf, 0xc1, 0x7f, - 0xd2, 0xb8, 0x6e, 0xa1, 0x38, 0x2a, 0x0a, 0x04, 0x46, 0x8b, 0x96, 0xb6, 0xe9, 0x46, 0x88, 0x6d, - 0x09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b, 0xf0, 0xea, 0xcd, 0x86, 0xf0, 0xfa, 0xcd, 0x86, 0xf0, 0xfb, 0x9b, 0x0d, 0xe1, - 0xc7, 0x3f, 0x36, 0x72, 0xb0, 0x62, 0x3b, 0x8d, 0x91, 0x7d, 0xe6, 0xf7, 0x5d, 0x7b, 0x30, 0x8c, - 0xfe, 0x51, 0x28, 0xb2, 0x9f, 0xcf, 0xfe, 0x0e, 0x00, 0x00, 0xff, 0xff, 0x0a, 0x0d, 0x9e, 0x24, - 0x72, 0x12, 0x00, 0x00, + // 1517 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xbc, 0x57, 0xdb, 0x6e, 0xdb, 0x46, + 0x13, 0x16, 0x49, 0x1d, 0xcc, 0xd1, 0x21, 0xcc, 0xfa, 0x10, 0xfe, 0x4a, 0xe0, 0xdf, 0xe0, 0x9f, + 0xfc, 0x71, 0xdd, 0xc2, 0x75, 0x54, 0x14, 0x08, 0x8c, 0x16, 0x28, 0xed, 0xd0, 0x8d, 0x10, 0xdb, + 0x12, 0x56, 0x32, 0x82, 0x5e, 0x14, 0x01, 0x45, 0xad, 0x6d, 0xd6, 0x92, 0xc8, 0x92, 0x94, 0x11, + 0xbf, 0x49, 0x9f, 0xa4, 0x2f, 0xd0, 0x8b, 0xe6, 0x32, 0xd7, 0xbd, 0x6a, 0xd3, 0x87, 0xe8, 0x5d, + 0x51, 0xec, 0xf2, 0xb4, 0xa4, 0xe9, 0x28, 0x69, 0x91, 0x5e, 0x91, 0xfb, 0xed, 0xec, 0xcc, 0xee, + 0x7c, 0x33, 0xb3, 0xb3, 0x20, 0x9b, 0xae, 0xbd, 0xed, 0x7a, 0x4e, 0xe0, 0xa0, 0x0a, 0xfb, 0x68, + 0xbf, 0x49, 0xb0, 0xbc, 0xef, 0x11, 0x33, 0x20, 0x83, 0xc0, 0x23, 0xe6, 0x14, 0x93, 0xef, 0xe7, + 0xc4,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x2a, + 0x28, 0xde, 0x71, 0xd1, 0x83, 0xa7, 0x7d, 0xaf, 0x78, 0x32, 0xd9, 0xc7, 0x2e, 0xd4, 0xa2, 0x06, + 0x0d, 0xad, 0x16, 0x3e, 0x05, 0xda, 0x6b, 0x79, 0x38, 0x59, 0xbb, 0x0f, 0x8d, 0x08, 0xd4, 0xfd, + 0xab, 0x99, 0xf5, 0xde, 0x0a, 0x36, 0x85, 0x1d, 0x01, 0x9d, 0x80, 0x92, 0xef, 0x10, 0xd1, 0xfa, + 0xdb, 0x3b, 0xe3, 0xf6, 0x7f, 0x6f, 0x9c, 0x8f, 0x55, 0xef, 0x3d, 0x78, 0xf5, 0x66, 0x5d, 0x78, + 0xfd, 0x66, 0x5d, 0xf8, 0xf5, 0xcd, 0xba, 0xf0, 0xc3, 0xef, 0xeb, 0x25, 0x58, 0xb6, 0x9d, 0xed, + 0x89, 0x7d, 0x1a, 0x8c, 0x3c, 0x7b, 0x7c, 0x46, 0x42, 0x0d, 0xa3, 0x2a, 0xfb, 0x7c, 0xf6, 0x57, + 0x00, 0x00, 0x00, 0xff, 0xff, 0x18, 0xe3, 0x88, 0x5b, 0x01, 0x12, 0x00, 0x00, } diff --git a/py/api_pb2.py b/py/api_pb2.py index ba08169..539729b 100644 --- a/py/api_pb2.py +++ b/py/api_pb2.py @@ -12,7 +12,6 @@ _sym_db = _symbol_database.Default() -from google.protobuf import duration_pb2 as google_dot_protobuf_dot_duration__pb2 DESCRIPTOR = _descriptor.FileDescriptor( @@ -20,9 +19,8 @@ package='proto', syntax='proto3', serialized_options=b'\n\023io.liftbridge.proto', - serialized_pb=b'\n\tapi.proto\x12\x05proto\x1a\x1egoogle/protobuf/duration.proto\"\xfc\x02\n\x13\x43reateStreamRequest\x12\x0f\n\x07subject\x18\x01 \x01(\t\x12\x0c\n\x04name\x18\x02 \x01(\t\x12\r\n\x05group\x18\x03 \x01(\t\x12\x19\n\x11replicationFactor\x18\x04 \x01(\x05\x12\x12\n\npartitions\x18\x05 \x01(\x05\x12\x19\n\x11RetentionMaxBytes\x18\x06 \x01(\x03\x12\x1c\n\x14RetentionMaxMessages\x18\x07 \x01(\x03\x12\x32\n\x0fRetentionMaxAge\x18\x08 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x32\n\x0f\x43leanerInterval\x18\t \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x17\n\x0fSegmentMaxBytes\x18\n \x01(\x03\x12\x30\n\rSegmentMaxAge\x18\x0b \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x1c\n\x14\x43ompactMaxGoroutines\x18\x0c \x01(\x03\"\x16\n\x14\x43reateStreamResponse\"#\n\x13\x44\x65leteStreamRequest\x12\x0c\n\x04name\x18\x01 \x01(\t\"\x16\n\x14\x44\x65leteStreamResponse\"I\n\x12PauseStreamRequest\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x12\n\npartitions\x18\x02 \x03(\x05\x12\x11\n\tresumeAll\x18\x03 \x01(\x08\"\x15\n\x13PauseStreamResponse\"\xaf\x01\n\x10SubscribeRequest\x12\x0e\n\x06stream\x18\x01 \x01(\t\x12\x11\n\tpartition\x18\x02 \x01(\x05\x12+\n\rstartPosition\x18\x03 \x01(\x0e\x32\x14.proto.StartPosition\x12\x17\n\x0bstartOffset\x18\x04 \x01(\x03\x42\x02\x30\x01\x12\x1a\n\x0estartTimestamp\x18\x05 \x01(\x03\x42\x02\x30\x01\x12\x16\n\x0ereadISRReplica\x18\x06 \x01(\x08\"\'\n\x14\x46\x65tchMetadataRequest\x12\x0f\n\x07streams\x18\x01 \x03(\t\"`\n\x15\x46\x65tchMetadataResponse\x12\x1e\n\x07\x62rokers\x18\x01 \x03(\x0b\x32\r.proto.Broker\x12\'\n\x08metadata\x18\x02 \x03(\x0b\x32\x15.proto.StreamMetadata\"\x82\x02\n\x0ePublishRequest\x12\x0b\n\x03key\x18\x01 \x01(\x0c\x12\r\n\x05value\x18\x02 \x01(\x0c\x12\x0e\n\x06stream\x18\x03 \x01(\t\x12\x11\n\tpartition\x18\x04 \x01(\x05\x12\x33\n\x07headers\x18\x05 \x03(\x0b\x32\".proto.PublishRequest.HeadersEntry\x12\x10\n\x08\x61\x63kInbox\x18\x06 \x01(\t\x12\x15\n\rcorrelationId\x18\x07 \x01(\t\x12#\n\tackPolicy\x18\x08 \x01(\x0e\x32\x10.proto.AckPolicy\x1a.\n\x0cHeadersEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\x0c:\x02\x38\x01\"*\n\x0fPublishResponse\x12\x17\n\x03\x61\x63k\x18\x01 \x01(\x0b\x32\n.proto.Ack\"\x82\x02\n\x17PublishToSubjectRequest\x12\x0b\n\x03key\x18\x01 \x01(\x0c\x12\r\n\x05value\x18\x02 \x01(\x0c\x12\x0f\n\x07subject\x18\x03 \x01(\t\x12<\n\x07headers\x18\x04 \x03(\x0b\x32+.proto.PublishToSubjectRequest.HeadersEntry\x12\x10\n\x08\x61\x63kInbox\x18\x05 \x01(\t\x12\x15\n\rcorrelationId\x18\x06 \x01(\t\x12#\n\tackPolicy\x18\x07 \x01(\x0e\x32\x10.proto.AckPolicy\x1a.\n\x0cHeadersEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\x0c:\x02\x38\x01\"3\n\x18PublishToSubjectResponse\x12\x17\n\x03\x61\x63k\x18\x01 \x01(\x0b\x32\n.proto.Ack\"0\n\x06\x42roker\x12\n\n\x02id\x18\x01 \x01(\t\x12\x0c\n\x04host\x18\x02 \x01(\t\x12\x0c\n\x04port\x18\x03 \x01(\x05\"\x88\x02\n\x0eStreamMetadata\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x0f\n\x07subject\x18\x02 \x01(\t\x12*\n\x05\x65rror\x18\x03 \x01(\x0e\x32\x1b.proto.StreamMetadata.Error\x12\x39\n\npartitions\x18\x04 \x03(\x0b\x32%.proto.StreamMetadata.PartitionsEntry\x1aK\n\x0fPartitionsEntry\x12\x0b\n\x03key\x18\x01 \x01(\x05\x12\'\n\x05value\x18\x02 \x01(\x0b\x32\x18.proto.PartitionMetadata:\x02\x38\x01\"#\n\x05\x45rror\x12\x06\n\x02OK\x10\x00\x12\x12\n\x0eUNKNOWN_STREAM\x10\x01\"N\n\x11PartitionMetadata\x12\n\n\x02id\x18\x01 \x01(\x05\x12\x0e\n\x06leader\x18\x02 \x01(\t\x12\x10\n\x08replicas\x18\x03 \x03(\t\x12\x0b\n\x03isr\x18\x04 \x03(\t\"\xc6\x02\n\x07Message\x12\x12\n\x06offset\x18\x01 \x01(\x03\x42\x02\x30\x01\x12\x0b\n\x03key\x18\x02 \x01(\x0c\x12\r\n\x05value\x18\x03 \x01(\x0c\x12\x15\n\ttimestamp\x18\x04 \x01(\x03\x42\x02\x30\x01\x12\x0e\n\x06stream\x18\x05 \x01(\t\x12\x11\n\tpartition\x18\x06 \x01(\x05\x12\x0f\n\x07subject\x18\x07 \x01(\t\x12\x14\n\x0creplySubject\x18\x08 \x01(\t\x12,\n\x07headers\x18\t \x03(\x0b\x32\x1b.proto.Message.HeadersEntry\x12\x10\n\x08\x61\x63kInbox\x18\n \x01(\t\x12\x15\n\rcorrelationId\x18\x0b \x01(\t\x12#\n\tackPolicy\x18\x0c \x01(\x0e\x32\x10.proto.AckPolicy\x1a.\n\x0cHeadersEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\x0c:\x02\x38\x01\"\xa5\x01\n\x03\x41\x63k\x12\x0e\n\x06stream\x18\x01 \x01(\t\x12\x18\n\x10partitionSubject\x18\x02 \x01(\t\x12\x12\n\nmsgSubject\x18\x03 \x01(\t\x12\x12\n\x06offset\x18\x04 \x01(\x03\x42\x02\x30\x01\x12\x10\n\x08\x61\x63kInbox\x18\x05 \x01(\t\x12\x15\n\rcorrelationId\x18\x06 \x01(\t\x12#\n\tackPolicy\x18\x07 \x01(\x0e\x32\x10.proto.AckPolicy\"4\n\x0e\x43reateStreamOp\x12\x0e\n\x06stream\x18\x01 \x01(\t\x12\x12\n\npartitions\x18\x02 \x03(\x05\" \n\x0e\x44\x65leteStreamOp\x12\x0e\n\x06stream\x18\x01 \x01(\t\"F\n\rPauseStreamOp\x12\x0e\n\x06stream\x18\x01 \x01(\t\x12\x12\n\npartitions\x18\x02 \x03(\x05\x12\x11\n\tresumeAll\x18\x03 \x01(\x08\"4\n\x0eResumeStreamOp\x12\x0e\n\x06stream\x18\x01 \x01(\t\x12\x12\n\npartitions\x18\x02 \x03(\x05\"\x80\x02\n\x13\x41\x63tivityStreamEvent\x12\n\n\x02id\x18\x01 \x01(\x04\x12#\n\x02op\x18\x02 \x01(\x0e\x32\x17.proto.ActivityStreamOp\x12-\n\x0e\x63reateStreamOp\x18\x03 \x01(\x0b\x32\x15.proto.CreateStreamOp\x12-\n\x0e\x64\x65leteStreamOp\x18\x04 \x01(\x0b\x32\x15.proto.DeleteStreamOp\x12+\n\rpauseStreamOp\x18\x05 \x01(\x0b\x32\x14.proto.PauseStreamOp\x12-\n\x0eresumeStreamOp\x18\x06 \x01(\x0b\x32\x15.proto.ResumeStreamOp*R\n\rStartPosition\x12\x0c\n\x08NEW_ONLY\x10\x00\x12\n\n\x06OFFSET\x10\x01\x12\x0c\n\x08\x45\x41RLIEST\x10\x02\x12\n\n\x06LATEST\x10\x03\x12\r\n\tTIMESTAMP\x10\x04**\n\tAckPolicy\x12\n\n\x06LEADER\x10\x00\x12\x07\n\x03\x41LL\x10\x01\x12\x08\n\x04NONE\x10\x02*]\n\x10\x41\x63tivityStreamOp\x12\x11\n\rCREATE_STREAM\x10\x00\x12\x11\n\rDELETE_STREAM\x10\x01\x12\x10\n\x0cPAUSE_STREAM\x10\x02\x12\x11\n\rRESUME_STREAM\x10\x03\x32\xc3\x04\n\x03\x41PI\x12I\n\x0c\x43reateStream\x12\x1a.proto.CreateStreamRequest\x1a\x1b.proto.CreateStreamResponse\"\x00\x12I\n\x0c\x44\x65leteStream\x12\x1a.proto.DeleteStreamRequest\x1a\x1b.proto.DeleteStreamResponse\"\x00\x12\x46\n\x0bPauseStream\x12\x19.proto.PauseStreamRequest\x1a\x1a.proto.PauseStreamResponse\"\x00\x12\x38\n\tSubscribe\x12\x17.proto.SubscribeRequest\x1a\x0e.proto.Message\"\x00\x30\x01\x12L\n\rFetchMetadata\x12\x1b.proto.FetchMetadataRequest\x1a\x1c.proto.FetchMetadataResponse\"\x00\x12:\n\x07Publish\x12\x15.proto.PublishRequest\x1a\x16.proto.PublishResponse\"\x00\x12\x43\n\x0cPublishAsync\x12\x15.proto.PublishRequest\x1a\x16.proto.PublishResponse\"\x00(\x01\x30\x01\x12U\n\x10PublishToSubject\x12\x1e.proto.PublishToSubjectRequest\x1a\x1f.proto.PublishToSubjectResponse\"\x00\x42\x15\n\x13io.liftbridge.protob\x06proto3' - , - dependencies=[google_dot_protobuf_dot_duration__pb2.DESCRIPTOR,]) + serialized_pb=b'\n\tapi.proto\x12\x05proto\"\xab\x02\n\x13\x43reateStreamRequest\x12\x0f\n\x07subject\x18\x01 \x01(\t\x12\x0c\n\x04name\x18\x02 \x01(\t\x12\r\n\x05group\x18\x03 \x01(\t\x12\x19\n\x11replicationFactor\x18\x04 \x01(\x05\x12\x12\n\npartitions\x18\x05 \x01(\x05\x12\x19\n\x11RetentionMaxBytes\x18\x06 \x01(\x03\x12\x1c\n\x14RetentionMaxMessages\x18\x07 \x01(\x03\x12\x17\n\x0fRetentionMaxAge\x18\x08 \x01(\x01\x12\x17\n\x0f\x43leanerInterval\x18\t \x01(\x01\x12\x17\n\x0fSegmentMaxBytes\x18\n \x01(\x03\x12\x15\n\rSegmentMaxAge\x18\x0b \x01(\x01\x12\x1c\n\x14\x43ompactMaxGoroutines\x18\x0c \x01(\x03\"\x16\n\x14\x43reateStreamResponse\"#\n\x13\x44\x65leteStreamRequest\x12\x0c\n\x04name\x18\x01 \x01(\t\"\x16\n\x14\x44\x65leteStreamResponse\"I\n\x12PauseStreamRequest\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x12\n\npartitions\x18\x02 \x03(\x05\x12\x11\n\tresumeAll\x18\x03 \x01(\x08\"\x15\n\x13PauseStreamResponse\"\xaf\x01\n\x10SubscribeRequest\x12\x0e\n\x06stream\x18\x01 \x01(\t\x12\x11\n\tpartition\x18\x02 \x01(\x05\x12+\n\rstartPosition\x18\x03 \x01(\x0e\x32\x14.proto.StartPosition\x12\x17\n\x0bstartOffset\x18\x04 \x01(\x03\x42\x02\x30\x01\x12\x1a\n\x0estartTimestamp\x18\x05 \x01(\x03\x42\x02\x30\x01\x12\x16\n\x0ereadISRReplica\x18\x06 \x01(\x08\"\'\n\x14\x46\x65tchMetadataRequest\x12\x0f\n\x07streams\x18\x01 \x03(\t\"`\n\x15\x46\x65tchMetadataResponse\x12\x1e\n\x07\x62rokers\x18\x01 \x03(\x0b\x32\r.proto.Broker\x12\'\n\x08metadata\x18\x02 \x03(\x0b\x32\x15.proto.StreamMetadata\"\x82\x02\n\x0ePublishRequest\x12\x0b\n\x03key\x18\x01 \x01(\x0c\x12\r\n\x05value\x18\x02 \x01(\x0c\x12\x0e\n\x06stream\x18\x03 \x01(\t\x12\x11\n\tpartition\x18\x04 \x01(\x05\x12\x33\n\x07headers\x18\x05 \x03(\x0b\x32\".proto.PublishRequest.HeadersEntry\x12\x10\n\x08\x61\x63kInbox\x18\x06 \x01(\t\x12\x15\n\rcorrelationId\x18\x07 \x01(\t\x12#\n\tackPolicy\x18\x08 \x01(\x0e\x32\x10.proto.AckPolicy\x1a.\n\x0cHeadersEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\x0c:\x02\x38\x01\"*\n\x0fPublishResponse\x12\x17\n\x03\x61\x63k\x18\x01 \x01(\x0b\x32\n.proto.Ack\"\x82\x02\n\x17PublishToSubjectRequest\x12\x0b\n\x03key\x18\x01 \x01(\x0c\x12\r\n\x05value\x18\x02 \x01(\x0c\x12\x0f\n\x07subject\x18\x03 \x01(\t\x12<\n\x07headers\x18\x04 \x03(\x0b\x32+.proto.PublishToSubjectRequest.HeadersEntry\x12\x10\n\x08\x61\x63kInbox\x18\x05 \x01(\t\x12\x15\n\rcorrelationId\x18\x06 \x01(\t\x12#\n\tackPolicy\x18\x07 \x01(\x0e\x32\x10.proto.AckPolicy\x1a.\n\x0cHeadersEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\x0c:\x02\x38\x01\"3\n\x18PublishToSubjectResponse\x12\x17\n\x03\x61\x63k\x18\x01 \x01(\x0b\x32\n.proto.Ack\"0\n\x06\x42roker\x12\n\n\x02id\x18\x01 \x01(\t\x12\x0c\n\x04host\x18\x02 \x01(\t\x12\x0c\n\x04port\x18\x03 \x01(\x05\"\x88\x02\n\x0eStreamMetadata\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x0f\n\x07subject\x18\x02 \x01(\t\x12*\n\x05\x65rror\x18\x03 \x01(\x0e\x32\x1b.proto.StreamMetadata.Error\x12\x39\n\npartitions\x18\x04 \x03(\x0b\x32%.proto.StreamMetadata.PartitionsEntry\x1aK\n\x0fPartitionsEntry\x12\x0b\n\x03key\x18\x01 \x01(\x05\x12\'\n\x05value\x18\x02 \x01(\x0b\x32\x18.proto.PartitionMetadata:\x02\x38\x01\"#\n\x05\x45rror\x12\x06\n\x02OK\x10\x00\x12\x12\n\x0eUNKNOWN_STREAM\x10\x01\"N\n\x11PartitionMetadata\x12\n\n\x02id\x18\x01 \x01(\x05\x12\x0e\n\x06leader\x18\x02 \x01(\t\x12\x10\n\x08replicas\x18\x03 \x03(\t\x12\x0b\n\x03isr\x18\x04 \x03(\t\"\xc6\x02\n\x07Message\x12\x12\n\x06offset\x18\x01 \x01(\x03\x42\x02\x30\x01\x12\x0b\n\x03key\x18\x02 \x01(\x0c\x12\r\n\x05value\x18\x03 \x01(\x0c\x12\x15\n\ttimestamp\x18\x04 \x01(\x03\x42\x02\x30\x01\x12\x0e\n\x06stream\x18\x05 \x01(\t\x12\x11\n\tpartition\x18\x06 \x01(\x05\x12\x0f\n\x07subject\x18\x07 \x01(\t\x12\x14\n\x0creplySubject\x18\x08 \x01(\t\x12,\n\x07headers\x18\t \x03(\x0b\x32\x1b.proto.Message.HeadersEntry\x12\x10\n\x08\x61\x63kInbox\x18\n \x01(\t\x12\x15\n\rcorrelationId\x18\x0b \x01(\t\x12#\n\tackPolicy\x18\x0c \x01(\x0e\x32\x10.proto.AckPolicy\x1a.\n\x0cHeadersEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\x0c:\x02\x38\x01\"\xa5\x01\n\x03\x41\x63k\x12\x0e\n\x06stream\x18\x01 \x01(\t\x12\x18\n\x10partitionSubject\x18\x02 \x01(\t\x12\x12\n\nmsgSubject\x18\x03 \x01(\t\x12\x12\n\x06offset\x18\x04 \x01(\x03\x42\x02\x30\x01\x12\x10\n\x08\x61\x63kInbox\x18\x05 \x01(\t\x12\x15\n\rcorrelationId\x18\x06 \x01(\t\x12#\n\tackPolicy\x18\x07 \x01(\x0e\x32\x10.proto.AckPolicy\"4\n\x0e\x43reateStreamOp\x12\x0e\n\x06stream\x18\x01 \x01(\t\x12\x12\n\npartitions\x18\x02 \x03(\x05\" \n\x0e\x44\x65leteStreamOp\x12\x0e\n\x06stream\x18\x01 \x01(\t\"F\n\rPauseStreamOp\x12\x0e\n\x06stream\x18\x01 \x01(\t\x12\x12\n\npartitions\x18\x02 \x03(\x05\x12\x11\n\tresumeAll\x18\x03 \x01(\x08\"4\n\x0eResumeStreamOp\x12\x0e\n\x06stream\x18\x01 \x01(\t\x12\x12\n\npartitions\x18\x02 \x03(\x05\"\x80\x02\n\x13\x41\x63tivityStreamEvent\x12\n\n\x02id\x18\x01 \x01(\x04\x12#\n\x02op\x18\x02 \x01(\x0e\x32\x17.proto.ActivityStreamOp\x12-\n\x0e\x63reateStreamOp\x18\x03 \x01(\x0b\x32\x15.proto.CreateStreamOp\x12-\n\x0e\x64\x65leteStreamOp\x18\x04 \x01(\x0b\x32\x15.proto.DeleteStreamOp\x12+\n\rpauseStreamOp\x18\x05 \x01(\x0b\x32\x14.proto.PauseStreamOp\x12-\n\x0eresumeStreamOp\x18\x06 \x01(\x0b\x32\x15.proto.ResumeStreamOp*R\n\rStartPosition\x12\x0c\n\x08NEW_ONLY\x10\x00\x12\n\n\x06OFFSET\x10\x01\x12\x0c\n\x08\x45\x41RLIEST\x10\x02\x12\n\n\x06LATEST\x10\x03\x12\r\n\tTIMESTAMP\x10\x04**\n\tAckPolicy\x12\n\n\x06LEADER\x10\x00\x12\x07\n\x03\x41LL\x10\x01\x12\x08\n\x04NONE\x10\x02*]\n\x10\x41\x63tivityStreamOp\x12\x11\n\rCREATE_STREAM\x10\x00\x12\x11\n\rDELETE_STREAM\x10\x01\x12\x10\n\x0cPAUSE_STREAM\x10\x02\x12\x11\n\rRESUME_STREAM\x10\x03\x32\xc3\x04\n\x03\x41PI\x12I\n\x0c\x43reateStream\x12\x1a.proto.CreateStreamRequest\x1a\x1b.proto.CreateStreamResponse\"\x00\x12I\n\x0c\x44\x65leteStream\x12\x1a.proto.DeleteStreamRequest\x1a\x1b.proto.DeleteStreamResponse\"\x00\x12\x46\n\x0bPauseStream\x12\x19.proto.PauseStreamRequest\x1a\x1a.proto.PauseStreamResponse\"\x00\x12\x38\n\tSubscribe\x12\x17.proto.SubscribeRequest\x1a\x0e.proto.Message\"\x00\x30\x01\x12L\n\rFetchMetadata\x12\x1b.proto.FetchMetadataRequest\x1a\x1c.proto.FetchMetadataResponse\"\x00\x12:\n\x07Publish\x12\x15.proto.PublishRequest\x1a\x16.proto.PublishResponse\"\x00\x12\x43\n\x0cPublishAsync\x12\x15.proto.PublishRequest\x1a\x16.proto.PublishResponse\"\x00(\x01\x30\x01\x12U\n\x10PublishToSubject\x12\x1e.proto.PublishToSubjectRequest\x1a\x1f.proto.PublishToSubjectResponse\"\x00\x42\x15\n\x13io.liftbridge.protob\x06proto3' +) _STARTPOSITION = _descriptor.EnumDescriptor( name='StartPosition', @@ -53,8 +51,8 @@ ], containing_type=None, serialized_options=None, - serialized_start=2921, - serialized_end=3003, + serialized_start=2808, + serialized_end=2890, ) _sym_db.RegisterEnumDescriptor(_STARTPOSITION) @@ -80,8 +78,8 @@ ], containing_type=None, serialized_options=None, - serialized_start=3005, - serialized_end=3047, + serialized_start=2892, + serialized_end=2934, ) _sym_db.RegisterEnumDescriptor(_ACKPOLICY) @@ -111,8 +109,8 @@ ], containing_type=None, serialized_options=None, - serialized_start=3049, - serialized_end=3142, + serialized_start=2936, + serialized_end=3029, ) _sym_db.RegisterEnumDescriptor(_ACTIVITYSTREAMOP) @@ -148,8 +146,8 @@ ], containing_type=None, serialized_options=None, - serialized_start=1834, - serialized_end=1869, + serialized_start=1721, + serialized_end=1756, ) _sym_db.RegisterEnumDescriptor(_STREAMMETADATA_ERROR) @@ -212,15 +210,15 @@ serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( name='RetentionMaxAge', full_name='proto.CreateStreamRequest.RetentionMaxAge', index=7, - number=8, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, + number=8, type=1, cpp_type=5, label=1, + has_default_value=False, default_value=float(0), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( name='CleanerInterval', full_name='proto.CreateStreamRequest.CleanerInterval', index=8, - number=9, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, + number=9, type=1, cpp_type=5, label=1, + has_default_value=False, default_value=float(0), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), @@ -233,8 +231,8 @@ serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( name='SegmentMaxAge', full_name='proto.CreateStreamRequest.SegmentMaxAge', index=10, - number=11, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, + number=11, type=1, cpp_type=5, label=1, + has_default_value=False, default_value=float(0), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), @@ -257,8 +255,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=53, - serialized_end=433, + serialized_start=21, + serialized_end=320, ) @@ -281,8 +279,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=435, - serialized_end=457, + serialized_start=322, + serialized_end=344, ) @@ -312,8 +310,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=459, - serialized_end=494, + serialized_start=346, + serialized_end=381, ) @@ -336,8 +334,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=496, - serialized_end=518, + serialized_start=383, + serialized_end=405, ) @@ -381,8 +379,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=520, - serialized_end=593, + serialized_start=407, + serialized_end=480, ) @@ -405,8 +403,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=595, - serialized_end=616, + serialized_start=482, + serialized_end=503, ) @@ -471,8 +469,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=619, - serialized_end=794, + serialized_start=506, + serialized_end=681, ) @@ -502,8 +500,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=796, - serialized_end=835, + serialized_start=683, + serialized_end=722, ) @@ -540,8 +538,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=837, - serialized_end=933, + serialized_start=724, + serialized_end=820, ) @@ -578,8 +576,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=1148, - serialized_end=1194, + serialized_start=1035, + serialized_end=1081, ) _PUBLISHREQUEST = _descriptor.Descriptor( @@ -657,8 +655,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=936, - serialized_end=1194, + serialized_start=823, + serialized_end=1081, ) @@ -688,8 +686,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=1196, - serialized_end=1238, + serialized_start=1083, + serialized_end=1125, ) @@ -726,8 +724,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=1148, - serialized_end=1194, + serialized_start=1035, + serialized_end=1081, ) _PUBLISHTOSUBJECTREQUEST = _descriptor.Descriptor( @@ -798,8 +796,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=1241, - serialized_end=1499, + serialized_start=1128, + serialized_end=1386, ) @@ -829,8 +827,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=1501, - serialized_end=1552, + serialized_start=1388, + serialized_end=1439, ) @@ -874,8 +872,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=1554, - serialized_end=1602, + serialized_start=1441, + serialized_end=1489, ) @@ -912,8 +910,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=1757, - serialized_end=1832, + serialized_start=1644, + serialized_end=1719, ) _STREAMMETADATA = _descriptor.Descriptor( @@ -964,8 +962,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=1605, - serialized_end=1869, + serialized_start=1492, + serialized_end=1756, ) @@ -1016,8 +1014,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=1871, - serialized_end=1949, + serialized_start=1758, + serialized_end=1836, ) @@ -1054,8 +1052,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=1148, - serialized_end=1194, + serialized_start=1035, + serialized_end=1081, ) _MESSAGE = _descriptor.Descriptor( @@ -1161,8 +1159,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=1952, - serialized_end=2278, + serialized_start=1839, + serialized_end=2165, ) @@ -1234,8 +1232,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=2281, - serialized_end=2446, + serialized_start=2168, + serialized_end=2333, ) @@ -1272,8 +1270,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=2448, - serialized_end=2500, + serialized_start=2335, + serialized_end=2387, ) @@ -1303,8 +1301,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=2502, - serialized_end=2534, + serialized_start=2389, + serialized_end=2421, ) @@ -1348,8 +1346,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=2536, - serialized_end=2606, + serialized_start=2423, + serialized_end=2493, ) @@ -1386,8 +1384,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=2608, - serialized_end=2660, + serialized_start=2495, + serialized_end=2547, ) @@ -1452,13 +1450,10 @@ extension_ranges=[], oneofs=[ ], - serialized_start=2663, - serialized_end=2919, + serialized_start=2550, + serialized_end=2806, ) -_CREATESTREAMREQUEST.fields_by_name['RetentionMaxAge'].message_type = google_dot_protobuf_dot_duration__pb2._DURATION -_CREATESTREAMREQUEST.fields_by_name['CleanerInterval'].message_type = google_dot_protobuf_dot_duration__pb2._DURATION -_CREATESTREAMREQUEST.fields_by_name['SegmentMaxAge'].message_type = google_dot_protobuf_dot_duration__pb2._DURATION _SUBSCRIBEREQUEST.fields_by_name['startPosition'].enum_type = _STARTPOSITION _FETCHMETADATARESPONSE.fields_by_name['brokers'].message_type = _BROKER _FETCHMETADATARESPONSE.fields_by_name['metadata'].message_type = _STREAMMETADATA @@ -1723,8 +1718,8 @@ file=DESCRIPTOR, index=0, serialized_options=None, - serialized_start=3145, - serialized_end=3724, + serialized_start=3032, + serialized_end=3611, methods=[ _descriptor.MethodDescriptor( name='CreateStream', From c5e614389015c7eebbcaa3bcbd1b47d86e266012 Mon Sep 17 00:00:00 2001 From: Tung Hoang Date: Sun, 31 May 2020 10:05:09 +0200 Subject: [PATCH 3/6] Use int64 for duration --- api.proto | 32 +++-- go/api.pb.go | 375 ++++++++++++++++++++++++++++++-------------------- py/api_pb2.py | 179 ++++++++++++++---------- 3 files changed, 358 insertions(+), 228 deletions(-) diff --git a/api.proto b/api.proto index e2ef955..51ee13f 100644 --- a/api.proto +++ b/api.proto @@ -3,20 +3,28 @@ package proto; option java_package = "io.liftbridge.proto"; +// Custom Stream Config +enum CompactEnabled { + UNKNOWN = 0; + ENABLED = 1; + DISABLED = 2; +} + // CreateStreamRequest is sent to create a new stream. message CreateStreamRequest { - string subject = 1; // Stream NATS subject - string name = 2; // Stream name (unique per subject) - string group = 3; // Partitions NATS subject amongst group members - int32 replicationFactor = 4; // Number of stream replicas - int32 partitions = 5; // Number of stream partitions - int64 RetentionMaxBytes =6; // Custom StreamConfig - int64 RetentionMaxMessages =7; // Custom StreamConfig - double RetentionMaxAge =8; // Custom StreamConfig - double CleanerInterval =9; // Custom StreamConfig - int64 SegmentMaxBytes =10; // Custom StreamConfig - double SegmentMaxAge =11; // Custom StreamConfig - int64 CompactMaxGoroutines =12; // Custom StreamConfig + string subject = 1; // Stream NATS subject + string name = 2; // Stream name (unique per subject) + string group = 3; // Partitions NATS subject amongst group members + int32 replicationFactor = 4; // Number of stream replicas + int32 partitions = 5; // Number of stream partitions + int64 RetentionMaxBytes = 6; // Custom StreamConfig + int64 RetentionMaxMessages = 7; // Custom StreamConfig + int64 RetentionMaxAge = 8; // Custom StreamConfig + int64 CleanerInterval = 9; // Custom StreamConfig + int64 SegmentMaxBytes = 10; // Custom StreamConfig + int64 SegmentMaxAge = 11; // Custom StreamConfig + int64 CompactMaxGoroutines = 12; // Custom StreamConfig + CompactEnabled CompactEnabled = 13; } // CreateStreamResponse is sent by server after creating a stream. diff --git a/go/api.pb.go b/go/api.pb.go index 782e507..2012b05 100644 --- a/go/api.pb.go +++ b/go/api.pb.go @@ -43,8 +43,6 @@ import ( grpc "google.golang.org/grpc" ) -import encoding_binary "encoding/binary" - import io "io" // Reference imports to suppress errors if they are not otherwise used. @@ -58,6 +56,31 @@ var _ = math.Inf // proto package needs to be updated. const _ = proto1.ProtoPackageIsVersion2 // please upgrade the proto package +// Custom Stream Config +type CompactEnabled int32 + +const ( + CompactEnabled_UNKNOWN CompactEnabled = 0 + CompactEnabled_ENABLED CompactEnabled = 1 + CompactEnabled_DISABLED CompactEnabled = 2 +) + +var CompactEnabled_name = map[int32]string{ + 0: "UNKNOWN", + 1: "ENABLED", + 2: "DISABLED", +} +var CompactEnabled_value = map[string]int32{ + "UNKNOWN": 0, + "ENABLED": 1, + "DISABLED": 2, +} + +func (x CompactEnabled) String() string { + return proto1.EnumName(CompactEnabled_name, int32(x)) +} +func (CompactEnabled) EnumDescriptor() ([]byte, []int) { return fileDescriptorApi, []int{0} } + // StartPosition determines the start-position type on a subscription. type StartPosition int32 @@ -87,7 +110,7 @@ var StartPosition_value = map[string]int32{ func (x StartPosition) String() string { return proto1.EnumName(StartPosition_name, int32(x)) } -func (StartPosition) EnumDescriptor() ([]byte, []int) { return fileDescriptorApi, []int{0} } +func (StartPosition) EnumDescriptor() ([]byte, []int) { return fileDescriptorApi, []int{1} } // AckPolicy controls the behavior of message acknowledgements. type AckPolicy int32 @@ -112,7 +135,7 @@ var AckPolicy_value = map[string]int32{ func (x AckPolicy) String() string { return proto1.EnumName(AckPolicy_name, int32(x)) } -func (AckPolicy) EnumDescriptor() ([]byte, []int) { return fileDescriptorApi, []int{1} } +func (AckPolicy) EnumDescriptor() ([]byte, []int) { return fileDescriptorApi, []int{2} } // ActivityStreamOp represents an activity stream operation. type ActivityStreamOp int32 @@ -140,7 +163,7 @@ var ActivityStreamOp_value = map[string]int32{ func (x ActivityStreamOp) String() string { return proto1.EnumName(ActivityStreamOp_name, int32(x)) } -func (ActivityStreamOp) EnumDescriptor() ([]byte, []int) { return fileDescriptorApi, []int{2} } +func (ActivityStreamOp) EnumDescriptor() ([]byte, []int) { return fileDescriptorApi, []int{3} } type StreamMetadata_Error int32 @@ -165,18 +188,19 @@ func (StreamMetadata_Error) EnumDescriptor() ([]byte, []int) { return fileDescri // CreateStreamRequest is sent to create a new stream. type CreateStreamRequest struct { - Subject string `protobuf:"bytes,1,opt,name=subject,proto3" json:"subject,omitempty"` - Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` - Group string `protobuf:"bytes,3,opt,name=group,proto3" json:"group,omitempty"` - ReplicationFactor int32 `protobuf:"varint,4,opt,name=replicationFactor,proto3" json:"replicationFactor,omitempty"` - Partitions int32 `protobuf:"varint,5,opt,name=partitions,proto3" json:"partitions,omitempty"` - RetentionMaxBytes int64 `protobuf:"varint,6,opt,name=RetentionMaxBytes,proto3" json:"RetentionMaxBytes,omitempty"` - RetentionMaxMessages int64 `protobuf:"varint,7,opt,name=RetentionMaxMessages,proto3" json:"RetentionMaxMessages,omitempty"` - RetentionMaxAge float64 `protobuf:"fixed64,8,opt,name=RetentionMaxAge,proto3" json:"RetentionMaxAge,omitempty"` - CleanerInterval float64 `protobuf:"fixed64,9,opt,name=CleanerInterval,proto3" json:"CleanerInterval,omitempty"` - SegmentMaxBytes int64 `protobuf:"varint,10,opt,name=SegmentMaxBytes,proto3" json:"SegmentMaxBytes,omitempty"` - SegmentMaxAge float64 `protobuf:"fixed64,11,opt,name=SegmentMaxAge,proto3" json:"SegmentMaxAge,omitempty"` - CompactMaxGoroutines int64 `protobuf:"varint,12,opt,name=CompactMaxGoroutines,proto3" json:"CompactMaxGoroutines,omitempty"` + Subject string `protobuf:"bytes,1,opt,name=subject,proto3" json:"subject,omitempty"` + Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` + Group string `protobuf:"bytes,3,opt,name=group,proto3" json:"group,omitempty"` + ReplicationFactor int32 `protobuf:"varint,4,opt,name=replicationFactor,proto3" json:"replicationFactor,omitempty"` + Partitions int32 `protobuf:"varint,5,opt,name=partitions,proto3" json:"partitions,omitempty"` + RetentionMaxBytes int64 `protobuf:"varint,6,opt,name=RetentionMaxBytes,proto3" json:"RetentionMaxBytes,omitempty"` + RetentionMaxMessages int64 `protobuf:"varint,7,opt,name=RetentionMaxMessages,proto3" json:"RetentionMaxMessages,omitempty"` + RetentionMaxAge int64 `protobuf:"varint,8,opt,name=RetentionMaxAge,proto3" json:"RetentionMaxAge,omitempty"` + CleanerInterval int64 `protobuf:"varint,9,opt,name=CleanerInterval,proto3" json:"CleanerInterval,omitempty"` + SegmentMaxBytes int64 `protobuf:"varint,10,opt,name=SegmentMaxBytes,proto3" json:"SegmentMaxBytes,omitempty"` + SegmentMaxAge int64 `protobuf:"varint,11,opt,name=SegmentMaxAge,proto3" json:"SegmentMaxAge,omitempty"` + CompactMaxGoroutines int64 `protobuf:"varint,12,opt,name=CompactMaxGoroutines,proto3" json:"CompactMaxGoroutines,omitempty"` + CompactEnabled CompactEnabled `protobuf:"varint,13,opt,name=CompactEnabled,proto3,enum=proto.CompactEnabled" json:"CompactEnabled,omitempty"` } func (m *CreateStreamRequest) Reset() { *m = CreateStreamRequest{} } @@ -233,14 +257,14 @@ func (m *CreateStreamRequest) GetRetentionMaxMessages() int64 { return 0 } -func (m *CreateStreamRequest) GetRetentionMaxAge() float64 { +func (m *CreateStreamRequest) GetRetentionMaxAge() int64 { if m != nil { return m.RetentionMaxAge } return 0 } -func (m *CreateStreamRequest) GetCleanerInterval() float64 { +func (m *CreateStreamRequest) GetCleanerInterval() int64 { if m != nil { return m.CleanerInterval } @@ -254,7 +278,7 @@ func (m *CreateStreamRequest) GetSegmentMaxBytes() int64 { return 0 } -func (m *CreateStreamRequest) GetSegmentMaxAge() float64 { +func (m *CreateStreamRequest) GetSegmentMaxAge() int64 { if m != nil { return m.SegmentMaxAge } @@ -268,6 +292,13 @@ func (m *CreateStreamRequest) GetCompactMaxGoroutines() int64 { return 0 } +func (m *CreateStreamRequest) GetCompactEnabled() CompactEnabled { + if m != nil { + return m.CompactEnabled + } + return CompactEnabled_UNKNOWN +} + // CreateStreamResponse is sent by server after creating a stream. type CreateStreamResponse struct { } @@ -1089,6 +1120,7 @@ func init() { proto1.RegisterType((*PauseStreamOp)(nil), "proto.PauseStreamOp") proto1.RegisterType((*ResumeStreamOp)(nil), "proto.ResumeStreamOp") proto1.RegisterType((*ActivityStreamEvent)(nil), "proto.ActivityStreamEvent") + proto1.RegisterEnum("proto.CompactEnabled", CompactEnabled_name, CompactEnabled_value) proto1.RegisterEnum("proto.StartPosition", StartPosition_name, StartPosition_value) proto1.RegisterEnum("proto.AckPolicy", AckPolicy_name, AckPolicy_value) proto1.RegisterEnum("proto.ActivityStreamOp", ActivityStreamOp_name, ActivityStreamOp_value) @@ -1489,16 +1521,14 @@ func (m *CreateStreamRequest) MarshalTo(dAtA []byte) (int, error) { i = encodeVarintApi(dAtA, i, uint64(m.RetentionMaxMessages)) } if m.RetentionMaxAge != 0 { - dAtA[i] = 0x41 + dAtA[i] = 0x40 i++ - encoding_binary.LittleEndian.PutUint64(dAtA[i:], uint64(math.Float64bits(float64(m.RetentionMaxAge)))) - i += 8 + i = encodeVarintApi(dAtA, i, uint64(m.RetentionMaxAge)) } if m.CleanerInterval != 0 { - dAtA[i] = 0x49 + dAtA[i] = 0x48 i++ - encoding_binary.LittleEndian.PutUint64(dAtA[i:], uint64(math.Float64bits(float64(m.CleanerInterval)))) - i += 8 + i = encodeVarintApi(dAtA, i, uint64(m.CleanerInterval)) } if m.SegmentMaxBytes != 0 { dAtA[i] = 0x50 @@ -1506,16 +1536,20 @@ func (m *CreateStreamRequest) MarshalTo(dAtA []byte) (int, error) { i = encodeVarintApi(dAtA, i, uint64(m.SegmentMaxBytes)) } if m.SegmentMaxAge != 0 { - dAtA[i] = 0x59 + dAtA[i] = 0x58 i++ - encoding_binary.LittleEndian.PutUint64(dAtA[i:], uint64(math.Float64bits(float64(m.SegmentMaxAge)))) - i += 8 + i = encodeVarintApi(dAtA, i, uint64(m.SegmentMaxAge)) } if m.CompactMaxGoroutines != 0 { dAtA[i] = 0x60 i++ i = encodeVarintApi(dAtA, i, uint64(m.CompactMaxGoroutines)) } + if m.CompactEnabled != 0 { + dAtA[i] = 0x68 + i++ + i = encodeVarintApi(dAtA, i, uint64(m.CompactEnabled)) + } return i, nil } @@ -2573,20 +2607,23 @@ func (m *CreateStreamRequest) Size() (n int) { n += 1 + sovApi(uint64(m.RetentionMaxMessages)) } if m.RetentionMaxAge != 0 { - n += 9 + n += 1 + sovApi(uint64(m.RetentionMaxAge)) } if m.CleanerInterval != 0 { - n += 9 + n += 1 + sovApi(uint64(m.CleanerInterval)) } if m.SegmentMaxBytes != 0 { n += 1 + sovApi(uint64(m.SegmentMaxBytes)) } if m.SegmentMaxAge != 0 { - n += 9 + n += 1 + sovApi(uint64(m.SegmentMaxAge)) } if m.CompactMaxGoroutines != 0 { n += 1 + sovApi(uint64(m.CompactMaxGoroutines)) } + if m.CompactEnabled != 0 { + n += 1 + sovApi(uint64(m.CompactEnabled)) + } return n } @@ -3258,27 +3295,43 @@ func (m *CreateStreamRequest) Unmarshal(dAtA []byte) error { } } case 8: - if wireType != 1 { + if wireType != 0 { return fmt.Errorf("proto: wrong wireType = %d for field RetentionMaxAge", wireType) } - var v uint64 - if (iNdEx + 8) > l { - return io.ErrUnexpectedEOF + m.RetentionMaxAge = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowApi + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.RetentionMaxAge |= (int64(b) & 0x7F) << shift + if b < 0x80 { + break + } } - v = uint64(encoding_binary.LittleEndian.Uint64(dAtA[iNdEx:])) - iNdEx += 8 - m.RetentionMaxAge = float64(math.Float64frombits(v)) case 9: - if wireType != 1 { + if wireType != 0 { return fmt.Errorf("proto: wrong wireType = %d for field CleanerInterval", wireType) } - var v uint64 - if (iNdEx + 8) > l { - return io.ErrUnexpectedEOF + m.CleanerInterval = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowApi + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.CleanerInterval |= (int64(b) & 0x7F) << shift + if b < 0x80 { + break + } } - v = uint64(encoding_binary.LittleEndian.Uint64(dAtA[iNdEx:])) - iNdEx += 8 - m.CleanerInterval = float64(math.Float64frombits(v)) case 10: if wireType != 0 { return fmt.Errorf("proto: wrong wireType = %d for field SegmentMaxBytes", wireType) @@ -3299,16 +3352,24 @@ func (m *CreateStreamRequest) Unmarshal(dAtA []byte) error { } } case 11: - if wireType != 1 { + if wireType != 0 { return fmt.Errorf("proto: wrong wireType = %d for field SegmentMaxAge", wireType) } - var v uint64 - if (iNdEx + 8) > l { - return io.ErrUnexpectedEOF + m.SegmentMaxAge = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowApi + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.SegmentMaxAge |= (int64(b) & 0x7F) << shift + if b < 0x80 { + break + } } - v = uint64(encoding_binary.LittleEndian.Uint64(dAtA[iNdEx:])) - iNdEx += 8 - m.SegmentMaxAge = float64(math.Float64frombits(v)) case 12: if wireType != 0 { return fmt.Errorf("proto: wrong wireType = %d for field CompactMaxGoroutines", wireType) @@ -3328,6 +3389,25 @@ func (m *CreateStreamRequest) Unmarshal(dAtA []byte) error { break } } + case 13: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field CompactEnabled", wireType) + } + m.CompactEnabled = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowApi + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.CompactEnabled |= (CompactEnabled(b) & 0x7F) << shift + if b < 0x80 { + break + } + } default: iNdEx = preIndex skippy, err := skipApi(dAtA[iNdEx:]) @@ -7021,99 +7101,102 @@ var ( func init() { proto1.RegisterFile("api.proto", fileDescriptorApi) } var fileDescriptorApi = []byte{ - // 1500 bytes of a gzipped FileDescriptorProto + // 1548 bytes of a gzipped FileDescriptorProto 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xbc, 0x57, 0xdd, 0x6e, 0xdb, 0xc6, 0x12, 0x16, 0x49, 0xfd, 0x98, 0xa3, 0x9f, 0x30, 0xeb, 0x9f, 0xf0, 0x28, 0x81, 0x8f, 0xc1, 0x93, - 0x9c, 0xf8, 0xf8, 0x14, 0x6e, 0xa2, 0xa2, 0x40, 0x60, 0xb4, 0x40, 0x69, 0x87, 0x6e, 0x84, 0xd8, - 0x96, 0xb0, 0x94, 0x11, 0xf4, 0xa2, 0x08, 0x28, 0x6a, 0x6d, 0xb3, 0x96, 0x44, 0x96, 0xa4, 0x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 0x08, 0x28, 0x69, 0x6d, 0xb3, 0x96, 0x44, 0x95, 0xa4, 0x8c, + 0xf8, 0x4d, 0x7a, 0xd9, 0xa7, 0xe8, 0x2b, 0x34, 0x97, 0xb9, 0xee, 0x55, 0x91, 0x3e, 0x44, 0xef, + 0x82, 0x62, 0x97, 0x3f, 0xda, 0xa5, 0xe5, 0x28, 0x6d, 0x91, 0x5e, 0x91, 0xfb, 0xed, 0xcc, 0xec, + 0xee, 0xcc, 0x37, 0xb3, 0xb3, 0xa0, 0x3a, 0x53, 0x77, 0x77, 0xea, 0x7b, 0xa1, 0x87, 0x0a, 0xec, + 0x63, 0xfc, 0x98, 0x87, 0xd5, 0x43, 0x9f, 0x38, 0x21, 0xb1, 0x43, 0x9f, 0x38, 0x63, 0x4c, 0xbe, + 0x9f, 0x91, 0x20, 0x44, 0x3a, 0x94, 0x82, 0x59, 0xff, 0x3b, 0x32, 0x08, 0x75, 0x69, 0x4b, 0xda, + 0x56, 0x71, 0x32, 0x44, 0x08, 0xf2, 0x13, 0x67, 0x4c, 0x74, 0x99, 0xc1, 0xec, 0x1f, 0xad, 0x41, + 0xe1, 0xdc, 0xf7, 0x66, 0x53, 0x5d, 0x61, 0x60, 0x34, 0x40, 0x9f, 0xc0, 0x5d, 0x9f, 0x4c, 0x47, + 0xee, 0xc0, 0x09, 0x5d, 0x6f, 0x72, 0xec, 0x0c, 0x42, 0xcf, 0xd7, 0xf3, 0x5b, 0xd2, 0x76, 0x01, + 0xdf, 0x9c, 0x40, 0x9b, 0x00, 0x53, 0xc7, 0x0f, 0x5d, 0x0a, 0x05, 0x7a, 0x81, 0x89, 0x71, 0x08, + 0xb5, 0x86, 0x49, 0x48, 0x26, 0x74, 0x74, 0xe2, 0xbc, 0x3a, 0xb8, 0x0e, 0x49, 0xa0, 0x17, 0xb7, + 0xa4, 0x6d, 0x05, 0xdf, 0x9c, 0x40, 0x0d, 0x58, 0xe3, 0xc1, 0x13, 0x12, 0x04, 0xce, 0x39, 0x09, + 0xf4, 0x12, 0x53, 0x58, 0x38, 0x87, 0xb6, 0xe1, 0x0e, 0x8f, 0x9b, 0xe7, 0x44, 0x5f, 0x61, 0xe2, + 0x59, 0x98, 0x4a, 0x1e, 0x8e, 0x88, 0x33, 0x21, 0x7e, 0x73, 0x12, 0x12, 0xff, 0xca, 0x19, 0xe9, + 0x6a, 0x24, 0x99, 0x81, 0xa9, 0xa4, 0x4d, 0xce, 0xc7, 0x64, 0x12, 0xa6, 0x7b, 0x86, 0x48, 0x32, + 0x03, 0xa3, 0x87, 0x50, 0x9d, 0x43, 0x74, 0xed, 0x32, 0x93, 0x13, 0x41, 0x7a, 0xae, 0x43, 0x6f, + 0x3c, 0x75, 0x06, 0x14, 0xf8, 0xda, 0xf3, 0xbd, 0x59, 0xe8, 0x4e, 0x48, 0xa0, 0x57, 0xa2, 0x73, + 0x2d, 0x9a, 0x43, 0x5f, 0x42, 0x2d, 0xc6, 0xad, 0x89, 0xd3, 0x1f, 0x91, 0xa1, 0x5e, 0xdd, 0x92, + 0xb6, 0x6b, 0x8d, 0xf5, 0x88, 0x0a, 0xbb, 0xe2, 0x24, 0xce, 0x08, 0x1b, 0x1b, 0xb0, 0x26, 0x32, + 0x24, 0x98, 0x7a, 0x93, 0x80, 0x18, 0xff, 0x83, 0xd5, 0x23, 0x32, 0x22, 0x59, 0xe6, 0x24, 0xfc, + 0x90, 0xe6, 0xfc, 0xa0, 0x26, 0x44, 0xd1, 0xd8, 0xc4, 0x19, 0xa0, 0xae, 0x33, 0x0b, 0x96, 0x5b, + 0xc8, 0xb0, 0x43, 0xde, 0x52, 0x32, 0xec, 0x78, 0x00, 0xaa, 0x4f, 0x82, 0xd9, 0x98, 0x98, 0xa3, + 0x11, 0x63, 0xe1, 0x0a, 0x9e, 0x03, 0xc6, 0x3a, 0xac, 0x0a, 0xeb, 0xc4, 0xcb, 0xbf, 0x93, 0x40, + 0xb3, 0x67, 0xfd, 0x60, 0xe0, 0xbb, 0x7d, 0x92, 0xac, 0xbe, 0x01, 0xc5, 0x80, 0x89, 0xc5, 0xeb, + 0xc7, 0x23, 0xba, 0x42, 0xba, 0x1e, 0x23, 0x7f, 0x01, 0xcf, 0x01, 0xb4, 0x0f, 0xd5, 0x20, 0x74, + 0xfc, 0xb0, 0xeb, 0x05, 0x91, 0x84, 0xc2, 0x5c, 0xbc, 0x16, 0xbb, 0xd8, 0xe6, 0xe7, 0xb0, 0x28, + 0x8a, 0x1e, 0x42, 0x99, 0x01, 0x9d, 0xb3, 0xb3, 0x80, 0x84, 0x2c, 0x43, 0x94, 0x03, 0xf9, 0x89, + 0x84, 0x79, 0x18, 0xed, 0x40, 0x8d, 0x0d, 0x7b, 0xee, 0x98, 0x04, 0xa1, 0x33, 0x9e, 0xb2, 0x1c, + 0x89, 0x04, 0x33, 0x33, 0xe8, 0xbf, 0x50, 0xf3, 0x89, 0x33, 0x6c, 0xda, 0x18, 0x47, 0x79, 0xc6, + 0x12, 0x65, 0x05, 0x67, 0x50, 0xe3, 0x09, 0xac, 0x1d, 0x93, 0x70, 0x70, 0x71, 0x42, 0x42, 0x67, + 0xe8, 0x84, 0x0e, 0x9f, 0xfd, 0xec, 0xd4, 0x81, 0x2e, 0x6d, 0x29, 0x2c, 0xfb, 0xa3, 0xa1, 0x11, + 0xc0, 0x7a, 0x46, 0x23, 0xf2, 0x25, 0x7a, 0x0c, 0xa5, 0xbe, 0xef, 0x5d, 0x12, 0x3f, 0x52, 0x29, + 0x37, 0xaa, 0xf1, 0xd1, 0x0f, 0x18, 0x8a, 0x93, 0x59, 0xf4, 0x14, 0x56, 0xc6, 0xb1, 0x32, 0x8b, + 0x63, 0x39, 0xe5, 0x61, 0x14, 0x9d, 0xd4, 0x72, 0x2a, 0x66, 0xfc, 0x22, 0x43, 0xad, 0x3b, 0xeb, + 0x8f, 0xdc, 0xe0, 0x22, 0xd9, 0xa1, 0x06, 0xca, 0x25, 0xb9, 0x66, 0x21, 0xaa, 0x60, 0xfa, 0x4b, + 0x6b, 0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 0x5d, 0x6f, 0x77, + 0xe4, 0x9e, 0x85, 0x7d, 0xdf, 0x1d, 0x9e, 0x93, 0xc8, 0x42, 0xbf, 0xc8, 0x3e, 0x9f, 0xfd, 0x11, + 0x00, 0x00, 0xff, 0xff, 0x9d, 0xad, 0x82, 0xaa, 0x35, 0x12, 0x00, 0x00, } diff --git a/py/api_pb2.py b/py/api_pb2.py index 5afa345..338e30e 100644 --- a/py/api_pb2.py +++ b/py/api_pb2.py @@ -19,9 +19,36 @@ package='proto', syntax='proto3', serialized_options=b'\n\023io.liftbridge.proto', - serialized_pb=b'\n\tapi.proto\x12\x05proto\"\xab\x02\n\x13\x43reateStreamRequest\x12\x0f\n\x07subject\x18\x01 \x01(\t\x12\x0c\n\x04name\x18\x02 \x01(\t\x12\r\n\x05group\x18\x03 \x01(\t\x12\x19\n\x11replicationFactor\x18\x04 \x01(\x05\x12\x12\n\npartitions\x18\x05 \x01(\x05\x12\x19\n\x11RetentionMaxBytes\x18\x06 \x01(\x03\x12\x1c\n\x14RetentionMaxMessages\x18\x07 \x01(\x03\x12\x17\n\x0fRetentionMaxAge\x18\x08 \x01(\x01\x12\x17\n\x0f\x43leanerInterval\x18\t \x01(\x01\x12\x17\n\x0fSegmentMaxBytes\x18\n \x01(\x03\x12\x15\n\rSegmentMaxAge\x18\x0b \x01(\x01\x12\x1c\n\x14\x43ompactMaxGoroutines\x18\x0c \x01(\x03\"\x16\n\x14\x43reateStreamResponse\"#\n\x13\x44\x65leteStreamRequest\x12\x0c\n\x04name\x18\x01 \x01(\t\"\x16\n\x14\x44\x65leteStreamResponse\"I\n\x12PauseStreamRequest\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x12\n\npartitions\x18\x02 \x03(\x05\x12\x11\n\tresumeAll\x18\x03 \x01(\x08\"\x15\n\x13PauseStreamResponse\"\xaf\x01\n\x10SubscribeRequest\x12\x0e\n\x06stream\x18\x01 \x01(\t\x12\x11\n\tpartition\x18\x02 \x01(\x05\x12+\n\rstartPosition\x18\x03 \x01(\x0e\x32\x14.proto.StartPosition\x12\x17\n\x0bstartOffset\x18\x04 \x01(\x03\x42\x02\x30\x01\x12\x1a\n\x0estartTimestamp\x18\x05 \x01(\x03\x42\x02\x30\x01\x12\x16\n\x0ereadISRReplica\x18\x06 \x01(\x08\"\'\n\x14\x46\x65tchMetadataRequest\x12\x0f\n\x07streams\x18\x01 \x03(\t\"`\n\x15\x46\x65tchMetadataResponse\x12\x1e\n\x07\x62rokers\x18\x01 \x03(\x0b\x32\r.proto.Broker\x12\'\n\x08metadata\x18\x02 \x03(\x0b\x32\x15.proto.StreamMetadata\"\x82\x02\n\x0ePublishRequest\x12\x0b\n\x03key\x18\x01 \x01(\x0c\x12\r\n\x05value\x18\x02 \x01(\x0c\x12\x0e\n\x06stream\x18\x03 \x01(\t\x12\x11\n\tpartition\x18\x04 \x01(\x05\x12\x33\n\x07headers\x18\x05 \x03(\x0b\x32\".proto.PublishRequest.HeadersEntry\x12\x10\n\x08\x61\x63kInbox\x18\x06 \x01(\t\x12\x15\n\rcorrelationId\x18\x07 \x01(\t\x12#\n\tackPolicy\x18\x08 \x01(\x0e\x32\x10.proto.AckPolicy\x1a.\n\x0cHeadersEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\x0c:\x02\x38\x01\"*\n\x0fPublishResponse\x12\x17\n\x03\x61\x63k\x18\x01 \x01(\x0b\x32\n.proto.Ack\"\x82\x02\n\x17PublishToSubjectRequest\x12\x0b\n\x03key\x18\x01 \x01(\x0c\x12\r\n\x05value\x18\x02 \x01(\x0c\x12\x0f\n\x07subject\x18\x03 \x01(\t\x12<\n\x07headers\x18\x04 \x03(\x0b\x32+.proto.PublishToSubjectRequest.HeadersEntry\x12\x10\n\x08\x61\x63kInbox\x18\x05 \x01(\t\x12\x15\n\rcorrelationId\x18\x06 \x01(\t\x12#\n\tackPolicy\x18\x07 \x01(\x0e\x32\x10.proto.AckPolicy\x1a.\n\x0cHeadersEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\x0c:\x02\x38\x01\"3\n\x18PublishToSubjectResponse\x12\x17\n\x03\x61\x63k\x18\x01 \x01(\x0b\x32\n.proto.Ack\"0\n\x06\x42roker\x12\n\n\x02id\x18\x01 \x01(\t\x12\x0c\n\x04host\x18\x02 \x01(\t\x12\x0c\n\x04port\x18\x03 \x01(\x05\"\x88\x02\n\x0eStreamMetadata\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x0f\n\x07subject\x18\x02 \x01(\t\x12*\n\x05\x65rror\x18\x03 \x01(\x0e\x32\x1b.proto.StreamMetadata.Error\x12\x39\n\npartitions\x18\x04 \x03(\x0b\x32%.proto.StreamMetadata.PartitionsEntry\x1aK\n\x0fPartitionsEntry\x12\x0b\n\x03key\x18\x01 \x01(\x05\x12\'\n\x05value\x18\x02 \x01(\x0b\x32\x18.proto.PartitionMetadata:\x02\x38\x01\"#\n\x05\x45rror\x12\x06\n\x02OK\x10\x00\x12\x12\n\x0eUNKNOWN_STREAM\x10\x01\"N\n\x11PartitionMetadata\x12\n\n\x02id\x18\x01 \x01(\x05\x12\x0e\n\x06leader\x18\x02 \x01(\t\x12\x10\n\x08replicas\x18\x03 \x03(\t\x12\x0b\n\x03isr\x18\x04 \x03(\t\"\xc6\x02\n\x07Message\x12\x12\n\x06offset\x18\x01 \x01(\x03\x42\x02\x30\x01\x12\x0b\n\x03key\x18\x02 \x01(\x0c\x12\r\n\x05value\x18\x03 \x01(\x0c\x12\x15\n\ttimestamp\x18\x04 \x01(\x03\x42\x02\x30\x01\x12\x0e\n\x06stream\x18\x05 \x01(\t\x12\x11\n\tpartition\x18\x06 \x01(\x05\x12\x0f\n\x07subject\x18\x07 \x01(\t\x12\x14\n\x0creplySubject\x18\x08 \x01(\t\x12,\n\x07headers\x18\t \x03(\x0b\x32\x1b.proto.Message.HeadersEntry\x12\x10\n\x08\x61\x63kInbox\x18\n \x01(\t\x12\x15\n\rcorrelationId\x18\x0b \x01(\t\x12#\n\tackPolicy\x18\x0c \x01(\x0e\x32\x10.proto.AckPolicy\x1a.\n\x0cHeadersEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\x0c:\x02\x38\x01\"\xa5\x01\n\x03\x41\x63k\x12\x0e\n\x06stream\x18\x01 \x01(\t\x12\x18\n\x10partitionSubject\x18\x02 \x01(\t\x12\x12\n\nmsgSubject\x18\x03 \x01(\t\x12\x12\n\x06offset\x18\x04 \x01(\x03\x42\x02\x30\x01\x12\x10\n\x08\x61\x63kInbox\x18\x05 \x01(\t\x12\x15\n\rcorrelationId\x18\x06 \x01(\t\x12#\n\tackPolicy\x18\x07 \x01(\x0e\x32\x10.proto.AckPolicy\"4\n\x0e\x43reateStreamOp\x12\x0e\n\x06stream\x18\x01 \x01(\t\x12\x12\n\npartitions\x18\x02 \x03(\x05\" \n\x0e\x44\x65leteStreamOp\x12\x0e\n\x06stream\x18\x01 \x01(\t\"F\n\rPauseStreamOp\x12\x0e\n\x06stream\x18\x01 \x01(\t\x12\x12\n\npartitions\x18\x02 \x03(\x05\x12\x11\n\tresumeAll\x18\x03 \x01(\x08\"4\n\x0eResumeStreamOp\x12\x0e\n\x06stream\x18\x01 \x01(\t\x12\x12\n\npartitions\x18\x02 \x03(\x05\"\x80\x02\n\x13\x41\x63tivityStreamEvent\x12\n\n\x02id\x18\x01 \x01(\x04\x12#\n\x02op\x18\x02 \x01(\x0e\x32\x17.proto.ActivityStreamOp\x12-\n\x0e\x63reateStreamOp\x18\x03 \x01(\x0b\x32\x15.proto.CreateStreamOp\x12-\n\x0e\x64\x65leteStreamOp\x18\x04 \x01(\x0b\x32\x15.proto.DeleteStreamOp\x12+\n\rpauseStreamOp\x18\x05 \x01(\x0b\x32\x14.proto.PauseStreamOp\x12-\n\x0eresumeStreamOp\x18\x06 \x01(\x0b\x32\x15.proto.ResumeStreamOp*R\n\rStartPosition\x12\x0c\n\x08NEW_ONLY\x10\x00\x12\n\n\x06OFFSET\x10\x01\x12\x0c\n\x08\x45\x41RLIEST\x10\x02\x12\n\n\x06LATEST\x10\x03\x12\r\n\tTIMESTAMP\x10\x04**\n\tAckPolicy\x12\n\n\x06LEADER\x10\x00\x12\x07\n\x03\x41LL\x10\x01\x12\x08\n\x04NONE\x10\x02*]\n\x10\x41\x63tivityStreamOp\x12\x11\n\rCREATE_STREAM\x10\x00\x12\x11\n\rDELETE_STREAM\x10\x01\x12\x10\n\x0cPAUSE_STREAM\x10\x02\x12\x11\n\rRESUME_STREAM\x10\x03\x32\xfe\x03\n\x03\x41PI\x12I\n\x0c\x43reateStream\x12\x1a.proto.CreateStreamRequest\x1a\x1b.proto.CreateStreamResponse\"\x00\x12I\n\x0c\x44\x65leteStream\x12\x1a.proto.DeleteStreamRequest\x1a\x1b.proto.DeleteStreamResponse\"\x00\x12\x46\n\x0bPauseStream\x12\x19.proto.PauseStreamRequest\x1a\x1a.proto.PauseStreamResponse\"\x00\x12\x38\n\tSubscribe\x12\x17.proto.SubscribeRequest\x1a\x0e.proto.Message\"\x00\x30\x01\x12L\n\rFetchMetadata\x12\x1b.proto.FetchMetadataRequest\x1a\x1c.proto.FetchMetadataResponse\"\x00\x12:\n\x07Publish\x12\x15.proto.PublishRequest\x1a\x16.proto.PublishResponse\"\x00\x12U\n\x10PublishToSubject\x12\x1e.proto.PublishToSubjectRequest\x1a\x1f.proto.PublishToSubjectResponse\"\x00\x42\x15\n\x13io.liftbridge.protob\x06proto3' + serialized_pb=b'\n\tapi.proto\x12\x05proto\"\xda\x02\n\x13\x43reateStreamRequest\x12\x0f\n\x07subject\x18\x01 \x01(\t\x12\x0c\n\x04name\x18\x02 \x01(\t\x12\r\n\x05group\x18\x03 \x01(\t\x12\x19\n\x11replicationFactor\x18\x04 \x01(\x05\x12\x12\n\npartitions\x18\x05 \x01(\x05\x12\x19\n\x11RetentionMaxBytes\x18\x06 \x01(\x03\x12\x1c\n\x14RetentionMaxMessages\x18\x07 \x01(\x03\x12\x17\n\x0fRetentionMaxAge\x18\x08 \x01(\x03\x12\x17\n\x0f\x43leanerInterval\x18\t \x01(\x03\x12\x17\n\x0fSegmentMaxBytes\x18\n \x01(\x03\x12\x15\n\rSegmentMaxAge\x18\x0b \x01(\x03\x12\x1c\n\x14\x43ompactMaxGoroutines\x18\x0c \x01(\x03\x12-\n\x0e\x43ompactEnabled\x18\r \x01(\x0e\x32\x15.proto.CompactEnabled\"\x16\n\x14\x43reateStreamResponse\"#\n\x13\x44\x65leteStreamRequest\x12\x0c\n\x04name\x18\x01 \x01(\t\"\x16\n\x14\x44\x65leteStreamResponse\"I\n\x12PauseStreamRequest\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x12\n\npartitions\x18\x02 \x03(\x05\x12\x11\n\tresumeAll\x18\x03 \x01(\x08\"\x15\n\x13PauseStreamResponse\"\xaf\x01\n\x10SubscribeRequest\x12\x0e\n\x06stream\x18\x01 \x01(\t\x12\x11\n\tpartition\x18\x02 \x01(\x05\x12+\n\rstartPosition\x18\x03 \x01(\x0e\x32\x14.proto.StartPosition\x12\x17\n\x0bstartOffset\x18\x04 \x01(\x03\x42\x02\x30\x01\x12\x1a\n\x0estartTimestamp\x18\x05 \x01(\x03\x42\x02\x30\x01\x12\x16\n\x0ereadISRReplica\x18\x06 \x01(\x08\"\'\n\x14\x46\x65tchMetadataRequest\x12\x0f\n\x07streams\x18\x01 \x03(\t\"`\n\x15\x46\x65tchMetadataResponse\x12\x1e\n\x07\x62rokers\x18\x01 \x03(\x0b\x32\r.proto.Broker\x12\'\n\x08metadata\x18\x02 \x03(\x0b\x32\x15.proto.StreamMetadata\"\x82\x02\n\x0ePublishRequest\x12\x0b\n\x03key\x18\x01 \x01(\x0c\x12\r\n\x05value\x18\x02 \x01(\x0c\x12\x0e\n\x06stream\x18\x03 \x01(\t\x12\x11\n\tpartition\x18\x04 \x01(\x05\x12\x33\n\x07headers\x18\x05 \x03(\x0b\x32\".proto.PublishRequest.HeadersEntry\x12\x10\n\x08\x61\x63kInbox\x18\x06 \x01(\t\x12\x15\n\rcorrelationId\x18\x07 \x01(\t\x12#\n\tackPolicy\x18\x08 \x01(\x0e\x32\x10.proto.AckPolicy\x1a.\n\x0cHeadersEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\x0c:\x02\x38\x01\"*\n\x0fPublishResponse\x12\x17\n\x03\x61\x63k\x18\x01 \x01(\x0b\x32\n.proto.Ack\"\x82\x02\n\x17PublishToSubjectRequest\x12\x0b\n\x03key\x18\x01 \x01(\x0c\x12\r\n\x05value\x18\x02 \x01(\x0c\x12\x0f\n\x07subject\x18\x03 \x01(\t\x12<\n\x07headers\x18\x04 \x03(\x0b\x32+.proto.PublishToSubjectRequest.HeadersEntry\x12\x10\n\x08\x61\x63kInbox\x18\x05 \x01(\t\x12\x15\n\rcorrelationId\x18\x06 \x01(\t\x12#\n\tackPolicy\x18\x07 \x01(\x0e\x32\x10.proto.AckPolicy\x1a.\n\x0cHeadersEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\x0c:\x02\x38\x01\"3\n\x18PublishToSubjectResponse\x12\x17\n\x03\x61\x63k\x18\x01 \x01(\x0b\x32\n.proto.Ack\"0\n\x06\x42roker\x12\n\n\x02id\x18\x01 \x01(\t\x12\x0c\n\x04host\x18\x02 \x01(\t\x12\x0c\n\x04port\x18\x03 \x01(\x05\"\x88\x02\n\x0eStreamMetadata\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x0f\n\x07subject\x18\x02 \x01(\t\x12*\n\x05\x65rror\x18\x03 \x01(\x0e\x32\x1b.proto.StreamMetadata.Error\x12\x39\n\npartitions\x18\x04 \x03(\x0b\x32%.proto.StreamMetadata.PartitionsEntry\x1aK\n\x0fPartitionsEntry\x12\x0b\n\x03key\x18\x01 \x01(\x05\x12\'\n\x05value\x18\x02 \x01(\x0b\x32\x18.proto.PartitionMetadata:\x02\x38\x01\"#\n\x05\x45rror\x12\x06\n\x02OK\x10\x00\x12\x12\n\x0eUNKNOWN_STREAM\x10\x01\"N\n\x11PartitionMetadata\x12\n\n\x02id\x18\x01 \x01(\x05\x12\x0e\n\x06leader\x18\x02 \x01(\t\x12\x10\n\x08replicas\x18\x03 \x03(\t\x12\x0b\n\x03isr\x18\x04 \x03(\t\"\xc6\x02\n\x07Message\x12\x12\n\x06offset\x18\x01 \x01(\x03\x42\x02\x30\x01\x12\x0b\n\x03key\x18\x02 \x01(\x0c\x12\r\n\x05value\x18\x03 \x01(\x0c\x12\x15\n\ttimestamp\x18\x04 \x01(\x03\x42\x02\x30\x01\x12\x0e\n\x06stream\x18\x05 \x01(\t\x12\x11\n\tpartition\x18\x06 \x01(\x05\x12\x0f\n\x07subject\x18\x07 \x01(\t\x12\x14\n\x0creplySubject\x18\x08 \x01(\t\x12,\n\x07headers\x18\t \x03(\x0b\x32\x1b.proto.Message.HeadersEntry\x12\x10\n\x08\x61\x63kInbox\x18\n \x01(\t\x12\x15\n\rcorrelationId\x18\x0b \x01(\t\x12#\n\tackPolicy\x18\x0c \x01(\x0e\x32\x10.proto.AckPolicy\x1a.\n\x0cHeadersEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\x0c:\x02\x38\x01\"\xa5\x01\n\x03\x41\x63k\x12\x0e\n\x06stream\x18\x01 \x01(\t\x12\x18\n\x10partitionSubject\x18\x02 \x01(\t\x12\x12\n\nmsgSubject\x18\x03 \x01(\t\x12\x12\n\x06offset\x18\x04 \x01(\x03\x42\x02\x30\x01\x12\x10\n\x08\x61\x63kInbox\x18\x05 \x01(\t\x12\x15\n\rcorrelationId\x18\x06 \x01(\t\x12#\n\tackPolicy\x18\x07 \x01(\x0e\x32\x10.proto.AckPolicy\"4\n\x0e\x43reateStreamOp\x12\x0e\n\x06stream\x18\x01 \x01(\t\x12\x12\n\npartitions\x18\x02 \x03(\x05\" \n\x0e\x44\x65leteStreamOp\x12\x0e\n\x06stream\x18\x01 \x01(\t\"F\n\rPauseStreamOp\x12\x0e\n\x06stream\x18\x01 \x01(\t\x12\x12\n\npartitions\x18\x02 \x03(\x05\x12\x11\n\tresumeAll\x18\x03 \x01(\x08\"4\n\x0eResumeStreamOp\x12\x0e\n\x06stream\x18\x01 \x01(\t\x12\x12\n\npartitions\x18\x02 \x03(\x05\"\x80\x02\n\x13\x41\x63tivityStreamEvent\x12\n\n\x02id\x18\x01 \x01(\x04\x12#\n\x02op\x18\x02 \x01(\x0e\x32\x17.proto.ActivityStreamOp\x12-\n\x0e\x63reateStreamOp\x18\x03 \x01(\x0b\x32\x15.proto.CreateStreamOp\x12-\n\x0e\x64\x65leteStreamOp\x18\x04 \x01(\x0b\x32\x15.proto.DeleteStreamOp\x12+\n\rpauseStreamOp\x18\x05 \x01(\x0b\x32\x14.proto.PauseStreamOp\x12-\n\x0eresumeStreamOp\x18\x06 \x01(\x0b\x32\x15.proto.ResumeStreamOp*8\n\x0e\x43ompactEnabled\x12\x0b\n\x07UNKNOWN\x10\x00\x12\x0b\n\x07\x45NABLED\x10\x01\x12\x0c\n\x08\x44ISABLED\x10\x02*R\n\rStartPosition\x12\x0c\n\x08NEW_ONLY\x10\x00\x12\n\n\x06OFFSET\x10\x01\x12\x0c\n\x08\x45\x41RLIEST\x10\x02\x12\n\n\x06LATEST\x10\x03\x12\r\n\tTIMESTAMP\x10\x04**\n\tAckPolicy\x12\n\n\x06LEADER\x10\x00\x12\x07\n\x03\x41LL\x10\x01\x12\x08\n\x04NONE\x10\x02*]\n\x10\x41\x63tivityStreamOp\x12\x11\n\rCREATE_STREAM\x10\x00\x12\x11\n\rDELETE_STREAM\x10\x01\x12\x10\n\x0cPAUSE_STREAM\x10\x02\x12\x11\n\rRESUME_STREAM\x10\x03\x32\xfe\x03\n\x03\x41PI\x12I\n\x0c\x43reateStream\x12\x1a.proto.CreateStreamRequest\x1a\x1b.proto.CreateStreamResponse\"\x00\x12I\n\x0c\x44\x65leteStream\x12\x1a.proto.DeleteStreamRequest\x1a\x1b.proto.DeleteStreamResponse\"\x00\x12\x46\n\x0bPauseStream\x12\x19.proto.PauseStreamRequest\x1a\x1a.proto.PauseStreamResponse\"\x00\x12\x38\n\tSubscribe\x12\x17.proto.SubscribeRequest\x1a\x0e.proto.Message\"\x00\x30\x01\x12L\n\rFetchMetadata\x12\x1b.proto.FetchMetadataRequest\x1a\x1c.proto.FetchMetadataResponse\"\x00\x12:\n\x07Publish\x12\x15.proto.PublishRequest\x1a\x16.proto.PublishResponse\"\x00\x12U\n\x10PublishToSubject\x12\x1e.proto.PublishToSubjectRequest\x1a\x1f.proto.PublishToSubjectResponse\"\x00\x42\x15\n\x13io.liftbridge.protob\x06proto3' ) +_COMPACTENABLED = _descriptor.EnumDescriptor( + name='CompactEnabled', + full_name='proto.CompactEnabled', + filename=None, + file=DESCRIPTOR, + values=[ + _descriptor.EnumValueDescriptor( + name='UNKNOWN', index=0, number=0, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='ENABLED', index=1, number=1, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='DISABLED', index=2, number=2, + serialized_options=None, + type=None), + ], + containing_type=None, + serialized_options=None, + serialized_start=2855, + serialized_end=2911, +) +_sym_db.RegisterEnumDescriptor(_COMPACTENABLED) + +CompactEnabled = enum_type_wrapper.EnumTypeWrapper(_COMPACTENABLED) _STARTPOSITION = _descriptor.EnumDescriptor( name='StartPosition', full_name='proto.StartPosition', @@ -51,8 +78,8 @@ ], containing_type=None, serialized_options=None, - serialized_start=2808, - serialized_end=2890, + serialized_start=2913, + serialized_end=2995, ) _sym_db.RegisterEnumDescriptor(_STARTPOSITION) @@ -78,8 +105,8 @@ ], containing_type=None, serialized_options=None, - serialized_start=2892, - serialized_end=2934, + serialized_start=2997, + serialized_end=3039, ) _sym_db.RegisterEnumDescriptor(_ACKPOLICY) @@ -109,12 +136,15 @@ ], containing_type=None, serialized_options=None, - serialized_start=2936, - serialized_end=3029, + serialized_start=3041, + serialized_end=3134, ) _sym_db.RegisterEnumDescriptor(_ACTIVITYSTREAMOP) ActivityStreamOp = enum_type_wrapper.EnumTypeWrapper(_ACTIVITYSTREAMOP) +UNKNOWN = 0 +ENABLED = 1 +DISABLED = 2 NEW_ONLY = 0 OFFSET = 1 EARLIEST = 2 @@ -146,8 +176,8 @@ ], containing_type=None, serialized_options=None, - serialized_start=1721, - serialized_end=1756, + serialized_start=1768, + serialized_end=1803, ) _sym_db.RegisterEnumDescriptor(_STREAMMETADATA_ERROR) @@ -210,15 +240,15 @@ serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( name='RetentionMaxAge', full_name='proto.CreateStreamRequest.RetentionMaxAge', index=7, - number=8, type=1, cpp_type=5, label=1, - has_default_value=False, default_value=float(0), + number=8, type=3, cpp_type=2, label=1, + has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( name='CleanerInterval', full_name='proto.CreateStreamRequest.CleanerInterval', index=8, - number=9, type=1, cpp_type=5, label=1, - has_default_value=False, default_value=float(0), + number=9, type=3, cpp_type=2, label=1, + has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), @@ -231,8 +261,8 @@ serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( name='SegmentMaxAge', full_name='proto.CreateStreamRequest.SegmentMaxAge', index=10, - number=11, type=1, cpp_type=5, label=1, - has_default_value=False, default_value=float(0), + number=11, type=3, cpp_type=2, label=1, + has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), @@ -243,6 +273,13 @@ message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='CompactEnabled', full_name='proto.CreateStreamRequest.CompactEnabled', index=12, + number=13, type=14, cpp_type=8, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), ], extensions=[ ], @@ -256,7 +293,7 @@ oneofs=[ ], serialized_start=21, - serialized_end=320, + serialized_end=367, ) @@ -279,8 +316,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=322, - serialized_end=344, + serialized_start=369, + serialized_end=391, ) @@ -310,8 +347,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=346, - serialized_end=381, + serialized_start=393, + serialized_end=428, ) @@ -334,8 +371,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=383, - serialized_end=405, + serialized_start=430, + serialized_end=452, ) @@ -379,8 +416,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=407, - serialized_end=480, + serialized_start=454, + serialized_end=527, ) @@ -403,8 +440,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=482, - serialized_end=503, + serialized_start=529, + serialized_end=550, ) @@ -469,8 +506,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=506, - serialized_end=681, + serialized_start=553, + serialized_end=728, ) @@ -500,8 +537,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=683, - serialized_end=722, + serialized_start=730, + serialized_end=769, ) @@ -538,8 +575,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=724, - serialized_end=820, + serialized_start=771, + serialized_end=867, ) @@ -576,8 +613,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=1035, - serialized_end=1081, + serialized_start=1082, + serialized_end=1128, ) _PUBLISHREQUEST = _descriptor.Descriptor( @@ -655,8 +692,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=823, - serialized_end=1081, + serialized_start=870, + serialized_end=1128, ) @@ -686,8 +723,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=1083, - serialized_end=1125, + serialized_start=1130, + serialized_end=1172, ) @@ -724,8 +761,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=1035, - serialized_end=1081, + serialized_start=1082, + serialized_end=1128, ) _PUBLISHTOSUBJECTREQUEST = _descriptor.Descriptor( @@ -796,8 +833,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=1128, - serialized_end=1386, + serialized_start=1175, + serialized_end=1433, ) @@ -827,8 +864,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=1388, - serialized_end=1439, + serialized_start=1435, + serialized_end=1486, ) @@ -872,8 +909,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=1441, - serialized_end=1489, + serialized_start=1488, + serialized_end=1536, ) @@ -910,8 +947,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=1644, - serialized_end=1719, + serialized_start=1691, + serialized_end=1766, ) _STREAMMETADATA = _descriptor.Descriptor( @@ -962,8 +999,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=1492, - serialized_end=1756, + serialized_start=1539, + serialized_end=1803, ) @@ -1014,8 +1051,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=1758, - serialized_end=1836, + serialized_start=1805, + serialized_end=1883, ) @@ -1052,8 +1089,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=1035, - serialized_end=1081, + serialized_start=1082, + serialized_end=1128, ) _MESSAGE = _descriptor.Descriptor( @@ -1159,8 +1196,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=1839, - serialized_end=2165, + serialized_start=1886, + serialized_end=2212, ) @@ -1232,8 +1269,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=2168, - serialized_end=2333, + serialized_start=2215, + serialized_end=2380, ) @@ -1270,8 +1307,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=2335, - serialized_end=2387, + serialized_start=2382, + serialized_end=2434, ) @@ -1301,8 +1338,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=2389, - serialized_end=2421, + serialized_start=2436, + serialized_end=2468, ) @@ -1346,8 +1383,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=2423, - serialized_end=2493, + serialized_start=2470, + serialized_end=2540, ) @@ -1384,8 +1421,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=2495, - serialized_end=2547, + serialized_start=2542, + serialized_end=2594, ) @@ -1450,10 +1487,11 @@ extension_ranges=[], oneofs=[ ], - serialized_start=2550, - serialized_end=2806, + serialized_start=2597, + serialized_end=2853, ) +_CREATESTREAMREQUEST.fields_by_name['CompactEnabled'].enum_type = _COMPACTENABLED _SUBSCRIBEREQUEST.fields_by_name['startPosition'].enum_type = _STARTPOSITION _FETCHMETADATARESPONSE.fields_by_name['brokers'].message_type = _BROKER _FETCHMETADATARESPONSE.fields_by_name['metadata'].message_type = _STREAMMETADATA @@ -1502,6 +1540,7 @@ DESCRIPTOR.message_types_by_name['PauseStreamOp'] = _PAUSESTREAMOP DESCRIPTOR.message_types_by_name['ResumeStreamOp'] = _RESUMESTREAMOP DESCRIPTOR.message_types_by_name['ActivityStreamEvent'] = _ACTIVITYSTREAMEVENT +DESCRIPTOR.enum_types_by_name['CompactEnabled'] = _COMPACTENABLED DESCRIPTOR.enum_types_by_name['StartPosition'] = _STARTPOSITION DESCRIPTOR.enum_types_by_name['AckPolicy'] = _ACKPOLICY DESCRIPTOR.enum_types_by_name['ActivityStreamOp'] = _ACTIVITYSTREAMOP @@ -1718,8 +1757,8 @@ file=DESCRIPTOR, index=0, serialized_options=None, - serialized_start=3032, - serialized_end=3542, + serialized_start=3137, + serialized_end=3647, methods=[ _descriptor.MethodDescriptor( name='CreateStream', From e1d3d5f1c5de574ff4b90a8a4682521e071f078d Mon Sep 17 00:00:00 2001 From: Tung Hoang Date: Sat, 13 Jun 2020 18:57:04 +0200 Subject: [PATCH 4/6] Use custom nullable message for StreamConfig --- api.proto | 42 +-- go/api.pb.go | 863 ++++++++++++++++++++++++++++++++++++-------------- py/api_pb2.py | 295 +++++++++++------ 3 files changed, 838 insertions(+), 362 deletions(-) diff --git a/api.proto b/api.proto index 51ee13f..df09256 100644 --- a/api.proto +++ b/api.proto @@ -3,28 +3,34 @@ package proto; option java_package = "io.liftbridge.proto"; -// Custom Stream Config -enum CompactEnabled { - UNKNOWN = 0; - ENABLED = 1; - DISABLED = 2; + +message RetentionMaxBytes { + int64 value = 1; // Value of RetentionMaxBytes config +} + +message RetentionMaxMessages { + int64 value = 1; +} + +message CompactEnabled { + bool value = 1; } // CreateStreamRequest is sent to create a new stream. message CreateStreamRequest { - string subject = 1; // Stream NATS subject - string name = 2; // Stream name (unique per subject) - string group = 3; // Partitions NATS subject amongst group members - int32 replicationFactor = 4; // Number of stream replicas - int32 partitions = 5; // Number of stream partitions - int64 RetentionMaxBytes = 6; // Custom StreamConfig - int64 RetentionMaxMessages = 7; // Custom StreamConfig - int64 RetentionMaxAge = 8; // Custom StreamConfig - int64 CleanerInterval = 9; // Custom StreamConfig - int64 SegmentMaxBytes = 10; // Custom StreamConfig - int64 SegmentMaxAge = 11; // Custom StreamConfig - int64 CompactMaxGoroutines = 12; // Custom StreamConfig - CompactEnabled CompactEnabled = 13; + string subject = 1; // Stream NATS subject + string name = 2; // Stream name (unique per subject) + string group = 3; // Partitions NATS subject amongst group members + int32 replicationFactor = 4; // Number of stream replicas + int32 partitions = 5; // Number of stream partitions + RetentionMaxBytes RetentionMaxBytes = 6; // Custom StreamConfig + RetentionMaxMessages RetentionMaxMessages = 7; // Custom StreamConfig + int64 RetentionMaxAge = 8; // Custom StreamConfig + int64 CleanerInterval = 9; // Custom StreamConfig + int64 SegmentMaxBytes = 10; // Custom StreamConfig + int64 SegmentMaxAge = 11; // Custom StreamConfig + int32 CompactMaxGoroutines = 12; // Custom StreamConfig + bool CompactEnabled = 13; } // CreateStreamResponse is sent by server after creating a stream. diff --git a/go/api.pb.go b/go/api.pb.go index 2012b05..74e641d 100644 --- a/go/api.pb.go +++ b/go/api.pb.go @@ -8,6 +8,9 @@ api.proto It has these top-level messages: + RetentionMaxBytes + RetentionMaxMessages + CompactEnabled CreateStreamRequest CreateStreamResponse DeleteStreamRequest @@ -56,31 +59,6 @@ var _ = math.Inf // proto package needs to be updated. const _ = proto1.ProtoPackageIsVersion2 // please upgrade the proto package -// Custom Stream Config -type CompactEnabled int32 - -const ( - CompactEnabled_UNKNOWN CompactEnabled = 0 - CompactEnabled_ENABLED CompactEnabled = 1 - CompactEnabled_DISABLED CompactEnabled = 2 -) - -var CompactEnabled_name = map[int32]string{ - 0: "UNKNOWN", - 1: "ENABLED", - 2: "DISABLED", -} -var CompactEnabled_value = map[string]int32{ - "UNKNOWN": 0, - "ENABLED": 1, - "DISABLED": 2, -} - -func (x CompactEnabled) String() string { - return proto1.EnumName(CompactEnabled_name, int32(x)) -} -func (CompactEnabled) EnumDescriptor() ([]byte, []int) { return fileDescriptorApi, []int{0} } - // StartPosition determines the start-position type on a subscription. type StartPosition int32 @@ -110,7 +88,7 @@ var StartPosition_value = map[string]int32{ func (x StartPosition) String() string { return proto1.EnumName(StartPosition_name, int32(x)) } -func (StartPosition) EnumDescriptor() ([]byte, []int) { return fileDescriptorApi, []int{1} } +func (StartPosition) EnumDescriptor() ([]byte, []int) { return fileDescriptorApi, []int{0} } // AckPolicy controls the behavior of message acknowledgements. type AckPolicy int32 @@ -135,7 +113,7 @@ var AckPolicy_value = map[string]int32{ func (x AckPolicy) String() string { return proto1.EnumName(AckPolicy_name, int32(x)) } -func (AckPolicy) EnumDescriptor() ([]byte, []int) { return fileDescriptorApi, []int{2} } +func (AckPolicy) EnumDescriptor() ([]byte, []int) { return fileDescriptorApi, []int{1} } // ActivityStreamOp represents an activity stream operation. type ActivityStreamOp int32 @@ -163,7 +141,7 @@ var ActivityStreamOp_value = map[string]int32{ func (x ActivityStreamOp) String() string { return proto1.EnumName(ActivityStreamOp_name, int32(x)) } -func (ActivityStreamOp) EnumDescriptor() ([]byte, []int) { return fileDescriptorApi, []int{3} } +func (ActivityStreamOp) EnumDescriptor() ([]byte, []int) { return fileDescriptorApi, []int{2} } type StreamMetadata_Error int32 @@ -184,29 +162,77 @@ var StreamMetadata_Error_value = map[string]int32{ func (x StreamMetadata_Error) String() string { return proto1.EnumName(StreamMetadata_Error_name, int32(x)) } -func (StreamMetadata_Error) EnumDescriptor() ([]byte, []int) { return fileDescriptorApi, []int{14, 0} } +func (StreamMetadata_Error) EnumDescriptor() ([]byte, []int) { return fileDescriptorApi, []int{17, 0} } + +type RetentionMaxBytes struct { + Value int64 `protobuf:"varint,1,opt,name=value,proto3" json:"value,omitempty"` +} + +func (m *RetentionMaxBytes) Reset() { *m = RetentionMaxBytes{} } +func (m *RetentionMaxBytes) String() string { return proto1.CompactTextString(m) } +func (*RetentionMaxBytes) ProtoMessage() {} +func (*RetentionMaxBytes) Descriptor() ([]byte, []int) { return fileDescriptorApi, []int{0} } + +func (m *RetentionMaxBytes) GetValue() int64 { + if m != nil { + return m.Value + } + return 0 +} + +type RetentionMaxMessages struct { + Value int64 `protobuf:"varint,1,opt,name=value,proto3" json:"value,omitempty"` +} + +func (m *RetentionMaxMessages) Reset() { *m = RetentionMaxMessages{} } +func (m *RetentionMaxMessages) String() string { return proto1.CompactTextString(m) } +func (*RetentionMaxMessages) ProtoMessage() {} +func (*RetentionMaxMessages) Descriptor() ([]byte, []int) { return fileDescriptorApi, []int{1} } + +func (m *RetentionMaxMessages) GetValue() int64 { + if m != nil { + return m.Value + } + return 0 +} + +type CompactEnabled struct { + Value bool `protobuf:"varint,1,opt,name=value,proto3" json:"value,omitempty"` +} + +func (m *CompactEnabled) Reset() { *m = CompactEnabled{} } +func (m *CompactEnabled) String() string { return proto1.CompactTextString(m) } +func (*CompactEnabled) ProtoMessage() {} +func (*CompactEnabled) Descriptor() ([]byte, []int) { return fileDescriptorApi, []int{2} } + +func (m *CompactEnabled) GetValue() bool { + if m != nil { + return m.Value + } + return false +} // CreateStreamRequest is sent to create a new stream. type CreateStreamRequest struct { - Subject string `protobuf:"bytes,1,opt,name=subject,proto3" json:"subject,omitempty"` - Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` - Group string `protobuf:"bytes,3,opt,name=group,proto3" json:"group,omitempty"` - ReplicationFactor int32 `protobuf:"varint,4,opt,name=replicationFactor,proto3" json:"replicationFactor,omitempty"` - Partitions int32 `protobuf:"varint,5,opt,name=partitions,proto3" json:"partitions,omitempty"` - RetentionMaxBytes int64 `protobuf:"varint,6,opt,name=RetentionMaxBytes,proto3" json:"RetentionMaxBytes,omitempty"` - RetentionMaxMessages int64 `protobuf:"varint,7,opt,name=RetentionMaxMessages,proto3" json:"RetentionMaxMessages,omitempty"` - RetentionMaxAge int64 `protobuf:"varint,8,opt,name=RetentionMaxAge,proto3" json:"RetentionMaxAge,omitempty"` - CleanerInterval int64 `protobuf:"varint,9,opt,name=CleanerInterval,proto3" json:"CleanerInterval,omitempty"` - SegmentMaxBytes int64 `protobuf:"varint,10,opt,name=SegmentMaxBytes,proto3" json:"SegmentMaxBytes,omitempty"` - SegmentMaxAge int64 `protobuf:"varint,11,opt,name=SegmentMaxAge,proto3" json:"SegmentMaxAge,omitempty"` - CompactMaxGoroutines int64 `protobuf:"varint,12,opt,name=CompactMaxGoroutines,proto3" json:"CompactMaxGoroutines,omitempty"` - CompactEnabled CompactEnabled `protobuf:"varint,13,opt,name=CompactEnabled,proto3,enum=proto.CompactEnabled" json:"CompactEnabled,omitempty"` + Subject string `protobuf:"bytes,1,opt,name=subject,proto3" json:"subject,omitempty"` + Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` + Group string `protobuf:"bytes,3,opt,name=group,proto3" json:"group,omitempty"` + ReplicationFactor int32 `protobuf:"varint,4,opt,name=replicationFactor,proto3" json:"replicationFactor,omitempty"` + Partitions int32 `protobuf:"varint,5,opt,name=partitions,proto3" json:"partitions,omitempty"` + RetentionMaxBytes *RetentionMaxBytes `protobuf:"bytes,6,opt,name=RetentionMaxBytes" json:"RetentionMaxBytes,omitempty"` + RetentionMaxMessages *RetentionMaxMessages `protobuf:"bytes,7,opt,name=RetentionMaxMessages" json:"RetentionMaxMessages,omitempty"` + RetentionMaxAge int64 `protobuf:"varint,8,opt,name=RetentionMaxAge,proto3" json:"RetentionMaxAge,omitempty"` + CleanerInterval int64 `protobuf:"varint,9,opt,name=CleanerInterval,proto3" json:"CleanerInterval,omitempty"` + SegmentMaxBytes int64 `protobuf:"varint,10,opt,name=SegmentMaxBytes,proto3" json:"SegmentMaxBytes,omitempty"` + SegmentMaxAge int64 `protobuf:"varint,11,opt,name=SegmentMaxAge,proto3" json:"SegmentMaxAge,omitempty"` + CompactMaxGoroutines int32 `protobuf:"varint,12,opt,name=CompactMaxGoroutines,proto3" json:"CompactMaxGoroutines,omitempty"` + CompactEnabled bool `protobuf:"varint,13,opt,name=CompactEnabled,proto3" json:"CompactEnabled,omitempty"` } func (m *CreateStreamRequest) Reset() { *m = CreateStreamRequest{} } func (m *CreateStreamRequest) String() string { return proto1.CompactTextString(m) } func (*CreateStreamRequest) ProtoMessage() {} -func (*CreateStreamRequest) Descriptor() ([]byte, []int) { return fileDescriptorApi, []int{0} } +func (*CreateStreamRequest) Descriptor() ([]byte, []int) { return fileDescriptorApi, []int{3} } func (m *CreateStreamRequest) GetSubject() string { if m != nil { @@ -243,18 +269,18 @@ func (m *CreateStreamRequest) GetPartitions() int32 { return 0 } -func (m *CreateStreamRequest) GetRetentionMaxBytes() int64 { +func (m *CreateStreamRequest) GetRetentionMaxBytes() *RetentionMaxBytes { if m != nil { return m.RetentionMaxBytes } - return 0 + return nil } -func (m *CreateStreamRequest) GetRetentionMaxMessages() int64 { +func (m *CreateStreamRequest) GetRetentionMaxMessages() *RetentionMaxMessages { if m != nil { return m.RetentionMaxMessages } - return 0 + return nil } func (m *CreateStreamRequest) GetRetentionMaxAge() int64 { @@ -285,18 +311,18 @@ func (m *CreateStreamRequest) GetSegmentMaxAge() int64 { return 0 } -func (m *CreateStreamRequest) GetCompactMaxGoroutines() int64 { +func (m *CreateStreamRequest) GetCompactMaxGoroutines() int32 { if m != nil { return m.CompactMaxGoroutines } return 0 } -func (m *CreateStreamRequest) GetCompactEnabled() CompactEnabled { +func (m *CreateStreamRequest) GetCompactEnabled() bool { if m != nil { return m.CompactEnabled } - return CompactEnabled_UNKNOWN + return false } // CreateStreamResponse is sent by server after creating a stream. @@ -306,7 +332,7 @@ type CreateStreamResponse struct { func (m *CreateStreamResponse) Reset() { *m = CreateStreamResponse{} } func (m *CreateStreamResponse) String() string { return proto1.CompactTextString(m) } func (*CreateStreamResponse) ProtoMessage() {} -func (*CreateStreamResponse) Descriptor() ([]byte, []int) { return fileDescriptorApi, []int{1} } +func (*CreateStreamResponse) Descriptor() ([]byte, []int) { return fileDescriptorApi, []int{4} } // DeleteStreamRequest is sent to delete a stream. type DeleteStreamRequest struct { @@ -316,7 +342,7 @@ type DeleteStreamRequest struct { func (m *DeleteStreamRequest) Reset() { *m = DeleteStreamRequest{} } func (m *DeleteStreamRequest) String() string { return proto1.CompactTextString(m) } func (*DeleteStreamRequest) ProtoMessage() {} -func (*DeleteStreamRequest) Descriptor() ([]byte, []int) { return fileDescriptorApi, []int{2} } +func (*DeleteStreamRequest) Descriptor() ([]byte, []int) { return fileDescriptorApi, []int{5} } func (m *DeleteStreamRequest) GetName() string { if m != nil { @@ -332,7 +358,7 @@ type DeleteStreamResponse struct { func (m *DeleteStreamResponse) Reset() { *m = DeleteStreamResponse{} } func (m *DeleteStreamResponse) String() string { return proto1.CompactTextString(m) } func (*DeleteStreamResponse) ProtoMessage() {} -func (*DeleteStreamResponse) Descriptor() ([]byte, []int) { return fileDescriptorApi, []int{3} } +func (*DeleteStreamResponse) Descriptor() ([]byte, []int) { return fileDescriptorApi, []int{6} } // PauseStreamRequest is sent to pause the specified stream partitions. If no // partitions are specified, this will pause all partitions in the stream. @@ -347,7 +373,7 @@ type PauseStreamRequest struct { func (m *PauseStreamRequest) Reset() { *m = PauseStreamRequest{} } func (m *PauseStreamRequest) String() string { return proto1.CompactTextString(m) } func (*PauseStreamRequest) ProtoMessage() {} -func (*PauseStreamRequest) Descriptor() ([]byte, []int) { return fileDescriptorApi, []int{4} } +func (*PauseStreamRequest) Descriptor() ([]byte, []int) { return fileDescriptorApi, []int{7} } func (m *PauseStreamRequest) GetName() string { if m != nil { @@ -377,7 +403,7 @@ type PauseStreamResponse struct { func (m *PauseStreamResponse) Reset() { *m = PauseStreamResponse{} } func (m *PauseStreamResponse) String() string { return proto1.CompactTextString(m) } func (*PauseStreamResponse) ProtoMessage() {} -func (*PauseStreamResponse) Descriptor() ([]byte, []int) { return fileDescriptorApi, []int{5} } +func (*PauseStreamResponse) Descriptor() ([]byte, []int) { return fileDescriptorApi, []int{8} } // SubscribeRequest is sent to subscribe to a stream partition. type SubscribeRequest struct { @@ -392,7 +418,7 @@ type SubscribeRequest struct { func (m *SubscribeRequest) Reset() { *m = SubscribeRequest{} } func (m *SubscribeRequest) String() string { return proto1.CompactTextString(m) } func (*SubscribeRequest) ProtoMessage() {} -func (*SubscribeRequest) Descriptor() ([]byte, []int) { return fileDescriptorApi, []int{6} } +func (*SubscribeRequest) Descriptor() ([]byte, []int) { return fileDescriptorApi, []int{9} } func (m *SubscribeRequest) GetStream() string { if m != nil { @@ -444,7 +470,7 @@ type FetchMetadataRequest struct { func (m *FetchMetadataRequest) Reset() { *m = FetchMetadataRequest{} } func (m *FetchMetadataRequest) String() string { return proto1.CompactTextString(m) } func (*FetchMetadataRequest) ProtoMessage() {} -func (*FetchMetadataRequest) Descriptor() ([]byte, []int) { return fileDescriptorApi, []int{7} } +func (*FetchMetadataRequest) Descriptor() ([]byte, []int) { return fileDescriptorApi, []int{10} } func (m *FetchMetadataRequest) GetStreams() []string { if m != nil { @@ -462,7 +488,7 @@ type FetchMetadataResponse struct { func (m *FetchMetadataResponse) Reset() { *m = FetchMetadataResponse{} } func (m *FetchMetadataResponse) String() string { return proto1.CompactTextString(m) } func (*FetchMetadataResponse) ProtoMessage() {} -func (*FetchMetadataResponse) Descriptor() ([]byte, []int) { return fileDescriptorApi, []int{8} } +func (*FetchMetadataResponse) Descriptor() ([]byte, []int) { return fileDescriptorApi, []int{11} } func (m *FetchMetadataResponse) GetBrokers() []*Broker { if m != nil { @@ -493,7 +519,7 @@ type PublishRequest struct { func (m *PublishRequest) Reset() { *m = PublishRequest{} } func (m *PublishRequest) String() string { return proto1.CompactTextString(m) } func (*PublishRequest) ProtoMessage() {} -func (*PublishRequest) Descriptor() ([]byte, []int) { return fileDescriptorApi, []int{9} } +func (*PublishRequest) Descriptor() ([]byte, []int) { return fileDescriptorApi, []int{12} } func (m *PublishRequest) GetKey() []byte { if m != nil { @@ -560,7 +586,7 @@ type PublishResponse struct { func (m *PublishResponse) Reset() { *m = PublishResponse{} } func (m *PublishResponse) String() string { return proto1.CompactTextString(m) } func (*PublishResponse) ProtoMessage() {} -func (*PublishResponse) Descriptor() ([]byte, []int) { return fileDescriptorApi, []int{10} } +func (*PublishResponse) Descriptor() ([]byte, []int) { return fileDescriptorApi, []int{13} } func (m *PublishResponse) GetAck() *Ack { if m != nil { @@ -584,7 +610,7 @@ type PublishToSubjectRequest struct { func (m *PublishToSubjectRequest) Reset() { *m = PublishToSubjectRequest{} } func (m *PublishToSubjectRequest) String() string { return proto1.CompactTextString(m) } func (*PublishToSubjectRequest) ProtoMessage() {} -func (*PublishToSubjectRequest) Descriptor() ([]byte, []int) { return fileDescriptorApi, []int{11} } +func (*PublishToSubjectRequest) Descriptor() ([]byte, []int) { return fileDescriptorApi, []int{14} } func (m *PublishToSubjectRequest) GetKey() []byte { if m != nil { @@ -644,7 +670,7 @@ type PublishToSubjectResponse struct { func (m *PublishToSubjectResponse) Reset() { *m = PublishToSubjectResponse{} } func (m *PublishToSubjectResponse) String() string { return proto1.CompactTextString(m) } func (*PublishToSubjectResponse) ProtoMessage() {} -func (*PublishToSubjectResponse) Descriptor() ([]byte, []int) { return fileDescriptorApi, []int{12} } +func (*PublishToSubjectResponse) Descriptor() ([]byte, []int) { return fileDescriptorApi, []int{15} } func (m *PublishToSubjectResponse) GetAck() *Ack { if m != nil { @@ -663,7 +689,7 @@ type Broker struct { func (m *Broker) Reset() { *m = Broker{} } func (m *Broker) String() string { return proto1.CompactTextString(m) } func (*Broker) ProtoMessage() {} -func (*Broker) Descriptor() ([]byte, []int) { return fileDescriptorApi, []int{13} } +func (*Broker) Descriptor() ([]byte, []int) { return fileDescriptorApi, []int{16} } func (m *Broker) GetId() string { if m != nil { @@ -697,7 +723,7 @@ type StreamMetadata struct { func (m *StreamMetadata) Reset() { *m = StreamMetadata{} } func (m *StreamMetadata) String() string { return proto1.CompactTextString(m) } func (*StreamMetadata) ProtoMessage() {} -func (*StreamMetadata) Descriptor() ([]byte, []int) { return fileDescriptorApi, []int{14} } +func (*StreamMetadata) Descriptor() ([]byte, []int) { return fileDescriptorApi, []int{17} } func (m *StreamMetadata) GetName() string { if m != nil { @@ -738,7 +764,7 @@ type PartitionMetadata struct { func (m *PartitionMetadata) Reset() { *m = PartitionMetadata{} } func (m *PartitionMetadata) String() string { return proto1.CompactTextString(m) } func (*PartitionMetadata) ProtoMessage() {} -func (*PartitionMetadata) Descriptor() ([]byte, []int) { return fileDescriptorApi, []int{15} } +func (*PartitionMetadata) Descriptor() ([]byte, []int) { return fileDescriptorApi, []int{18} } func (m *PartitionMetadata) GetId() int32 { if m != nil { @@ -787,7 +813,7 @@ type Message struct { func (m *Message) Reset() { *m = Message{} } func (m *Message) String() string { return proto1.CompactTextString(m) } func (*Message) ProtoMessage() {} -func (*Message) Descriptor() ([]byte, []int) { return fileDescriptorApi, []int{16} } +func (*Message) Descriptor() ([]byte, []int) { return fileDescriptorApi, []int{19} } func (m *Message) GetOffset() int64 { if m != nil { @@ -888,7 +914,7 @@ type Ack struct { func (m *Ack) Reset() { *m = Ack{} } func (m *Ack) String() string { return proto1.CompactTextString(m) } func (*Ack) ProtoMessage() {} -func (*Ack) Descriptor() ([]byte, []int) { return fileDescriptorApi, []int{17} } +func (*Ack) Descriptor() ([]byte, []int) { return fileDescriptorApi, []int{20} } func (m *Ack) GetStream() string { if m != nil { @@ -948,7 +974,7 @@ type CreateStreamOp struct { func (m *CreateStreamOp) Reset() { *m = CreateStreamOp{} } func (m *CreateStreamOp) String() string { return proto1.CompactTextString(m) } func (*CreateStreamOp) ProtoMessage() {} -func (*CreateStreamOp) Descriptor() ([]byte, []int) { return fileDescriptorApi, []int{18} } +func (*CreateStreamOp) Descriptor() ([]byte, []int) { return fileDescriptorApi, []int{21} } func (m *CreateStreamOp) GetStream() string { if m != nil { @@ -972,7 +998,7 @@ type DeleteStreamOp struct { func (m *DeleteStreamOp) Reset() { *m = DeleteStreamOp{} } func (m *DeleteStreamOp) String() string { return proto1.CompactTextString(m) } func (*DeleteStreamOp) ProtoMessage() {} -func (*DeleteStreamOp) Descriptor() ([]byte, []int) { return fileDescriptorApi, []int{19} } +func (*DeleteStreamOp) Descriptor() ([]byte, []int) { return fileDescriptorApi, []int{22} } func (m *DeleteStreamOp) GetStream() string { if m != nil { @@ -991,7 +1017,7 @@ type PauseStreamOp struct { func (m *PauseStreamOp) Reset() { *m = PauseStreamOp{} } func (m *PauseStreamOp) String() string { return proto1.CompactTextString(m) } func (*PauseStreamOp) ProtoMessage() {} -func (*PauseStreamOp) Descriptor() ([]byte, []int) { return fileDescriptorApi, []int{20} } +func (*PauseStreamOp) Descriptor() ([]byte, []int) { return fileDescriptorApi, []int{23} } func (m *PauseStreamOp) GetStream() string { if m != nil { @@ -1023,7 +1049,7 @@ type ResumeStreamOp struct { func (m *ResumeStreamOp) Reset() { *m = ResumeStreamOp{} } func (m *ResumeStreamOp) String() string { return proto1.CompactTextString(m) } func (*ResumeStreamOp) ProtoMessage() {} -func (*ResumeStreamOp) Descriptor() ([]byte, []int) { return fileDescriptorApi, []int{21} } +func (*ResumeStreamOp) Descriptor() ([]byte, []int) { return fileDescriptorApi, []int{24} } func (m *ResumeStreamOp) GetStream() string { if m != nil { @@ -1052,7 +1078,7 @@ type ActivityStreamEvent struct { func (m *ActivityStreamEvent) Reset() { *m = ActivityStreamEvent{} } func (m *ActivityStreamEvent) String() string { return proto1.CompactTextString(m) } func (*ActivityStreamEvent) ProtoMessage() {} -func (*ActivityStreamEvent) Descriptor() ([]byte, []int) { return fileDescriptorApi, []int{22} } +func (*ActivityStreamEvent) Descriptor() ([]byte, []int) { return fileDescriptorApi, []int{25} } func (m *ActivityStreamEvent) GetId() uint64 { if m != nil { @@ -1097,6 +1123,9 @@ func (m *ActivityStreamEvent) GetResumeStreamOp() *ResumeStreamOp { } func init() { + proto1.RegisterType((*RetentionMaxBytes)(nil), "proto.RetentionMaxBytes") + proto1.RegisterType((*RetentionMaxMessages)(nil), "proto.RetentionMaxMessages") + proto1.RegisterType((*CompactEnabled)(nil), "proto.CompactEnabled") proto1.RegisterType((*CreateStreamRequest)(nil), "proto.CreateStreamRequest") proto1.RegisterType((*CreateStreamResponse)(nil), "proto.CreateStreamResponse") proto1.RegisterType((*DeleteStreamRequest)(nil), "proto.DeleteStreamRequest") @@ -1120,7 +1149,6 @@ func init() { proto1.RegisterType((*PauseStreamOp)(nil), "proto.PauseStreamOp") proto1.RegisterType((*ResumeStreamOp)(nil), "proto.ResumeStreamOp") proto1.RegisterType((*ActivityStreamEvent)(nil), "proto.ActivityStreamEvent") - proto1.RegisterEnum("proto.CompactEnabled", CompactEnabled_name, CompactEnabled_value) proto1.RegisterEnum("proto.StartPosition", StartPosition_name, StartPosition_value) proto1.RegisterEnum("proto.AckPolicy", AckPolicy_name, AckPolicy_value) proto1.RegisterEnum("proto.ActivityStreamOp", ActivityStreamOp_name, ActivityStreamOp_value) @@ -1467,6 +1495,80 @@ var _API_serviceDesc = grpc.ServiceDesc{ Metadata: "api.proto", } +func (m *RetentionMaxBytes) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RetentionMaxBytes) MarshalTo(dAtA []byte) (int, error) { + var i int + _ = i + var l int + _ = l + if m.Value != 0 { + dAtA[i] = 0x8 + i++ + i = encodeVarintApi(dAtA, i, uint64(m.Value)) + } + return i, nil +} + +func (m *RetentionMaxMessages) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RetentionMaxMessages) MarshalTo(dAtA []byte) (int, error) { + var i int + _ = i + var l int + _ = l + if m.Value != 0 { + dAtA[i] = 0x8 + i++ + i = encodeVarintApi(dAtA, i, uint64(m.Value)) + } + return i, nil +} + +func (m *CompactEnabled) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *CompactEnabled) MarshalTo(dAtA []byte) (int, error) { + var i int + _ = i + var l int + _ = l + if m.Value { + dAtA[i] = 0x8 + i++ + if m.Value { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i++ + } + return i, nil +} + func (m *CreateStreamRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) @@ -1510,15 +1612,25 @@ func (m *CreateStreamRequest) MarshalTo(dAtA []byte) (int, error) { i++ i = encodeVarintApi(dAtA, i, uint64(m.Partitions)) } - if m.RetentionMaxBytes != 0 { - dAtA[i] = 0x30 + if m.RetentionMaxBytes != nil { + dAtA[i] = 0x32 i++ - i = encodeVarintApi(dAtA, i, uint64(m.RetentionMaxBytes)) + i = encodeVarintApi(dAtA, i, uint64(m.RetentionMaxBytes.Size())) + n1, err := m.RetentionMaxBytes.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n1 } - if m.RetentionMaxMessages != 0 { - dAtA[i] = 0x38 + if m.RetentionMaxMessages != nil { + dAtA[i] = 0x3a i++ - i = encodeVarintApi(dAtA, i, uint64(m.RetentionMaxMessages)) + i = encodeVarintApi(dAtA, i, uint64(m.RetentionMaxMessages.Size())) + n2, err := m.RetentionMaxMessages.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n2 } if m.RetentionMaxAge != 0 { dAtA[i] = 0x40 @@ -1545,10 +1657,15 @@ func (m *CreateStreamRequest) MarshalTo(dAtA []byte) (int, error) { i++ i = encodeVarintApi(dAtA, i, uint64(m.CompactMaxGoroutines)) } - if m.CompactEnabled != 0 { + if m.CompactEnabled { dAtA[i] = 0x68 i++ - i = encodeVarintApi(dAtA, i, uint64(m.CompactEnabled)) + if m.CompactEnabled { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i++ } return i, nil } @@ -1635,22 +1752,22 @@ func (m *PauseStreamRequest) MarshalTo(dAtA []byte) (int, error) { i += copy(dAtA[i:], m.Name) } if len(m.Partitions) > 0 { - dAtA2 := make([]byte, len(m.Partitions)*10) - var j1 int + dAtA4 := make([]byte, len(m.Partitions)*10) + var j3 int for _, num1 := range m.Partitions { num := uint64(num1) for num >= 1<<7 { - dAtA2[j1] = uint8(uint64(num)&0x7f | 0x80) + dAtA4[j3] = uint8(uint64(num)&0x7f | 0x80) num >>= 7 - j1++ + j3++ } - dAtA2[j1] = uint8(num) - j1++ + dAtA4[j3] = uint8(num) + j3++ } dAtA[i] = 0x12 i++ - i = encodeVarintApi(dAtA, i, uint64(j1)) - i += copy(dAtA[i:], dAtA2[:j1]) + i = encodeVarintApi(dAtA, i, uint64(j3)) + i += copy(dAtA[i:], dAtA4[:j3]) } if m.ResumeAll { dAtA[i] = 0x18 @@ -1912,11 +2029,11 @@ func (m *PublishResponse) MarshalTo(dAtA []byte) (int, error) { dAtA[i] = 0xa i++ i = encodeVarintApi(dAtA, i, uint64(m.Ack.Size())) - n3, err := m.Ack.MarshalTo(dAtA[i:]) + n5, err := m.Ack.MarshalTo(dAtA[i:]) if err != nil { return 0, err } - i += n3 + i += n5 } return i, nil } @@ -2016,11 +2133,11 @@ func (m *PublishToSubjectResponse) MarshalTo(dAtA []byte) (int, error) { dAtA[i] = 0xa i++ i = encodeVarintApi(dAtA, i, uint64(m.Ack.Size())) - n4, err := m.Ack.MarshalTo(dAtA[i:]) + n6, err := m.Ack.MarshalTo(dAtA[i:]) if err != nil { return 0, err } - i += n4 + i += n6 } return i, nil } @@ -2111,11 +2228,11 @@ func (m *StreamMetadata) MarshalTo(dAtA []byte) (int, error) { dAtA[i] = 0x12 i++ i = encodeVarintApi(dAtA, i, uint64(v.Size())) - n5, err := v.MarshalTo(dAtA[i:]) + n7, err := v.MarshalTo(dAtA[i:]) if err != nil { return 0, err } - i += n5 + i += n7 } } } @@ -2364,22 +2481,22 @@ func (m *CreateStreamOp) MarshalTo(dAtA []byte) (int, error) { i += copy(dAtA[i:], m.Stream) } if len(m.Partitions) > 0 { - dAtA7 := make([]byte, len(m.Partitions)*10) - var j6 int + dAtA9 := make([]byte, len(m.Partitions)*10) + var j8 int for _, num1 := range m.Partitions { num := uint64(num1) for num >= 1<<7 { - dAtA7[j6] = uint8(uint64(num)&0x7f | 0x80) + dAtA9[j8] = uint8(uint64(num)&0x7f | 0x80) num >>= 7 - j6++ + j8++ } - dAtA7[j6] = uint8(num) - j6++ + dAtA9[j8] = uint8(num) + j8++ } dAtA[i] = 0x12 i++ - i = encodeVarintApi(dAtA, i, uint64(j6)) - i += copy(dAtA[i:], dAtA7[:j6]) + i = encodeVarintApi(dAtA, i, uint64(j8)) + i += copy(dAtA[i:], dAtA9[:j8]) } return i, nil } @@ -2430,22 +2547,22 @@ func (m *PauseStreamOp) MarshalTo(dAtA []byte) (int, error) { i += copy(dAtA[i:], m.Stream) } if len(m.Partitions) > 0 { - dAtA9 := make([]byte, len(m.Partitions)*10) - var j8 int + dAtA11 := make([]byte, len(m.Partitions)*10) + var j10 int for _, num1 := range m.Partitions { num := uint64(num1) for num >= 1<<7 { - dAtA9[j8] = uint8(uint64(num)&0x7f | 0x80) + dAtA11[j10] = uint8(uint64(num)&0x7f | 0x80) num >>= 7 - j8++ + j10++ } - dAtA9[j8] = uint8(num) - j8++ + dAtA11[j10] = uint8(num) + j10++ } dAtA[i] = 0x12 i++ - i = encodeVarintApi(dAtA, i, uint64(j8)) - i += copy(dAtA[i:], dAtA9[:j8]) + i = encodeVarintApi(dAtA, i, uint64(j10)) + i += copy(dAtA[i:], dAtA11[:j10]) } if m.ResumeAll { dAtA[i] = 0x18 @@ -2482,22 +2599,22 @@ func (m *ResumeStreamOp) MarshalTo(dAtA []byte) (int, error) { i += copy(dAtA[i:], m.Stream) } if len(m.Partitions) > 0 { - dAtA11 := make([]byte, len(m.Partitions)*10) - var j10 int + dAtA13 := make([]byte, len(m.Partitions)*10) + var j12 int for _, num1 := range m.Partitions { num := uint64(num1) for num >= 1<<7 { - dAtA11[j10] = uint8(uint64(num)&0x7f | 0x80) + dAtA13[j12] = uint8(uint64(num)&0x7f | 0x80) num >>= 7 - j10++ + j12++ } - dAtA11[j10] = uint8(num) - j10++ + dAtA13[j12] = uint8(num) + j12++ } dAtA[i] = 0x12 i++ - i = encodeVarintApi(dAtA, i, uint64(j10)) - i += copy(dAtA[i:], dAtA11[:j10]) + i = encodeVarintApi(dAtA, i, uint64(j12)) + i += copy(dAtA[i:], dAtA13[:j12]) } return i, nil } @@ -2531,41 +2648,41 @@ func (m *ActivityStreamEvent) MarshalTo(dAtA []byte) (int, error) { dAtA[i] = 0x1a i++ i = encodeVarintApi(dAtA, i, uint64(m.CreateStreamOp.Size())) - n12, err := m.CreateStreamOp.MarshalTo(dAtA[i:]) + n14, err := m.CreateStreamOp.MarshalTo(dAtA[i:]) if err != nil { return 0, err } - i += n12 + i += n14 } if m.DeleteStreamOp != nil { dAtA[i] = 0x22 i++ i = encodeVarintApi(dAtA, i, uint64(m.DeleteStreamOp.Size())) - n13, err := m.DeleteStreamOp.MarshalTo(dAtA[i:]) + n15, err := m.DeleteStreamOp.MarshalTo(dAtA[i:]) if err != nil { return 0, err } - i += n13 + i += n15 } if m.PauseStreamOp != nil { dAtA[i] = 0x2a i++ i = encodeVarintApi(dAtA, i, uint64(m.PauseStreamOp.Size())) - n14, err := m.PauseStreamOp.MarshalTo(dAtA[i:]) + n16, err := m.PauseStreamOp.MarshalTo(dAtA[i:]) if err != nil { return 0, err } - i += n14 + i += n16 } if m.ResumeStreamOp != nil { dAtA[i] = 0x32 i++ i = encodeVarintApi(dAtA, i, uint64(m.ResumeStreamOp.Size())) - n15, err := m.ResumeStreamOp.MarshalTo(dAtA[i:]) + n17, err := m.ResumeStreamOp.MarshalTo(dAtA[i:]) if err != nil { return 0, err } - i += n15 + i += n17 } return i, nil } @@ -2579,6 +2696,33 @@ func encodeVarintApi(dAtA []byte, offset int, v uint64) int { dAtA[offset] = uint8(v) return offset + 1 } +func (m *RetentionMaxBytes) Size() (n int) { + var l int + _ = l + if m.Value != 0 { + n += 1 + sovApi(uint64(m.Value)) + } + return n +} + +func (m *RetentionMaxMessages) Size() (n int) { + var l int + _ = l + if m.Value != 0 { + n += 1 + sovApi(uint64(m.Value)) + } + return n +} + +func (m *CompactEnabled) Size() (n int) { + var l int + _ = l + if m.Value { + n += 2 + } + return n +} + func (m *CreateStreamRequest) Size() (n int) { var l int _ = l @@ -2600,11 +2744,13 @@ func (m *CreateStreamRequest) Size() (n int) { if m.Partitions != 0 { n += 1 + sovApi(uint64(m.Partitions)) } - if m.RetentionMaxBytes != 0 { - n += 1 + sovApi(uint64(m.RetentionMaxBytes)) + if m.RetentionMaxBytes != nil { + l = m.RetentionMaxBytes.Size() + n += 1 + l + sovApi(uint64(l)) } - if m.RetentionMaxMessages != 0 { - n += 1 + sovApi(uint64(m.RetentionMaxMessages)) + if m.RetentionMaxMessages != nil { + l = m.RetentionMaxMessages.Size() + n += 1 + l + sovApi(uint64(l)) } if m.RetentionMaxAge != 0 { n += 1 + sovApi(uint64(m.RetentionMaxAge)) @@ -2621,8 +2767,8 @@ func (m *CreateStreamRequest) Size() (n int) { if m.CompactMaxGoroutines != 0 { n += 1 + sovApi(uint64(m.CompactMaxGoroutines)) } - if m.CompactEnabled != 0 { - n += 1 + sovApi(uint64(m.CompactEnabled)) + if m.CompactEnabled { + n += 2 } return n } @@ -3102,6 +3248,214 @@ func sovApi(x uint64) (n int) { func sozApi(x uint64) (n int) { return sovApi(uint64((x << 1) ^ uint64((int64(x) >> 63)))) } +func (m *RetentionMaxBytes) 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 ErrIntOverflowApi + } + 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: RetentionMaxBytes: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: RetentionMaxBytes: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Value", wireType) + } + m.Value = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowApi + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Value |= (int64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + default: + iNdEx = preIndex + skippy, err := skipApi(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthApi + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RetentionMaxMessages) 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 ErrIntOverflowApi + } + 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: RetentionMaxMessages: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: RetentionMaxMessages: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Value", wireType) + } + m.Value = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowApi + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Value |= (int64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + default: + iNdEx = preIndex + skippy, err := skipApi(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthApi + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *CompactEnabled) 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 ErrIntOverflowApi + } + 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: CompactEnabled: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: CompactEnabled: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Value", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowApi + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + m.Value = bool(v != 0) + default: + iNdEx = preIndex + skippy, err := skipApi(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthApi + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} func (m *CreateStreamRequest) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 @@ -3257,10 +3611,10 @@ func (m *CreateStreamRequest) Unmarshal(dAtA []byte) error { } } case 6: - if wireType != 0 { + if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field RetentionMaxBytes", wireType) } - m.RetentionMaxBytes = 0 + var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowApi @@ -3270,16 +3624,30 @@ func (m *CreateStreamRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.RetentionMaxBytes |= (int64(b) & 0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } } + if msglen < 0 { + return ErrInvalidLengthApi + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.RetentionMaxBytes == nil { + m.RetentionMaxBytes = &RetentionMaxBytes{} + } + if err := m.RetentionMaxBytes.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex case 7: - if wireType != 0 { + if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field RetentionMaxMessages", wireType) } - m.RetentionMaxMessages = 0 + var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowApi @@ -3289,11 +3657,25 @@ func (m *CreateStreamRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.RetentionMaxMessages |= (int64(b) & 0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } } + if msglen < 0 { + return ErrInvalidLengthApi + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.RetentionMaxMessages == nil { + m.RetentionMaxMessages = &RetentionMaxMessages{} + } + if err := m.RetentionMaxMessages.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex case 8: if wireType != 0 { return fmt.Errorf("proto: wrong wireType = %d for field RetentionMaxAge", wireType) @@ -3384,7 +3766,7 @@ func (m *CreateStreamRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.CompactMaxGoroutines |= (int64(b) & 0x7F) << shift + m.CompactMaxGoroutines |= (int32(b) & 0x7F) << shift if b < 0x80 { break } @@ -3393,7 +3775,7 @@ func (m *CreateStreamRequest) Unmarshal(dAtA []byte) error { if wireType != 0 { return fmt.Errorf("proto: wrong wireType = %d for field CompactEnabled", wireType) } - m.CompactEnabled = 0 + var v int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowApi @@ -3403,11 +3785,12 @@ func (m *CreateStreamRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.CompactEnabled |= (CompactEnabled(b) & 0x7F) << shift + v |= (int(b) & 0x7F) << shift if b < 0x80 { break } } + m.CompactEnabled = bool(v != 0) default: iNdEx = preIndex skippy, err := skipApi(dAtA[iNdEx:]) @@ -7101,102 +7484,102 @@ var ( func init() { proto1.RegisterFile("api.proto", fileDescriptorApi) } var fileDescriptorApi = []byte{ - // 1548 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xbc, 0x57, 0xdd, 0x6e, 0xdb, 0xc6, - 0x12, 0x16, 0x49, 0xfd, 0x98, 0xa3, 0x9f, 0x30, 0xeb, 0x9f, 0xf0, 0x28, 0x81, 0x8f, 0xc1, 0x93, - 0x9c, 0xf8, 0xf8, 0x14, 0x6e, 0xa2, 0xa2, 0x80, 0x61, 0xb4, 0x40, 0x69, 0x9b, 0x6e, 0x84, 0xc8, - 0x92, 0xb0, 0x94, 0x11, 0xf4, 0xa2, 0x08, 0x28, 0x69, 0x6d, 0xb3, 0x96, 0x44, 0x95, 0xa4, 0x8c, - 0xf8, 0x4d, 0x7a, 0xd9, 0xa7, 0xe8, 0x2b, 0x34, 0x97, 0xb9, 0xee, 0x55, 0x91, 0x3e, 0x44, 0xef, - 0x82, 0x62, 0x97, 0x3f, 0xda, 0xa5, 0xe5, 0x28, 0x6d, 0x91, 0x5e, 0x91, 0xfb, 0xed, 0xcc, 0xec, - 0xee, 0xcc, 0x37, 0xb3, 0xb3, 0xa0, 0x3a, 0x53, 0x77, 0x77, 0xea, 0x7b, 0xa1, 0x87, 0x0a, 0xec, - 0x63, 0xfc, 0x98, 0x87, 0xd5, 0x43, 0x9f, 0x38, 0x21, 0xb1, 0x43, 0x9f, 0x38, 0x63, 0x4c, 0xbe, - 0x9f, 0x91, 0x20, 0x44, 0x3a, 0x94, 0x82, 0x59, 0xff, 0x3b, 0x32, 0x08, 0x75, 0x69, 0x4b, 0xda, - 0x56, 0x71, 0x32, 0x44, 0x08, 0xf2, 0x13, 0x67, 0x4c, 0x74, 0x99, 0xc1, 0xec, 0x1f, 0xad, 0x41, - 0xe1, 0xdc, 0xf7, 0x66, 0x53, 0x5d, 0x61, 0x60, 0x34, 0x40, 0x9f, 0xc0, 0x5d, 0x9f, 0x4c, 0x47, - 0xee, 0xc0, 0x09, 0x5d, 0x6f, 0x72, 0xec, 0x0c, 0x42, 0xcf, 0xd7, 0xf3, 0x5b, 0xd2, 0x76, 0x01, - 0xdf, 0x9c, 0x40, 0x9b, 0x00, 0x53, 0xc7, 0x0f, 0x5d, 0x0a, 0x05, 0x7a, 0x81, 0x89, 0x71, 0x08, - 0xb5, 0x86, 0x49, 0x48, 0x26, 0x74, 0x74, 0xe2, 0xbc, 0x3a, 0xb8, 0x0e, 0x49, 0xa0, 0x17, 0xb7, - 0xa4, 0x6d, 0x05, 0xdf, 0x9c, 0x40, 0x0d, 0x58, 0xe3, 0xc1, 0x13, 0x12, 0x04, 0xce, 0x39, 0x09, - 0xf4, 0x12, 0x53, 0x58, 0x38, 0x87, 0xb6, 0xe1, 0x0e, 0x8f, 0x9b, 0xe7, 0x44, 0x5f, 0x61, 0xe2, - 0x59, 0x98, 0x4a, 0x1e, 0x8e, 0x88, 0x33, 0x21, 0x7e, 0x73, 0x12, 0x12, 0xff, 0xca, 0x19, 0xe9, - 0x6a, 0x24, 0x99, 0x81, 0xa9, 0xa4, 0x4d, 0xce, 0xc7, 0x64, 0x12, 0xa6, 0x7b, 0x86, 0x48, 0x32, - 0x03, 0xa3, 0x87, 0x50, 0x9d, 0x43, 0x74, 0xed, 0x32, 0x93, 0x13, 0x41, 0x7a, 0xae, 0x43, 0x6f, - 0x3c, 0x75, 0x06, 0x14, 0xf8, 0xda, 0xf3, 0xbd, 0x59, 0xe8, 0x4e, 0x48, 0xa0, 0x57, 0xa2, 0x73, - 0x2d, 0x9a, 0x43, 0x5f, 0x42, 0x2d, 0xc6, 0xad, 0x89, 0xd3, 0x1f, 0x91, 0xa1, 0x5e, 0xdd, 0x92, - 0xb6, 0x6b, 0x8d, 0xf5, 0x88, 0x0a, 0xbb, 0xe2, 0x24, 0xce, 0x08, 0x1b, 0x1b, 0xb0, 0x26, 0x32, - 0x24, 0x98, 0x7a, 0x93, 0x80, 0x18, 0xff, 0x83, 0xd5, 0x23, 0x32, 0x22, 0x59, 0xe6, 0x24, 0xfc, - 0x90, 0xe6, 0xfc, 0xa0, 0x26, 0x44, 0xd1, 0xd8, 0xc4, 0x19, 0xa0, 0xae, 0x33, 0x0b, 0x96, 0x5b, - 0xc8, 0xb0, 0x43, 0xde, 0x52, 0x32, 0xec, 0x78, 0x00, 0xaa, 0x4f, 0x82, 0xd9, 0x98, 0x98, 0xa3, - 0x11, 0x63, 0xe1, 0x0a, 0x9e, 0x03, 0xc6, 0x3a, 0xac, 0x0a, 0xeb, 0xc4, 0xcb, 0xbf, 0x93, 0x40, - 0xb3, 0x67, 0xfd, 0x60, 0xe0, 0xbb, 0x7d, 0x92, 0xac, 0xbe, 0x01, 0xc5, 0x80, 0x89, 0xc5, 0xeb, - 0xc7, 0x23, 0xba, 0x42, 0xba, 0x1e, 0x23, 0x7f, 0x01, 0xcf, 0x01, 0xb4, 0x0f, 0xd5, 0x20, 0x74, - 0xfc, 0xb0, 0xeb, 0x05, 0x91, 0x84, 0xc2, 0x5c, 0xbc, 0x16, 0xbb, 0xd8, 0xe6, 0xe7, 0xb0, 0x28, - 0x8a, 0x1e, 0x42, 0x99, 0x01, 0x9d, 0xb3, 0xb3, 0x80, 0x84, 0x2c, 0x43, 0x94, 0x03, 0xf9, 0x89, - 0x84, 0x79, 0x18, 0xed, 0x40, 0x8d, 0x0d, 0x7b, 0xee, 0x98, 0x04, 0xa1, 0x33, 0x9e, 0xb2, 0x1c, - 0x89, 0x04, 0x33, 0x33, 0xe8, 0xbf, 0x50, 0xf3, 0x89, 0x33, 0x6c, 0xda, 0x18, 0x47, 0x79, 0xc6, - 0x12, 0x65, 0x05, 0x67, 0x50, 0xe3, 0x09, 0xac, 0x1d, 0x93, 0x70, 0x70, 0x71, 0x42, 0x42, 0x67, - 0xe8, 0x84, 0x0e, 0x9f, 0xfd, 0xec, 0xd4, 0x81, 0x2e, 0x6d, 0x29, 0x2c, 0xfb, 0xa3, 0xa1, 0x11, - 0xc0, 0x7a, 0x46, 0x23, 0xf2, 0x25, 0x7a, 0x0c, 0xa5, 0xbe, 0xef, 0x5d, 0x12, 0x3f, 0x52, 0x29, - 0x37, 0xaa, 0xf1, 0xd1, 0x0f, 0x18, 0x8a, 0x93, 0x59, 0xf4, 0x14, 0x56, 0xc6, 0xb1, 0x32, 0x8b, - 0x63, 0x39, 0xe5, 0x61, 0x14, 0x9d, 0xd4, 0x72, 0x2a, 0x66, 0xfc, 0x22, 0x43, 0xad, 0x3b, 0xeb, - 0x8f, 0xdc, 0xe0, 0x22, 0xd9, 0xa1, 0x06, 0xca, 0x25, 0xb9, 0x66, 0x21, 0xaa, 0x60, 0xfa, 0x4b, - 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e, 0x56, 0x5d, 0x6f, 0x77, - 0xe4, 0x9e, 0x85, 0x7d, 0xdf, 0x1d, 0x9e, 0x93, 0xc8, 0x42, 0xbf, 0xc8, 0x3e, 0x9f, 0xfd, 0x11, - 0x00, 0x00, 0xff, 0xff, 0x9d, 0xad, 0x82, 0xaa, 0x35, 0x12, 0x00, 0x00, + // 1552 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xbc, 0x57, 0x5b, 0x6f, 0xdb, 0xc6, + 0x12, 0x16, 0x49, 0xdd, 0x38, 0xba, 0x84, 0x5e, 0x5f, 0xc2, 0xa3, 0x04, 0x3e, 0x06, 0x4f, 0x72, + 0xe2, 0xf8, 0x04, 0x3e, 0x89, 0x8a, 0x02, 0x81, 0xd1, 0x02, 0x95, 0x1d, 0xba, 0x11, 0x62, 0x59, + 0xc2, 0x4a, 0x46, 0xd0, 0x87, 0x22, 0xa0, 0xa4, 0xb5, 0xcd, 0x5a, 0x12, 0x55, 0x72, 0x65, 0xc4, + 0xff, 0xa4, 0xbf, 0xa4, 0xcf, 0x7d, 0x6b, 0x1e, 0xf3, 0xdc, 0xa7, 0x22, 0xfd, 0x11, 0x7d, 0x0b, + 0x8a, 0x5d, 0xde, 0x96, 0x14, 0x1d, 0xa7, 0x2d, 0xd2, 0x27, 0x72, 0xbf, 0x99, 0x9d, 0xdd, 0x9d, + 0x6f, 0x66, 0x76, 0x16, 0x54, 0x6b, 0x6e, 0xef, 0xce, 0x5d, 0x87, 0x3a, 0xa8, 0xc0, 0x3f, 0xc6, + 0x43, 0x58, 0xc1, 0x84, 0x92, 0x19, 0xb5, 0x9d, 0x59, 0xc7, 0x7a, 0xbd, 0x7f, 0x45, 0x89, 0x87, + 0xd6, 0xa0, 0x70, 0x69, 0x4d, 0x16, 0x44, 0x97, 0xb6, 0xa4, 0x6d, 0x05, 0xfb, 0x03, 0xe3, 0x11, + 0xac, 0x89, 0xa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, 0xe0, 0x16, + 0xfd, 0x6b, 0x99, 0xef, 0xd0, 0x50, 0x23, 0x4b, 0x14, 0xd9, 0x79, 0x0a, 0x6a, 0xf4, 0x40, 0x43, + 0x61, 0x9c, 0xa7, 0x9f, 0x6c, 0x8d, 0x7a, 0xf2, 0x9e, 0x30, 0x72, 0x8f, 0x25, 0x74, 0x04, 0xb5, + 0xc4, 0x43, 0x05, 0x85, 0x3b, 0xce, 0x7a, 0xf0, 0x34, 0xee, 0x66, 0x0b, 0xa3, 0x7d, 0xec, 0x41, + 0x29, 0x68, 0xd0, 0xd0, 0x7a, 0xe6, 0x53, 0xa0, 0xb1, 0x91, 0x86, 0xa3, 0xb9, 0x27, 0xa0, 0xa5, + 0x9b, 0x3b, 0xb4, 0xf9, 0xe1, 0xa6, 0xb6, 0xf1, 0xef, 0x6b, 0xe5, 0xa1, 0xd9, 0xfd, 0xfb, 0x6f, + 0xde, 0x6d, 0x4a, 0x6f, 0xdf, 0x6d, 0x4a, 0xbf, 0xbe, 0xdb, 0x94, 0x7e, 0xf8, 0x6d, 0x33, 0x07, + 0xab, 0xb6, 0xb3, 0x3b, 0xb1, 0x4f, 0xe9, 0xd0, 0xb5, 0xc7, 0x67, 0xc4, 0xb7, 0x30, 0x2c, 0xf2, + 0xcf, 0x67, 0x7f, 0x04, 0x00, 0x00, 0xff, 0xff, 0x9b, 0xbc, 0x78, 0xcc, 0x9c, 0x12, 0x00, 0x00, } diff --git a/py/api_pb2.py b/py/api_pb2.py index 338e30e..ca26bfa 100644 --- a/py/api_pb2.py +++ b/py/api_pb2.py @@ -19,36 +19,9 @@ package='proto', syntax='proto3', serialized_options=b'\n\023io.liftbridge.proto', - serialized_pb=b'\n\tapi.proto\x12\x05proto\"\xda\x02\n\x13\x43reateStreamRequest\x12\x0f\n\x07subject\x18\x01 \x01(\t\x12\x0c\n\x04name\x18\x02 \x01(\t\x12\r\n\x05group\x18\x03 \x01(\t\x12\x19\n\x11replicationFactor\x18\x04 \x01(\x05\x12\x12\n\npartitions\x18\x05 \x01(\x05\x12\x19\n\x11RetentionMaxBytes\x18\x06 \x01(\x03\x12\x1c\n\x14RetentionMaxMessages\x18\x07 \x01(\x03\x12\x17\n\x0fRetentionMaxAge\x18\x08 \x01(\x03\x12\x17\n\x0f\x43leanerInterval\x18\t \x01(\x03\x12\x17\n\x0fSegmentMaxBytes\x18\n \x01(\x03\x12\x15\n\rSegmentMaxAge\x18\x0b \x01(\x03\x12\x1c\n\x14\x43ompactMaxGoroutines\x18\x0c \x01(\x03\x12-\n\x0e\x43ompactEnabled\x18\r \x01(\x0e\x32\x15.proto.CompactEnabled\"\x16\n\x14\x43reateStreamResponse\"#\n\x13\x44\x65leteStreamRequest\x12\x0c\n\x04name\x18\x01 \x01(\t\"\x16\n\x14\x44\x65leteStreamResponse\"I\n\x12PauseStreamRequest\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x12\n\npartitions\x18\x02 \x03(\x05\x12\x11\n\tresumeAll\x18\x03 \x01(\x08\"\x15\n\x13PauseStreamResponse\"\xaf\x01\n\x10SubscribeRequest\x12\x0e\n\x06stream\x18\x01 \x01(\t\x12\x11\n\tpartition\x18\x02 \x01(\x05\x12+\n\rstartPosition\x18\x03 \x01(\x0e\x32\x14.proto.StartPosition\x12\x17\n\x0bstartOffset\x18\x04 \x01(\x03\x42\x02\x30\x01\x12\x1a\n\x0estartTimestamp\x18\x05 \x01(\x03\x42\x02\x30\x01\x12\x16\n\x0ereadISRReplica\x18\x06 \x01(\x08\"\'\n\x14\x46\x65tchMetadataRequest\x12\x0f\n\x07streams\x18\x01 \x03(\t\"`\n\x15\x46\x65tchMetadataResponse\x12\x1e\n\x07\x62rokers\x18\x01 \x03(\x0b\x32\r.proto.Broker\x12\'\n\x08metadata\x18\x02 \x03(\x0b\x32\x15.proto.StreamMetadata\"\x82\x02\n\x0ePublishRequest\x12\x0b\n\x03key\x18\x01 \x01(\x0c\x12\r\n\x05value\x18\x02 \x01(\x0c\x12\x0e\n\x06stream\x18\x03 \x01(\t\x12\x11\n\tpartition\x18\x04 \x01(\x05\x12\x33\n\x07headers\x18\x05 \x03(\x0b\x32\".proto.PublishRequest.HeadersEntry\x12\x10\n\x08\x61\x63kInbox\x18\x06 \x01(\t\x12\x15\n\rcorrelationId\x18\x07 \x01(\t\x12#\n\tackPolicy\x18\x08 \x01(\x0e\x32\x10.proto.AckPolicy\x1a.\n\x0cHeadersEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\x0c:\x02\x38\x01\"*\n\x0fPublishResponse\x12\x17\n\x03\x61\x63k\x18\x01 \x01(\x0b\x32\n.proto.Ack\"\x82\x02\n\x17PublishToSubjectRequest\x12\x0b\n\x03key\x18\x01 \x01(\x0c\x12\r\n\x05value\x18\x02 \x01(\x0c\x12\x0f\n\x07subject\x18\x03 \x01(\t\x12<\n\x07headers\x18\x04 \x03(\x0b\x32+.proto.PublishToSubjectRequest.HeadersEntry\x12\x10\n\x08\x61\x63kInbox\x18\x05 \x01(\t\x12\x15\n\rcorrelationId\x18\x06 \x01(\t\x12#\n\tackPolicy\x18\x07 \x01(\x0e\x32\x10.proto.AckPolicy\x1a.\n\x0cHeadersEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\x0c:\x02\x38\x01\"3\n\x18PublishToSubjectResponse\x12\x17\n\x03\x61\x63k\x18\x01 \x01(\x0b\x32\n.proto.Ack\"0\n\x06\x42roker\x12\n\n\x02id\x18\x01 \x01(\t\x12\x0c\n\x04host\x18\x02 \x01(\t\x12\x0c\n\x04port\x18\x03 \x01(\x05\"\x88\x02\n\x0eStreamMetadata\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x0f\n\x07subject\x18\x02 \x01(\t\x12*\n\x05\x65rror\x18\x03 \x01(\x0e\x32\x1b.proto.StreamMetadata.Error\x12\x39\n\npartitions\x18\x04 \x03(\x0b\x32%.proto.StreamMetadata.PartitionsEntry\x1aK\n\x0fPartitionsEntry\x12\x0b\n\x03key\x18\x01 \x01(\x05\x12\'\n\x05value\x18\x02 \x01(\x0b\x32\x18.proto.PartitionMetadata:\x02\x38\x01\"#\n\x05\x45rror\x12\x06\n\x02OK\x10\x00\x12\x12\n\x0eUNKNOWN_STREAM\x10\x01\"N\n\x11PartitionMetadata\x12\n\n\x02id\x18\x01 \x01(\x05\x12\x0e\n\x06leader\x18\x02 \x01(\t\x12\x10\n\x08replicas\x18\x03 \x03(\t\x12\x0b\n\x03isr\x18\x04 \x03(\t\"\xc6\x02\n\x07Message\x12\x12\n\x06offset\x18\x01 \x01(\x03\x42\x02\x30\x01\x12\x0b\n\x03key\x18\x02 \x01(\x0c\x12\r\n\x05value\x18\x03 \x01(\x0c\x12\x15\n\ttimestamp\x18\x04 \x01(\x03\x42\x02\x30\x01\x12\x0e\n\x06stream\x18\x05 \x01(\t\x12\x11\n\tpartition\x18\x06 \x01(\x05\x12\x0f\n\x07subject\x18\x07 \x01(\t\x12\x14\n\x0creplySubject\x18\x08 \x01(\t\x12,\n\x07headers\x18\t \x03(\x0b\x32\x1b.proto.Message.HeadersEntry\x12\x10\n\x08\x61\x63kInbox\x18\n \x01(\t\x12\x15\n\rcorrelationId\x18\x0b \x01(\t\x12#\n\tackPolicy\x18\x0c \x01(\x0e\x32\x10.proto.AckPolicy\x1a.\n\x0cHeadersEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\x0c:\x02\x38\x01\"\xa5\x01\n\x03\x41\x63k\x12\x0e\n\x06stream\x18\x01 \x01(\t\x12\x18\n\x10partitionSubject\x18\x02 \x01(\t\x12\x12\n\nmsgSubject\x18\x03 \x01(\t\x12\x12\n\x06offset\x18\x04 \x01(\x03\x42\x02\x30\x01\x12\x10\n\x08\x61\x63kInbox\x18\x05 \x01(\t\x12\x15\n\rcorrelationId\x18\x06 \x01(\t\x12#\n\tackPolicy\x18\x07 \x01(\x0e\x32\x10.proto.AckPolicy\"4\n\x0e\x43reateStreamOp\x12\x0e\n\x06stream\x18\x01 \x01(\t\x12\x12\n\npartitions\x18\x02 \x03(\x05\" \n\x0e\x44\x65leteStreamOp\x12\x0e\n\x06stream\x18\x01 \x01(\t\"F\n\rPauseStreamOp\x12\x0e\n\x06stream\x18\x01 \x01(\t\x12\x12\n\npartitions\x18\x02 \x03(\x05\x12\x11\n\tresumeAll\x18\x03 \x01(\x08\"4\n\x0eResumeStreamOp\x12\x0e\n\x06stream\x18\x01 \x01(\t\x12\x12\n\npartitions\x18\x02 \x03(\x05\"\x80\x02\n\x13\x41\x63tivityStreamEvent\x12\n\n\x02id\x18\x01 \x01(\x04\x12#\n\x02op\x18\x02 \x01(\x0e\x32\x17.proto.ActivityStreamOp\x12-\n\x0e\x63reateStreamOp\x18\x03 \x01(\x0b\x32\x15.proto.CreateStreamOp\x12-\n\x0e\x64\x65leteStreamOp\x18\x04 \x01(\x0b\x32\x15.proto.DeleteStreamOp\x12+\n\rpauseStreamOp\x18\x05 \x01(\x0b\x32\x14.proto.PauseStreamOp\x12-\n\x0eresumeStreamOp\x18\x06 \x01(\x0b\x32\x15.proto.ResumeStreamOp*8\n\x0e\x43ompactEnabled\x12\x0b\n\x07UNKNOWN\x10\x00\x12\x0b\n\x07\x45NABLED\x10\x01\x12\x0c\n\x08\x44ISABLED\x10\x02*R\n\rStartPosition\x12\x0c\n\x08NEW_ONLY\x10\x00\x12\n\n\x06OFFSET\x10\x01\x12\x0c\n\x08\x45\x41RLIEST\x10\x02\x12\n\n\x06LATEST\x10\x03\x12\r\n\tTIMESTAMP\x10\x04**\n\tAckPolicy\x12\n\n\x06LEADER\x10\x00\x12\x07\n\x03\x41LL\x10\x01\x12\x08\n\x04NONE\x10\x02*]\n\x10\x41\x63tivityStreamOp\x12\x11\n\rCREATE_STREAM\x10\x00\x12\x11\n\rDELETE_STREAM\x10\x01\x12\x10\n\x0cPAUSE_STREAM\x10\x02\x12\x11\n\rRESUME_STREAM\x10\x03\x32\xfe\x03\n\x03\x41PI\x12I\n\x0c\x43reateStream\x12\x1a.proto.CreateStreamRequest\x1a\x1b.proto.CreateStreamResponse\"\x00\x12I\n\x0c\x44\x65leteStream\x12\x1a.proto.DeleteStreamRequest\x1a\x1b.proto.DeleteStreamResponse\"\x00\x12\x46\n\x0bPauseStream\x12\x19.proto.PauseStreamRequest\x1a\x1a.proto.PauseStreamResponse\"\x00\x12\x38\n\tSubscribe\x12\x17.proto.SubscribeRequest\x1a\x0e.proto.Message\"\x00\x30\x01\x12L\n\rFetchMetadata\x12\x1b.proto.FetchMetadataRequest\x1a\x1c.proto.FetchMetadataResponse\"\x00\x12:\n\x07Publish\x12\x15.proto.PublishRequest\x1a\x16.proto.PublishResponse\"\x00\x12U\n\x10PublishToSubject\x12\x1e.proto.PublishToSubjectRequest\x1a\x1f.proto.PublishToSubjectResponse\"\x00\x42\x15\n\x13io.liftbridge.protob\x06proto3' + serialized_pb=b'\n\tapi.proto\x12\x05proto\"\"\n\x11RetentionMaxBytes\x12\r\n\x05value\x18\x01 \x01(\x03\"%\n\x14RetentionMaxMessages\x12\r\n\x05value\x18\x01 \x01(\x03\"\x1f\n\x0e\x43ompactEnabled\x12\r\n\x05value\x18\x01 \x01(\x08\"\xfa\x02\n\x13\x43reateStreamRequest\x12\x0f\n\x07subject\x18\x01 \x01(\t\x12\x0c\n\x04name\x18\x02 \x01(\t\x12\r\n\x05group\x18\x03 \x01(\t\x12\x19\n\x11replicationFactor\x18\x04 \x01(\x05\x12\x12\n\npartitions\x18\x05 \x01(\x05\x12\x33\n\x11RetentionMaxBytes\x18\x06 \x01(\x0b\x32\x18.proto.RetentionMaxBytes\x12\x39\n\x14RetentionMaxMessages\x18\x07 \x01(\x0b\x32\x1b.proto.RetentionMaxMessages\x12\x17\n\x0fRetentionMaxAge\x18\x08 \x01(\x03\x12\x17\n\x0f\x43leanerInterval\x18\t \x01(\x03\x12\x17\n\x0fSegmentMaxBytes\x18\n \x01(\x03\x12\x15\n\rSegmentMaxAge\x18\x0b \x01(\x03\x12\x1c\n\x14\x43ompactMaxGoroutines\x18\x0c \x01(\x05\x12\x16\n\x0e\x43ompactEnabled\x18\r \x01(\x08\"\x16\n\x14\x43reateStreamResponse\"#\n\x13\x44\x65leteStreamRequest\x12\x0c\n\x04name\x18\x01 \x01(\t\"\x16\n\x14\x44\x65leteStreamResponse\"I\n\x12PauseStreamRequest\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x12\n\npartitions\x18\x02 \x03(\x05\x12\x11\n\tresumeAll\x18\x03 \x01(\x08\"\x15\n\x13PauseStreamResponse\"\xaf\x01\n\x10SubscribeRequest\x12\x0e\n\x06stream\x18\x01 \x01(\t\x12\x11\n\tpartition\x18\x02 \x01(\x05\x12+\n\rstartPosition\x18\x03 \x01(\x0e\x32\x14.proto.StartPosition\x12\x17\n\x0bstartOffset\x18\x04 \x01(\x03\x42\x02\x30\x01\x12\x1a\n\x0estartTimestamp\x18\x05 \x01(\x03\x42\x02\x30\x01\x12\x16\n\x0ereadISRReplica\x18\x06 \x01(\x08\"\'\n\x14\x46\x65tchMetadataRequest\x12\x0f\n\x07streams\x18\x01 \x03(\t\"`\n\x15\x46\x65tchMetadataResponse\x12\x1e\n\x07\x62rokers\x18\x01 \x03(\x0b\x32\r.proto.Broker\x12\'\n\x08metadata\x18\x02 \x03(\x0b\x32\x15.proto.StreamMetadata\"\x82\x02\n\x0ePublishRequest\x12\x0b\n\x03key\x18\x01 \x01(\x0c\x12\r\n\x05value\x18\x02 \x01(\x0c\x12\x0e\n\x06stream\x18\x03 \x01(\t\x12\x11\n\tpartition\x18\x04 \x01(\x05\x12\x33\n\x07headers\x18\x05 \x03(\x0b\x32\".proto.PublishRequest.HeadersEntry\x12\x10\n\x08\x61\x63kInbox\x18\x06 \x01(\t\x12\x15\n\rcorrelationId\x18\x07 \x01(\t\x12#\n\tackPolicy\x18\x08 \x01(\x0e\x32\x10.proto.AckPolicy\x1a.\n\x0cHeadersEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\x0c:\x02\x38\x01\"*\n\x0fPublishResponse\x12\x17\n\x03\x61\x63k\x18\x01 \x01(\x0b\x32\n.proto.Ack\"\x82\x02\n\x17PublishToSubjectRequest\x12\x0b\n\x03key\x18\x01 \x01(\x0c\x12\r\n\x05value\x18\x02 \x01(\x0c\x12\x0f\n\x07subject\x18\x03 \x01(\t\x12<\n\x07headers\x18\x04 \x03(\x0b\x32+.proto.PublishToSubjectRequest.HeadersEntry\x12\x10\n\x08\x61\x63kInbox\x18\x05 \x01(\t\x12\x15\n\rcorrelationId\x18\x06 \x01(\t\x12#\n\tackPolicy\x18\x07 \x01(\x0e\x32\x10.proto.AckPolicy\x1a.\n\x0cHeadersEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\x0c:\x02\x38\x01\"3\n\x18PublishToSubjectResponse\x12\x17\n\x03\x61\x63k\x18\x01 \x01(\x0b\x32\n.proto.Ack\"0\n\x06\x42roker\x12\n\n\x02id\x18\x01 \x01(\t\x12\x0c\n\x04host\x18\x02 \x01(\t\x12\x0c\n\x04port\x18\x03 \x01(\x05\"\x88\x02\n\x0eStreamMetadata\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x0f\n\x07subject\x18\x02 \x01(\t\x12*\n\x05\x65rror\x18\x03 \x01(\x0e\x32\x1b.proto.StreamMetadata.Error\x12\x39\n\npartitions\x18\x04 \x03(\x0b\x32%.proto.StreamMetadata.PartitionsEntry\x1aK\n\x0fPartitionsEntry\x12\x0b\n\x03key\x18\x01 \x01(\x05\x12\'\n\x05value\x18\x02 \x01(\x0b\x32\x18.proto.PartitionMetadata:\x02\x38\x01\"#\n\x05\x45rror\x12\x06\n\x02OK\x10\x00\x12\x12\n\x0eUNKNOWN_STREAM\x10\x01\"N\n\x11PartitionMetadata\x12\n\n\x02id\x18\x01 \x01(\x05\x12\x0e\n\x06leader\x18\x02 \x01(\t\x12\x10\n\x08replicas\x18\x03 \x03(\t\x12\x0b\n\x03isr\x18\x04 \x03(\t\"\xc6\x02\n\x07Message\x12\x12\n\x06offset\x18\x01 \x01(\x03\x42\x02\x30\x01\x12\x0b\n\x03key\x18\x02 \x01(\x0c\x12\r\n\x05value\x18\x03 \x01(\x0c\x12\x15\n\ttimestamp\x18\x04 \x01(\x03\x42\x02\x30\x01\x12\x0e\n\x06stream\x18\x05 \x01(\t\x12\x11\n\tpartition\x18\x06 \x01(\x05\x12\x0f\n\x07subject\x18\x07 \x01(\t\x12\x14\n\x0creplySubject\x18\x08 \x01(\t\x12,\n\x07headers\x18\t \x03(\x0b\x32\x1b.proto.Message.HeadersEntry\x12\x10\n\x08\x61\x63kInbox\x18\n \x01(\t\x12\x15\n\rcorrelationId\x18\x0b \x01(\t\x12#\n\tackPolicy\x18\x0c \x01(\x0e\x32\x10.proto.AckPolicy\x1a.\n\x0cHeadersEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\x0c:\x02\x38\x01\"\xa5\x01\n\x03\x41\x63k\x12\x0e\n\x06stream\x18\x01 \x01(\t\x12\x18\n\x10partitionSubject\x18\x02 \x01(\t\x12\x12\n\nmsgSubject\x18\x03 \x01(\t\x12\x12\n\x06offset\x18\x04 \x01(\x03\x42\x02\x30\x01\x12\x10\n\x08\x61\x63kInbox\x18\x05 \x01(\t\x12\x15\n\rcorrelationId\x18\x06 \x01(\t\x12#\n\tackPolicy\x18\x07 \x01(\x0e\x32\x10.proto.AckPolicy\"4\n\x0e\x43reateStreamOp\x12\x0e\n\x06stream\x18\x01 \x01(\t\x12\x12\n\npartitions\x18\x02 \x03(\x05\" \n\x0e\x44\x65leteStreamOp\x12\x0e\n\x06stream\x18\x01 \x01(\t\"F\n\rPauseStreamOp\x12\x0e\n\x06stream\x18\x01 \x01(\t\x12\x12\n\npartitions\x18\x02 \x03(\x05\x12\x11\n\tresumeAll\x18\x03 \x01(\x08\"4\n\x0eResumeStreamOp\x12\x0e\n\x06stream\x18\x01 \x01(\t\x12\x12\n\npartitions\x18\x02 \x03(\x05\"\x80\x02\n\x13\x41\x63tivityStreamEvent\x12\n\n\x02id\x18\x01 \x01(\x04\x12#\n\x02op\x18\x02 \x01(\x0e\x32\x17.proto.ActivityStreamOp\x12-\n\x0e\x63reateStreamOp\x18\x03 \x01(\x0b\x32\x15.proto.CreateStreamOp\x12-\n\x0e\x64\x65leteStreamOp\x18\x04 \x01(\x0b\x32\x15.proto.DeleteStreamOp\x12+\n\rpauseStreamOp\x18\x05 \x01(\x0b\x32\x14.proto.PauseStreamOp\x12-\n\x0eresumeStreamOp\x18\x06 \x01(\x0b\x32\x15.proto.ResumeStreamOp*R\n\rStartPosition\x12\x0c\n\x08NEW_ONLY\x10\x00\x12\n\n\x06OFFSET\x10\x01\x12\x0c\n\x08\x45\x41RLIEST\x10\x02\x12\n\n\x06LATEST\x10\x03\x12\r\n\tTIMESTAMP\x10\x04**\n\tAckPolicy\x12\n\n\x06LEADER\x10\x00\x12\x07\n\x03\x41LL\x10\x01\x12\x08\n\x04NONE\x10\x02*]\n\x10\x41\x63tivityStreamOp\x12\x11\n\rCREATE_STREAM\x10\x00\x12\x11\n\rDELETE_STREAM\x10\x01\x12\x10\n\x0cPAUSE_STREAM\x10\x02\x12\x11\n\rRESUME_STREAM\x10\x03\x32\xfe\x03\n\x03\x41PI\x12I\n\x0c\x43reateStream\x12\x1a.proto.CreateStreamRequest\x1a\x1b.proto.CreateStreamResponse\"\x00\x12I\n\x0c\x44\x65leteStream\x12\x1a.proto.DeleteStreamRequest\x1a\x1b.proto.DeleteStreamResponse\"\x00\x12\x46\n\x0bPauseStream\x12\x19.proto.PauseStreamRequest\x1a\x1a.proto.PauseStreamResponse\"\x00\x12\x38\n\tSubscribe\x12\x17.proto.SubscribeRequest\x1a\x0e.proto.Message\"\x00\x30\x01\x12L\n\rFetchMetadata\x12\x1b.proto.FetchMetadataRequest\x1a\x1c.proto.FetchMetadataResponse\"\x00\x12:\n\x07Publish\x12\x15.proto.PublishRequest\x1a\x16.proto.PublishResponse\"\x00\x12U\n\x10PublishToSubject\x12\x1e.proto.PublishToSubjectRequest\x1a\x1f.proto.PublishToSubjectResponse\"\x00\x42\x15\n\x13io.liftbridge.protob\x06proto3' ) -_COMPACTENABLED = _descriptor.EnumDescriptor( - name='CompactEnabled', - full_name='proto.CompactEnabled', - filename=None, - file=DESCRIPTOR, - values=[ - _descriptor.EnumValueDescriptor( - name='UNKNOWN', index=0, number=0, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='ENABLED', index=1, number=1, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='DISABLED', index=2, number=2, - serialized_options=None, - type=None), - ], - containing_type=None, - serialized_options=None, - serialized_start=2855, - serialized_end=2911, -) -_sym_db.RegisterEnumDescriptor(_COMPACTENABLED) - -CompactEnabled = enum_type_wrapper.EnumTypeWrapper(_COMPACTENABLED) _STARTPOSITION = _descriptor.EnumDescriptor( name='StartPosition', full_name='proto.StartPosition', @@ -78,8 +51,8 @@ ], containing_type=None, serialized_options=None, - serialized_start=2913, - serialized_end=2995, + serialized_start=2995, + serialized_end=3077, ) _sym_db.RegisterEnumDescriptor(_STARTPOSITION) @@ -105,8 +78,8 @@ ], containing_type=None, serialized_options=None, - serialized_start=2997, - serialized_end=3039, + serialized_start=3079, + serialized_end=3121, ) _sym_db.RegisterEnumDescriptor(_ACKPOLICY) @@ -136,15 +109,12 @@ ], containing_type=None, serialized_options=None, - serialized_start=3041, - serialized_end=3134, + serialized_start=3123, + serialized_end=3216, ) _sym_db.RegisterEnumDescriptor(_ACTIVITYSTREAMOP) ActivityStreamOp = enum_type_wrapper.EnumTypeWrapper(_ACTIVITYSTREAMOP) -UNKNOWN = 0 -ENABLED = 1 -DISABLED = 2 NEW_ONLY = 0 OFFSET = 1 EARLIEST = 2 @@ -176,12 +146,105 @@ ], containing_type=None, serialized_options=None, - serialized_start=1768, - serialized_end=1803, + serialized_start=1908, + serialized_end=1943, ) _sym_db.RegisterEnumDescriptor(_STREAMMETADATA_ERROR) +_RETENTIONMAXBYTES = _descriptor.Descriptor( + name='RetentionMaxBytes', + full_name='proto.RetentionMaxBytes', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='value', full_name='proto.RetentionMaxBytes.value', index=0, + number=1, type=3, cpp_type=2, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=20, + serialized_end=54, +) + + +_RETENTIONMAXMESSAGES = _descriptor.Descriptor( + name='RetentionMaxMessages', + full_name='proto.RetentionMaxMessages', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='value', full_name='proto.RetentionMaxMessages.value', index=0, + number=1, type=3, cpp_type=2, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=56, + serialized_end=93, +) + + +_COMPACTENABLED = _descriptor.Descriptor( + name='CompactEnabled', + full_name='proto.CompactEnabled', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='value', full_name='proto.CompactEnabled.value', index=0, + number=1, type=8, cpp_type=7, label=1, + has_default_value=False, default_value=False, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=95, + serialized_end=126, +) + + _CREATESTREAMREQUEST = _descriptor.Descriptor( name='CreateStreamRequest', full_name='proto.CreateStreamRequest', @@ -226,15 +289,15 @@ serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( name='RetentionMaxBytes', full_name='proto.CreateStreamRequest.RetentionMaxBytes', index=5, - number=6, type=3, cpp_type=2, label=1, - has_default_value=False, default_value=0, + number=6, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( name='RetentionMaxMessages', full_name='proto.CreateStreamRequest.RetentionMaxMessages', index=6, - number=7, type=3, cpp_type=2, label=1, - has_default_value=False, default_value=0, + number=7, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), @@ -268,15 +331,15 @@ serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( name='CompactMaxGoroutines', full_name='proto.CreateStreamRequest.CompactMaxGoroutines', index=11, - number=12, type=3, cpp_type=2, label=1, + number=12, type=5, cpp_type=1, label=1, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( name='CompactEnabled', full_name='proto.CreateStreamRequest.CompactEnabled', index=12, - number=13, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, + number=13, type=8, cpp_type=7, label=1, + has_default_value=False, default_value=False, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), @@ -292,8 +355,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=21, - serialized_end=367, + serialized_start=129, + serialized_end=507, ) @@ -316,8 +379,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=369, - serialized_end=391, + serialized_start=509, + serialized_end=531, ) @@ -347,8 +410,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=393, - serialized_end=428, + serialized_start=533, + serialized_end=568, ) @@ -371,8 +434,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=430, - serialized_end=452, + serialized_start=570, + serialized_end=592, ) @@ -416,8 +479,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=454, - serialized_end=527, + serialized_start=594, + serialized_end=667, ) @@ -440,8 +503,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=529, - serialized_end=550, + serialized_start=669, + serialized_end=690, ) @@ -506,8 +569,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=553, - serialized_end=728, + serialized_start=693, + serialized_end=868, ) @@ -537,8 +600,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=730, - serialized_end=769, + serialized_start=870, + serialized_end=909, ) @@ -575,8 +638,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=771, - serialized_end=867, + serialized_start=911, + serialized_end=1007, ) @@ -613,8 +676,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=1082, - serialized_end=1128, + serialized_start=1222, + serialized_end=1268, ) _PUBLISHREQUEST = _descriptor.Descriptor( @@ -692,8 +755,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=870, - serialized_end=1128, + serialized_start=1010, + serialized_end=1268, ) @@ -723,8 +786,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=1130, - serialized_end=1172, + serialized_start=1270, + serialized_end=1312, ) @@ -761,8 +824,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=1082, - serialized_end=1128, + serialized_start=1222, + serialized_end=1268, ) _PUBLISHTOSUBJECTREQUEST = _descriptor.Descriptor( @@ -833,8 +896,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=1175, - serialized_end=1433, + serialized_start=1315, + serialized_end=1573, ) @@ -864,8 +927,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=1435, - serialized_end=1486, + serialized_start=1575, + serialized_end=1626, ) @@ -909,8 +972,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=1488, - serialized_end=1536, + serialized_start=1628, + serialized_end=1676, ) @@ -947,8 +1010,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=1691, - serialized_end=1766, + serialized_start=1831, + serialized_end=1906, ) _STREAMMETADATA = _descriptor.Descriptor( @@ -999,8 +1062,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=1539, - serialized_end=1803, + serialized_start=1679, + serialized_end=1943, ) @@ -1051,8 +1114,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=1805, - serialized_end=1883, + serialized_start=1945, + serialized_end=2023, ) @@ -1089,8 +1152,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=1082, - serialized_end=1128, + serialized_start=1222, + serialized_end=1268, ) _MESSAGE = _descriptor.Descriptor( @@ -1196,8 +1259,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=1886, - serialized_end=2212, + serialized_start=2026, + serialized_end=2352, ) @@ -1269,8 +1332,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=2215, - serialized_end=2380, + serialized_start=2355, + serialized_end=2520, ) @@ -1307,8 +1370,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=2382, - serialized_end=2434, + serialized_start=2522, + serialized_end=2574, ) @@ -1338,8 +1401,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=2436, - serialized_end=2468, + serialized_start=2576, + serialized_end=2608, ) @@ -1383,8 +1446,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=2470, - serialized_end=2540, + serialized_start=2610, + serialized_end=2680, ) @@ -1421,8 +1484,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=2542, - serialized_end=2594, + serialized_start=2682, + serialized_end=2734, ) @@ -1487,11 +1550,12 @@ extension_ranges=[], oneofs=[ ], - serialized_start=2597, - serialized_end=2853, + serialized_start=2737, + serialized_end=2993, ) -_CREATESTREAMREQUEST.fields_by_name['CompactEnabled'].enum_type = _COMPACTENABLED +_CREATESTREAMREQUEST.fields_by_name['RetentionMaxBytes'].message_type = _RETENTIONMAXBYTES +_CREATESTREAMREQUEST.fields_by_name['RetentionMaxMessages'].message_type = _RETENTIONMAXMESSAGES _SUBSCRIBEREQUEST.fields_by_name['startPosition'].enum_type = _STARTPOSITION _FETCHMETADATARESPONSE.fields_by_name['brokers'].message_type = _BROKER _FETCHMETADATARESPONSE.fields_by_name['metadata'].message_type = _STREAMMETADATA @@ -1517,6 +1581,9 @@ _ACTIVITYSTREAMEVENT.fields_by_name['deleteStreamOp'].message_type = _DELETESTREAMOP _ACTIVITYSTREAMEVENT.fields_by_name['pauseStreamOp'].message_type = _PAUSESTREAMOP _ACTIVITYSTREAMEVENT.fields_by_name['resumeStreamOp'].message_type = _RESUMESTREAMOP +DESCRIPTOR.message_types_by_name['RetentionMaxBytes'] = _RETENTIONMAXBYTES +DESCRIPTOR.message_types_by_name['RetentionMaxMessages'] = _RETENTIONMAXMESSAGES +DESCRIPTOR.message_types_by_name['CompactEnabled'] = _COMPACTENABLED DESCRIPTOR.message_types_by_name['CreateStreamRequest'] = _CREATESTREAMREQUEST DESCRIPTOR.message_types_by_name['CreateStreamResponse'] = _CREATESTREAMRESPONSE DESCRIPTOR.message_types_by_name['DeleteStreamRequest'] = _DELETESTREAMREQUEST @@ -1540,12 +1607,32 @@ DESCRIPTOR.message_types_by_name['PauseStreamOp'] = _PAUSESTREAMOP DESCRIPTOR.message_types_by_name['ResumeStreamOp'] = _RESUMESTREAMOP DESCRIPTOR.message_types_by_name['ActivityStreamEvent'] = _ACTIVITYSTREAMEVENT -DESCRIPTOR.enum_types_by_name['CompactEnabled'] = _COMPACTENABLED DESCRIPTOR.enum_types_by_name['StartPosition'] = _STARTPOSITION DESCRIPTOR.enum_types_by_name['AckPolicy'] = _ACKPOLICY DESCRIPTOR.enum_types_by_name['ActivityStreamOp'] = _ACTIVITYSTREAMOP _sym_db.RegisterFileDescriptor(DESCRIPTOR) +RetentionMaxBytes = _reflection.GeneratedProtocolMessageType('RetentionMaxBytes', (_message.Message,), { + 'DESCRIPTOR' : _RETENTIONMAXBYTES, + '__module__' : 'api_pb2' + # @@protoc_insertion_point(class_scope:proto.RetentionMaxBytes) + }) +_sym_db.RegisterMessage(RetentionMaxBytes) + +RetentionMaxMessages = _reflection.GeneratedProtocolMessageType('RetentionMaxMessages', (_message.Message,), { + 'DESCRIPTOR' : _RETENTIONMAXMESSAGES, + '__module__' : 'api_pb2' + # @@protoc_insertion_point(class_scope:proto.RetentionMaxMessages) + }) +_sym_db.RegisterMessage(RetentionMaxMessages) + +CompactEnabled = _reflection.GeneratedProtocolMessageType('CompactEnabled', (_message.Message,), { + 'DESCRIPTOR' : _COMPACTENABLED, + '__module__' : 'api_pb2' + # @@protoc_insertion_point(class_scope:proto.CompactEnabled) + }) +_sym_db.RegisterMessage(CompactEnabled) + CreateStreamRequest = _reflection.GeneratedProtocolMessageType('CreateStreamRequest', (_message.Message,), { 'DESCRIPTOR' : _CREATESTREAMREQUEST, '__module__' : 'api_pb2' @@ -1757,8 +1844,8 @@ file=DESCRIPTOR, index=0, serialized_options=None, - serialized_start=3137, - serialized_end=3647, + serialized_start=3219, + serialized_end=3729, methods=[ _descriptor.MethodDescriptor( name='CreateStream', From c3810eb6984c309daa6917b066b1ba5b9262b804 Mon Sep 17 00:00:00 2001 From: Tung Hoang Date: Sat, 13 Jun 2020 23:08:49 +0200 Subject: [PATCH 5/6] Use nested message for custom stream configuration --- api.proto | 22 ++-- go/api.pb.go | 335 ++++++++++++++++++++++++++------------------------ py/api_pb2.py | 133 ++++++++++---------- 3 files changed, 253 insertions(+), 237 deletions(-) diff --git a/api.proto b/api.proto index df09256..439edfd 100644 --- a/api.proto +++ b/api.proto @@ -5,15 +5,15 @@ option java_package = "io.liftbridge.proto"; message RetentionMaxBytes { - int64 value = 1; // Value of RetentionMaxBytes config + int64 value = 1; } message RetentionMaxMessages { - int64 value = 1; + int64 value = 1; } message CompactEnabled { - bool value = 1; + bool value = 1; } // CreateStreamRequest is sent to create a new stream. @@ -23,14 +23,14 @@ message CreateStreamRequest { string group = 3; // Partitions NATS subject amongst group members int32 replicationFactor = 4; // Number of stream replicas int32 partitions = 5; // Number of stream partitions - RetentionMaxBytes RetentionMaxBytes = 6; // Custom StreamConfig - RetentionMaxMessages RetentionMaxMessages = 7; // Custom StreamConfig - int64 RetentionMaxAge = 8; // Custom StreamConfig - int64 CleanerInterval = 9; // Custom StreamConfig - int64 SegmentMaxBytes = 10; // Custom StreamConfig - int64 SegmentMaxAge = 11; // Custom StreamConfig - int32 CompactMaxGoroutines = 12; // Custom StreamConfig - bool CompactEnabled = 13; + RetentionMaxBytes RetentionMaxBytes = 6; // The maximum size a stream's log can grow to, in bytes. + RetentionMaxMessages RetentionMaxMessages = 7; // The maximum size a stream's log can grow to, in messages + int64 RetentionMaxAge = 8; // The TTL for stream log segment files + int64 CleanerInterval = 9; // The frequency to check for log cleaner + int64 SegmentMaxBytes = 10; // The maximum size of a single stream log segment file in bytes + int64 SegmentMaxAge = 11; // The maximum time before a new stream log segment is rolled out + int32 CompactMaxGoroutines = 12; // The maximum number of concurrent goroutines to use for compaction on a stream log + CompactEnabled CompactEnabled = 13; // CompactEnabled controls compaction for a stream. } // CreateStreamResponse is sent by server after creating a stream. diff --git a/go/api.pb.go b/go/api.pb.go index 74e641d..2e0ca43 100644 --- a/go/api.pb.go +++ b/go/api.pb.go @@ -226,7 +226,7 @@ type CreateStreamRequest struct { SegmentMaxBytes int64 `protobuf:"varint,10,opt,name=SegmentMaxBytes,proto3" json:"SegmentMaxBytes,omitempty"` SegmentMaxAge int64 `protobuf:"varint,11,opt,name=SegmentMaxAge,proto3" json:"SegmentMaxAge,omitempty"` CompactMaxGoroutines int32 `protobuf:"varint,12,opt,name=CompactMaxGoroutines,proto3" json:"CompactMaxGoroutines,omitempty"` - CompactEnabled bool `protobuf:"varint,13,opt,name=CompactEnabled,proto3" json:"CompactEnabled,omitempty"` + CompactEnabled *CompactEnabled `protobuf:"bytes,13,opt,name=CompactEnabled" json:"CompactEnabled,omitempty"` } func (m *CreateStreamRequest) Reset() { *m = CreateStreamRequest{} } @@ -318,11 +318,11 @@ func (m *CreateStreamRequest) GetCompactMaxGoroutines() int32 { return 0 } -func (m *CreateStreamRequest) GetCompactEnabled() bool { +func (m *CreateStreamRequest) GetCompactEnabled() *CompactEnabled { if m != nil { return m.CompactEnabled } - return false + return nil } // CreateStreamResponse is sent by server after creating a stream. @@ -1657,15 +1657,15 @@ func (m *CreateStreamRequest) MarshalTo(dAtA []byte) (int, error) { i++ i = encodeVarintApi(dAtA, i, uint64(m.CompactMaxGoroutines)) } - if m.CompactEnabled { - dAtA[i] = 0x68 + if m.CompactEnabled != nil { + dAtA[i] = 0x6a i++ - if m.CompactEnabled { - dAtA[i] = 1 - } else { - dAtA[i] = 0 + i = encodeVarintApi(dAtA, i, uint64(m.CompactEnabled.Size())) + n3, err := m.CompactEnabled.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err } - i++ + i += n3 } return i, nil } @@ -1752,22 +1752,22 @@ func (m *PauseStreamRequest) MarshalTo(dAtA []byte) (int, error) { i += copy(dAtA[i:], m.Name) } if len(m.Partitions) > 0 { - dAtA4 := make([]byte, len(m.Partitions)*10) - var j3 int + dAtA5 := make([]byte, len(m.Partitions)*10) + var j4 int for _, num1 := range m.Partitions { num := uint64(num1) for num >= 1<<7 { - dAtA4[j3] = uint8(uint64(num)&0x7f | 0x80) + dAtA5[j4] = uint8(uint64(num)&0x7f | 0x80) num >>= 7 - j3++ + j4++ } - dAtA4[j3] = uint8(num) - j3++ + dAtA5[j4] = uint8(num) + j4++ } dAtA[i] = 0x12 i++ - i = encodeVarintApi(dAtA, i, uint64(j3)) - i += copy(dAtA[i:], dAtA4[:j3]) + i = encodeVarintApi(dAtA, i, uint64(j4)) + i += copy(dAtA[i:], dAtA5[:j4]) } if m.ResumeAll { dAtA[i] = 0x18 @@ -2029,11 +2029,11 @@ func (m *PublishResponse) MarshalTo(dAtA []byte) (int, error) { dAtA[i] = 0xa i++ i = encodeVarintApi(dAtA, i, uint64(m.Ack.Size())) - n5, err := m.Ack.MarshalTo(dAtA[i:]) + n6, err := m.Ack.MarshalTo(dAtA[i:]) if err != nil { return 0, err } - i += n5 + i += n6 } return i, nil } @@ -2133,11 +2133,11 @@ func (m *PublishToSubjectResponse) MarshalTo(dAtA []byte) (int, error) { dAtA[i] = 0xa i++ i = encodeVarintApi(dAtA, i, uint64(m.Ack.Size())) - n6, err := m.Ack.MarshalTo(dAtA[i:]) + n7, err := m.Ack.MarshalTo(dAtA[i:]) if err != nil { return 0, err } - i += n6 + i += n7 } return i, nil } @@ -2228,11 +2228,11 @@ func (m *StreamMetadata) MarshalTo(dAtA []byte) (int, error) { dAtA[i] = 0x12 i++ i = encodeVarintApi(dAtA, i, uint64(v.Size())) - n7, err := v.MarshalTo(dAtA[i:]) + n8, err := v.MarshalTo(dAtA[i:]) if err != nil { return 0, err } - i += n7 + i += n8 } } } @@ -2481,22 +2481,22 @@ func (m *CreateStreamOp) MarshalTo(dAtA []byte) (int, error) { i += copy(dAtA[i:], m.Stream) } if len(m.Partitions) > 0 { - dAtA9 := make([]byte, len(m.Partitions)*10) - var j8 int + dAtA10 := make([]byte, len(m.Partitions)*10) + var j9 int for _, num1 := range m.Partitions { num := uint64(num1) for num >= 1<<7 { - dAtA9[j8] = uint8(uint64(num)&0x7f | 0x80) + dAtA10[j9] = uint8(uint64(num)&0x7f | 0x80) num >>= 7 - j8++ + j9++ } - dAtA9[j8] = uint8(num) - j8++ + dAtA10[j9] = uint8(num) + j9++ } dAtA[i] = 0x12 i++ - i = encodeVarintApi(dAtA, i, uint64(j8)) - i += copy(dAtA[i:], dAtA9[:j8]) + i = encodeVarintApi(dAtA, i, uint64(j9)) + i += copy(dAtA[i:], dAtA10[:j9]) } return i, nil } @@ -2547,22 +2547,22 @@ func (m *PauseStreamOp) MarshalTo(dAtA []byte) (int, error) { i += copy(dAtA[i:], m.Stream) } if len(m.Partitions) > 0 { - dAtA11 := make([]byte, len(m.Partitions)*10) - var j10 int + dAtA12 := make([]byte, len(m.Partitions)*10) + var j11 int for _, num1 := range m.Partitions { num := uint64(num1) for num >= 1<<7 { - dAtA11[j10] = uint8(uint64(num)&0x7f | 0x80) + dAtA12[j11] = uint8(uint64(num)&0x7f | 0x80) num >>= 7 - j10++ + j11++ } - dAtA11[j10] = uint8(num) - j10++ + dAtA12[j11] = uint8(num) + j11++ } dAtA[i] = 0x12 i++ - i = encodeVarintApi(dAtA, i, uint64(j10)) - i += copy(dAtA[i:], dAtA11[:j10]) + i = encodeVarintApi(dAtA, i, uint64(j11)) + i += copy(dAtA[i:], dAtA12[:j11]) } if m.ResumeAll { dAtA[i] = 0x18 @@ -2599,22 +2599,22 @@ func (m *ResumeStreamOp) MarshalTo(dAtA []byte) (int, error) { i += copy(dAtA[i:], m.Stream) } if len(m.Partitions) > 0 { - dAtA13 := make([]byte, len(m.Partitions)*10) - var j12 int + dAtA14 := make([]byte, len(m.Partitions)*10) + var j13 int for _, num1 := range m.Partitions { num := uint64(num1) for num >= 1<<7 { - dAtA13[j12] = uint8(uint64(num)&0x7f | 0x80) + dAtA14[j13] = uint8(uint64(num)&0x7f | 0x80) num >>= 7 - j12++ + j13++ } - dAtA13[j12] = uint8(num) - j12++ + dAtA14[j13] = uint8(num) + j13++ } dAtA[i] = 0x12 i++ - i = encodeVarintApi(dAtA, i, uint64(j12)) - i += copy(dAtA[i:], dAtA13[:j12]) + i = encodeVarintApi(dAtA, i, uint64(j13)) + i += copy(dAtA[i:], dAtA14[:j13]) } return i, nil } @@ -2648,41 +2648,41 @@ func (m *ActivityStreamEvent) MarshalTo(dAtA []byte) (int, error) { dAtA[i] = 0x1a i++ i = encodeVarintApi(dAtA, i, uint64(m.CreateStreamOp.Size())) - n14, err := m.CreateStreamOp.MarshalTo(dAtA[i:]) + n15, err := m.CreateStreamOp.MarshalTo(dAtA[i:]) if err != nil { return 0, err } - i += n14 + i += n15 } if m.DeleteStreamOp != nil { dAtA[i] = 0x22 i++ i = encodeVarintApi(dAtA, i, uint64(m.DeleteStreamOp.Size())) - n15, err := m.DeleteStreamOp.MarshalTo(dAtA[i:]) + n16, err := m.DeleteStreamOp.MarshalTo(dAtA[i:]) if err != nil { return 0, err } - i += n15 + i += n16 } if m.PauseStreamOp != nil { dAtA[i] = 0x2a i++ i = encodeVarintApi(dAtA, i, uint64(m.PauseStreamOp.Size())) - n16, err := m.PauseStreamOp.MarshalTo(dAtA[i:]) + n17, err := m.PauseStreamOp.MarshalTo(dAtA[i:]) if err != nil { return 0, err } - i += n16 + i += n17 } if m.ResumeStreamOp != nil { dAtA[i] = 0x32 i++ i = encodeVarintApi(dAtA, i, uint64(m.ResumeStreamOp.Size())) - n17, err := m.ResumeStreamOp.MarshalTo(dAtA[i:]) + n18, err := m.ResumeStreamOp.MarshalTo(dAtA[i:]) if err != nil { return 0, err } - i += n17 + i += n18 } return i, nil } @@ -2767,8 +2767,9 @@ func (m *CreateStreamRequest) Size() (n int) { if m.CompactMaxGoroutines != 0 { n += 1 + sovApi(uint64(m.CompactMaxGoroutines)) } - if m.CompactEnabled { - n += 2 + if m.CompactEnabled != nil { + l = m.CompactEnabled.Size() + n += 1 + l + sovApi(uint64(l)) } return n } @@ -3772,10 +3773,10 @@ func (m *CreateStreamRequest) Unmarshal(dAtA []byte) error { } } case 13: - if wireType != 0 { + if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field CompactEnabled", wireType) } - var v int + var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowApi @@ -3785,12 +3786,25 @@ func (m *CreateStreamRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= (int(b) & 0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } } - m.CompactEnabled = bool(v != 0) + if msglen < 0 { + return ErrInvalidLengthApi + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.CompactEnabled == nil { + m.CompactEnabled = &CompactEnabled{} + } + if err := m.CompactEnabled.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipApi(dAtA[iNdEx:]) @@ -7484,102 +7498,103 @@ var ( func init() { proto1.RegisterFile("api.proto", fileDescriptorApi) } var fileDescriptorApi = []byte{ - // 1552 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xbc, 0x57, 0x5b, 0x6f, 0xdb, 0xc6, - 0x12, 0x16, 0x49, 0xdd, 0x38, 0xba, 0x84, 0x5e, 0x5f, 0xc2, 0xa3, 0x04, 0x3e, 0x06, 0x4f, 0x72, - 0xe2, 0xf8, 0x04, 0x3e, 0x89, 0x8a, 0x02, 0x81, 0xd1, 0x02, 0x95, 0x1d, 0xba, 0x11, 0x62, 0x59, - 0xc2, 0x4a, 0x46, 0xd0, 0x87, 0x22, 0xa0, 0xa4, 0xb5, 0xcd, 0x5a, 0x12, 0x55, 0x72, 0x65, 0xc4, - 0xff, 0xa4, 0xbf, 0xa4, 0xcf, 0x7d, 0x6b, 0x1e, 0xf3, 0xdc, 0xa7, 0x22, 0xfd, 0x11, 0x7d, 0x0b, - 0x8a, 0x5d, 0xde, 0x96, 0x14, 0x1d, 0xa7, 0x2d, 0xd2, 0x27, 0x72, 0xbf, 0x99, 0x9d, 0xdd, 0x9d, - 0x6f, 0x66, 0x76, 0x16, 0x54, 0x6b, 0x6e, 0xef, 0xce, 0x5d, 0x87, 0x3a, 0xa8, 0xc0, 0x3f, 0xc6, - 0x43, 0x58, 0xc1, 0x84, 0x92, 0x19, 0xb5, 0x9d, 0x59, 0xc7, 0x7a, 0xbd, 0x7f, 0x45, 0x89, 0x87, - 0xd6, 0xa0, 0x70, 0x69, 0x4d, 0x16, 0x44, 0x97, 0xb6, 0xa4, 0x6d, 0x05, 0xfb, 0x03, 0xe3, 0x11, - 0xac, 0x89, 0xaa, 0x1d, 0xe2, 0x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d, 0x6b, 0x99, 0xef, 0xd0, 0x50, 0x23, 0x4b, 0x14, 0xd9, 0x79, 0x0a, 0x6a, 0xf4, 0x40, 0x43, - 0x61, 0x9c, 0xa7, 0x9f, 0x6c, 0x8d, 0x7a, 0xf2, 0x9e, 0x30, 0x72, 0x8f, 0x25, 0x74, 0x04, 0xb5, - 0xc4, 0x43, 0x05, 0x85, 0x3b, 0xce, 0x7a, 0xf0, 0x34, 0xee, 0x66, 0x0b, 0xa3, 0x7d, 0xec, 0x41, - 0x29, 0x68, 0xd0, 0xd0, 0x7a, 0xe6, 0x53, 0xa0, 0xb1, 0x91, 0x86, 0xa3, 0xb9, 0x27, 0xa0, 0xa5, - 0x9b, 0x3b, 0xb4, 0xf9, 0xe1, 0xa6, 0xb6, 0xf1, 0xef, 0x6b, 0xe5, 0xa1, 0xd9, 0xfd, 0xfb, 0x6f, - 0xde, 0x6d, 0x4a, 0x6f, 0xdf, 0x6d, 0x4a, 0xbf, 0xbe, 0xdb, 0x94, 0x7e, 0xf8, 0x6d, 0x33, 0x07, - 0xab, 0xb6, 0xb3, 0x3b, 0xb1, 0x4f, 0xe9, 0xd0, 0xb5, 0xc7, 0x67, 0xc4, 0xb7, 0x30, 0x2c, 0xf2, - 0xcf, 0x67, 0x7f, 0x04, 0x00, 0x00, 0xff, 0xff, 0x9b, 0xbc, 0x78, 0xcc, 0x9c, 0x12, 0x00, 0x00, + // 1554 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xbc, 0x57, 0x4b, 0x6f, 0xdb, 0x46, + 0x10, 0x16, 0x49, 0xbd, 0x38, 0x7a, 0x84, 0x5e, 0x3f, 0xc2, 0x2a, 0x81, 0x6b, 0xb0, 0x79, 0x38, + 0x6e, 0xe0, 0x26, 0x2a, 0x0a, 0x04, 0x46, 0x0b, 0x54, 0x76, 0xe8, 0x46, 0x88, 0x65, 0x09, 0x2b, + 0x19, 0x41, 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7, 0xa5, 0x37, 0x6f, 0xd7, 0xa5, 0x3f, 0xde, 0xae, 0x4b, 0x3f, 0xff, 0xb9, + 0x9e, 0x83, 0x65, 0xdb, 0xd9, 0x9e, 0xd8, 0xc7, 0xfe, 0xd0, 0xb5, 0xc7, 0x27, 0x24, 0xb0, 0x30, + 0x2c, 0xb2, 0xcf, 0x97, 0x7f, 0x07, 0x00, 0x00, 0xff, 0xff, 0xe9, 0x22, 0xcf, 0x51, 0xb3, 0x12, + 0x00, 0x00, } diff --git a/py/api_pb2.py b/py/api_pb2.py index ca26bfa..7e43f1c 100644 --- a/py/api_pb2.py +++ b/py/api_pb2.py @@ -19,7 +19,7 @@ package='proto', syntax='proto3', serialized_options=b'\n\023io.liftbridge.proto', - serialized_pb=b'\n\tapi.proto\x12\x05proto\"\"\n\x11RetentionMaxBytes\x12\r\n\x05value\x18\x01 \x01(\x03\"%\n\x14RetentionMaxMessages\x12\r\n\x05value\x18\x01 \x01(\x03\"\x1f\n\x0e\x43ompactEnabled\x12\r\n\x05value\x18\x01 \x01(\x08\"\xfa\x02\n\x13\x43reateStreamRequest\x12\x0f\n\x07subject\x18\x01 \x01(\t\x12\x0c\n\x04name\x18\x02 \x01(\t\x12\r\n\x05group\x18\x03 \x01(\t\x12\x19\n\x11replicationFactor\x18\x04 \x01(\x05\x12\x12\n\npartitions\x18\x05 \x01(\x05\x12\x33\n\x11RetentionMaxBytes\x18\x06 \x01(\x0b\x32\x18.proto.RetentionMaxBytes\x12\x39\n\x14RetentionMaxMessages\x18\x07 \x01(\x0b\x32\x1b.proto.RetentionMaxMessages\x12\x17\n\x0fRetentionMaxAge\x18\x08 \x01(\x03\x12\x17\n\x0f\x43leanerInterval\x18\t \x01(\x03\x12\x17\n\x0fSegmentMaxBytes\x18\n \x01(\x03\x12\x15\n\rSegmentMaxAge\x18\x0b \x01(\x03\x12\x1c\n\x14\x43ompactMaxGoroutines\x18\x0c \x01(\x05\x12\x16\n\x0e\x43ompactEnabled\x18\r \x01(\x08\"\x16\n\x14\x43reateStreamResponse\"#\n\x13\x44\x65leteStreamRequest\x12\x0c\n\x04name\x18\x01 \x01(\t\"\x16\n\x14\x44\x65leteStreamResponse\"I\n\x12PauseStreamRequest\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x12\n\npartitions\x18\x02 \x03(\x05\x12\x11\n\tresumeAll\x18\x03 \x01(\x08\"\x15\n\x13PauseStreamResponse\"\xaf\x01\n\x10SubscribeRequest\x12\x0e\n\x06stream\x18\x01 \x01(\t\x12\x11\n\tpartition\x18\x02 \x01(\x05\x12+\n\rstartPosition\x18\x03 \x01(\x0e\x32\x14.proto.StartPosition\x12\x17\n\x0bstartOffset\x18\x04 \x01(\x03\x42\x02\x30\x01\x12\x1a\n\x0estartTimestamp\x18\x05 \x01(\x03\x42\x02\x30\x01\x12\x16\n\x0ereadISRReplica\x18\x06 \x01(\x08\"\'\n\x14\x46\x65tchMetadataRequest\x12\x0f\n\x07streams\x18\x01 \x03(\t\"`\n\x15\x46\x65tchMetadataResponse\x12\x1e\n\x07\x62rokers\x18\x01 \x03(\x0b\x32\r.proto.Broker\x12\'\n\x08metadata\x18\x02 \x03(\x0b\x32\x15.proto.StreamMetadata\"\x82\x02\n\x0ePublishRequest\x12\x0b\n\x03key\x18\x01 \x01(\x0c\x12\r\n\x05value\x18\x02 \x01(\x0c\x12\x0e\n\x06stream\x18\x03 \x01(\t\x12\x11\n\tpartition\x18\x04 \x01(\x05\x12\x33\n\x07headers\x18\x05 \x03(\x0b\x32\".proto.PublishRequest.HeadersEntry\x12\x10\n\x08\x61\x63kInbox\x18\x06 \x01(\t\x12\x15\n\rcorrelationId\x18\x07 \x01(\t\x12#\n\tackPolicy\x18\x08 \x01(\x0e\x32\x10.proto.AckPolicy\x1a.\n\x0cHeadersEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\x0c:\x02\x38\x01\"*\n\x0fPublishResponse\x12\x17\n\x03\x61\x63k\x18\x01 \x01(\x0b\x32\n.proto.Ack\"\x82\x02\n\x17PublishToSubjectRequest\x12\x0b\n\x03key\x18\x01 \x01(\x0c\x12\r\n\x05value\x18\x02 \x01(\x0c\x12\x0f\n\x07subject\x18\x03 \x01(\t\x12<\n\x07headers\x18\x04 \x03(\x0b\x32+.proto.PublishToSubjectRequest.HeadersEntry\x12\x10\n\x08\x61\x63kInbox\x18\x05 \x01(\t\x12\x15\n\rcorrelationId\x18\x06 \x01(\t\x12#\n\tackPolicy\x18\x07 \x01(\x0e\x32\x10.proto.AckPolicy\x1a.\n\x0cHeadersEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\x0c:\x02\x38\x01\"3\n\x18PublishToSubjectResponse\x12\x17\n\x03\x61\x63k\x18\x01 \x01(\x0b\x32\n.proto.Ack\"0\n\x06\x42roker\x12\n\n\x02id\x18\x01 \x01(\t\x12\x0c\n\x04host\x18\x02 \x01(\t\x12\x0c\n\x04port\x18\x03 \x01(\x05\"\x88\x02\n\x0eStreamMetadata\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x0f\n\x07subject\x18\x02 \x01(\t\x12*\n\x05\x65rror\x18\x03 \x01(\x0e\x32\x1b.proto.StreamMetadata.Error\x12\x39\n\npartitions\x18\x04 \x03(\x0b\x32%.proto.StreamMetadata.PartitionsEntry\x1aK\n\x0fPartitionsEntry\x12\x0b\n\x03key\x18\x01 \x01(\x05\x12\'\n\x05value\x18\x02 \x01(\x0b\x32\x18.proto.PartitionMetadata:\x02\x38\x01\"#\n\x05\x45rror\x12\x06\n\x02OK\x10\x00\x12\x12\n\x0eUNKNOWN_STREAM\x10\x01\"N\n\x11PartitionMetadata\x12\n\n\x02id\x18\x01 \x01(\x05\x12\x0e\n\x06leader\x18\x02 \x01(\t\x12\x10\n\x08replicas\x18\x03 \x03(\t\x12\x0b\n\x03isr\x18\x04 \x03(\t\"\xc6\x02\n\x07Message\x12\x12\n\x06offset\x18\x01 \x01(\x03\x42\x02\x30\x01\x12\x0b\n\x03key\x18\x02 \x01(\x0c\x12\r\n\x05value\x18\x03 \x01(\x0c\x12\x15\n\ttimestamp\x18\x04 \x01(\x03\x42\x02\x30\x01\x12\x0e\n\x06stream\x18\x05 \x01(\t\x12\x11\n\tpartition\x18\x06 \x01(\x05\x12\x0f\n\x07subject\x18\x07 \x01(\t\x12\x14\n\x0creplySubject\x18\x08 \x01(\t\x12,\n\x07headers\x18\t \x03(\x0b\x32\x1b.proto.Message.HeadersEntry\x12\x10\n\x08\x61\x63kInbox\x18\n \x01(\t\x12\x15\n\rcorrelationId\x18\x0b \x01(\t\x12#\n\tackPolicy\x18\x0c \x01(\x0e\x32\x10.proto.AckPolicy\x1a.\n\x0cHeadersEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\x0c:\x02\x38\x01\"\xa5\x01\n\x03\x41\x63k\x12\x0e\n\x06stream\x18\x01 \x01(\t\x12\x18\n\x10partitionSubject\x18\x02 \x01(\t\x12\x12\n\nmsgSubject\x18\x03 \x01(\t\x12\x12\n\x06offset\x18\x04 \x01(\x03\x42\x02\x30\x01\x12\x10\n\x08\x61\x63kInbox\x18\x05 \x01(\t\x12\x15\n\rcorrelationId\x18\x06 \x01(\t\x12#\n\tackPolicy\x18\x07 \x01(\x0e\x32\x10.proto.AckPolicy\"4\n\x0e\x43reateStreamOp\x12\x0e\n\x06stream\x18\x01 \x01(\t\x12\x12\n\npartitions\x18\x02 \x03(\x05\" \n\x0e\x44\x65leteStreamOp\x12\x0e\n\x06stream\x18\x01 \x01(\t\"F\n\rPauseStreamOp\x12\x0e\n\x06stream\x18\x01 \x01(\t\x12\x12\n\npartitions\x18\x02 \x03(\x05\x12\x11\n\tresumeAll\x18\x03 \x01(\x08\"4\n\x0eResumeStreamOp\x12\x0e\n\x06stream\x18\x01 \x01(\t\x12\x12\n\npartitions\x18\x02 \x03(\x05\"\x80\x02\n\x13\x41\x63tivityStreamEvent\x12\n\n\x02id\x18\x01 \x01(\x04\x12#\n\x02op\x18\x02 \x01(\x0e\x32\x17.proto.ActivityStreamOp\x12-\n\x0e\x63reateStreamOp\x18\x03 \x01(\x0b\x32\x15.proto.CreateStreamOp\x12-\n\x0e\x64\x65leteStreamOp\x18\x04 \x01(\x0b\x32\x15.proto.DeleteStreamOp\x12+\n\rpauseStreamOp\x18\x05 \x01(\x0b\x32\x14.proto.PauseStreamOp\x12-\n\x0eresumeStreamOp\x18\x06 \x01(\x0b\x32\x15.proto.ResumeStreamOp*R\n\rStartPosition\x12\x0c\n\x08NEW_ONLY\x10\x00\x12\n\n\x06OFFSET\x10\x01\x12\x0c\n\x08\x45\x41RLIEST\x10\x02\x12\n\n\x06LATEST\x10\x03\x12\r\n\tTIMESTAMP\x10\x04**\n\tAckPolicy\x12\n\n\x06LEADER\x10\x00\x12\x07\n\x03\x41LL\x10\x01\x12\x08\n\x04NONE\x10\x02*]\n\x10\x41\x63tivityStreamOp\x12\x11\n\rCREATE_STREAM\x10\x00\x12\x11\n\rDELETE_STREAM\x10\x01\x12\x10\n\x0cPAUSE_STREAM\x10\x02\x12\x11\n\rRESUME_STREAM\x10\x03\x32\xfe\x03\n\x03\x41PI\x12I\n\x0c\x43reateStream\x12\x1a.proto.CreateStreamRequest\x1a\x1b.proto.CreateStreamResponse\"\x00\x12I\n\x0c\x44\x65leteStream\x12\x1a.proto.DeleteStreamRequest\x1a\x1b.proto.DeleteStreamResponse\"\x00\x12\x46\n\x0bPauseStream\x12\x19.proto.PauseStreamRequest\x1a\x1a.proto.PauseStreamResponse\"\x00\x12\x38\n\tSubscribe\x12\x17.proto.SubscribeRequest\x1a\x0e.proto.Message\"\x00\x30\x01\x12L\n\rFetchMetadata\x12\x1b.proto.FetchMetadataRequest\x1a\x1c.proto.FetchMetadataResponse\"\x00\x12:\n\x07Publish\x12\x15.proto.PublishRequest\x1a\x16.proto.PublishResponse\"\x00\x12U\n\x10PublishToSubject\x12\x1e.proto.PublishToSubjectRequest\x1a\x1f.proto.PublishToSubjectResponse\"\x00\x42\x15\n\x13io.liftbridge.protob\x06proto3' + serialized_pb=b'\n\tapi.proto\x12\x05proto\"\"\n\x11RetentionMaxBytes\x12\r\n\x05value\x18\x01 \x01(\x03\"%\n\x14RetentionMaxMessages\x12\r\n\x05value\x18\x01 \x01(\x03\"\x1f\n\x0e\x43ompactEnabled\x12\r\n\x05value\x18\x01 \x01(\x08\"\x91\x03\n\x13\x43reateStreamRequest\x12\x0f\n\x07subject\x18\x01 \x01(\t\x12\x0c\n\x04name\x18\x02 \x01(\t\x12\r\n\x05group\x18\x03 \x01(\t\x12\x19\n\x11replicationFactor\x18\x04 \x01(\x05\x12\x12\n\npartitions\x18\x05 \x01(\x05\x12\x33\n\x11RetentionMaxBytes\x18\x06 \x01(\x0b\x32\x18.proto.RetentionMaxBytes\x12\x39\n\x14RetentionMaxMessages\x18\x07 \x01(\x0b\x32\x1b.proto.RetentionMaxMessages\x12\x17\n\x0fRetentionMaxAge\x18\x08 \x01(\x03\x12\x17\n\x0f\x43leanerInterval\x18\t \x01(\x03\x12\x17\n\x0fSegmentMaxBytes\x18\n \x01(\x03\x12\x15\n\rSegmentMaxAge\x18\x0b \x01(\x03\x12\x1c\n\x14\x43ompactMaxGoroutines\x18\x0c \x01(\x05\x12-\n\x0e\x43ompactEnabled\x18\r \x01(\x0b\x32\x15.proto.CompactEnabled\"\x16\n\x14\x43reateStreamResponse\"#\n\x13\x44\x65leteStreamRequest\x12\x0c\n\x04name\x18\x01 \x01(\t\"\x16\n\x14\x44\x65leteStreamResponse\"I\n\x12PauseStreamRequest\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x12\n\npartitions\x18\x02 \x03(\x05\x12\x11\n\tresumeAll\x18\x03 \x01(\x08\"\x15\n\x13PauseStreamResponse\"\xaf\x01\n\x10SubscribeRequest\x12\x0e\n\x06stream\x18\x01 \x01(\t\x12\x11\n\tpartition\x18\x02 \x01(\x05\x12+\n\rstartPosition\x18\x03 \x01(\x0e\x32\x14.proto.StartPosition\x12\x17\n\x0bstartOffset\x18\x04 \x01(\x03\x42\x02\x30\x01\x12\x1a\n\x0estartTimestamp\x18\x05 \x01(\x03\x42\x02\x30\x01\x12\x16\n\x0ereadISRReplica\x18\x06 \x01(\x08\"\'\n\x14\x46\x65tchMetadataRequest\x12\x0f\n\x07streams\x18\x01 \x03(\t\"`\n\x15\x46\x65tchMetadataResponse\x12\x1e\n\x07\x62rokers\x18\x01 \x03(\x0b\x32\r.proto.Broker\x12\'\n\x08metadata\x18\x02 \x03(\x0b\x32\x15.proto.StreamMetadata\"\x82\x02\n\x0ePublishRequest\x12\x0b\n\x03key\x18\x01 \x01(\x0c\x12\r\n\x05value\x18\x02 \x01(\x0c\x12\x0e\n\x06stream\x18\x03 \x01(\t\x12\x11\n\tpartition\x18\x04 \x01(\x05\x12\x33\n\x07headers\x18\x05 \x03(\x0b\x32\".proto.PublishRequest.HeadersEntry\x12\x10\n\x08\x61\x63kInbox\x18\x06 \x01(\t\x12\x15\n\rcorrelationId\x18\x07 \x01(\t\x12#\n\tackPolicy\x18\x08 \x01(\x0e\x32\x10.proto.AckPolicy\x1a.\n\x0cHeadersEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\x0c:\x02\x38\x01\"*\n\x0fPublishResponse\x12\x17\n\x03\x61\x63k\x18\x01 \x01(\x0b\x32\n.proto.Ack\"\x82\x02\n\x17PublishToSubjectRequest\x12\x0b\n\x03key\x18\x01 \x01(\x0c\x12\r\n\x05value\x18\x02 \x01(\x0c\x12\x0f\n\x07subject\x18\x03 \x01(\t\x12<\n\x07headers\x18\x04 \x03(\x0b\x32+.proto.PublishToSubjectRequest.HeadersEntry\x12\x10\n\x08\x61\x63kInbox\x18\x05 \x01(\t\x12\x15\n\rcorrelationId\x18\x06 \x01(\t\x12#\n\tackPolicy\x18\x07 \x01(\x0e\x32\x10.proto.AckPolicy\x1a.\n\x0cHeadersEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\x0c:\x02\x38\x01\"3\n\x18PublishToSubjectResponse\x12\x17\n\x03\x61\x63k\x18\x01 \x01(\x0b\x32\n.proto.Ack\"0\n\x06\x42roker\x12\n\n\x02id\x18\x01 \x01(\t\x12\x0c\n\x04host\x18\x02 \x01(\t\x12\x0c\n\x04port\x18\x03 \x01(\x05\"\x88\x02\n\x0eStreamMetadata\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x0f\n\x07subject\x18\x02 \x01(\t\x12*\n\x05\x65rror\x18\x03 \x01(\x0e\x32\x1b.proto.StreamMetadata.Error\x12\x39\n\npartitions\x18\x04 \x03(\x0b\x32%.proto.StreamMetadata.PartitionsEntry\x1aK\n\x0fPartitionsEntry\x12\x0b\n\x03key\x18\x01 \x01(\x05\x12\'\n\x05value\x18\x02 \x01(\x0b\x32\x18.proto.PartitionMetadata:\x02\x38\x01\"#\n\x05\x45rror\x12\x06\n\x02OK\x10\x00\x12\x12\n\x0eUNKNOWN_STREAM\x10\x01\"N\n\x11PartitionMetadata\x12\n\n\x02id\x18\x01 \x01(\x05\x12\x0e\n\x06leader\x18\x02 \x01(\t\x12\x10\n\x08replicas\x18\x03 \x03(\t\x12\x0b\n\x03isr\x18\x04 \x03(\t\"\xc6\x02\n\x07Message\x12\x12\n\x06offset\x18\x01 \x01(\x03\x42\x02\x30\x01\x12\x0b\n\x03key\x18\x02 \x01(\x0c\x12\r\n\x05value\x18\x03 \x01(\x0c\x12\x15\n\ttimestamp\x18\x04 \x01(\x03\x42\x02\x30\x01\x12\x0e\n\x06stream\x18\x05 \x01(\t\x12\x11\n\tpartition\x18\x06 \x01(\x05\x12\x0f\n\x07subject\x18\x07 \x01(\t\x12\x14\n\x0creplySubject\x18\x08 \x01(\t\x12,\n\x07headers\x18\t \x03(\x0b\x32\x1b.proto.Message.HeadersEntry\x12\x10\n\x08\x61\x63kInbox\x18\n \x01(\t\x12\x15\n\rcorrelationId\x18\x0b \x01(\t\x12#\n\tackPolicy\x18\x0c \x01(\x0e\x32\x10.proto.AckPolicy\x1a.\n\x0cHeadersEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\x0c:\x02\x38\x01\"\xa5\x01\n\x03\x41\x63k\x12\x0e\n\x06stream\x18\x01 \x01(\t\x12\x18\n\x10partitionSubject\x18\x02 \x01(\t\x12\x12\n\nmsgSubject\x18\x03 \x01(\t\x12\x12\n\x06offset\x18\x04 \x01(\x03\x42\x02\x30\x01\x12\x10\n\x08\x61\x63kInbox\x18\x05 \x01(\t\x12\x15\n\rcorrelationId\x18\x06 \x01(\t\x12#\n\tackPolicy\x18\x07 \x01(\x0e\x32\x10.proto.AckPolicy\"4\n\x0e\x43reateStreamOp\x12\x0e\n\x06stream\x18\x01 \x01(\t\x12\x12\n\npartitions\x18\x02 \x03(\x05\" \n\x0e\x44\x65leteStreamOp\x12\x0e\n\x06stream\x18\x01 \x01(\t\"F\n\rPauseStreamOp\x12\x0e\n\x06stream\x18\x01 \x01(\t\x12\x12\n\npartitions\x18\x02 \x03(\x05\x12\x11\n\tresumeAll\x18\x03 \x01(\x08\"4\n\x0eResumeStreamOp\x12\x0e\n\x06stream\x18\x01 \x01(\t\x12\x12\n\npartitions\x18\x02 \x03(\x05\"\x80\x02\n\x13\x41\x63tivityStreamEvent\x12\n\n\x02id\x18\x01 \x01(\x04\x12#\n\x02op\x18\x02 \x01(\x0e\x32\x17.proto.ActivityStreamOp\x12-\n\x0e\x63reateStreamOp\x18\x03 \x01(\x0b\x32\x15.proto.CreateStreamOp\x12-\n\x0e\x64\x65leteStreamOp\x18\x04 \x01(\x0b\x32\x15.proto.DeleteStreamOp\x12+\n\rpauseStreamOp\x18\x05 \x01(\x0b\x32\x14.proto.PauseStreamOp\x12-\n\x0eresumeStreamOp\x18\x06 \x01(\x0b\x32\x15.proto.ResumeStreamOp*R\n\rStartPosition\x12\x0c\n\x08NEW_ONLY\x10\x00\x12\n\n\x06OFFSET\x10\x01\x12\x0c\n\x08\x45\x41RLIEST\x10\x02\x12\n\n\x06LATEST\x10\x03\x12\r\n\tTIMESTAMP\x10\x04**\n\tAckPolicy\x12\n\n\x06LEADER\x10\x00\x12\x07\n\x03\x41LL\x10\x01\x12\x08\n\x04NONE\x10\x02*]\n\x10\x41\x63tivityStreamOp\x12\x11\n\rCREATE_STREAM\x10\x00\x12\x11\n\rDELETE_STREAM\x10\x01\x12\x10\n\x0cPAUSE_STREAM\x10\x02\x12\x11\n\rRESUME_STREAM\x10\x03\x32\xfe\x03\n\x03\x41PI\x12I\n\x0c\x43reateStream\x12\x1a.proto.CreateStreamRequest\x1a\x1b.proto.CreateStreamResponse\"\x00\x12I\n\x0c\x44\x65leteStream\x12\x1a.proto.DeleteStreamRequest\x1a\x1b.proto.DeleteStreamResponse\"\x00\x12\x46\n\x0bPauseStream\x12\x19.proto.PauseStreamRequest\x1a\x1a.proto.PauseStreamResponse\"\x00\x12\x38\n\tSubscribe\x12\x17.proto.SubscribeRequest\x1a\x0e.proto.Message\"\x00\x30\x01\x12L\n\rFetchMetadata\x12\x1b.proto.FetchMetadataRequest\x1a\x1c.proto.FetchMetadataResponse\"\x00\x12:\n\x07Publish\x12\x15.proto.PublishRequest\x1a\x16.proto.PublishResponse\"\x00\x12U\n\x10PublishToSubject\x12\x1e.proto.PublishToSubjectRequest\x1a\x1f.proto.PublishToSubjectResponse\"\x00\x42\x15\n\x13io.liftbridge.protob\x06proto3' ) _STARTPOSITION = _descriptor.EnumDescriptor( @@ -51,8 +51,8 @@ ], containing_type=None, serialized_options=None, - serialized_start=2995, - serialized_end=3077, + serialized_start=3018, + serialized_end=3100, ) _sym_db.RegisterEnumDescriptor(_STARTPOSITION) @@ -78,8 +78,8 @@ ], containing_type=None, serialized_options=None, - serialized_start=3079, - serialized_end=3121, + serialized_start=3102, + serialized_end=3144, ) _sym_db.RegisterEnumDescriptor(_ACKPOLICY) @@ -109,8 +109,8 @@ ], containing_type=None, serialized_options=None, - serialized_start=3123, - serialized_end=3216, + serialized_start=3146, + serialized_end=3239, ) _sym_db.RegisterEnumDescriptor(_ACTIVITYSTREAMOP) @@ -146,8 +146,8 @@ ], containing_type=None, serialized_options=None, - serialized_start=1908, - serialized_end=1943, + serialized_start=1931, + serialized_end=1966, ) _sym_db.RegisterEnumDescriptor(_STREAMMETADATA_ERROR) @@ -338,8 +338,8 @@ serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( name='CompactEnabled', full_name='proto.CreateStreamRequest.CompactEnabled', index=12, - number=13, type=8, cpp_type=7, label=1, - has_default_value=False, default_value=False, + number=13, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), @@ -356,7 +356,7 @@ oneofs=[ ], serialized_start=129, - serialized_end=507, + serialized_end=530, ) @@ -379,8 +379,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=509, - serialized_end=531, + serialized_start=532, + serialized_end=554, ) @@ -410,8 +410,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=533, - serialized_end=568, + serialized_start=556, + serialized_end=591, ) @@ -434,8 +434,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=570, - serialized_end=592, + serialized_start=593, + serialized_end=615, ) @@ -479,8 +479,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=594, - serialized_end=667, + serialized_start=617, + serialized_end=690, ) @@ -503,8 +503,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=669, - serialized_end=690, + serialized_start=692, + serialized_end=713, ) @@ -569,8 +569,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=693, - serialized_end=868, + serialized_start=716, + serialized_end=891, ) @@ -600,8 +600,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=870, - serialized_end=909, + serialized_start=893, + serialized_end=932, ) @@ -638,8 +638,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=911, - serialized_end=1007, + serialized_start=934, + serialized_end=1030, ) @@ -676,8 +676,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=1222, - serialized_end=1268, + serialized_start=1245, + serialized_end=1291, ) _PUBLISHREQUEST = _descriptor.Descriptor( @@ -755,8 +755,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=1010, - serialized_end=1268, + serialized_start=1033, + serialized_end=1291, ) @@ -786,8 +786,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=1270, - serialized_end=1312, + serialized_start=1293, + serialized_end=1335, ) @@ -824,8 +824,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=1222, - serialized_end=1268, + serialized_start=1245, + serialized_end=1291, ) _PUBLISHTOSUBJECTREQUEST = _descriptor.Descriptor( @@ -896,8 +896,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=1315, - serialized_end=1573, + serialized_start=1338, + serialized_end=1596, ) @@ -927,8 +927,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=1575, - serialized_end=1626, + serialized_start=1598, + serialized_end=1649, ) @@ -972,8 +972,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=1628, - serialized_end=1676, + serialized_start=1651, + serialized_end=1699, ) @@ -1010,8 +1010,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=1831, - serialized_end=1906, + serialized_start=1854, + serialized_end=1929, ) _STREAMMETADATA = _descriptor.Descriptor( @@ -1062,8 +1062,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=1679, - serialized_end=1943, + serialized_start=1702, + serialized_end=1966, ) @@ -1114,8 +1114,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=1945, - serialized_end=2023, + serialized_start=1968, + serialized_end=2046, ) @@ -1152,8 +1152,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=1222, - serialized_end=1268, + serialized_start=1245, + serialized_end=1291, ) _MESSAGE = _descriptor.Descriptor( @@ -1259,8 +1259,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=2026, - serialized_end=2352, + serialized_start=2049, + serialized_end=2375, ) @@ -1332,8 +1332,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=2355, - serialized_end=2520, + serialized_start=2378, + serialized_end=2543, ) @@ -1370,8 +1370,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=2522, - serialized_end=2574, + serialized_start=2545, + serialized_end=2597, ) @@ -1401,8 +1401,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=2576, - serialized_end=2608, + serialized_start=2599, + serialized_end=2631, ) @@ -1446,8 +1446,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=2610, - serialized_end=2680, + serialized_start=2633, + serialized_end=2703, ) @@ -1484,8 +1484,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=2682, - serialized_end=2734, + serialized_start=2705, + serialized_end=2757, ) @@ -1550,12 +1550,13 @@ extension_ranges=[], oneofs=[ ], - serialized_start=2737, - serialized_end=2993, + serialized_start=2760, + serialized_end=3016, ) _CREATESTREAMREQUEST.fields_by_name['RetentionMaxBytes'].message_type = _RETENTIONMAXBYTES _CREATESTREAMREQUEST.fields_by_name['RetentionMaxMessages'].message_type = _RETENTIONMAXMESSAGES +_CREATESTREAMREQUEST.fields_by_name['CompactEnabled'].message_type = _COMPACTENABLED _SUBSCRIBEREQUEST.fields_by_name['startPosition'].enum_type = _STARTPOSITION _FETCHMETADATARESPONSE.fields_by_name['brokers'].message_type = _BROKER _FETCHMETADATARESPONSE.fields_by_name['metadata'].message_type = _STREAMMETADATA @@ -1844,8 +1845,8 @@ file=DESCRIPTOR, index=0, serialized_options=None, - serialized_start=3219, - serialized_end=3729, + serialized_start=3242, + serialized_end=3752, methods=[ _descriptor.MethodDescriptor( name='CreateStream', From 85b7e67a032ed2f106e67fe10c1dc696719fc515 Mon Sep 17 00:00:00 2001 From: Tung Hoang Date: Sun, 21 Jun 2020 19:08:45 +0200 Subject: [PATCH 6/6] Use generic NullableType for custom stream conf --- api.proto | 24 +- go/api.pb.go | 621 +++++++++++++++++++++++++++++--------------------- py/api_pb2.py | 227 +++++++++--------- 3 files changed, 489 insertions(+), 383 deletions(-) diff --git a/api.proto b/api.proto index 439edfd..4400da1 100644 --- a/api.proto +++ b/api.proto @@ -4,15 +4,15 @@ package proto; option java_package = "io.liftbridge.proto"; -message RetentionMaxBytes { +message NullableInt64 { int64 value = 1; } -message RetentionMaxMessages { - int64 value = 1; +message NullableInt32 { + int32 value = 1; } -message CompactEnabled { +message NullableBool { bool value = 1; } @@ -23,14 +23,14 @@ message CreateStreamRequest { string group = 3; // Partitions NATS subject amongst group members int32 replicationFactor = 4; // Number of stream replicas int32 partitions = 5; // Number of stream partitions - RetentionMaxBytes RetentionMaxBytes = 6; // The maximum size a stream's log can grow to, in bytes. - RetentionMaxMessages RetentionMaxMessages = 7; // The maximum size a stream's log can grow to, in messages - int64 RetentionMaxAge = 8; // The TTL for stream log segment files - int64 CleanerInterval = 9; // The frequency to check for log cleaner - int64 SegmentMaxBytes = 10; // The maximum size of a single stream log segment file in bytes - int64 SegmentMaxAge = 11; // The maximum time before a new stream log segment is rolled out - int32 CompactMaxGoroutines = 12; // The maximum number of concurrent goroutines to use for compaction on a stream log - CompactEnabled CompactEnabled = 13; // CompactEnabled controls compaction for a stream. + NullableInt64 RetentionMaxBytes = 6; // The maximum size a stream's log can grow to, in bytes. + NullableInt64 RetentionMaxMessages = 7; // The maximum size a stream's log can grow to, in messages + NullableInt64 RetentionMaxAge = 8; // The TTL for stream log segment files + NullableInt64 CleanerInterval = 9; // The frequency to check for log cleaner + NullableInt64 SegmentMaxBytes = 10; // The maximum size of a single stream log segment file in bytes + NullableInt64 SegmentMaxAge = 11; // The maximum time before a new stream log segment is rolled out + NullableInt32 CompactMaxGoroutines = 12; // The maximum number of concurrent goroutines to use for compaction on a stream log + NullableBool CompactEnabled = 13; // CompactEnabled controls compaction for a stream. } // CreateStreamResponse is sent by server after creating a stream. diff --git a/go/api.pb.go b/go/api.pb.go index 2e0ca43..f44cd2d 100644 --- a/go/api.pb.go +++ b/go/api.pb.go @@ -8,9 +8,9 @@ api.proto It has these top-level messages: - RetentionMaxBytes - RetentionMaxMessages - CompactEnabled + NullableInt64 + NullableInt32 + NullableBool CreateStreamRequest CreateStreamResponse DeleteStreamRequest @@ -164,48 +164,48 @@ func (x StreamMetadata_Error) String() string { } func (StreamMetadata_Error) EnumDescriptor() ([]byte, []int) { return fileDescriptorApi, []int{17, 0} } -type RetentionMaxBytes struct { +type NullableInt64 struct { Value int64 `protobuf:"varint,1,opt,name=value,proto3" json:"value,omitempty"` } -func (m *RetentionMaxBytes) Reset() { *m = RetentionMaxBytes{} } -func (m *RetentionMaxBytes) String() string { return proto1.CompactTextString(m) } -func (*RetentionMaxBytes) ProtoMessage() {} -func (*RetentionMaxBytes) Descriptor() ([]byte, []int) { return fileDescriptorApi, []int{0} } +func (m *NullableInt64) Reset() { *m = NullableInt64{} } +func (m *NullableInt64) String() string { return proto1.CompactTextString(m) } +func (*NullableInt64) ProtoMessage() {} +func (*NullableInt64) Descriptor() ([]byte, []int) { return fileDescriptorApi, []int{0} } -func (m *RetentionMaxBytes) GetValue() int64 { +func (m *NullableInt64) GetValue() int64 { if m != nil { return m.Value } return 0 } -type RetentionMaxMessages struct { - Value int64 `protobuf:"varint,1,opt,name=value,proto3" json:"value,omitempty"` +type NullableInt32 struct { + Value int32 `protobuf:"varint,1,opt,name=value,proto3" json:"value,omitempty"` } -func (m *RetentionMaxMessages) Reset() { *m = RetentionMaxMessages{} } -func (m *RetentionMaxMessages) String() string { return proto1.CompactTextString(m) } -func (*RetentionMaxMessages) ProtoMessage() {} -func (*RetentionMaxMessages) Descriptor() ([]byte, []int) { return fileDescriptorApi, []int{1} } +func (m *NullableInt32) Reset() { *m = NullableInt32{} } +func (m *NullableInt32) String() string { return proto1.CompactTextString(m) } +func (*NullableInt32) ProtoMessage() {} +func (*NullableInt32) Descriptor() ([]byte, []int) { return fileDescriptorApi, []int{1} } -func (m *RetentionMaxMessages) GetValue() int64 { +func (m *NullableInt32) GetValue() int32 { if m != nil { return m.Value } return 0 } -type CompactEnabled struct { +type NullableBool struct { Value bool `protobuf:"varint,1,opt,name=value,proto3" json:"value,omitempty"` } -func (m *CompactEnabled) Reset() { *m = CompactEnabled{} } -func (m *CompactEnabled) String() string { return proto1.CompactTextString(m) } -func (*CompactEnabled) ProtoMessage() {} -func (*CompactEnabled) Descriptor() ([]byte, []int) { return fileDescriptorApi, []int{2} } +func (m *NullableBool) Reset() { *m = NullableBool{} } +func (m *NullableBool) String() string { return proto1.CompactTextString(m) } +func (*NullableBool) ProtoMessage() {} +func (*NullableBool) Descriptor() ([]byte, []int) { return fileDescriptorApi, []int{2} } -func (m *CompactEnabled) GetValue() bool { +func (m *NullableBool) GetValue() bool { if m != nil { return m.Value } @@ -214,19 +214,19 @@ func (m *CompactEnabled) GetValue() bool { // CreateStreamRequest is sent to create a new stream. type CreateStreamRequest struct { - Subject string `protobuf:"bytes,1,opt,name=subject,proto3" json:"subject,omitempty"` - Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` - Group string `protobuf:"bytes,3,opt,name=group,proto3" json:"group,omitempty"` - ReplicationFactor int32 `protobuf:"varint,4,opt,name=replicationFactor,proto3" json:"replicationFactor,omitempty"` - Partitions int32 `protobuf:"varint,5,opt,name=partitions,proto3" json:"partitions,omitempty"` - RetentionMaxBytes *RetentionMaxBytes `protobuf:"bytes,6,opt,name=RetentionMaxBytes" json:"RetentionMaxBytes,omitempty"` - RetentionMaxMessages *RetentionMaxMessages `protobuf:"bytes,7,opt,name=RetentionMaxMessages" json:"RetentionMaxMessages,omitempty"` - RetentionMaxAge int64 `protobuf:"varint,8,opt,name=RetentionMaxAge,proto3" json:"RetentionMaxAge,omitempty"` - CleanerInterval int64 `protobuf:"varint,9,opt,name=CleanerInterval,proto3" json:"CleanerInterval,omitempty"` - SegmentMaxBytes int64 `protobuf:"varint,10,opt,name=SegmentMaxBytes,proto3" json:"SegmentMaxBytes,omitempty"` - SegmentMaxAge int64 `protobuf:"varint,11,opt,name=SegmentMaxAge,proto3" json:"SegmentMaxAge,omitempty"` - CompactMaxGoroutines int32 `protobuf:"varint,12,opt,name=CompactMaxGoroutines,proto3" json:"CompactMaxGoroutines,omitempty"` - CompactEnabled *CompactEnabled `protobuf:"bytes,13,opt,name=CompactEnabled" json:"CompactEnabled,omitempty"` + Subject string `protobuf:"bytes,1,opt,name=subject,proto3" json:"subject,omitempty"` + Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` + Group string `protobuf:"bytes,3,opt,name=group,proto3" json:"group,omitempty"` + ReplicationFactor int32 `protobuf:"varint,4,opt,name=replicationFactor,proto3" json:"replicationFactor,omitempty"` + Partitions int32 `protobuf:"varint,5,opt,name=partitions,proto3" json:"partitions,omitempty"` + RetentionMaxBytes *NullableInt64 `protobuf:"bytes,6,opt,name=RetentionMaxBytes" json:"RetentionMaxBytes,omitempty"` + RetentionMaxMessages *NullableInt64 `protobuf:"bytes,7,opt,name=RetentionMaxMessages" json:"RetentionMaxMessages,omitempty"` + RetentionMaxAge *NullableInt64 `protobuf:"bytes,8,opt,name=RetentionMaxAge" json:"RetentionMaxAge,omitempty"` + CleanerInterval *NullableInt64 `protobuf:"bytes,9,opt,name=CleanerInterval" json:"CleanerInterval,omitempty"` + SegmentMaxBytes *NullableInt64 `protobuf:"bytes,10,opt,name=SegmentMaxBytes" json:"SegmentMaxBytes,omitempty"` + SegmentMaxAge *NullableInt64 `protobuf:"bytes,11,opt,name=SegmentMaxAge" json:"SegmentMaxAge,omitempty"` + CompactMaxGoroutines *NullableInt32 `protobuf:"bytes,12,opt,name=CompactMaxGoroutines" json:"CompactMaxGoroutines,omitempty"` + CompactEnabled *NullableBool `protobuf:"bytes,13,opt,name=CompactEnabled" json:"CompactEnabled,omitempty"` } func (m *CreateStreamRequest) Reset() { *m = CreateStreamRequest{} } @@ -269,56 +269,56 @@ func (m *CreateStreamRequest) GetPartitions() int32 { return 0 } -func (m *CreateStreamRequest) GetRetentionMaxBytes() *RetentionMaxBytes { +func (m *CreateStreamRequest) GetRetentionMaxBytes() *NullableInt64 { if m != nil { return m.RetentionMaxBytes } return nil } -func (m *CreateStreamRequest) GetRetentionMaxMessages() *RetentionMaxMessages { +func (m *CreateStreamRequest) GetRetentionMaxMessages() *NullableInt64 { if m != nil { return m.RetentionMaxMessages } return nil } -func (m *CreateStreamRequest) GetRetentionMaxAge() int64 { +func (m *CreateStreamRequest) GetRetentionMaxAge() *NullableInt64 { if m != nil { return m.RetentionMaxAge } - return 0 + return nil } -func (m *CreateStreamRequest) GetCleanerInterval() int64 { +func (m *CreateStreamRequest) GetCleanerInterval() *NullableInt64 { if m != nil { return m.CleanerInterval } - return 0 + return nil } -func (m *CreateStreamRequest) GetSegmentMaxBytes() int64 { +func (m *CreateStreamRequest) GetSegmentMaxBytes() *NullableInt64 { if m != nil { return m.SegmentMaxBytes } - return 0 + return nil } -func (m *CreateStreamRequest) GetSegmentMaxAge() int64 { +func (m *CreateStreamRequest) GetSegmentMaxAge() *NullableInt64 { if m != nil { return m.SegmentMaxAge } - return 0 + return nil } -func (m *CreateStreamRequest) GetCompactMaxGoroutines() int32 { +func (m *CreateStreamRequest) GetCompactMaxGoroutines() *NullableInt32 { if m != nil { return m.CompactMaxGoroutines } - return 0 + return nil } -func (m *CreateStreamRequest) GetCompactEnabled() *CompactEnabled { +func (m *CreateStreamRequest) GetCompactEnabled() *NullableBool { if m != nil { return m.CompactEnabled } @@ -1123,9 +1123,9 @@ func (m *ActivityStreamEvent) GetResumeStreamOp() *ResumeStreamOp { } func init() { - proto1.RegisterType((*RetentionMaxBytes)(nil), "proto.RetentionMaxBytes") - proto1.RegisterType((*RetentionMaxMessages)(nil), "proto.RetentionMaxMessages") - proto1.RegisterType((*CompactEnabled)(nil), "proto.CompactEnabled") + proto1.RegisterType((*NullableInt64)(nil), "proto.NullableInt64") + proto1.RegisterType((*NullableInt32)(nil), "proto.NullableInt32") + proto1.RegisterType((*NullableBool)(nil), "proto.NullableBool") proto1.RegisterType((*CreateStreamRequest)(nil), "proto.CreateStreamRequest") proto1.RegisterType((*CreateStreamResponse)(nil), "proto.CreateStreamResponse") proto1.RegisterType((*DeleteStreamRequest)(nil), "proto.DeleteStreamRequest") @@ -1495,7 +1495,7 @@ var _API_serviceDesc = grpc.ServiceDesc{ Metadata: "api.proto", } -func (m *RetentionMaxBytes) Marshal() (dAtA []byte, err error) { +func (m *NullableInt64) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalTo(dAtA) @@ -1505,7 +1505,7 @@ func (m *RetentionMaxBytes) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *RetentionMaxBytes) MarshalTo(dAtA []byte) (int, error) { +func (m *NullableInt64) MarshalTo(dAtA []byte) (int, error) { var i int _ = i var l int @@ -1518,7 +1518,7 @@ func (m *RetentionMaxBytes) MarshalTo(dAtA []byte) (int, error) { return i, nil } -func (m *RetentionMaxMessages) Marshal() (dAtA []byte, err error) { +func (m *NullableInt32) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalTo(dAtA) @@ -1528,7 +1528,7 @@ func (m *RetentionMaxMessages) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *RetentionMaxMessages) MarshalTo(dAtA []byte) (int, error) { +func (m *NullableInt32) MarshalTo(dAtA []byte) (int, error) { var i int _ = i var l int @@ -1541,7 +1541,7 @@ func (m *RetentionMaxMessages) MarshalTo(dAtA []byte) (int, error) { return i, nil } -func (m *CompactEnabled) Marshal() (dAtA []byte, err error) { +func (m *NullableBool) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalTo(dAtA) @@ -1551,7 +1551,7 @@ func (m *CompactEnabled) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *CompactEnabled) MarshalTo(dAtA []byte) (int, error) { +func (m *NullableBool) MarshalTo(dAtA []byte) (int, error) { var i int _ = i var l int @@ -1632,40 +1632,65 @@ func (m *CreateStreamRequest) MarshalTo(dAtA []byte) (int, error) { } i += n2 } - if m.RetentionMaxAge != 0 { - dAtA[i] = 0x40 + if m.RetentionMaxAge != nil { + dAtA[i] = 0x42 i++ - i = encodeVarintApi(dAtA, i, uint64(m.RetentionMaxAge)) + i = encodeVarintApi(dAtA, i, uint64(m.RetentionMaxAge.Size())) + n3, err := m.RetentionMaxAge.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n3 } - if m.CleanerInterval != 0 { - dAtA[i] = 0x48 + if m.CleanerInterval != nil { + dAtA[i] = 0x4a i++ - i = encodeVarintApi(dAtA, i, uint64(m.CleanerInterval)) + i = encodeVarintApi(dAtA, i, uint64(m.CleanerInterval.Size())) + n4, err := m.CleanerInterval.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n4 } - if m.SegmentMaxBytes != 0 { - dAtA[i] = 0x50 + if m.SegmentMaxBytes != nil { + dAtA[i] = 0x52 i++ - i = encodeVarintApi(dAtA, i, uint64(m.SegmentMaxBytes)) + i = encodeVarintApi(dAtA, i, uint64(m.SegmentMaxBytes.Size())) + n5, err := m.SegmentMaxBytes.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n5 } - if m.SegmentMaxAge != 0 { - dAtA[i] = 0x58 + if m.SegmentMaxAge != nil { + dAtA[i] = 0x5a i++ - i = encodeVarintApi(dAtA, i, uint64(m.SegmentMaxAge)) + i = encodeVarintApi(dAtA, i, uint64(m.SegmentMaxAge.Size())) + n6, err := m.SegmentMaxAge.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n6 } - if m.CompactMaxGoroutines != 0 { - dAtA[i] = 0x60 + if m.CompactMaxGoroutines != nil { + dAtA[i] = 0x62 i++ - i = encodeVarintApi(dAtA, i, uint64(m.CompactMaxGoroutines)) + i = encodeVarintApi(dAtA, i, uint64(m.CompactMaxGoroutines.Size())) + n7, err := m.CompactMaxGoroutines.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n7 } if m.CompactEnabled != nil { dAtA[i] = 0x6a i++ i = encodeVarintApi(dAtA, i, uint64(m.CompactEnabled.Size())) - n3, err := m.CompactEnabled.MarshalTo(dAtA[i:]) + n8, err := m.CompactEnabled.MarshalTo(dAtA[i:]) if err != nil { return 0, err } - i += n3 + i += n8 } return i, nil } @@ -1752,22 +1777,22 @@ func (m *PauseStreamRequest) MarshalTo(dAtA []byte) (int, error) { i += copy(dAtA[i:], m.Name) } if len(m.Partitions) > 0 { - dAtA5 := make([]byte, len(m.Partitions)*10) - var j4 int + dAtA10 := make([]byte, len(m.Partitions)*10) + var j9 int for _, num1 := range m.Partitions { num := uint64(num1) for num >= 1<<7 { - dAtA5[j4] = uint8(uint64(num)&0x7f | 0x80) + dAtA10[j9] = uint8(uint64(num)&0x7f | 0x80) num >>= 7 - j4++ + j9++ } - dAtA5[j4] = uint8(num) - j4++ + dAtA10[j9] = uint8(num) + j9++ } dAtA[i] = 0x12 i++ - i = encodeVarintApi(dAtA, i, uint64(j4)) - i += copy(dAtA[i:], dAtA5[:j4]) + i = encodeVarintApi(dAtA, i, uint64(j9)) + i += copy(dAtA[i:], dAtA10[:j9]) } if m.ResumeAll { dAtA[i] = 0x18 @@ -2029,11 +2054,11 @@ func (m *PublishResponse) MarshalTo(dAtA []byte) (int, error) { dAtA[i] = 0xa i++ i = encodeVarintApi(dAtA, i, uint64(m.Ack.Size())) - n6, err := m.Ack.MarshalTo(dAtA[i:]) + n11, err := m.Ack.MarshalTo(dAtA[i:]) if err != nil { return 0, err } - i += n6 + i += n11 } return i, nil } @@ -2133,11 +2158,11 @@ func (m *PublishToSubjectResponse) MarshalTo(dAtA []byte) (int, error) { dAtA[i] = 0xa i++ i = encodeVarintApi(dAtA, i, uint64(m.Ack.Size())) - n7, err := m.Ack.MarshalTo(dAtA[i:]) + n12, err := m.Ack.MarshalTo(dAtA[i:]) if err != nil { return 0, err } - i += n7 + i += n12 } return i, nil } @@ -2228,11 +2253,11 @@ func (m *StreamMetadata) MarshalTo(dAtA []byte) (int, error) { dAtA[i] = 0x12 i++ i = encodeVarintApi(dAtA, i, uint64(v.Size())) - n8, err := v.MarshalTo(dAtA[i:]) + n13, err := v.MarshalTo(dAtA[i:]) if err != nil { return 0, err } - i += n8 + i += n13 } } } @@ -2481,22 +2506,22 @@ func (m *CreateStreamOp) MarshalTo(dAtA []byte) (int, error) { i += copy(dAtA[i:], m.Stream) } if len(m.Partitions) > 0 { - dAtA10 := make([]byte, len(m.Partitions)*10) - var j9 int + dAtA15 := make([]byte, len(m.Partitions)*10) + var j14 int for _, num1 := range m.Partitions { num := uint64(num1) for num >= 1<<7 { - dAtA10[j9] = uint8(uint64(num)&0x7f | 0x80) + dAtA15[j14] = uint8(uint64(num)&0x7f | 0x80) num >>= 7 - j9++ + j14++ } - dAtA10[j9] = uint8(num) - j9++ + dAtA15[j14] = uint8(num) + j14++ } dAtA[i] = 0x12 i++ - i = encodeVarintApi(dAtA, i, uint64(j9)) - i += copy(dAtA[i:], dAtA10[:j9]) + i = encodeVarintApi(dAtA, i, uint64(j14)) + i += copy(dAtA[i:], dAtA15[:j14]) } return i, nil } @@ -2547,22 +2572,22 @@ func (m *PauseStreamOp) MarshalTo(dAtA []byte) (int, error) { i += copy(dAtA[i:], m.Stream) } if len(m.Partitions) > 0 { - dAtA12 := make([]byte, len(m.Partitions)*10) - var j11 int + dAtA17 := make([]byte, len(m.Partitions)*10) + var j16 int for _, num1 := range m.Partitions { num := uint64(num1) for num >= 1<<7 { - dAtA12[j11] = uint8(uint64(num)&0x7f | 0x80) + dAtA17[j16] = uint8(uint64(num)&0x7f | 0x80) num >>= 7 - j11++ + j16++ } - dAtA12[j11] = uint8(num) - j11++ + dAtA17[j16] = uint8(num) + j16++ } dAtA[i] = 0x12 i++ - i = encodeVarintApi(dAtA, i, uint64(j11)) - i += copy(dAtA[i:], dAtA12[:j11]) + i = encodeVarintApi(dAtA, i, uint64(j16)) + i += copy(dAtA[i:], dAtA17[:j16]) } if m.ResumeAll { dAtA[i] = 0x18 @@ -2599,22 +2624,22 @@ func (m *ResumeStreamOp) MarshalTo(dAtA []byte) (int, error) { i += copy(dAtA[i:], m.Stream) } if len(m.Partitions) > 0 { - dAtA14 := make([]byte, len(m.Partitions)*10) - var j13 int + dAtA19 := make([]byte, len(m.Partitions)*10) + var j18 int for _, num1 := range m.Partitions { num := uint64(num1) for num >= 1<<7 { - dAtA14[j13] = uint8(uint64(num)&0x7f | 0x80) + dAtA19[j18] = uint8(uint64(num)&0x7f | 0x80) num >>= 7 - j13++ + j18++ } - dAtA14[j13] = uint8(num) - j13++ + dAtA19[j18] = uint8(num) + j18++ } dAtA[i] = 0x12 i++ - i = encodeVarintApi(dAtA, i, uint64(j13)) - i += copy(dAtA[i:], dAtA14[:j13]) + i = encodeVarintApi(dAtA, i, uint64(j18)) + i += copy(dAtA[i:], dAtA19[:j18]) } return i, nil } @@ -2648,41 +2673,41 @@ func (m *ActivityStreamEvent) MarshalTo(dAtA []byte) (int, error) { dAtA[i] = 0x1a i++ i = encodeVarintApi(dAtA, i, uint64(m.CreateStreamOp.Size())) - n15, err := m.CreateStreamOp.MarshalTo(dAtA[i:]) + n20, err := m.CreateStreamOp.MarshalTo(dAtA[i:]) if err != nil { return 0, err } - i += n15 + i += n20 } if m.DeleteStreamOp != nil { dAtA[i] = 0x22 i++ i = encodeVarintApi(dAtA, i, uint64(m.DeleteStreamOp.Size())) - n16, err := m.DeleteStreamOp.MarshalTo(dAtA[i:]) + n21, err := m.DeleteStreamOp.MarshalTo(dAtA[i:]) if err != nil { return 0, err } - i += n16 + i += n21 } if m.PauseStreamOp != nil { dAtA[i] = 0x2a i++ i = encodeVarintApi(dAtA, i, uint64(m.PauseStreamOp.Size())) - n17, err := m.PauseStreamOp.MarshalTo(dAtA[i:]) + n22, err := m.PauseStreamOp.MarshalTo(dAtA[i:]) if err != nil { return 0, err } - i += n17 + i += n22 } if m.ResumeStreamOp != nil { dAtA[i] = 0x32 i++ i = encodeVarintApi(dAtA, i, uint64(m.ResumeStreamOp.Size())) - n18, err := m.ResumeStreamOp.MarshalTo(dAtA[i:]) + n23, err := m.ResumeStreamOp.MarshalTo(dAtA[i:]) if err != nil { return 0, err } - i += n18 + i += n23 } return i, nil } @@ -2696,7 +2721,7 @@ func encodeVarintApi(dAtA []byte, offset int, v uint64) int { dAtA[offset] = uint8(v) return offset + 1 } -func (m *RetentionMaxBytes) Size() (n int) { +func (m *NullableInt64) Size() (n int) { var l int _ = l if m.Value != 0 { @@ -2705,7 +2730,7 @@ func (m *RetentionMaxBytes) Size() (n int) { return n } -func (m *RetentionMaxMessages) Size() (n int) { +func (m *NullableInt32) Size() (n int) { var l int _ = l if m.Value != 0 { @@ -2714,7 +2739,7 @@ func (m *RetentionMaxMessages) Size() (n int) { return n } -func (m *CompactEnabled) Size() (n int) { +func (m *NullableBool) Size() (n int) { var l int _ = l if m.Value { @@ -2752,20 +2777,25 @@ func (m *CreateStreamRequest) Size() (n int) { l = m.RetentionMaxMessages.Size() n += 1 + l + sovApi(uint64(l)) } - if m.RetentionMaxAge != 0 { - n += 1 + sovApi(uint64(m.RetentionMaxAge)) + if m.RetentionMaxAge != nil { + l = m.RetentionMaxAge.Size() + n += 1 + l + sovApi(uint64(l)) } - if m.CleanerInterval != 0 { - n += 1 + sovApi(uint64(m.CleanerInterval)) + if m.CleanerInterval != nil { + l = m.CleanerInterval.Size() + n += 1 + l + sovApi(uint64(l)) } - if m.SegmentMaxBytes != 0 { - n += 1 + sovApi(uint64(m.SegmentMaxBytes)) + if m.SegmentMaxBytes != nil { + l = m.SegmentMaxBytes.Size() + n += 1 + l + sovApi(uint64(l)) } - if m.SegmentMaxAge != 0 { - n += 1 + sovApi(uint64(m.SegmentMaxAge)) + if m.SegmentMaxAge != nil { + l = m.SegmentMaxAge.Size() + n += 1 + l + sovApi(uint64(l)) } - if m.CompactMaxGoroutines != 0 { - n += 1 + sovApi(uint64(m.CompactMaxGoroutines)) + if m.CompactMaxGoroutines != nil { + l = m.CompactMaxGoroutines.Size() + n += 1 + l + sovApi(uint64(l)) } if m.CompactEnabled != nil { l = m.CompactEnabled.Size() @@ -3249,7 +3279,7 @@ func sovApi(x uint64) (n int) { func sozApi(x uint64) (n int) { return sovApi(uint64((x << 1) ^ uint64((int64(x) >> 63)))) } -func (m *RetentionMaxBytes) Unmarshal(dAtA []byte) error { +func (m *NullableInt64) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -3272,10 +3302,10 @@ func (m *RetentionMaxBytes) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: RetentionMaxBytes: wiretype end group for non-group") + return fmt.Errorf("proto: NullableInt64: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: RetentionMaxBytes: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: NullableInt64: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -3318,7 +3348,7 @@ func (m *RetentionMaxBytes) Unmarshal(dAtA []byte) error { } return nil } -func (m *RetentionMaxMessages) Unmarshal(dAtA []byte) error { +func (m *NullableInt32) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -3341,10 +3371,10 @@ func (m *RetentionMaxMessages) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: RetentionMaxMessages: wiretype end group for non-group") + return fmt.Errorf("proto: NullableInt32: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: RetentionMaxMessages: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: NullableInt32: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -3361,7 +3391,7 @@ func (m *RetentionMaxMessages) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Value |= (int64(b) & 0x7F) << shift + m.Value |= (int32(b) & 0x7F) << shift if b < 0x80 { break } @@ -3387,7 +3417,7 @@ func (m *RetentionMaxMessages) Unmarshal(dAtA []byte) error { } return nil } -func (m *CompactEnabled) Unmarshal(dAtA []byte) error { +func (m *NullableBool) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -3410,10 +3440,10 @@ func (m *CompactEnabled) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: CompactEnabled: wiretype end group for non-group") + return fmt.Errorf("proto: NullableBool: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: CompactEnabled: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: NullableBool: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -3638,7 +3668,7 @@ func (m *CreateStreamRequest) Unmarshal(dAtA []byte) error { return io.ErrUnexpectedEOF } if m.RetentionMaxBytes == nil { - m.RetentionMaxBytes = &RetentionMaxBytes{} + m.RetentionMaxBytes = &NullableInt64{} } if err := m.RetentionMaxBytes.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err @@ -3671,17 +3701,17 @@ func (m *CreateStreamRequest) Unmarshal(dAtA []byte) error { return io.ErrUnexpectedEOF } if m.RetentionMaxMessages == nil { - m.RetentionMaxMessages = &RetentionMaxMessages{} + m.RetentionMaxMessages = &NullableInt64{} } if err := m.RetentionMaxMessages.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex case 8: - if wireType != 0 { + if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field RetentionMaxAge", wireType) } - m.RetentionMaxAge = 0 + var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowApi @@ -3691,16 +3721,30 @@ func (m *CreateStreamRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.RetentionMaxAge |= (int64(b) & 0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } } + if msglen < 0 { + return ErrInvalidLengthApi + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.RetentionMaxAge == nil { + m.RetentionMaxAge = &NullableInt64{} + } + if err := m.RetentionMaxAge.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex case 9: - if wireType != 0 { + if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field CleanerInterval", wireType) } - m.CleanerInterval = 0 + var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowApi @@ -3710,16 +3754,30 @@ func (m *CreateStreamRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.CleanerInterval |= (int64(b) & 0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } } + if msglen < 0 { + return ErrInvalidLengthApi + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.CleanerInterval == nil { + m.CleanerInterval = &NullableInt64{} + } + if err := m.CleanerInterval.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex case 10: - if wireType != 0 { + if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field SegmentMaxBytes", wireType) } - m.SegmentMaxBytes = 0 + var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowApi @@ -3729,16 +3787,30 @@ func (m *CreateStreamRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.SegmentMaxBytes |= (int64(b) & 0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } } + if msglen < 0 { + return ErrInvalidLengthApi + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.SegmentMaxBytes == nil { + m.SegmentMaxBytes = &NullableInt64{} + } + if err := m.SegmentMaxBytes.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex case 11: - if wireType != 0 { + if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field SegmentMaxAge", wireType) } - m.SegmentMaxAge = 0 + var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowApi @@ -3748,16 +3820,30 @@ func (m *CreateStreamRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.SegmentMaxAge |= (int64(b) & 0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } } + if msglen < 0 { + return ErrInvalidLengthApi + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.SegmentMaxAge == nil { + m.SegmentMaxAge = &NullableInt64{} + } + if err := m.SegmentMaxAge.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex case 12: - if wireType != 0 { + if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field CompactMaxGoroutines", wireType) } - m.CompactMaxGoroutines = 0 + var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowApi @@ -3767,11 +3853,25 @@ func (m *CreateStreamRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.CompactMaxGoroutines |= (int32(b) & 0x7F) << shift + msglen |= (int(b) & 0x7F) << shift if b < 0x80 { break } } + if msglen < 0 { + return ErrInvalidLengthApi + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.CompactMaxGoroutines == nil { + m.CompactMaxGoroutines = &NullableInt32{} + } + if err := m.CompactMaxGoroutines.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex case 13: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field CompactEnabled", wireType) @@ -3799,7 +3899,7 @@ func (m *CreateStreamRequest) Unmarshal(dAtA []byte) error { return io.ErrUnexpectedEOF } if m.CompactEnabled == nil { - m.CompactEnabled = &CompactEnabled{} + m.CompactEnabled = &NullableBool{} } if err := m.CompactEnabled.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err @@ -7498,103 +7598,104 @@ var ( func init() { proto1.RegisterFile("api.proto", fileDescriptorApi) } var fileDescriptorApi = []byte{ - // 1554 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xbc, 0x57, 0x4b, 0x6f, 0xdb, 0x46, - 0x10, 0x16, 0x49, 0xbd, 0x38, 0x7a, 0x84, 0x5e, 0x3f, 0xc2, 0x2a, 0x81, 0x6b, 0xb0, 0x79, 0x38, - 0x6e, 0xe0, 0x26, 0x2a, 0x0a, 0x04, 0x46, 0x0b, 0x54, 0x76, 0xe8, 0x46, 0x88, 0x65, 0x09, 0x2b, - 0x19, 0x41, 0x0f, 0x45, 0x40, 0x49, 0x6b, 0x9b, 0xb5, 0x24, 0xaa, 0x24, 0x65, 0xc4, 0xff, 0xa4, - 0xbf, 0xa4, 0x7f, 0xa1, 0x39, 0xe6, 0x56, 0xa0, 0xa7, 0x22, 0xfd, 0x11, 0xbd, 0x05, 0xc5, 0x2e, - 0x5f, 0xbb, 0x34, 0x1d, 0xa7, 0x2d, 0xd2, 0x13, 0xb9, 0xdf, 0xcc, 0xce, 0xee, 0xce, 0x37, 0x33, - 0x3b, 0x0b, 0xaa, 0x35, 0xb7, 0xb7, 0xe7, 0xae, 0xe3, 0x3b, 0xa8, 0xc0, 0x3e, 0xc6, 0x03, 0x58, - 0xc2, 0xc4, 0x27, 0x33, 0xdf, 0x76, 0x66, 0x1d, 0xeb, 0xd5, 0xee, 0x85, 0x4f, 0x3c, 0xb4, 0x02, - 0x85, 0x73, 0x6b, 0xb2, 0x20, 0xba, 0xb4, 0x21, 0x6d, 0x2a, 0x38, 0x18, 0x18, 0x0f, 0x61, 0x85, - 0x57, 0xed, 0x10, 0xcf, 0xb3, 0x4e, 0xae, 0xd4, 0xbe, 0x07, 0xf5, 0x3d, 0x67, 0x3a, 0xb7, 0x46, - 0xbe, 0x39, 0xb3, 0x86, 0x13, 0x32, 0x16, 0xf5, 0xca, 0x91, 0xde, 0x6f, 0x79, 0x58, 0xde, 0x73, - 0x89, 0xe5, 0x93, 0xbe, 0xef, 0x12, 0x6b, 0x8a, 0xc9, 0x4f, 0x0b, 0xe2, 0xf9, 0x48, 0x87, 0x92, - 0xb7, 0x18, 0xfe, 0x48, 0x46, 0x3e, 0xd3, 0x57, 0x71, 0x34, 0x44, 0x08, 0xf2, 0x33, 0x6b, 0x4a, - 0x74, 0x99, 0xc1, 0xec, 0x9f, 0xda, 0x3e, 0x71, 0x9d, 0xc5, 0x5c, 0x57, 0x18, 0x18, 0x0c, 0xd0, - 0x43, 0x58, 0x72, 0xc9, 0x7c, 0x62, 0x8f, 0x2c, 0xba, 0xe7, 0x7d, 0x6b, 0xe4, 0x3b, 0xae, 0x9e, - 0xdf, 0x90, 0x36, 0x0b, 0xf8, 0xb2, 0x00, 0xad, 0x03, 0xcc, 0x2d, 0xd7, 0xb7, 0x29, 0xe4, 0xe9, - 0x05, 0xa6, 0xc6, 0x21, 0x68, 0x3f, 0xc3, 0x55, 0x7a, 0x71, 0x43, 0xda, 0xac, 0x34, 0xf5, 0xc0, - 0xa9, 0xdb, 0x97, 0xe4, 0x38, 0xc3, 0xbb, 0xdd, 0x6c, 0x3f, 0xea, 0x25, 0x66, 0xea, 0x56, 0x86, - 0xa9, 0x48, 0x05, 0x67, 0x13, 0xb0, 0x09, 0x37, 0x78, 0xbc, 0x75, 0x42, 0xf4, 0x32, 0xa3, 0x22, - 0x0d, 0x53, 0xcd, 0xbd, 0x09, 0xb1, 0x66, 0xc4, 0x6d, 0xcf, 0x7c, 0xe2, 0x9e, 0x5b, 0x13, 0x5d, - 0x0d, 0x34, 0x53, 0x30, 0xd5, 0xec, 0x93, 0x93, 0x29, 0x99, 0xf9, 0xf1, 0x51, 0x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, 0xf4, 0xc9, 0x65, 0xbe, 0x23, 0x43, 0x8d, 0x2c, 0x51, 0x6c, 0xe7, 0x09, 0xa8, 0xf1, - 0x03, 0x0d, 0x45, 0x71, 0x9e, 0x7e, 0xb2, 0x35, 0xea, 0xe2, 0x3d, 0x61, 0xe4, 0x1e, 0x49, 0xe8, - 0x00, 0x6a, 0xc2, 0x43, 0x05, 0x45, 0x3b, 0xce, 0x7a, 0xf0, 0x34, 0x6e, 0x67, 0x0b, 0xe3, 0x7d, - 0xec, 0x40, 0x29, 0x6c, 0xd0, 0xd0, 0x6a, 0xe6, 0x53, 0xa0, 0xb1, 0x96, 0x86, 0xe3, 0xb9, 0x47, - 0xa0, 0xa5, 0x9b, 0x3b, 0xb4, 0xfe, 0xfe, 0xa6, 0xb6, 0xf1, 0xe9, 0x95, 0xf2, 0xc8, 0xec, 0xee, - 0xdd, 0xd7, 0x6f, 0xd7, 0xa5, 0x37, 0x6f, 0xd7, 0xa5, 0x3f, 0xde, 0xae, 0x4b, 0x3f, 0xff, 0xb9, - 0x9e, 0x83, 0x65, 0xdb, 0xd9, 0x9e, 0xd8, 0xc7, 0xfe, 0xd0, 0xb5, 0xc7, 0x27, 0x24, 0xb0, 0x30, - 0x2c, 0xb2, 0xcf, 0x97, 0x7f, 0x07, 0x00, 0x00, 0xff, 0xff, 0xe9, 0x22, 0xcf, 0x51, 0xb3, 0x12, - 0x00, 0x00, + // 1571 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xbc, 0x57, 0xdd, 0x6e, 0xdb, 0xc6, + 0x12, 0x16, 0x49, 0xfd, 0x8e, 0x24, 0x86, 0x5e, 0xff, 0x84, 0x47, 0x09, 0x7c, 0x0c, 0x9e, 0xe4, + 0x24, 0xc7, 0xe7, 0xc0, 0x27, 0x51, 0xda, 0x22, 0x70, 0x7f, 0x50, 0xd9, 0xa1, 0x6b, 0x21, 0xb6, + 0x24, 0xac, 0x64, 0x04, 0xbd, 0x28, 0x02, 0x4a, 0x5a, 0xdb, 0xac, 0x29, 0x51, 0x25, 0x29, 0x23, + 0x7e, 0x93, 0x3e, 0x49, 0xd1, 0x37, 0x68, 0x2e, 0x73, 0xdd, 0xab, 0x22, 0x7d, 0x88, 0xde, 0x05, + 0xc5, 0x2e, 0xff, 0x76, 0x69, 0xd9, 0x4e, 0x5b, 0xa4, 0x57, 0xe4, 0xce, 0x7e, 0x33, 0xbb, 0x3b, + 0xdf, 0xcc, 0xec, 0x2c, 0x54, 0xac, 0x99, 0xbd, 0x35, 0xf3, 0xdc, 0xc0, 0x45, 0x05, 0xf6, 0x31, + 0xee, 0x43, 0xbd, 0x33, 0x77, 0x1c, 0x6b, 0xe8, 0x90, 0xf6, 0x34, 0xf8, 0xe4, 0x23, 0xb4, 0x02, + 0x85, 0x73, 0xcb, 0x99, 0x13, 0x5d, 0xda, 0x90, 0x1e, 0x2a, 0x38, 0x1c, 0x64, 0x60, 0x4f, 0x9a, + 0x22, 0xac, 0x10, 0xc3, 0xee, 0x41, 0x2d, 0x86, 0xed, 0xb8, 0xae, 0x23, 0xa2, 0xca, 0x31, 0xea, + 0xc7, 0x02, 0x2c, 0xef, 0x7a, 0xc4, 0x0a, 0x48, 0x3f, 0xf0, 0x88, 0x35, 0xc1, 0xe4, 0xbb, 0x39, + 0xf1, 0x03, 0xa4, 0x43, 0xc9, 0x9f, 0x0f, 0xbf, 0x25, 0xa3, 0x80, 0xe1, 0x2b, 0x38, 0x1e, 0x22, + 0x04, 0xf9, 0xa9, 0x35, 0x21, 0xba, 0xcc, 0xc4, 0xec, 0x9f, 0xda, 0x3e, 0xf1, 0xdc, 0xf9, 0x4c, + 0x57, 0x98, 0x30, 0x1c, 0xa0, 0xff, 0xc1, 0x92, 0x47, 0x66, 0x8e, 0x3d, 0xb2, 0x02, 0xdb, 0x9d, + 0xee, 0x59, 0xa3, 0xc0, 0xf5, 0xf4, 0x3c, 0xdb, 0xe3, 0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, 0xc9, + 0x46, 0x74, 0x1c, 0xb7, 0x52, 0x1a, 0xb7, 0xd4, 0x84, 0x08, 0x8d, 0x4c, 0x1c, 0x03, 0xea, 0x59, + 0x73, 0xff, 0x66, 0x0b, 0x99, 0xa8, 0x95, 0x37, 0x94, 0x4c, 0xd4, 0xde, 0x85, 0x8a, 0x47, 0xfc, + 0xf9, 0x84, 0xb4, 0x1c, 0x87, 0x65, 0x47, 0x19, 0xa7, 0x02, 0x63, 0x15, 0x96, 0x85, 0x75, 0xa2, + 0xe5, 0xdf, 0x49, 0xa0, 0xf5, 0xe7, 0x43, 0x7f, 0xe4, 0xd9, 0x43, 0x12, 0xaf, 0xbe, 0x06, 0x45, + 0x9f, 0xc1, 0xa2, 0xf5, 0xa3, 0x11, 0x5d, 0x21, 0x59, 0x8f, 0x25, 0x65, 0x01, 0xa7, 0x02, 0xca, + 0xb3, 0x1f, 0x58, 0x5e, 0xd0, 0x73, 0xfd, 0x10, 0x41, 0xf7, 0xa0, 0x26, 0x24, 0xf5, 0xf9, 0x39, + 0x2c, 0x42, 0xd1, 0x3d, 0xa8, 0x32, 0x41, 0xf7, 0xf8, 0xd8, 0x27, 0x01, 0xcb, 0x5c, 0x65, 0x47, + 0x7e, 0x24, 0x61, 0x5e, 0x8c, 0x36, 0x41, 0x65, 0xc3, 0x81, 0x3d, 0x21, 0x7e, 0x60, 0x4d, 0x66, + 0x2c, 0x77, 0x43, 0x60, 0x66, 0x06, 0xfd, 0x1b, 0x54, 0x8f, 0x58, 0xe3, 0x76, 0x1f, 0xe3, 0x30, + 0xff, 0x59, 0x02, 0x97, 0x71, 0x46, 0x6a, 0x3c, 0x82, 0x95, 0x3d, 0x12, 0x8c, 0x4e, 0x0f, 0x49, + 0x60, 0x8d, 0xad, 0xc0, 0xe2, 0xab, 0x12, 0x3b, 0xb5, 0xaf, 0x4b, 0x1b, 0x0a, 0xab, 0x4a, 0xe1, + 0xd0, 0xf0, 0x61, 0x35, 0xa3, 0x11, 0xfa,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, 0x3b, 0xb4, 0x7e, 0x7d, 0x53, 0xdb, 0xf8, 0xe7, 0x95, 0xf3, 0xb1, 0xd9, + 0x9d, 0xfb, 0xaf, 0xdf, 0xae, 0x4b, 0x6f, 0xde, 0xae, 0x4b, 0xbf, 0xbc, 0x5d, 0x97, 0xbe, 0xff, + 0x75, 0x3d, 0x07, 0xcb, 0xb6, 0xbb, 0xe5, 0xd8, 0xc7, 0xc1, 0xd0, 0xb3, 0xc7, 0x27, 0x24, 0xb4, + 0x30, 0x2c, 0xb2, 0xcf, 0x93, 0xdf, 0x03, 0x00, 0x00, 0xff, 0xff, 0xc4, 0x05, 0x35, 0xde, 0x07, + 0x13, 0x00, 0x00, } diff --git a/py/api_pb2.py b/py/api_pb2.py index 7e43f1c..c8a467e 100644 --- a/py/api_pb2.py +++ b/py/api_pb2.py @@ -19,7 +19,7 @@ package='proto', syntax='proto3', serialized_options=b'\n\023io.liftbridge.proto', - serialized_pb=b'\n\tapi.proto\x12\x05proto\"\"\n\x11RetentionMaxBytes\x12\r\n\x05value\x18\x01 \x01(\x03\"%\n\x14RetentionMaxMessages\x12\r\n\x05value\x18\x01 \x01(\x03\"\x1f\n\x0e\x43ompactEnabled\x12\r\n\x05value\x18\x01 \x01(\x08\"\x91\x03\n\x13\x43reateStreamRequest\x12\x0f\n\x07subject\x18\x01 \x01(\t\x12\x0c\n\x04name\x18\x02 \x01(\t\x12\r\n\x05group\x18\x03 \x01(\t\x12\x19\n\x11replicationFactor\x18\x04 \x01(\x05\x12\x12\n\npartitions\x18\x05 \x01(\x05\x12\x33\n\x11RetentionMaxBytes\x18\x06 \x01(\x0b\x32\x18.proto.RetentionMaxBytes\x12\x39\n\x14RetentionMaxMessages\x18\x07 \x01(\x0b\x32\x1b.proto.RetentionMaxMessages\x12\x17\n\x0fRetentionMaxAge\x18\x08 \x01(\x03\x12\x17\n\x0f\x43leanerInterval\x18\t \x01(\x03\x12\x17\n\x0fSegmentMaxBytes\x18\n \x01(\x03\x12\x15\n\rSegmentMaxAge\x18\x0b \x01(\x03\x12\x1c\n\x14\x43ompactMaxGoroutines\x18\x0c \x01(\x05\x12-\n\x0e\x43ompactEnabled\x18\r \x01(\x0b\x32\x15.proto.CompactEnabled\"\x16\n\x14\x43reateStreamResponse\"#\n\x13\x44\x65leteStreamRequest\x12\x0c\n\x04name\x18\x01 \x01(\t\"\x16\n\x14\x44\x65leteStreamResponse\"I\n\x12PauseStreamRequest\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x12\n\npartitions\x18\x02 \x03(\x05\x12\x11\n\tresumeAll\x18\x03 \x01(\x08\"\x15\n\x13PauseStreamResponse\"\xaf\x01\n\x10SubscribeRequest\x12\x0e\n\x06stream\x18\x01 \x01(\t\x12\x11\n\tpartition\x18\x02 \x01(\x05\x12+\n\rstartPosition\x18\x03 \x01(\x0e\x32\x14.proto.StartPosition\x12\x17\n\x0bstartOffset\x18\x04 \x01(\x03\x42\x02\x30\x01\x12\x1a\n\x0estartTimestamp\x18\x05 \x01(\x03\x42\x02\x30\x01\x12\x16\n\x0ereadISRReplica\x18\x06 \x01(\x08\"\'\n\x14\x46\x65tchMetadataRequest\x12\x0f\n\x07streams\x18\x01 \x03(\t\"`\n\x15\x46\x65tchMetadataResponse\x12\x1e\n\x07\x62rokers\x18\x01 \x03(\x0b\x32\r.proto.Broker\x12\'\n\x08metadata\x18\x02 \x03(\x0b\x32\x15.proto.StreamMetadata\"\x82\x02\n\x0ePublishRequest\x12\x0b\n\x03key\x18\x01 \x01(\x0c\x12\r\n\x05value\x18\x02 \x01(\x0c\x12\x0e\n\x06stream\x18\x03 \x01(\t\x12\x11\n\tpartition\x18\x04 \x01(\x05\x12\x33\n\x07headers\x18\x05 \x03(\x0b\x32\".proto.PublishRequest.HeadersEntry\x12\x10\n\x08\x61\x63kInbox\x18\x06 \x01(\t\x12\x15\n\rcorrelationId\x18\x07 \x01(\t\x12#\n\tackPolicy\x18\x08 \x01(\x0e\x32\x10.proto.AckPolicy\x1a.\n\x0cHeadersEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\x0c:\x02\x38\x01\"*\n\x0fPublishResponse\x12\x17\n\x03\x61\x63k\x18\x01 \x01(\x0b\x32\n.proto.Ack\"\x82\x02\n\x17PublishToSubjectRequest\x12\x0b\n\x03key\x18\x01 \x01(\x0c\x12\r\n\x05value\x18\x02 \x01(\x0c\x12\x0f\n\x07subject\x18\x03 \x01(\t\x12<\n\x07headers\x18\x04 \x03(\x0b\x32+.proto.PublishToSubjectRequest.HeadersEntry\x12\x10\n\x08\x61\x63kInbox\x18\x05 \x01(\t\x12\x15\n\rcorrelationId\x18\x06 \x01(\t\x12#\n\tackPolicy\x18\x07 \x01(\x0e\x32\x10.proto.AckPolicy\x1a.\n\x0cHeadersEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\x0c:\x02\x38\x01\"3\n\x18PublishToSubjectResponse\x12\x17\n\x03\x61\x63k\x18\x01 \x01(\x0b\x32\n.proto.Ack\"0\n\x06\x42roker\x12\n\n\x02id\x18\x01 \x01(\t\x12\x0c\n\x04host\x18\x02 \x01(\t\x12\x0c\n\x04port\x18\x03 \x01(\x05\"\x88\x02\n\x0eStreamMetadata\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x0f\n\x07subject\x18\x02 \x01(\t\x12*\n\x05\x65rror\x18\x03 \x01(\x0e\x32\x1b.proto.StreamMetadata.Error\x12\x39\n\npartitions\x18\x04 \x03(\x0b\x32%.proto.StreamMetadata.PartitionsEntry\x1aK\n\x0fPartitionsEntry\x12\x0b\n\x03key\x18\x01 \x01(\x05\x12\'\n\x05value\x18\x02 \x01(\x0b\x32\x18.proto.PartitionMetadata:\x02\x38\x01\"#\n\x05\x45rror\x12\x06\n\x02OK\x10\x00\x12\x12\n\x0eUNKNOWN_STREAM\x10\x01\"N\n\x11PartitionMetadata\x12\n\n\x02id\x18\x01 \x01(\x05\x12\x0e\n\x06leader\x18\x02 \x01(\t\x12\x10\n\x08replicas\x18\x03 \x03(\t\x12\x0b\n\x03isr\x18\x04 \x03(\t\"\xc6\x02\n\x07Message\x12\x12\n\x06offset\x18\x01 \x01(\x03\x42\x02\x30\x01\x12\x0b\n\x03key\x18\x02 \x01(\x0c\x12\r\n\x05value\x18\x03 \x01(\x0c\x12\x15\n\ttimestamp\x18\x04 \x01(\x03\x42\x02\x30\x01\x12\x0e\n\x06stream\x18\x05 \x01(\t\x12\x11\n\tpartition\x18\x06 \x01(\x05\x12\x0f\n\x07subject\x18\x07 \x01(\t\x12\x14\n\x0creplySubject\x18\x08 \x01(\t\x12,\n\x07headers\x18\t \x03(\x0b\x32\x1b.proto.Message.HeadersEntry\x12\x10\n\x08\x61\x63kInbox\x18\n \x01(\t\x12\x15\n\rcorrelationId\x18\x0b \x01(\t\x12#\n\tackPolicy\x18\x0c \x01(\x0e\x32\x10.proto.AckPolicy\x1a.\n\x0cHeadersEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\x0c:\x02\x38\x01\"\xa5\x01\n\x03\x41\x63k\x12\x0e\n\x06stream\x18\x01 \x01(\t\x12\x18\n\x10partitionSubject\x18\x02 \x01(\t\x12\x12\n\nmsgSubject\x18\x03 \x01(\t\x12\x12\n\x06offset\x18\x04 \x01(\x03\x42\x02\x30\x01\x12\x10\n\x08\x61\x63kInbox\x18\x05 \x01(\t\x12\x15\n\rcorrelationId\x18\x06 \x01(\t\x12#\n\tackPolicy\x18\x07 \x01(\x0e\x32\x10.proto.AckPolicy\"4\n\x0e\x43reateStreamOp\x12\x0e\n\x06stream\x18\x01 \x01(\t\x12\x12\n\npartitions\x18\x02 \x03(\x05\" \n\x0e\x44\x65leteStreamOp\x12\x0e\n\x06stream\x18\x01 \x01(\t\"F\n\rPauseStreamOp\x12\x0e\n\x06stream\x18\x01 \x01(\t\x12\x12\n\npartitions\x18\x02 \x03(\x05\x12\x11\n\tresumeAll\x18\x03 \x01(\x08\"4\n\x0eResumeStreamOp\x12\x0e\n\x06stream\x18\x01 \x01(\t\x12\x12\n\npartitions\x18\x02 \x03(\x05\"\x80\x02\n\x13\x41\x63tivityStreamEvent\x12\n\n\x02id\x18\x01 \x01(\x04\x12#\n\x02op\x18\x02 \x01(\x0e\x32\x17.proto.ActivityStreamOp\x12-\n\x0e\x63reateStreamOp\x18\x03 \x01(\x0b\x32\x15.proto.CreateStreamOp\x12-\n\x0e\x64\x65leteStreamOp\x18\x04 \x01(\x0b\x32\x15.proto.DeleteStreamOp\x12+\n\rpauseStreamOp\x18\x05 \x01(\x0b\x32\x14.proto.PauseStreamOp\x12-\n\x0eresumeStreamOp\x18\x06 \x01(\x0b\x32\x15.proto.ResumeStreamOp*R\n\rStartPosition\x12\x0c\n\x08NEW_ONLY\x10\x00\x12\n\n\x06OFFSET\x10\x01\x12\x0c\n\x08\x45\x41RLIEST\x10\x02\x12\n\n\x06LATEST\x10\x03\x12\r\n\tTIMESTAMP\x10\x04**\n\tAckPolicy\x12\n\n\x06LEADER\x10\x00\x12\x07\n\x03\x41LL\x10\x01\x12\x08\n\x04NONE\x10\x02*]\n\x10\x41\x63tivityStreamOp\x12\x11\n\rCREATE_STREAM\x10\x00\x12\x11\n\rDELETE_STREAM\x10\x01\x12\x10\n\x0cPAUSE_STREAM\x10\x02\x12\x11\n\rRESUME_STREAM\x10\x03\x32\xfe\x03\n\x03\x41PI\x12I\n\x0c\x43reateStream\x12\x1a.proto.CreateStreamRequest\x1a\x1b.proto.CreateStreamResponse\"\x00\x12I\n\x0c\x44\x65leteStream\x12\x1a.proto.DeleteStreamRequest\x1a\x1b.proto.DeleteStreamResponse\"\x00\x12\x46\n\x0bPauseStream\x12\x19.proto.PauseStreamRequest\x1a\x1a.proto.PauseStreamResponse\"\x00\x12\x38\n\tSubscribe\x12\x17.proto.SubscribeRequest\x1a\x0e.proto.Message\"\x00\x30\x01\x12L\n\rFetchMetadata\x12\x1b.proto.FetchMetadataRequest\x1a\x1c.proto.FetchMetadataResponse\"\x00\x12:\n\x07Publish\x12\x15.proto.PublishRequest\x1a\x16.proto.PublishResponse\"\x00\x12U\n\x10PublishToSubject\x12\x1e.proto.PublishToSubjectRequest\x1a\x1f.proto.PublishToSubjectResponse\"\x00\x42\x15\n\x13io.liftbridge.protob\x06proto3' + serialized_pb=b'\n\tapi.proto\x12\x05proto\"\x1e\n\rNullableInt64\x12\r\n\x05value\x18\x01 \x01(\x03\"\x1e\n\rNullableInt32\x12\r\n\x05value\x18\x01 \x01(\x05\"\x1d\n\x0cNullableBool\x12\r\n\x05value\x18\x01 \x01(\x08\"\xf2\x03\n\x13\x43reateStreamRequest\x12\x0f\n\x07subject\x18\x01 \x01(\t\x12\x0c\n\x04name\x18\x02 \x01(\t\x12\r\n\x05group\x18\x03 \x01(\t\x12\x19\n\x11replicationFactor\x18\x04 \x01(\x05\x12\x12\n\npartitions\x18\x05 \x01(\x05\x12/\n\x11RetentionMaxBytes\x18\x06 \x01(\x0b\x32\x14.proto.NullableInt64\x12\x32\n\x14RetentionMaxMessages\x18\x07 \x01(\x0b\x32\x14.proto.NullableInt64\x12-\n\x0fRetentionMaxAge\x18\x08 \x01(\x0b\x32\x14.proto.NullableInt64\x12-\n\x0f\x43leanerInterval\x18\t \x01(\x0b\x32\x14.proto.NullableInt64\x12-\n\x0fSegmentMaxBytes\x18\n \x01(\x0b\x32\x14.proto.NullableInt64\x12+\n\rSegmentMaxAge\x18\x0b \x01(\x0b\x32\x14.proto.NullableInt64\x12\x32\n\x14\x43ompactMaxGoroutines\x18\x0c \x01(\x0b\x32\x14.proto.NullableInt32\x12+\n\x0e\x43ompactEnabled\x18\r \x01(\x0b\x32\x13.proto.NullableBool\"\x16\n\x14\x43reateStreamResponse\"#\n\x13\x44\x65leteStreamRequest\x12\x0c\n\x04name\x18\x01 \x01(\t\"\x16\n\x14\x44\x65leteStreamResponse\"I\n\x12PauseStreamRequest\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x12\n\npartitions\x18\x02 \x03(\x05\x12\x11\n\tresumeAll\x18\x03 \x01(\x08\"\x15\n\x13PauseStreamResponse\"\xaf\x01\n\x10SubscribeRequest\x12\x0e\n\x06stream\x18\x01 \x01(\t\x12\x11\n\tpartition\x18\x02 \x01(\x05\x12+\n\rstartPosition\x18\x03 \x01(\x0e\x32\x14.proto.StartPosition\x12\x17\n\x0bstartOffset\x18\x04 \x01(\x03\x42\x02\x30\x01\x12\x1a\n\x0estartTimestamp\x18\x05 \x01(\x03\x42\x02\x30\x01\x12\x16\n\x0ereadISRReplica\x18\x06 \x01(\x08\"\'\n\x14\x46\x65tchMetadataRequest\x12\x0f\n\x07streams\x18\x01 \x03(\t\"`\n\x15\x46\x65tchMetadataResponse\x12\x1e\n\x07\x62rokers\x18\x01 \x03(\x0b\x32\r.proto.Broker\x12\'\n\x08metadata\x18\x02 \x03(\x0b\x32\x15.proto.StreamMetadata\"\x82\x02\n\x0ePublishRequest\x12\x0b\n\x03key\x18\x01 \x01(\x0c\x12\r\n\x05value\x18\x02 \x01(\x0c\x12\x0e\n\x06stream\x18\x03 \x01(\t\x12\x11\n\tpartition\x18\x04 \x01(\x05\x12\x33\n\x07headers\x18\x05 \x03(\x0b\x32\".proto.PublishRequest.HeadersEntry\x12\x10\n\x08\x61\x63kInbox\x18\x06 \x01(\t\x12\x15\n\rcorrelationId\x18\x07 \x01(\t\x12#\n\tackPolicy\x18\x08 \x01(\x0e\x32\x10.proto.AckPolicy\x1a.\n\x0cHeadersEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\x0c:\x02\x38\x01\"*\n\x0fPublishResponse\x12\x17\n\x03\x61\x63k\x18\x01 \x01(\x0b\x32\n.proto.Ack\"\x82\x02\n\x17PublishToSubjectRequest\x12\x0b\n\x03key\x18\x01 \x01(\x0c\x12\r\n\x05value\x18\x02 \x01(\x0c\x12\x0f\n\x07subject\x18\x03 \x01(\t\x12<\n\x07headers\x18\x04 \x03(\x0b\x32+.proto.PublishToSubjectRequest.HeadersEntry\x12\x10\n\x08\x61\x63kInbox\x18\x05 \x01(\t\x12\x15\n\rcorrelationId\x18\x06 \x01(\t\x12#\n\tackPolicy\x18\x07 \x01(\x0e\x32\x10.proto.AckPolicy\x1a.\n\x0cHeadersEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\x0c:\x02\x38\x01\"3\n\x18PublishToSubjectResponse\x12\x17\n\x03\x61\x63k\x18\x01 \x01(\x0b\x32\n.proto.Ack\"0\n\x06\x42roker\x12\n\n\x02id\x18\x01 \x01(\t\x12\x0c\n\x04host\x18\x02 \x01(\t\x12\x0c\n\x04port\x18\x03 \x01(\x05\"\x88\x02\n\x0eStreamMetadata\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x0f\n\x07subject\x18\x02 \x01(\t\x12*\n\x05\x65rror\x18\x03 \x01(\x0e\x32\x1b.proto.StreamMetadata.Error\x12\x39\n\npartitions\x18\x04 \x03(\x0b\x32%.proto.StreamMetadata.PartitionsEntry\x1aK\n\x0fPartitionsEntry\x12\x0b\n\x03key\x18\x01 \x01(\x05\x12\'\n\x05value\x18\x02 \x01(\x0b\x32\x18.proto.PartitionMetadata:\x02\x38\x01\"#\n\x05\x45rror\x12\x06\n\x02OK\x10\x00\x12\x12\n\x0eUNKNOWN_STREAM\x10\x01\"N\n\x11PartitionMetadata\x12\n\n\x02id\x18\x01 \x01(\x05\x12\x0e\n\x06leader\x18\x02 \x01(\t\x12\x10\n\x08replicas\x18\x03 \x03(\t\x12\x0b\n\x03isr\x18\x04 \x03(\t\"\xc6\x02\n\x07Message\x12\x12\n\x06offset\x18\x01 \x01(\x03\x42\x02\x30\x01\x12\x0b\n\x03key\x18\x02 \x01(\x0c\x12\r\n\x05value\x18\x03 \x01(\x0c\x12\x15\n\ttimestamp\x18\x04 \x01(\x03\x42\x02\x30\x01\x12\x0e\n\x06stream\x18\x05 \x01(\t\x12\x11\n\tpartition\x18\x06 \x01(\x05\x12\x0f\n\x07subject\x18\x07 \x01(\t\x12\x14\n\x0creplySubject\x18\x08 \x01(\t\x12,\n\x07headers\x18\t \x03(\x0b\x32\x1b.proto.Message.HeadersEntry\x12\x10\n\x08\x61\x63kInbox\x18\n \x01(\t\x12\x15\n\rcorrelationId\x18\x0b \x01(\t\x12#\n\tackPolicy\x18\x0c \x01(\x0e\x32\x10.proto.AckPolicy\x1a.\n\x0cHeadersEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\x0c:\x02\x38\x01\"\xa5\x01\n\x03\x41\x63k\x12\x0e\n\x06stream\x18\x01 \x01(\t\x12\x18\n\x10partitionSubject\x18\x02 \x01(\t\x12\x12\n\nmsgSubject\x18\x03 \x01(\t\x12\x12\n\x06offset\x18\x04 \x01(\x03\x42\x02\x30\x01\x12\x10\n\x08\x61\x63kInbox\x18\x05 \x01(\t\x12\x15\n\rcorrelationId\x18\x06 \x01(\t\x12#\n\tackPolicy\x18\x07 \x01(\x0e\x32\x10.proto.AckPolicy\"4\n\x0e\x43reateStreamOp\x12\x0e\n\x06stream\x18\x01 \x01(\t\x12\x12\n\npartitions\x18\x02 \x03(\x05\" \n\x0e\x44\x65leteStreamOp\x12\x0e\n\x06stream\x18\x01 \x01(\t\"F\n\rPauseStreamOp\x12\x0e\n\x06stream\x18\x01 \x01(\t\x12\x12\n\npartitions\x18\x02 \x03(\x05\x12\x11\n\tresumeAll\x18\x03 \x01(\x08\"4\n\x0eResumeStreamOp\x12\x0e\n\x06stream\x18\x01 \x01(\t\x12\x12\n\npartitions\x18\x02 \x03(\x05\"\x80\x02\n\x13\x41\x63tivityStreamEvent\x12\n\n\x02id\x18\x01 \x01(\x04\x12#\n\x02op\x18\x02 \x01(\x0e\x32\x17.proto.ActivityStreamOp\x12-\n\x0e\x63reateStreamOp\x18\x03 \x01(\x0b\x32\x15.proto.CreateStreamOp\x12-\n\x0e\x64\x65leteStreamOp\x18\x04 \x01(\x0b\x32\x15.proto.DeleteStreamOp\x12+\n\rpauseStreamOp\x18\x05 \x01(\x0b\x32\x14.proto.PauseStreamOp\x12-\n\x0eresumeStreamOp\x18\x06 \x01(\x0b\x32\x15.proto.ResumeStreamOp*R\n\rStartPosition\x12\x0c\n\x08NEW_ONLY\x10\x00\x12\n\n\x06OFFSET\x10\x01\x12\x0c\n\x08\x45\x41RLIEST\x10\x02\x12\n\n\x06LATEST\x10\x03\x12\r\n\tTIMESTAMP\x10\x04**\n\tAckPolicy\x12\n\n\x06LEADER\x10\x00\x12\x07\n\x03\x41LL\x10\x01\x12\x08\n\x04NONE\x10\x02*]\n\x10\x41\x63tivityStreamOp\x12\x11\n\rCREATE_STREAM\x10\x00\x12\x11\n\rDELETE_STREAM\x10\x01\x12\x10\n\x0cPAUSE_STREAM\x10\x02\x12\x11\n\rRESUME_STREAM\x10\x03\x32\xfe\x03\n\x03\x41PI\x12I\n\x0c\x43reateStream\x12\x1a.proto.CreateStreamRequest\x1a\x1b.proto.CreateStreamResponse\"\x00\x12I\n\x0c\x44\x65leteStream\x12\x1a.proto.DeleteStreamRequest\x1a\x1b.proto.DeleteStreamResponse\"\x00\x12\x46\n\x0bPauseStream\x12\x19.proto.PauseStreamRequest\x1a\x1a.proto.PauseStreamResponse\"\x00\x12\x38\n\tSubscribe\x12\x17.proto.SubscribeRequest\x1a\x0e.proto.Message\"\x00\x30\x01\x12L\n\rFetchMetadata\x12\x1b.proto.FetchMetadataRequest\x1a\x1c.proto.FetchMetadataResponse\"\x00\x12:\n\x07Publish\x12\x15.proto.PublishRequest\x1a\x16.proto.PublishResponse\"\x00\x12U\n\x10PublishToSubject\x12\x1e.proto.PublishToSubjectRequest\x1a\x1f.proto.PublishToSubjectResponse\"\x00\x42\x15\n\x13io.liftbridge.protob\x06proto3' ) _STARTPOSITION = _descriptor.EnumDescriptor( @@ -51,8 +51,8 @@ ], containing_type=None, serialized_options=None, - serialized_start=3018, - serialized_end=3100, + serialized_start=3102, + serialized_end=3184, ) _sym_db.RegisterEnumDescriptor(_STARTPOSITION) @@ -78,8 +78,8 @@ ], containing_type=None, serialized_options=None, - serialized_start=3102, - serialized_end=3144, + serialized_start=3186, + serialized_end=3228, ) _sym_db.RegisterEnumDescriptor(_ACKPOLICY) @@ -109,8 +109,8 @@ ], containing_type=None, serialized_options=None, - serialized_start=3146, - serialized_end=3239, + serialized_start=3230, + serialized_end=3323, ) _sym_db.RegisterEnumDescriptor(_ACTIVITYSTREAMOP) @@ -146,21 +146,21 @@ ], containing_type=None, serialized_options=None, - serialized_start=1931, - serialized_end=1966, + serialized_start=2015, + serialized_end=2050, ) _sym_db.RegisterEnumDescriptor(_STREAMMETADATA_ERROR) -_RETENTIONMAXBYTES = _descriptor.Descriptor( - name='RetentionMaxBytes', - full_name='proto.RetentionMaxBytes', +_NULLABLEINT64 = _descriptor.Descriptor( + name='NullableInt64', + full_name='proto.NullableInt64', filename=None, file=DESCRIPTOR, containing_type=None, fields=[ _descriptor.FieldDescriptor( - name='value', full_name='proto.RetentionMaxBytes.value', index=0, + name='value', full_name='proto.NullableInt64.value', index=0, number=1, type=3, cpp_type=2, label=1, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, @@ -179,20 +179,20 @@ oneofs=[ ], serialized_start=20, - serialized_end=54, + serialized_end=50, ) -_RETENTIONMAXMESSAGES = _descriptor.Descriptor( - name='RetentionMaxMessages', - full_name='proto.RetentionMaxMessages', +_NULLABLEINT32 = _descriptor.Descriptor( + name='NullableInt32', + full_name='proto.NullableInt32', filename=None, file=DESCRIPTOR, containing_type=None, fields=[ _descriptor.FieldDescriptor( - name='value', full_name='proto.RetentionMaxMessages.value', index=0, - number=1, type=3, cpp_type=2, label=1, + name='value', full_name='proto.NullableInt32.value', index=0, + number=1, type=5, cpp_type=1, label=1, has_default_value=False, default_value=0, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, @@ -209,20 +209,20 @@ extension_ranges=[], oneofs=[ ], - serialized_start=56, - serialized_end=93, + serialized_start=52, + serialized_end=82, ) -_COMPACTENABLED = _descriptor.Descriptor( - name='CompactEnabled', - full_name='proto.CompactEnabled', +_NULLABLEBOOL = _descriptor.Descriptor( + name='NullableBool', + full_name='proto.NullableBool', filename=None, file=DESCRIPTOR, containing_type=None, fields=[ _descriptor.FieldDescriptor( - name='value', full_name='proto.CompactEnabled.value', index=0, + name='value', full_name='proto.NullableBool.value', index=0, number=1, type=8, cpp_type=7, label=1, has_default_value=False, default_value=False, message_type=None, enum_type=None, containing_type=None, @@ -240,8 +240,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=95, - serialized_end=126, + serialized_start=84, + serialized_end=113, ) @@ -303,36 +303,36 @@ serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( name='RetentionMaxAge', full_name='proto.CreateStreamRequest.RetentionMaxAge', index=7, - number=8, type=3, cpp_type=2, label=1, - has_default_value=False, default_value=0, + number=8, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( name='CleanerInterval', full_name='proto.CreateStreamRequest.CleanerInterval', index=8, - number=9, type=3, cpp_type=2, label=1, - has_default_value=False, default_value=0, + number=9, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( name='SegmentMaxBytes', full_name='proto.CreateStreamRequest.SegmentMaxBytes', index=9, - number=10, type=3, cpp_type=2, label=1, - has_default_value=False, default_value=0, + number=10, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( name='SegmentMaxAge', full_name='proto.CreateStreamRequest.SegmentMaxAge', index=10, - number=11, type=3, cpp_type=2, label=1, - has_default_value=False, default_value=0, + number=11, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), _descriptor.FieldDescriptor( name='CompactMaxGoroutines', full_name='proto.CreateStreamRequest.CompactMaxGoroutines', index=11, - number=12, type=5, cpp_type=1, label=1, - has_default_value=False, default_value=0, + number=12, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), @@ -355,8 +355,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=129, - serialized_end=530, + serialized_start=116, + serialized_end=614, ) @@ -379,8 +379,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=532, - serialized_end=554, + serialized_start=616, + serialized_end=638, ) @@ -410,8 +410,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=556, - serialized_end=591, + serialized_start=640, + serialized_end=675, ) @@ -434,8 +434,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=593, - serialized_end=615, + serialized_start=677, + serialized_end=699, ) @@ -479,8 +479,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=617, - serialized_end=690, + serialized_start=701, + serialized_end=774, ) @@ -503,8 +503,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=692, - serialized_end=713, + serialized_start=776, + serialized_end=797, ) @@ -569,8 +569,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=716, - serialized_end=891, + serialized_start=800, + serialized_end=975, ) @@ -600,8 +600,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=893, - serialized_end=932, + serialized_start=977, + serialized_end=1016, ) @@ -638,8 +638,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=934, - serialized_end=1030, + serialized_start=1018, + serialized_end=1114, ) @@ -676,8 +676,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=1245, - serialized_end=1291, + serialized_start=1329, + serialized_end=1375, ) _PUBLISHREQUEST = _descriptor.Descriptor( @@ -755,8 +755,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=1033, - serialized_end=1291, + serialized_start=1117, + serialized_end=1375, ) @@ -786,8 +786,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=1293, - serialized_end=1335, + serialized_start=1377, + serialized_end=1419, ) @@ -824,8 +824,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=1245, - serialized_end=1291, + serialized_start=1329, + serialized_end=1375, ) _PUBLISHTOSUBJECTREQUEST = _descriptor.Descriptor( @@ -896,8 +896,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=1338, - serialized_end=1596, + serialized_start=1422, + serialized_end=1680, ) @@ -927,8 +927,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=1598, - serialized_end=1649, + serialized_start=1682, + serialized_end=1733, ) @@ -972,8 +972,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=1651, - serialized_end=1699, + serialized_start=1735, + serialized_end=1783, ) @@ -1010,8 +1010,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=1854, - serialized_end=1929, + serialized_start=1938, + serialized_end=2013, ) _STREAMMETADATA = _descriptor.Descriptor( @@ -1062,8 +1062,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=1702, - serialized_end=1966, + serialized_start=1786, + serialized_end=2050, ) @@ -1114,8 +1114,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=1968, - serialized_end=2046, + serialized_start=2052, + serialized_end=2130, ) @@ -1152,8 +1152,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=1245, - serialized_end=1291, + serialized_start=1329, + serialized_end=1375, ) _MESSAGE = _descriptor.Descriptor( @@ -1259,8 +1259,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=2049, - serialized_end=2375, + serialized_start=2133, + serialized_end=2459, ) @@ -1332,8 +1332,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=2378, - serialized_end=2543, + serialized_start=2462, + serialized_end=2627, ) @@ -1370,8 +1370,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=2545, - serialized_end=2597, + serialized_start=2629, + serialized_end=2681, ) @@ -1401,8 +1401,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=2599, - serialized_end=2631, + serialized_start=2683, + serialized_end=2715, ) @@ -1446,8 +1446,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=2633, - serialized_end=2703, + serialized_start=2717, + serialized_end=2787, ) @@ -1484,8 +1484,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=2705, - serialized_end=2757, + serialized_start=2789, + serialized_end=2841, ) @@ -1550,13 +1550,18 @@ extension_ranges=[], oneofs=[ ], - serialized_start=2760, - serialized_end=3016, + serialized_start=2844, + serialized_end=3100, ) -_CREATESTREAMREQUEST.fields_by_name['RetentionMaxBytes'].message_type = _RETENTIONMAXBYTES -_CREATESTREAMREQUEST.fields_by_name['RetentionMaxMessages'].message_type = _RETENTIONMAXMESSAGES -_CREATESTREAMREQUEST.fields_by_name['CompactEnabled'].message_type = _COMPACTENABLED +_CREATESTREAMREQUEST.fields_by_name['RetentionMaxBytes'].message_type = _NULLABLEINT64 +_CREATESTREAMREQUEST.fields_by_name['RetentionMaxMessages'].message_type = _NULLABLEINT64 +_CREATESTREAMREQUEST.fields_by_name['RetentionMaxAge'].message_type = _NULLABLEINT64 +_CREATESTREAMREQUEST.fields_by_name['CleanerInterval'].message_type = _NULLABLEINT64 +_CREATESTREAMREQUEST.fields_by_name['SegmentMaxBytes'].message_type = _NULLABLEINT64 +_CREATESTREAMREQUEST.fields_by_name['SegmentMaxAge'].message_type = _NULLABLEINT64 +_CREATESTREAMREQUEST.fields_by_name['CompactMaxGoroutines'].message_type = _NULLABLEINT32 +_CREATESTREAMREQUEST.fields_by_name['CompactEnabled'].message_type = _NULLABLEBOOL _SUBSCRIBEREQUEST.fields_by_name['startPosition'].enum_type = _STARTPOSITION _FETCHMETADATARESPONSE.fields_by_name['brokers'].message_type = _BROKER _FETCHMETADATARESPONSE.fields_by_name['metadata'].message_type = _STREAMMETADATA @@ -1582,9 +1587,9 @@ _ACTIVITYSTREAMEVENT.fields_by_name['deleteStreamOp'].message_type = _DELETESTREAMOP _ACTIVITYSTREAMEVENT.fields_by_name['pauseStreamOp'].message_type = _PAUSESTREAMOP _ACTIVITYSTREAMEVENT.fields_by_name['resumeStreamOp'].message_type = _RESUMESTREAMOP -DESCRIPTOR.message_types_by_name['RetentionMaxBytes'] = _RETENTIONMAXBYTES -DESCRIPTOR.message_types_by_name['RetentionMaxMessages'] = _RETENTIONMAXMESSAGES -DESCRIPTOR.message_types_by_name['CompactEnabled'] = _COMPACTENABLED +DESCRIPTOR.message_types_by_name['NullableInt64'] = _NULLABLEINT64 +DESCRIPTOR.message_types_by_name['NullableInt32'] = _NULLABLEINT32 +DESCRIPTOR.message_types_by_name['NullableBool'] = _NULLABLEBOOL DESCRIPTOR.message_types_by_name['CreateStreamRequest'] = _CREATESTREAMREQUEST DESCRIPTOR.message_types_by_name['CreateStreamResponse'] = _CREATESTREAMRESPONSE DESCRIPTOR.message_types_by_name['DeleteStreamRequest'] = _DELETESTREAMREQUEST @@ -1613,26 +1618,26 @@ DESCRIPTOR.enum_types_by_name['ActivityStreamOp'] = _ACTIVITYSTREAMOP _sym_db.RegisterFileDescriptor(DESCRIPTOR) -RetentionMaxBytes = _reflection.GeneratedProtocolMessageType('RetentionMaxBytes', (_message.Message,), { - 'DESCRIPTOR' : _RETENTIONMAXBYTES, +NullableInt64 = _reflection.GeneratedProtocolMessageType('NullableInt64', (_message.Message,), { + 'DESCRIPTOR' : _NULLABLEINT64, '__module__' : 'api_pb2' - # @@protoc_insertion_point(class_scope:proto.RetentionMaxBytes) + # @@protoc_insertion_point(class_scope:proto.NullableInt64) }) -_sym_db.RegisterMessage(RetentionMaxBytes) +_sym_db.RegisterMessage(NullableInt64) -RetentionMaxMessages = _reflection.GeneratedProtocolMessageType('RetentionMaxMessages', (_message.Message,), { - 'DESCRIPTOR' : _RETENTIONMAXMESSAGES, +NullableInt32 = _reflection.GeneratedProtocolMessageType('NullableInt32', (_message.Message,), { + 'DESCRIPTOR' : _NULLABLEINT32, '__module__' : 'api_pb2' - # @@protoc_insertion_point(class_scope:proto.RetentionMaxMessages) + # @@protoc_insertion_point(class_scope:proto.NullableInt32) }) -_sym_db.RegisterMessage(RetentionMaxMessages) +_sym_db.RegisterMessage(NullableInt32) -CompactEnabled = _reflection.GeneratedProtocolMessageType('CompactEnabled', (_message.Message,), { - 'DESCRIPTOR' : _COMPACTENABLED, +NullableBool = _reflection.GeneratedProtocolMessageType('NullableBool', (_message.Message,), { + 'DESCRIPTOR' : _NULLABLEBOOL, '__module__' : 'api_pb2' - # @@protoc_insertion_point(class_scope:proto.CompactEnabled) + # @@protoc_insertion_point(class_scope:proto.NullableBool) }) -_sym_db.RegisterMessage(CompactEnabled) +_sym_db.RegisterMessage(NullableBool) CreateStreamRequest = _reflection.GeneratedProtocolMessageType('CreateStreamRequest', (_message.Message,), { 'DESCRIPTOR' : _CREATESTREAMREQUEST, @@ -1845,8 +1850,8 @@ file=DESCRIPTOR, index=0, serialized_options=None, - serialized_start=3242, - serialized_end=3752, + serialized_start=3326, + serialized_end=3836, methods=[ _descriptor.MethodDescriptor( name='CreateStream',