diff --git a/backend/pkg/api/handle_topic_publish_records.go b/backend/pkg/api/handle_topic_publish_records.go index b7fcfdfb8..beed70ea9 100644 --- a/backend/pkg/api/handle_topic_publish_records.go +++ b/backend/pkg/api/handle_topic_publish_records.go @@ -10,11 +10,16 @@ package api import ( + "context" + "errors" "fmt" "net/http" + "connectrpc.com/connect" "github.com/cloudhut/common/rest" "github.com/twmb/franz-go/pkg/kgo" + + v1alpha "github.com/redpanda-data/console/backend/pkg/protogen/redpanda/api/console/v1alpha" ) type recordsRequest struct { @@ -139,3 +144,7 @@ func (api *API) handlePublishTopicsRecords() http.HandlerFunc { rest.SendResponse(w, r, api.Logger, http.StatusOK, publishRes) } } + +func (api *API) PublishMessage(context.Context, *connect.Request[v1alpha.PublishMessageRequest]) (*connect.Response[v1alpha.PublishMessageResponse], error) { + return nil, connect.NewError(connect.CodeUnimplemented, errors.New("redpanda.api.console.v1alpha.ConsoleService.PublishMessage is not implemented")) +} diff --git a/backend/pkg/protogen/redpanda/api/console/v1alpha/common.pb.go b/backend/pkg/protogen/redpanda/api/console/v1alpha/common.pb.go new file mode 100644 index 000000000..cee7a434f --- /dev/null +++ b/backend/pkg/protogen/redpanda/api/console/v1alpha/common.pb.go @@ -0,0 +1,348 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.31.0 +// protoc (unknown) +// source: redpanda/api/console/v1alpha/common.proto + +package consolev1alpha + +import ( + reflect "reflect" + sync "sync" + + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" +) + +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) + +type CompressionType int32 + +const ( + CompressionType_COMPRESSION_TYPE_UNSPECIFIED CompressionType = 0 + CompressionType_COMPRESSION_TYPE_UNCOMPRESSED CompressionType = 1 + CompressionType_COMPRESSION_TYPE_GZIP CompressionType = 2 + CompressionType_COMPRESSION_TYPE_SNAPPY CompressionType = 3 + CompressionType_COMPRESSION_TYPE_LZ4 CompressionType = 4 + CompressionType_COMPRESSION_TYPE_ZSTD CompressionType = 5 +) + +// Enum value maps for CompressionType. +var ( + CompressionType_name = map[int32]string{ + 0: "COMPRESSION_TYPE_UNSPECIFIED", + 1: "COMPRESSION_TYPE_UNCOMPRESSED", + 2: "COMPRESSION_TYPE_GZIP", + 3: "COMPRESSION_TYPE_SNAPPY", + 4: "COMPRESSION_TYPE_LZ4", + 5: "COMPRESSION_TYPE_ZSTD", + } + CompressionType_value = map[string]int32{ + "COMPRESSION_TYPE_UNSPECIFIED": 0, + "COMPRESSION_TYPE_UNCOMPRESSED": 1, + "COMPRESSION_TYPE_GZIP": 2, + "COMPRESSION_TYPE_SNAPPY": 3, + "COMPRESSION_TYPE_LZ4": 4, + "COMPRESSION_TYPE_ZSTD": 5, + } +) + +func (x CompressionType) Enum() *CompressionType { + p := new(CompressionType) + *p = x + return p +} + +func (x CompressionType) String() string { + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (CompressionType) Descriptor() protoreflect.EnumDescriptor { + return file_redpanda_api_console_v1alpha_common_proto_enumTypes[0].Descriptor() +} + +func (CompressionType) Type() protoreflect.EnumType { + return &file_redpanda_api_console_v1alpha_common_proto_enumTypes[0] +} + +func (x CompressionType) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Use CompressionType.Descriptor instead. +func (CompressionType) EnumDescriptor() ([]byte, []int) { + return file_redpanda_api_console_v1alpha_common_proto_rawDescGZIP(), []int{0} +} + +type PayloadEncoding int32 + +const ( + PayloadEncoding_PAYLOAD_ENCODING_UNSPECIFIED PayloadEncoding = 0 + PayloadEncoding_PAYLOAD_ENCODING_NONE PayloadEncoding = 1 + PayloadEncoding_PAYLOAD_ENCODING_AVRO PayloadEncoding = 2 + PayloadEncoding_PAYLOAD_ENCODING_PROTOBUF PayloadEncoding = 3 + PayloadEncoding_PAYLOAD_ENCODING_JSON PayloadEncoding = 4 + PayloadEncoding_PAYLOAD_ENCODING_XML PayloadEncoding = 5 + PayloadEncoding_PAYLOAD_ENCODING_TEXT PayloadEncoding = 6 + PayloadEncoding_PAYLOAD_ENCODING_UTF8 PayloadEncoding = 7 + PayloadEncoding_PAYLOAD_ENCODING_MESSAGE_PACK PayloadEncoding = 8 + PayloadEncoding_PAYLOAD_ENCODING_SMILE PayloadEncoding = 9 + PayloadEncoding_PAYLOAD_ENCODING_BINARY PayloadEncoding = 10 + PayloadEncoding_PAYLOAD_ENCODING_CONSUMER_OFFSETS PayloadEncoding = 11 +) + +// Enum value maps for PayloadEncoding. +var ( + PayloadEncoding_name = map[int32]string{ + 0: "PAYLOAD_ENCODING_UNSPECIFIED", + 1: "PAYLOAD_ENCODING_NONE", + 2: "PAYLOAD_ENCODING_AVRO", + 3: "PAYLOAD_ENCODING_PROTOBUF", + 4: "PAYLOAD_ENCODING_JSON", + 5: "PAYLOAD_ENCODING_XML", + 6: "PAYLOAD_ENCODING_TEXT", + 7: "PAYLOAD_ENCODING_UTF8", + 8: "PAYLOAD_ENCODING_MESSAGE_PACK", + 9: "PAYLOAD_ENCODING_SMILE", + 10: "PAYLOAD_ENCODING_BINARY", + 11: "PAYLOAD_ENCODING_CONSUMER_OFFSETS", + } + PayloadEncoding_value = map[string]int32{ + "PAYLOAD_ENCODING_UNSPECIFIED": 0, + "PAYLOAD_ENCODING_NONE": 1, + "PAYLOAD_ENCODING_AVRO": 2, + "PAYLOAD_ENCODING_PROTOBUF": 3, + "PAYLOAD_ENCODING_JSON": 4, + "PAYLOAD_ENCODING_XML": 5, + "PAYLOAD_ENCODING_TEXT": 6, + "PAYLOAD_ENCODING_UTF8": 7, + "PAYLOAD_ENCODING_MESSAGE_PACK": 8, + "PAYLOAD_ENCODING_SMILE": 9, + "PAYLOAD_ENCODING_BINARY": 10, + "PAYLOAD_ENCODING_CONSUMER_OFFSETS": 11, + } +) + +func (x PayloadEncoding) Enum() *PayloadEncoding { + p := new(PayloadEncoding) + *p = x + return p +} + +func (x PayloadEncoding) String() string { + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (PayloadEncoding) Descriptor() protoreflect.EnumDescriptor { + return file_redpanda_api_console_v1alpha_common_proto_enumTypes[1].Descriptor() +} + +func (PayloadEncoding) Type() protoreflect.EnumType { + return &file_redpanda_api_console_v1alpha_common_proto_enumTypes[1] +} + +func (x PayloadEncoding) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Use PayloadEncoding.Descriptor instead. +func (PayloadEncoding) EnumDescriptor() ([]byte, []int) { + return file_redpanda_api_console_v1alpha_common_proto_rawDescGZIP(), []int{1} +} + +// KafkaRecordHeader is the record header. +type KafkaRecordHeader struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` // Header key. + Value []byte `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"` // Header value. +} + +func (x *KafkaRecordHeader) Reset() { + *x = KafkaRecordHeader{} + if protoimpl.UnsafeEnabled { + mi := &file_redpanda_api_console_v1alpha_common_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *KafkaRecordHeader) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*KafkaRecordHeader) ProtoMessage() {} + +func (x *KafkaRecordHeader) ProtoReflect() protoreflect.Message { + mi := &file_redpanda_api_console_v1alpha_common_proto_msgTypes[0] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use KafkaRecordHeader.ProtoReflect.Descriptor instead. +func (*KafkaRecordHeader) Descriptor() ([]byte, []int) { + return file_redpanda_api_console_v1alpha_common_proto_rawDescGZIP(), []int{0} +} + +func (x *KafkaRecordHeader) GetKey() string { + if x != nil { + return x.Key + } + return "" +} + +func (x *KafkaRecordHeader) GetValue() []byte { + if x != nil { + return x.Value + } + return nil +} + +var File_redpanda_api_console_v1alpha_common_proto protoreflect.FileDescriptor + +var file_redpanda_api_console_v1alpha_common_proto_rawDesc = []byte{ + 0x0a, 0x29, 0x72, 0x65, 0x64, 0x70, 0x61, 0x6e, 0x64, 0x61, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x63, + 0x6f, 0x6e, 0x73, 0x6f, 0x6c, 0x65, 0x2f, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2f, 0x63, + 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x1c, 0x72, 0x65, 0x64, + 0x70, 0x61, 0x6e, 0x64, 0x61, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x63, 0x6f, 0x6e, 0x73, 0x6f, 0x6c, + 0x65, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x22, 0x3b, 0x0a, 0x11, 0x4b, 0x61, 0x66, + 0x6b, 0x61, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x12, 0x10, + 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, + 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, + 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x2a, 0xc3, 0x01, 0x0a, 0x0f, 0x43, 0x6f, 0x6d, 0x70, 0x72, + 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x54, 0x79, 0x70, 0x65, 0x12, 0x20, 0x0a, 0x1c, 0x43, 0x4f, + 0x4d, 0x50, 0x52, 0x45, 0x53, 0x53, 0x49, 0x4f, 0x4e, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x55, + 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x21, 0x0a, 0x1d, + 0x43, 0x4f, 0x4d, 0x50, 0x52, 0x45, 0x53, 0x53, 0x49, 0x4f, 0x4e, 0x5f, 0x54, 0x59, 0x50, 0x45, + 0x5f, 0x55, 0x4e, 0x43, 0x4f, 0x4d, 0x50, 0x52, 0x45, 0x53, 0x53, 0x45, 0x44, 0x10, 0x01, 0x12, + 0x19, 0x0a, 0x15, 0x43, 0x4f, 0x4d, 0x50, 0x52, 0x45, 0x53, 0x53, 0x49, 0x4f, 0x4e, 0x5f, 0x54, + 0x59, 0x50, 0x45, 0x5f, 0x47, 0x5a, 0x49, 0x50, 0x10, 0x02, 0x12, 0x1b, 0x0a, 0x17, 0x43, 0x4f, + 0x4d, 0x50, 0x52, 0x45, 0x53, 0x53, 0x49, 0x4f, 0x4e, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x53, + 0x4e, 0x41, 0x50, 0x50, 0x59, 0x10, 0x03, 0x12, 0x18, 0x0a, 0x14, 0x43, 0x4f, 0x4d, 0x50, 0x52, + 0x45, 0x53, 0x53, 0x49, 0x4f, 0x4e, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x4c, 0x5a, 0x34, 0x10, + 0x04, 0x12, 0x19, 0x0a, 0x15, 0x43, 0x4f, 0x4d, 0x50, 0x52, 0x45, 0x53, 0x53, 0x49, 0x4f, 0x4e, + 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x5a, 0x53, 0x54, 0x44, 0x10, 0x05, 0x2a, 0xf6, 0x02, 0x0a, + 0x0f, 0x50, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x45, 0x6e, 0x63, 0x6f, 0x64, 0x69, 0x6e, 0x67, + 0x12, 0x20, 0x0a, 0x1c, 0x50, 0x41, 0x59, 0x4c, 0x4f, 0x41, 0x44, 0x5f, 0x45, 0x4e, 0x43, 0x4f, + 0x44, 0x49, 0x4e, 0x47, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, + 0x10, 0x00, 0x12, 0x19, 0x0a, 0x15, 0x50, 0x41, 0x59, 0x4c, 0x4f, 0x41, 0x44, 0x5f, 0x45, 0x4e, + 0x43, 0x4f, 0x44, 0x49, 0x4e, 0x47, 0x5f, 0x4e, 0x4f, 0x4e, 0x45, 0x10, 0x01, 0x12, 0x19, 0x0a, + 0x15, 0x50, 0x41, 0x59, 0x4c, 0x4f, 0x41, 0x44, 0x5f, 0x45, 0x4e, 0x43, 0x4f, 0x44, 0x49, 0x4e, + 0x47, 0x5f, 0x41, 0x56, 0x52, 0x4f, 0x10, 0x02, 0x12, 0x1d, 0x0a, 0x19, 0x50, 0x41, 0x59, 0x4c, + 0x4f, 0x41, 0x44, 0x5f, 0x45, 0x4e, 0x43, 0x4f, 0x44, 0x49, 0x4e, 0x47, 0x5f, 0x50, 0x52, 0x4f, + 0x54, 0x4f, 0x42, 0x55, 0x46, 0x10, 0x03, 0x12, 0x19, 0x0a, 0x15, 0x50, 0x41, 0x59, 0x4c, 0x4f, + 0x41, 0x44, 0x5f, 0x45, 0x4e, 0x43, 0x4f, 0x44, 0x49, 0x4e, 0x47, 0x5f, 0x4a, 0x53, 0x4f, 0x4e, + 0x10, 0x04, 0x12, 0x18, 0x0a, 0x14, 0x50, 0x41, 0x59, 0x4c, 0x4f, 0x41, 0x44, 0x5f, 0x45, 0x4e, + 0x43, 0x4f, 0x44, 0x49, 0x4e, 0x47, 0x5f, 0x58, 0x4d, 0x4c, 0x10, 0x05, 0x12, 0x19, 0x0a, 0x15, + 0x50, 0x41, 0x59, 0x4c, 0x4f, 0x41, 0x44, 0x5f, 0x45, 0x4e, 0x43, 0x4f, 0x44, 0x49, 0x4e, 0x47, + 0x5f, 0x54, 0x45, 0x58, 0x54, 0x10, 0x06, 0x12, 0x19, 0x0a, 0x15, 0x50, 0x41, 0x59, 0x4c, 0x4f, + 0x41, 0x44, 0x5f, 0x45, 0x4e, 0x43, 0x4f, 0x44, 0x49, 0x4e, 0x47, 0x5f, 0x55, 0x54, 0x46, 0x38, + 0x10, 0x07, 0x12, 0x21, 0x0a, 0x1d, 0x50, 0x41, 0x59, 0x4c, 0x4f, 0x41, 0x44, 0x5f, 0x45, 0x4e, + 0x43, 0x4f, 0x44, 0x49, 0x4e, 0x47, 0x5f, 0x4d, 0x45, 0x53, 0x53, 0x41, 0x47, 0x45, 0x5f, 0x50, + 0x41, 0x43, 0x4b, 0x10, 0x08, 0x12, 0x1a, 0x0a, 0x16, 0x50, 0x41, 0x59, 0x4c, 0x4f, 0x41, 0x44, + 0x5f, 0x45, 0x4e, 0x43, 0x4f, 0x44, 0x49, 0x4e, 0x47, 0x5f, 0x53, 0x4d, 0x49, 0x4c, 0x45, 0x10, + 0x09, 0x12, 0x1b, 0x0a, 0x17, 0x50, 0x41, 0x59, 0x4c, 0x4f, 0x41, 0x44, 0x5f, 0x45, 0x4e, 0x43, + 0x4f, 0x44, 0x49, 0x4e, 0x47, 0x5f, 0x42, 0x49, 0x4e, 0x41, 0x52, 0x59, 0x10, 0x0a, 0x12, 0x25, + 0x0a, 0x21, 0x50, 0x41, 0x59, 0x4c, 0x4f, 0x41, 0x44, 0x5f, 0x45, 0x4e, 0x43, 0x4f, 0x44, 0x49, + 0x4e, 0x47, 0x5f, 0x43, 0x4f, 0x4e, 0x53, 0x55, 0x4d, 0x45, 0x52, 0x5f, 0x4f, 0x46, 0x46, 0x53, + 0x45, 0x54, 0x53, 0x10, 0x0b, 0x42, 0xa5, 0x02, 0x0a, 0x20, 0x63, 0x6f, 0x6d, 0x2e, 0x72, 0x65, + 0x64, 0x70, 0x61, 0x6e, 0x64, 0x61, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x63, 0x6f, 0x6e, 0x73, 0x6f, + 0x6c, 0x65, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x42, 0x0b, 0x43, 0x6f, 0x6d, 0x6d, + 0x6f, 0x6e, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x61, 0x67, 0x69, 0x74, 0x68, 0x75, + 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x72, 0x65, 0x64, 0x70, 0x61, 0x6e, 0x64, 0x61, 0x2d, 0x64, + 0x61, 0x74, 0x61, 0x2f, 0x63, 0x6f, 0x6e, 0x73, 0x6f, 0x6c, 0x65, 0x2f, 0x62, 0x61, 0x63, 0x6b, + 0x65, 0x6e, 0x64, 0x2f, 0x70, 0x6b, 0x67, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x67, 0x65, 0x6e, + 0x2f, 0x72, 0x65, 0x64, 0x70, 0x61, 0x6e, 0x64, 0x61, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x63, 0x6f, + 0x6e, 0x73, 0x6f, 0x6c, 0x65, 0x2f, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x3b, 0x63, 0x6f, + 0x6e, 0x73, 0x6f, 0x6c, 0x65, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0xa2, 0x02, 0x03, 0x52, + 0x41, 0x43, 0xaa, 0x02, 0x1c, 0x52, 0x65, 0x64, 0x70, 0x61, 0x6e, 0x64, 0x61, 0x2e, 0x41, 0x70, + 0x69, 0x2e, 0x43, 0x6f, 0x6e, 0x73, 0x6f, 0x6c, 0x65, 0x2e, 0x56, 0x31, 0x61, 0x6c, 0x70, 0x68, + 0x61, 0xca, 0x02, 0x1c, 0x52, 0x65, 0x64, 0x70, 0x61, 0x6e, 0x64, 0x61, 0x5c, 0x41, 0x70, 0x69, + 0x5c, 0x43, 0x6f, 0x6e, 0x73, 0x6f, 0x6c, 0x65, 0x5c, 0x56, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, + 0xe2, 0x02, 0x28, 0x52, 0x65, 0x64, 0x70, 0x61, 0x6e, 0x64, 0x61, 0x5c, 0x41, 0x70, 0x69, 0x5c, + 0x43, 0x6f, 0x6e, 0x73, 0x6f, 0x6c, 0x65, 0x5c, 0x56, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x5c, + 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x1f, 0x52, 0x65, + 0x64, 0x70, 0x61, 0x6e, 0x64, 0x61, 0x3a, 0x3a, 0x41, 0x70, 0x69, 0x3a, 0x3a, 0x43, 0x6f, 0x6e, + 0x73, 0x6f, 0x6c, 0x65, 0x3a, 0x3a, 0x56, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x62, 0x06, 0x70, + 0x72, 0x6f, 0x74, 0x6f, 0x33, +} + +var ( + file_redpanda_api_console_v1alpha_common_proto_rawDescOnce sync.Once + file_redpanda_api_console_v1alpha_common_proto_rawDescData = file_redpanda_api_console_v1alpha_common_proto_rawDesc +) + +func file_redpanda_api_console_v1alpha_common_proto_rawDescGZIP() []byte { + file_redpanda_api_console_v1alpha_common_proto_rawDescOnce.Do(func() { + file_redpanda_api_console_v1alpha_common_proto_rawDescData = protoimpl.X.CompressGZIP(file_redpanda_api_console_v1alpha_common_proto_rawDescData) + }) + return file_redpanda_api_console_v1alpha_common_proto_rawDescData +} + +var file_redpanda_api_console_v1alpha_common_proto_enumTypes = make([]protoimpl.EnumInfo, 2) +var file_redpanda_api_console_v1alpha_common_proto_msgTypes = make([]protoimpl.MessageInfo, 1) +var file_redpanda_api_console_v1alpha_common_proto_goTypes = []interface{}{ + (CompressionType)(0), // 0: redpanda.api.console.v1alpha.CompressionType + (PayloadEncoding)(0), // 1: redpanda.api.console.v1alpha.PayloadEncoding + (*KafkaRecordHeader)(nil), // 2: redpanda.api.console.v1alpha.KafkaRecordHeader +} +var file_redpanda_api_console_v1alpha_common_proto_depIdxs = []int32{ + 0, // [0:0] is the sub-list for method output_type + 0, // [0:0] is the sub-list for method input_type + 0, // [0:0] is the sub-list for extension type_name + 0, // [0:0] is the sub-list for extension extendee + 0, // [0:0] is the sub-list for field type_name +} + +func init() { file_redpanda_api_console_v1alpha_common_proto_init() } +func file_redpanda_api_console_v1alpha_common_proto_init() { + if File_redpanda_api_console_v1alpha_common_proto != nil { + return + } + if !protoimpl.UnsafeEnabled { + file_redpanda_api_console_v1alpha_common_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*KafkaRecordHeader); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_redpanda_api_console_v1alpha_common_proto_rawDesc, + NumEnums: 2, + NumMessages: 1, + NumExtensions: 0, + NumServices: 0, + }, + GoTypes: file_redpanda_api_console_v1alpha_common_proto_goTypes, + DependencyIndexes: file_redpanda_api_console_v1alpha_common_proto_depIdxs, + EnumInfos: file_redpanda_api_console_v1alpha_common_proto_enumTypes, + MessageInfos: file_redpanda_api_console_v1alpha_common_proto_msgTypes, + }.Build() + File_redpanda_api_console_v1alpha_common_proto = out.File + file_redpanda_api_console_v1alpha_common_proto_rawDesc = nil + file_redpanda_api_console_v1alpha_common_proto_goTypes = nil + file_redpanda_api_console_v1alpha_common_proto_depIdxs = nil +} diff --git a/backend/pkg/protogen/redpanda/api/console/v1alpha/console_service.pb.go b/backend/pkg/protogen/redpanda/api/console/v1alpha/console_service.pb.go new file mode 100644 index 000000000..64bec752d --- /dev/null +++ b/backend/pkg/protogen/redpanda/api/console/v1alpha/console_service.pb.go @@ -0,0 +1,118 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.31.0 +// protoc (unknown) +// source: redpanda/api/console/v1alpha/console_service.proto + +package consolev1alpha + +import ( + reflect "reflect" + + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" +) + +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) + +var File_redpanda_api_console_v1alpha_console_service_proto protoreflect.FileDescriptor + +var file_redpanda_api_console_v1alpha_console_service_proto_rawDesc = []byte{ + 0x0a, 0x32, 0x72, 0x65, 0x64, 0x70, 0x61, 0x6e, 0x64, 0x61, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x63, + 0x6f, 0x6e, 0x73, 0x6f, 0x6c, 0x65, 0x2f, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2f, 0x63, + 0x6f, 0x6e, 0x73, 0x6f, 0x6c, 0x65, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x70, + 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x1c, 0x72, 0x65, 0x64, 0x70, 0x61, 0x6e, 0x64, 0x61, 0x2e, 0x61, + 0x70, 0x69, 0x2e, 0x63, 0x6f, 0x6e, 0x73, 0x6f, 0x6c, 0x65, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, + 0x68, 0x61, 0x1a, 0x30, 0x72, 0x65, 0x64, 0x70, 0x61, 0x6e, 0x64, 0x61, 0x2f, 0x61, 0x70, 0x69, + 0x2f, 0x63, 0x6f, 0x6e, 0x73, 0x6f, 0x6c, 0x65, 0x2f, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, + 0x2f, 0x6c, 0x69, 0x73, 0x74, 0x5f, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x73, 0x2e, 0x70, + 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x32, 0x72, 0x65, 0x64, 0x70, 0x61, 0x6e, 0x64, 0x61, 0x2f, 0x61, + 0x70, 0x69, 0x2f, 0x63, 0x6f, 0x6e, 0x73, 0x6f, 0x6c, 0x65, 0x2f, 0x76, 0x31, 0x61, 0x6c, 0x70, + 0x68, 0x61, 0x2f, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x73, 0x68, 0x5f, 0x6d, 0x65, 0x73, 0x73, 0x61, + 0x67, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x32, 0x8a, 0x02, 0x0a, 0x0e, 0x43, 0x6f, 0x6e, + 0x73, 0x6f, 0x6c, 0x65, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x79, 0x0a, 0x0c, 0x4c, + 0x69, 0x73, 0x74, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x73, 0x12, 0x31, 0x2e, 0x72, 0x65, + 0x64, 0x70, 0x61, 0x6e, 0x64, 0x61, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x63, 0x6f, 0x6e, 0x73, 0x6f, + 0x6c, 0x65, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x4d, + 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x32, + 0x2e, 0x72, 0x65, 0x64, 0x70, 0x61, 0x6e, 0x64, 0x61, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x63, 0x6f, + 0x6e, 0x73, 0x6f, 0x6c, 0x65, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x4c, 0x69, + 0x73, 0x74, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, + 0x73, 0x65, 0x22, 0x00, 0x30, 0x01, 0x12, 0x7d, 0x0a, 0x0e, 0x50, 0x75, 0x62, 0x6c, 0x69, 0x73, + 0x68, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x33, 0x2e, 0x72, 0x65, 0x64, 0x70, 0x61, + 0x6e, 0x64, 0x61, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x63, 0x6f, 0x6e, 0x73, 0x6f, 0x6c, 0x65, 0x2e, + 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x50, 0x75, 0x62, 0x6c, 0x69, 0x73, 0x68, 0x4d, + 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x34, 0x2e, + 0x72, 0x65, 0x64, 0x70, 0x61, 0x6e, 0x64, 0x61, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x63, 0x6f, 0x6e, + 0x73, 0x6f, 0x6c, 0x65, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x50, 0x75, 0x62, + 0x6c, 0x69, 0x73, 0x68, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, + 0x6e, 0x73, 0x65, 0x22, 0x00, 0x42, 0xad, 0x02, 0x0a, 0x20, 0x63, 0x6f, 0x6d, 0x2e, 0x72, 0x65, + 0x64, 0x70, 0x61, 0x6e, 0x64, 0x61, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x63, 0x6f, 0x6e, 0x73, 0x6f, + 0x6c, 0x65, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x42, 0x13, 0x43, 0x6f, 0x6e, 0x73, + 0x6f, 0x6c, 0x65, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, + 0x01, 0x5a, 0x61, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x72, 0x65, + 0x64, 0x70, 0x61, 0x6e, 0x64, 0x61, 0x2d, 0x64, 0x61, 0x74, 0x61, 0x2f, 0x63, 0x6f, 0x6e, 0x73, + 0x6f, 0x6c, 0x65, 0x2f, 0x62, 0x61, 0x63, 0x6b, 0x65, 0x6e, 0x64, 0x2f, 0x70, 0x6b, 0x67, 0x2f, + 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x67, 0x65, 0x6e, 0x2f, 0x72, 0x65, 0x64, 0x70, 0x61, 0x6e, 0x64, + 0x61, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x63, 0x6f, 0x6e, 0x73, 0x6f, 0x6c, 0x65, 0x2f, 0x76, 0x31, + 0x61, 0x6c, 0x70, 0x68, 0x61, 0x3b, 0x63, 0x6f, 0x6e, 0x73, 0x6f, 0x6c, 0x65, 0x76, 0x31, 0x61, + 0x6c, 0x70, 0x68, 0x61, 0xa2, 0x02, 0x03, 0x52, 0x41, 0x43, 0xaa, 0x02, 0x1c, 0x52, 0x65, 0x64, + 0x70, 0x61, 0x6e, 0x64, 0x61, 0x2e, 0x41, 0x70, 0x69, 0x2e, 0x43, 0x6f, 0x6e, 0x73, 0x6f, 0x6c, + 0x65, 0x2e, 0x56, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0xca, 0x02, 0x1c, 0x52, 0x65, 0x64, 0x70, + 0x61, 0x6e, 0x64, 0x61, 0x5c, 0x41, 0x70, 0x69, 0x5c, 0x43, 0x6f, 0x6e, 0x73, 0x6f, 0x6c, 0x65, + 0x5c, 0x56, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0xe2, 0x02, 0x28, 0x52, 0x65, 0x64, 0x70, 0x61, + 0x6e, 0x64, 0x61, 0x5c, 0x41, 0x70, 0x69, 0x5c, 0x43, 0x6f, 0x6e, 0x73, 0x6f, 0x6c, 0x65, 0x5c, + 0x56, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, + 0x61, 0x74, 0x61, 0xea, 0x02, 0x1f, 0x52, 0x65, 0x64, 0x70, 0x61, 0x6e, 0x64, 0x61, 0x3a, 0x3a, + 0x41, 0x70, 0x69, 0x3a, 0x3a, 0x43, 0x6f, 0x6e, 0x73, 0x6f, 0x6c, 0x65, 0x3a, 0x3a, 0x56, 0x31, + 0x61, 0x6c, 0x70, 0x68, 0x61, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, +} + +var file_redpanda_api_console_v1alpha_console_service_proto_goTypes = []interface{}{ + (*ListMessagesRequest)(nil), // 0: redpanda.api.console.v1alpha.ListMessagesRequest + (*PublishMessageRequest)(nil), // 1: redpanda.api.console.v1alpha.PublishMessageRequest + (*ListMessagesResponse)(nil), // 2: redpanda.api.console.v1alpha.ListMessagesResponse + (*PublishMessageResponse)(nil), // 3: redpanda.api.console.v1alpha.PublishMessageResponse +} +var file_redpanda_api_console_v1alpha_console_service_proto_depIdxs = []int32{ + 0, // 0: redpanda.api.console.v1alpha.ConsoleService.ListMessages:input_type -> redpanda.api.console.v1alpha.ListMessagesRequest + 1, // 1: redpanda.api.console.v1alpha.ConsoleService.PublishMessage:input_type -> redpanda.api.console.v1alpha.PublishMessageRequest + 2, // 2: redpanda.api.console.v1alpha.ConsoleService.ListMessages:output_type -> redpanda.api.console.v1alpha.ListMessagesResponse + 3, // 3: redpanda.api.console.v1alpha.ConsoleService.PublishMessage:output_type -> redpanda.api.console.v1alpha.PublishMessageResponse + 2, // [2:4] is the sub-list for method output_type + 0, // [0:2] is the sub-list for method input_type + 0, // [0:0] is the sub-list for extension type_name + 0, // [0:0] is the sub-list for extension extendee + 0, // [0:0] is the sub-list for field type_name +} + +func init() { file_redpanda_api_console_v1alpha_console_service_proto_init() } +func file_redpanda_api_console_v1alpha_console_service_proto_init() { + if File_redpanda_api_console_v1alpha_console_service_proto != nil { + return + } + file_redpanda_api_console_v1alpha_list_messages_proto_init() + file_redpanda_api_console_v1alpha_publish_message_proto_init() + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_redpanda_api_console_v1alpha_console_service_proto_rawDesc, + NumEnums: 0, + NumMessages: 0, + NumExtensions: 0, + NumServices: 1, + }, + GoTypes: file_redpanda_api_console_v1alpha_console_service_proto_goTypes, + DependencyIndexes: file_redpanda_api_console_v1alpha_console_service_proto_depIdxs, + }.Build() + File_redpanda_api_console_v1alpha_console_service_proto = out.File + file_redpanda_api_console_v1alpha_console_service_proto_rawDesc = nil + file_redpanda_api_console_v1alpha_console_service_proto_goTypes = nil + file_redpanda_api_console_v1alpha_console_service_proto_depIdxs = nil +} diff --git a/backend/pkg/protogen/redpanda/api/console/v1alpha/consolev1alphaconnect/list_messages.connect.go b/backend/pkg/protogen/redpanda/api/console/v1alpha/consolev1alphaconnect/console_service.connect.go similarity index 72% rename from backend/pkg/protogen/redpanda/api/console/v1alpha/consolev1alphaconnect/list_messages.connect.go rename to backend/pkg/protogen/redpanda/api/console/v1alpha/consolev1alphaconnect/console_service.connect.go index a80da5103..8e5fe5069 100644 --- a/backend/pkg/protogen/redpanda/api/console/v1alpha/consolev1alphaconnect/list_messages.connect.go +++ b/backend/pkg/protogen/redpanda/api/console/v1alpha/consolev1alphaconnect/console_service.connect.go @@ -1,6 +1,6 @@ // Code generated by protoc-gen-connect-go. DO NOT EDIT. // -// Source: redpanda/api/console/v1alpha/list_messages.proto +// Source: redpanda/api/console/v1alpha/console_service.proto package consolev1alphaconnect @@ -38,12 +38,17 @@ const ( // ConsoleServiceListMessagesProcedure is the fully-qualified name of the ConsoleService's // ListMessages RPC. ConsoleServiceListMessagesProcedure = "/redpanda.api.console.v1alpha.ConsoleService/ListMessages" + // ConsoleServicePublishMessageProcedure is the fully-qualified name of the ConsoleService's + // PublishMessage RPC. + ConsoleServicePublishMessageProcedure = "/redpanda.api.console.v1alpha.ConsoleService/PublishMessage" ) // ConsoleServiceClient is a client for the redpanda.api.console.v1alpha.ConsoleService service. type ConsoleServiceClient interface { // ListMessages lists the messages according to the requested query. ListMessages(context.Context, *connect.Request[v1alpha.ListMessagesRequest]) (*connect.ServerStreamForClient[v1alpha.ListMessagesResponse], error) + // PublishMessage publishes message. + PublishMessage(context.Context, *connect.Request[v1alpha.PublishMessageRequest]) (*connect.Response[v1alpha.PublishMessageResponse], error) } // NewConsoleServiceClient constructs a client for the redpanda.api.console.v1alpha.ConsoleService @@ -61,12 +66,18 @@ func NewConsoleServiceClient(httpClient connect.HTTPClient, baseURL string, opts baseURL+ConsoleServiceListMessagesProcedure, opts..., ), + publishMessage: connect.NewClient[v1alpha.PublishMessageRequest, v1alpha.PublishMessageResponse]( + httpClient, + baseURL+ConsoleServicePublishMessageProcedure, + opts..., + ), } } // consoleServiceClient implements ConsoleServiceClient. type consoleServiceClient struct { - listMessages *connect.Client[v1alpha.ListMessagesRequest, v1alpha.ListMessagesResponse] + listMessages *connect.Client[v1alpha.ListMessagesRequest, v1alpha.ListMessagesResponse] + publishMessage *connect.Client[v1alpha.PublishMessageRequest, v1alpha.PublishMessageResponse] } // ListMessages calls redpanda.api.console.v1alpha.ConsoleService.ListMessages. @@ -74,11 +85,18 @@ func (c *consoleServiceClient) ListMessages(ctx context.Context, req *connect.Re return c.listMessages.CallServerStream(ctx, req) } +// PublishMessage calls redpanda.api.console.v1alpha.ConsoleService.PublishMessage. +func (c *consoleServiceClient) PublishMessage(ctx context.Context, req *connect.Request[v1alpha.PublishMessageRequest]) (*connect.Response[v1alpha.PublishMessageResponse], error) { + return c.publishMessage.CallUnary(ctx, req) +} + // ConsoleServiceHandler is an implementation of the redpanda.api.console.v1alpha.ConsoleService // service. type ConsoleServiceHandler interface { // ListMessages lists the messages according to the requested query. ListMessages(context.Context, *connect.Request[v1alpha.ListMessagesRequest], *connect.ServerStream[v1alpha.ListMessagesResponse]) error + // PublishMessage publishes message. + PublishMessage(context.Context, *connect.Request[v1alpha.PublishMessageRequest]) (*connect.Response[v1alpha.PublishMessageResponse], error) } // NewConsoleServiceHandler builds an HTTP handler from the service implementation. It returns the @@ -92,10 +110,17 @@ func NewConsoleServiceHandler(svc ConsoleServiceHandler, opts ...connect.Handler svc.ListMessages, opts..., ) + consoleServicePublishMessageHandler := connect.NewUnaryHandler( + ConsoleServicePublishMessageProcedure, + svc.PublishMessage, + opts..., + ) return "/redpanda.api.console.v1alpha.ConsoleService/", http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { switch r.URL.Path { case ConsoleServiceListMessagesProcedure: consoleServiceListMessagesHandler.ServeHTTP(w, r) + case ConsoleServicePublishMessageProcedure: + consoleServicePublishMessageHandler.ServeHTTP(w, r) default: http.NotFound(w, r) } @@ -108,3 +133,7 @@ type UnimplementedConsoleServiceHandler struct{} func (UnimplementedConsoleServiceHandler) ListMessages(context.Context, *connect.Request[v1alpha.ListMessagesRequest], *connect.ServerStream[v1alpha.ListMessagesResponse]) error { return connect.NewError(connect.CodeUnimplemented, errors.New("redpanda.api.console.v1alpha.ConsoleService.ListMessages is not implemented")) } + +func (UnimplementedConsoleServiceHandler) PublishMessage(context.Context, *connect.Request[v1alpha.PublishMessageRequest]) (*connect.Response[v1alpha.PublishMessageResponse], error) { + return nil, connect.NewError(connect.CodeUnimplemented, errors.New("redpanda.api.console.v1alpha.ConsoleService.PublishMessage is not implemented")) +} diff --git a/backend/pkg/protogen/redpanda/api/console/v1alpha/list_messages.pb.go b/backend/pkg/protogen/redpanda/api/console/v1alpha/list_messages.pb.go index a188248f7..084c40b77 100644 --- a/backend/pkg/protogen/redpanda/api/console/v1alpha/list_messages.pb.go +++ b/backend/pkg/protogen/redpanda/api/console/v1alpha/list_messages.pb.go @@ -22,140 +22,6 @@ const ( _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) ) -type CompressionType int32 - -const ( - CompressionType_COMPRESSION_TYPE_UNSPECIFIED CompressionType = 0 - CompressionType_COMPRESSION_TYPE_UNCOMPRESSED CompressionType = 1 - CompressionType_COMPRESSION_TYPE_GZIP CompressionType = 2 - CompressionType_COMPRESSION_TYPE_SNAPPY CompressionType = 3 - CompressionType_COMPRESSION_TYPE_LZ4 CompressionType = 4 - CompressionType_COMPRESSION_TYPE_ZSTD CompressionType = 5 -) - -// Enum value maps for CompressionType. -var ( - CompressionType_name = map[int32]string{ - 0: "COMPRESSION_TYPE_UNSPECIFIED", - 1: "COMPRESSION_TYPE_UNCOMPRESSED", - 2: "COMPRESSION_TYPE_GZIP", - 3: "COMPRESSION_TYPE_SNAPPY", - 4: "COMPRESSION_TYPE_LZ4", - 5: "COMPRESSION_TYPE_ZSTD", - } - CompressionType_value = map[string]int32{ - "COMPRESSION_TYPE_UNSPECIFIED": 0, - "COMPRESSION_TYPE_UNCOMPRESSED": 1, - "COMPRESSION_TYPE_GZIP": 2, - "COMPRESSION_TYPE_SNAPPY": 3, - "COMPRESSION_TYPE_LZ4": 4, - "COMPRESSION_TYPE_ZSTD": 5, - } -) - -func (x CompressionType) Enum() *CompressionType { - p := new(CompressionType) - *p = x - return p -} - -func (x CompressionType) String() string { - return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) -} - -func (CompressionType) Descriptor() protoreflect.EnumDescriptor { - return file_redpanda_api_console_v1alpha_list_messages_proto_enumTypes[0].Descriptor() -} - -func (CompressionType) Type() protoreflect.EnumType { - return &file_redpanda_api_console_v1alpha_list_messages_proto_enumTypes[0] -} - -func (x CompressionType) Number() protoreflect.EnumNumber { - return protoreflect.EnumNumber(x) -} - -// Deprecated: Use CompressionType.Descriptor instead. -func (CompressionType) EnumDescriptor() ([]byte, []int) { - return file_redpanda_api_console_v1alpha_list_messages_proto_rawDescGZIP(), []int{0} -} - -type PayloadEncoding int32 - -const ( - PayloadEncoding_PAYLOAD_ENCODING_UNSPECIFIED PayloadEncoding = 0 - PayloadEncoding_PAYLOAD_ENCODING_NONE PayloadEncoding = 1 - PayloadEncoding_PAYLOAD_ENCODING_AVRO PayloadEncoding = 2 - PayloadEncoding_PAYLOAD_ENCODING_PROTOBUF PayloadEncoding = 3 - PayloadEncoding_PAYLOAD_ENCODING_JSON PayloadEncoding = 4 - PayloadEncoding_PAYLOAD_ENCODING_XML PayloadEncoding = 5 - PayloadEncoding_PAYLOAD_ENCODING_TEXT PayloadEncoding = 6 - PayloadEncoding_PAYLOAD_ENCODING_UTF8 PayloadEncoding = 7 - PayloadEncoding_PAYLOAD_ENCODING_MESSAGE_PACK PayloadEncoding = 8 - PayloadEncoding_PAYLOAD_ENCODING_SMILE PayloadEncoding = 9 - PayloadEncoding_PAYLOAD_ENCODING_BINARY PayloadEncoding = 10 - PayloadEncoding_PAYLOAD_ENCODING_CONSUMER_OFFSETS PayloadEncoding = 11 -) - -// Enum value maps for PayloadEncoding. -var ( - PayloadEncoding_name = map[int32]string{ - 0: "PAYLOAD_ENCODING_UNSPECIFIED", - 1: "PAYLOAD_ENCODING_NONE", - 2: "PAYLOAD_ENCODING_AVRO", - 3: "PAYLOAD_ENCODING_PROTOBUF", - 4: "PAYLOAD_ENCODING_JSON", - 5: "PAYLOAD_ENCODING_XML", - 6: "PAYLOAD_ENCODING_TEXT", - 7: "PAYLOAD_ENCODING_UTF8", - 8: "PAYLOAD_ENCODING_MESSAGE_PACK", - 9: "PAYLOAD_ENCODING_SMILE", - 10: "PAYLOAD_ENCODING_BINARY", - 11: "PAYLOAD_ENCODING_CONSUMER_OFFSETS", - } - PayloadEncoding_value = map[string]int32{ - "PAYLOAD_ENCODING_UNSPECIFIED": 0, - "PAYLOAD_ENCODING_NONE": 1, - "PAYLOAD_ENCODING_AVRO": 2, - "PAYLOAD_ENCODING_PROTOBUF": 3, - "PAYLOAD_ENCODING_JSON": 4, - "PAYLOAD_ENCODING_XML": 5, - "PAYLOAD_ENCODING_TEXT": 6, - "PAYLOAD_ENCODING_UTF8": 7, - "PAYLOAD_ENCODING_MESSAGE_PACK": 8, - "PAYLOAD_ENCODING_SMILE": 9, - "PAYLOAD_ENCODING_BINARY": 10, - "PAYLOAD_ENCODING_CONSUMER_OFFSETS": 11, - } -) - -func (x PayloadEncoding) Enum() *PayloadEncoding { - p := new(PayloadEncoding) - *p = x - return p -} - -func (x PayloadEncoding) String() string { - return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) -} - -func (PayloadEncoding) Descriptor() protoreflect.EnumDescriptor { - return file_redpanda_api_console_v1alpha_list_messages_proto_enumTypes[1].Descriptor() -} - -func (PayloadEncoding) Type() protoreflect.EnumType { - return &file_redpanda_api_console_v1alpha_list_messages_proto_enumTypes[1] -} - -func (x PayloadEncoding) Number() protoreflect.EnumNumber { - return protoreflect.EnumNumber(x) -} - -// Deprecated: Use PayloadEncoding.Descriptor instead. -func (PayloadEncoding) EnumDescriptor() ([]byte, []int) { - return file_redpanda_api_console_v1alpha_list_messages_proto_rawDescGZIP(), []int{1} -} - // ListMessagesRequest is the request for ListMessages call. type ListMessagesRequest struct { state protoimpl.MessageState @@ -537,62 +403,6 @@ func (x *TroubleshootReport) GetMessage() string { return "" } -// KafkaRecordHeader is the record header. -type KafkaRecordHeader struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` // Header key. - Value []byte `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"` // Header value. -} - -func (x *KafkaRecordHeader) Reset() { - *x = KafkaRecordHeader{} - if protoimpl.UnsafeEnabled { - mi := &file_redpanda_api_console_v1alpha_list_messages_proto_msgTypes[4] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *KafkaRecordHeader) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*KafkaRecordHeader) ProtoMessage() {} - -func (x *KafkaRecordHeader) ProtoReflect() protoreflect.Message { - mi := &file_redpanda_api_console_v1alpha_list_messages_proto_msgTypes[4] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use KafkaRecordHeader.ProtoReflect.Descriptor instead. -func (*KafkaRecordHeader) Descriptor() ([]byte, []int) { - return file_redpanda_api_console_v1alpha_list_messages_proto_rawDescGZIP(), []int{4} -} - -func (x *KafkaRecordHeader) GetKey() string { - if x != nil { - return x.Key - } - return "" -} - -func (x *KafkaRecordHeader) GetValue() []byte { - if x != nil { - return x.Value - } - return nil -} - // Data control message. type ListMessagesResponse_DataMessage struct { state protoimpl.MessageState @@ -612,7 +422,7 @@ type ListMessagesResponse_DataMessage struct { func (x *ListMessagesResponse_DataMessage) Reset() { *x = ListMessagesResponse_DataMessage{} if protoimpl.UnsafeEnabled { - mi := &file_redpanda_api_console_v1alpha_list_messages_proto_msgTypes[5] + mi := &file_redpanda_api_console_v1alpha_list_messages_proto_msgTypes[4] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -625,7 +435,7 @@ func (x *ListMessagesResponse_DataMessage) String() string { func (*ListMessagesResponse_DataMessage) ProtoMessage() {} func (x *ListMessagesResponse_DataMessage) ProtoReflect() protoreflect.Message { - mi := &file_redpanda_api_console_v1alpha_list_messages_proto_msgTypes[5] + mi := &file_redpanda_api_console_v1alpha_list_messages_proto_msgTypes[4] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -709,7 +519,7 @@ type ListMessagesResponse_PhaseMessage struct { func (x *ListMessagesResponse_PhaseMessage) Reset() { *x = ListMessagesResponse_PhaseMessage{} if protoimpl.UnsafeEnabled { - mi := &file_redpanda_api_console_v1alpha_list_messages_proto_msgTypes[6] + mi := &file_redpanda_api_console_v1alpha_list_messages_proto_msgTypes[5] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -722,7 +532,7 @@ func (x *ListMessagesResponse_PhaseMessage) String() string { func (*ListMessagesResponse_PhaseMessage) ProtoMessage() {} func (x *ListMessagesResponse_PhaseMessage) ProtoReflect() protoreflect.Message { - mi := &file_redpanda_api_console_v1alpha_list_messages_proto_msgTypes[6] + mi := &file_redpanda_api_console_v1alpha_list_messages_proto_msgTypes[5] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -758,7 +568,7 @@ type ListMessagesResponse_ProgressMessage struct { func (x *ListMessagesResponse_ProgressMessage) Reset() { *x = ListMessagesResponse_ProgressMessage{} if protoimpl.UnsafeEnabled { - mi := &file_redpanda_api_console_v1alpha_list_messages_proto_msgTypes[7] + mi := &file_redpanda_api_console_v1alpha_list_messages_proto_msgTypes[6] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -771,7 +581,7 @@ func (x *ListMessagesResponse_ProgressMessage) String() string { func (*ListMessagesResponse_ProgressMessage) ProtoMessage() {} func (x *ListMessagesResponse_ProgressMessage) ProtoReflect() protoreflect.Message { - mi := &file_redpanda_api_console_v1alpha_list_messages_proto_msgTypes[7] + mi := &file_redpanda_api_console_v1alpha_list_messages_proto_msgTypes[6] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -816,7 +626,7 @@ type ListMessagesResponse_StreamCompletedMessage struct { func (x *ListMessagesResponse_StreamCompletedMessage) Reset() { *x = ListMessagesResponse_StreamCompletedMessage{} if protoimpl.UnsafeEnabled { - mi := &file_redpanda_api_console_v1alpha_list_messages_proto_msgTypes[8] + mi := &file_redpanda_api_console_v1alpha_list_messages_proto_msgTypes[7] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -829,7 +639,7 @@ func (x *ListMessagesResponse_StreamCompletedMessage) String() string { func (*ListMessagesResponse_StreamCompletedMessage) ProtoMessage() {} func (x *ListMessagesResponse_StreamCompletedMessage) ProtoReflect() protoreflect.Message { - mi := &file_redpanda_api_console_v1alpha_list_messages_proto_msgTypes[8] + mi := &file_redpanda_api_console_v1alpha_list_messages_proto_msgTypes[7] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -885,7 +695,7 @@ type ListMessagesResponse_ErrorMessage struct { func (x *ListMessagesResponse_ErrorMessage) Reset() { *x = ListMessagesResponse_ErrorMessage{} if protoimpl.UnsafeEnabled { - mi := &file_redpanda_api_console_v1alpha_list_messages_proto_msgTypes[9] + mi := &file_redpanda_api_console_v1alpha_list_messages_proto_msgTypes[8] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -898,7 +708,7 @@ func (x *ListMessagesResponse_ErrorMessage) String() string { func (*ListMessagesResponse_ErrorMessage) ProtoMessage() {} func (x *ListMessagesResponse_ErrorMessage) ProtoReflect() protoreflect.Message { - mi := &file_redpanda_api_console_v1alpha_list_messages_proto_msgTypes[9] + mi := &file_redpanda_api_console_v1alpha_list_messages_proto_msgTypes[8] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -930,211 +740,165 @@ var file_redpanda_api_console_v1alpha_list_messages_proto_rawDesc = []byte{ 0x74, 0x6f, 0x12, 0x1c, 0x72, 0x65, 0x64, 0x70, 0x61, 0x6e, 0x64, 0x61, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x63, 0x6f, 0x6e, 0x73, 0x6f, 0x6c, 0x65, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x1a, 0x1b, 0x62, 0x75, 0x66, 0x2f, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x65, 0x2f, 0x76, - 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x9a, 0x03, - 0x0a, 0x13, 0x4c, 0x69, 0x73, 0x74, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x73, 0x52, 0x65, - 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x20, 0x0a, 0x05, 0x74, 0x6f, 0x70, 0x69, 0x63, 0x18, 0x01, - 0x20, 0x01, 0x28, 0x09, 0x42, 0x0a, 0xba, 0x48, 0x07, 0x72, 0x05, 0x10, 0x01, 0x18, 0x80, 0x01, - 0x52, 0x05, 0x74, 0x6f, 0x70, 0x69, 0x63, 0x12, 0x2e, 0x0a, 0x0c, 0x73, 0x74, 0x61, 0x72, 0x74, - 0x5f, 0x6f, 0x66, 0x66, 0x73, 0x65, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x12, 0x42, 0x0b, 0xba, - 0x48, 0x08, 0x3a, 0x06, 0x32, 0x04, 0x01, 0x03, 0x05, 0x07, 0x52, 0x0b, 0x73, 0x74, 0x61, 0x72, - 0x74, 0x4f, 0x66, 0x66, 0x73, 0x65, 0x74, 0x12, 0x27, 0x0a, 0x0f, 0x73, 0x74, 0x61, 0x72, 0x74, - 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, - 0x52, 0x0e, 0x73, 0x74, 0x61, 0x72, 0x74, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, - 0x12, 0x2a, 0x0a, 0x0c, 0x70, 0x61, 0x72, 0x74, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x64, - 0x18, 0x04, 0x20, 0x01, 0x28, 0x05, 0x42, 0x07, 0xba, 0x48, 0x04, 0x3a, 0x02, 0x28, 0x01, 0x52, - 0x0b, 0x70, 0x61, 0x72, 0x74, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x12, 0x1f, 0x0a, 0x0b, - 0x6d, 0x61, 0x78, 0x5f, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x73, 0x18, 0x05, 0x20, 0x01, 0x28, - 0x05, 0x52, 0x0a, 0x6d, 0x61, 0x78, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x73, 0x12, 0x36, 0x0a, - 0x17, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x5f, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x70, 0x72, 0x65, - 0x74, 0x65, 0x72, 0x5f, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x15, - 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x49, 0x6e, 0x74, 0x65, 0x72, 0x70, 0x72, 0x65, 0x74, 0x65, - 0x72, 0x43, 0x6f, 0x64, 0x65, 0x12, 0x1e, 0x0a, 0x0a, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x70, 0x72, - 0x69, 0x73, 0x65, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0a, 0x65, 0x6e, 0x74, 0x65, 0x72, - 0x70, 0x72, 0x69, 0x73, 0x65, 0x12, 0x22, 0x0a, 0x0c, 0x74, 0x72, 0x6f, 0x75, 0x62, 0x6c, 0x65, - 0x73, 0x68, 0x6f, 0x6f, 0x74, 0x18, 0x08, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0c, 0x74, 0x72, 0x6f, - 0x75, 0x62, 0x6c, 0x65, 0x73, 0x68, 0x6f, 0x6f, 0x74, 0x12, 0x3f, 0x0a, 0x1c, 0x69, 0x6e, 0x63, - 0x6c, 0x75, 0x64, 0x65, 0x5f, 0x6f, 0x72, 0x69, 0x67, 0x69, 0x6e, 0x61, 0x6c, 0x5f, 0x72, 0x61, - 0x77, 0x5f, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x18, 0x09, 0x20, 0x01, 0x28, 0x08, 0x52, - 0x19, 0x69, 0x6e, 0x63, 0x6c, 0x75, 0x64, 0x65, 0x4f, 0x72, 0x69, 0x67, 0x69, 0x6e, 0x61, 0x6c, - 0x52, 0x61, 0x77, 0x50, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x22, 0x98, 0x0a, 0x0a, 0x14, 0x4c, - 0x69, 0x73, 0x74, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, - 0x6e, 0x73, 0x65, 0x12, 0x54, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, 0x18, 0x01, 0x20, 0x01, 0x28, - 0x0b, 0x32, 0x3e, 0x2e, 0x72, 0x65, 0x64, 0x70, 0x61, 0x6e, 0x64, 0x61, 0x2e, 0x61, 0x70, 0x69, - 0x2e, 0x63, 0x6f, 0x6e, 0x73, 0x6f, 0x6c, 0x65, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, - 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x73, 0x52, 0x65, 0x73, - 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2e, 0x44, 0x61, 0x74, 0x61, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, - 0x65, 0x48, 0x00, 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, 0x12, 0x57, 0x0a, 0x05, 0x70, 0x68, 0x61, - 0x73, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x3f, 0x2e, 0x72, 0x65, 0x64, 0x70, 0x61, - 0x6e, 0x64, 0x61, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x63, 0x6f, 0x6e, 0x73, 0x6f, 0x6c, 0x65, 0x2e, - 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x4d, 0x65, 0x73, 0x73, - 0x61, 0x67, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2e, 0x50, 0x68, 0x61, - 0x73, 0x65, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x48, 0x00, 0x52, 0x05, 0x70, 0x68, 0x61, - 0x73, 0x65, 0x12, 0x60, 0x0a, 0x08, 0x70, 0x72, 0x6f, 0x67, 0x72, 0x65, 0x73, 0x73, 0x18, 0x03, - 0x20, 0x01, 0x28, 0x0b, 0x32, 0x42, 0x2e, 0x72, 0x65, 0x64, 0x70, 0x61, 0x6e, 0x64, 0x61, 0x2e, - 0x61, 0x70, 0x69, 0x2e, 0x63, 0x6f, 0x6e, 0x73, 0x6f, 0x6c, 0x65, 0x2e, 0x76, 0x31, 0x61, 0x6c, - 0x70, 0x68, 0x61, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x73, - 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2e, 0x50, 0x72, 0x6f, 0x67, 0x72, 0x65, 0x73, - 0x73, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x48, 0x00, 0x52, 0x08, 0x70, 0x72, 0x6f, 0x67, - 0x72, 0x65, 0x73, 0x73, 0x12, 0x5f, 0x0a, 0x04, 0x64, 0x6f, 0x6e, 0x65, 0x18, 0x04, 0x20, 0x01, - 0x28, 0x0b, 0x32, 0x49, 0x2e, 0x72, 0x65, 0x64, 0x70, 0x61, 0x6e, 0x64, 0x61, 0x2e, 0x61, 0x70, - 0x69, 0x2e, 0x63, 0x6f, 0x6e, 0x73, 0x6f, 0x6c, 0x65, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, - 0x61, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x73, 0x52, 0x65, - 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2e, 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x43, 0x6f, 0x6d, - 0x70, 0x6c, 0x65, 0x74, 0x65, 0x64, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x48, 0x00, 0x52, - 0x04, 0x64, 0x6f, 0x6e, 0x65, 0x12, 0x57, 0x0a, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x18, 0x05, - 0x20, 0x01, 0x28, 0x0b, 0x32, 0x3f, 0x2e, 0x72, 0x65, 0x64, 0x70, 0x61, 0x6e, 0x64, 0x61, 0x2e, - 0x61, 0x70, 0x69, 0x2e, 0x63, 0x6f, 0x6e, 0x73, 0x6f, 0x6c, 0x65, 0x2e, 0x76, 0x31, 0x61, 0x6c, - 0x70, 0x68, 0x61, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x73, - 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2e, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x4d, 0x65, - 0x73, 0x73, 0x61, 0x67, 0x65, 0x48, 0x00, 0x52, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x1a, 0xb9, - 0x03, 0x0a, 0x0b, 0x44, 0x61, 0x74, 0x61, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x21, - 0x0a, 0x0c, 0x70, 0x61, 0x72, 0x74, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x01, - 0x20, 0x01, 0x28, 0x05, 0x52, 0x0b, 0x70, 0x61, 0x72, 0x74, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x49, - 0x64, 0x12, 0x16, 0x0a, 0x06, 0x6f, 0x66, 0x66, 0x73, 0x65, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, - 0x03, 0x52, 0x06, 0x6f, 0x66, 0x66, 0x73, 0x65, 0x74, 0x12, 0x1c, 0x0a, 0x09, 0x74, 0x69, 0x6d, - 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x09, 0x74, 0x69, - 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x12, 0x4f, 0x0a, 0x0b, 0x63, 0x6f, 0x6d, 0x70, 0x72, - 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x2d, 0x2e, 0x72, + 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x29, 0x72, + 0x65, 0x64, 0x70, 0x61, 0x6e, 0x64, 0x61, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x63, 0x6f, 0x6e, 0x73, + 0x6f, 0x6c, 0x65, 0x2f, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2f, 0x63, 0x6f, 0x6d, 0x6d, + 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x9a, 0x03, 0x0a, 0x13, 0x4c, 0x69, 0x73, + 0x74, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 0x12, 0x20, 0x0a, 0x05, 0x74, 0x6f, 0x70, 0x69, 0x63, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, + 0x0a, 0xba, 0x48, 0x07, 0x72, 0x05, 0x10, 0x01, 0x18, 0x80, 0x01, 0x52, 0x05, 0x74, 0x6f, 0x70, + 0x69, 0x63, 0x12, 0x2e, 0x0a, 0x0c, 0x73, 0x74, 0x61, 0x72, 0x74, 0x5f, 0x6f, 0x66, 0x66, 0x73, + 0x65, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x12, 0x42, 0x0b, 0xba, 0x48, 0x08, 0x3a, 0x06, 0x32, + 0x04, 0x01, 0x03, 0x05, 0x07, 0x52, 0x0b, 0x73, 0x74, 0x61, 0x72, 0x74, 0x4f, 0x66, 0x66, 0x73, + 0x65, 0x74, 0x12, 0x27, 0x0a, 0x0f, 0x73, 0x74, 0x61, 0x72, 0x74, 0x5f, 0x74, 0x69, 0x6d, 0x65, + 0x73, 0x74, 0x61, 0x6d, 0x70, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0e, 0x73, 0x74, 0x61, + 0x72, 0x74, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x12, 0x2a, 0x0a, 0x0c, 0x70, + 0x61, 0x72, 0x74, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, + 0x05, 0x42, 0x07, 0xba, 0x48, 0x04, 0x3a, 0x02, 0x28, 0x01, 0x52, 0x0b, 0x70, 0x61, 0x72, 0x74, + 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x12, 0x1f, 0x0a, 0x0b, 0x6d, 0x61, 0x78, 0x5f, 0x72, + 0x65, 0x73, 0x75, 0x6c, 0x74, 0x73, 0x18, 0x05, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0a, 0x6d, 0x61, + 0x78, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x73, 0x12, 0x36, 0x0a, 0x17, 0x66, 0x69, 0x6c, 0x74, + 0x65, 0x72, 0x5f, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x70, 0x72, 0x65, 0x74, 0x65, 0x72, 0x5f, 0x63, + 0x6f, 0x64, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x15, 0x66, 0x69, 0x6c, 0x74, 0x65, + 0x72, 0x49, 0x6e, 0x74, 0x65, 0x72, 0x70, 0x72, 0x65, 0x74, 0x65, 0x72, 0x43, 0x6f, 0x64, 0x65, + 0x12, 0x1e, 0x0a, 0x0a, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x70, 0x72, 0x69, 0x73, 0x65, 0x18, 0x07, + 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0a, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x70, 0x72, 0x69, 0x73, 0x65, + 0x12, 0x22, 0x0a, 0x0c, 0x74, 0x72, 0x6f, 0x75, 0x62, 0x6c, 0x65, 0x73, 0x68, 0x6f, 0x6f, 0x74, + 0x18, 0x08, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0c, 0x74, 0x72, 0x6f, 0x75, 0x62, 0x6c, 0x65, 0x73, + 0x68, 0x6f, 0x6f, 0x74, 0x12, 0x3f, 0x0a, 0x1c, 0x69, 0x6e, 0x63, 0x6c, 0x75, 0x64, 0x65, 0x5f, + 0x6f, 0x72, 0x69, 0x67, 0x69, 0x6e, 0x61, 0x6c, 0x5f, 0x72, 0x61, 0x77, 0x5f, 0x70, 0x61, 0x79, + 0x6c, 0x6f, 0x61, 0x64, 0x18, 0x09, 0x20, 0x01, 0x28, 0x08, 0x52, 0x19, 0x69, 0x6e, 0x63, 0x6c, + 0x75, 0x64, 0x65, 0x4f, 0x72, 0x69, 0x67, 0x69, 0x6e, 0x61, 0x6c, 0x52, 0x61, 0x77, 0x50, 0x61, + 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x22, 0x98, 0x0a, 0x0a, 0x14, 0x4c, 0x69, 0x73, 0x74, 0x4d, 0x65, + 0x73, 0x73, 0x61, 0x67, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x54, + 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x3e, 0x2e, 0x72, 0x65, 0x64, 0x70, 0x61, 0x6e, 0x64, 0x61, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x63, 0x6f, 0x6e, 0x73, - 0x6f, 0x6c, 0x65, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x43, 0x6f, 0x6d, 0x70, - 0x72, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x54, 0x79, 0x70, 0x65, 0x52, 0x0b, 0x63, 0x6f, 0x6d, - 0x70, 0x72, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x29, 0x0a, 0x10, 0x69, 0x73, 0x5f, 0x74, - 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x18, 0x05, 0x20, 0x01, - 0x28, 0x08, 0x52, 0x0f, 0x69, 0x73, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, - 0x6e, 0x61, 0x6c, 0x12, 0x49, 0x0a, 0x07, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x73, 0x18, 0x06, - 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2f, 0x2e, 0x72, 0x65, 0x64, 0x70, 0x61, 0x6e, 0x64, 0x61, 0x2e, - 0x61, 0x70, 0x69, 0x2e, 0x63, 0x6f, 0x6e, 0x73, 0x6f, 0x6c, 0x65, 0x2e, 0x76, 0x31, 0x61, 0x6c, - 0x70, 0x68, 0x61, 0x2e, 0x4b, 0x61, 0x66, 0x6b, 0x61, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x48, - 0x65, 0x61, 0x64, 0x65, 0x72, 0x52, 0x07, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x73, 0x12, 0x42, - 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x30, 0x2e, 0x72, 0x65, - 0x64, 0x70, 0x61, 0x6e, 0x64, 0x61, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x63, 0x6f, 0x6e, 0x73, 0x6f, - 0x6c, 0x65, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x4b, 0x61, 0x66, 0x6b, 0x61, - 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x50, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x52, 0x03, 0x6b, - 0x65, 0x79, 0x12, 0x46, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x08, 0x20, 0x01, 0x28, - 0x0b, 0x32, 0x30, 0x2e, 0x72, 0x65, 0x64, 0x70, 0x61, 0x6e, 0x64, 0x61, 0x2e, 0x61, 0x70, 0x69, - 0x2e, 0x63, 0x6f, 0x6e, 0x73, 0x6f, 0x6c, 0x65, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, - 0x2e, 0x4b, 0x61, 0x66, 0x6b, 0x61, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x50, 0x61, 0x79, 0x6c, - 0x6f, 0x61, 0x64, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x1a, 0x24, 0x0a, 0x0c, 0x50, 0x68, - 0x61, 0x73, 0x65, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x70, 0x68, - 0x61, 0x73, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x70, 0x68, 0x61, 0x73, 0x65, - 0x1a, 0x65, 0x0a, 0x0f, 0x50, 0x72, 0x6f, 0x67, 0x72, 0x65, 0x73, 0x73, 0x4d, 0x65, 0x73, 0x73, - 0x61, 0x67, 0x65, 0x12, 0x2b, 0x0a, 0x11, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x73, 0x5f, - 0x63, 0x6f, 0x6e, 0x73, 0x75, 0x6d, 0x65, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x10, - 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x73, 0x43, 0x6f, 0x6e, 0x73, 0x75, 0x6d, 0x65, 0x64, - 0x12, 0x25, 0x0a, 0x0e, 0x62, 0x79, 0x74, 0x65, 0x73, 0x5f, 0x63, 0x6f, 0x6e, 0x73, 0x75, 0x6d, - 0x65, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0d, 0x62, 0x79, 0x74, 0x65, 0x73, 0x43, - 0x6f, 0x6e, 0x73, 0x75, 0x6d, 0x65, 0x64, 0x1a, 0xae, 0x01, 0x0a, 0x16, 0x53, 0x74, 0x72, 0x65, - 0x61, 0x6d, 0x43, 0x6f, 0x6d, 0x70, 0x6c, 0x65, 0x74, 0x65, 0x64, 0x4d, 0x65, 0x73, 0x73, 0x61, - 0x67, 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x65, 0x6c, 0x61, 0x70, 0x73, 0x65, 0x64, 0x5f, 0x6d, 0x73, - 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x09, 0x65, 0x6c, 0x61, 0x70, 0x73, 0x65, 0x64, 0x4d, - 0x73, 0x12, 0x21, 0x0a, 0x0c, 0x69, 0x73, 0x5f, 0x63, 0x61, 0x6e, 0x63, 0x65, 0x6c, 0x6c, 0x65, - 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0b, 0x69, 0x73, 0x43, 0x61, 0x6e, 0x63, 0x65, - 0x6c, 0x6c, 0x65, 0x64, 0x12, 0x2b, 0x0a, 0x11, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x73, - 0x5f, 0x63, 0x6f, 0x6e, 0x73, 0x75, 0x6d, 0x65, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, - 0x10, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x73, 0x43, 0x6f, 0x6e, 0x73, 0x75, 0x6d, 0x65, - 0x64, 0x12, 0x25, 0x0a, 0x0e, 0x62, 0x79, 0x74, 0x65, 0x73, 0x5f, 0x63, 0x6f, 0x6e, 0x73, 0x75, - 0x6d, 0x65, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0d, 0x62, 0x79, 0x74, 0x65, 0x73, - 0x43, 0x6f, 0x6e, 0x73, 0x75, 0x6d, 0x65, 0x64, 0x1a, 0x28, 0x0a, 0x0c, 0x45, 0x72, 0x72, 0x6f, - 0x72, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x6d, 0x65, 0x73, 0x73, - 0x61, 0x67, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, - 0x67, 0x65, 0x42, 0x11, 0x0a, 0x0f, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x5f, 0x6d, 0x65, - 0x73, 0x73, 0x61, 0x67, 0x65, 0x22, 0xf0, 0x02, 0x0a, 0x12, 0x4b, 0x61, 0x66, 0x6b, 0x61, 0x52, - 0x65, 0x63, 0x6f, 0x72, 0x64, 0x50, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x12, 0x29, 0x0a, 0x10, - 0x6f, 0x72, 0x69, 0x67, 0x69, 0x6e, 0x61, 0x6c, 0x5f, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, - 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0f, 0x6f, 0x72, 0x69, 0x67, 0x69, 0x6e, 0x61, 0x6c, - 0x50, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x12, 0x21, 0x0a, 0x0c, 0x70, 0x61, 0x79, 0x6c, 0x6f, - 0x61, 0x64, 0x5f, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0b, 0x70, - 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x53, 0x69, 0x7a, 0x65, 0x12, 0x49, 0x0a, 0x08, 0x65, 0x6e, - 0x63, 0x6f, 0x64, 0x69, 0x6e, 0x67, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x2d, 0x2e, 0x72, - 0x65, 0x64, 0x70, 0x61, 0x6e, 0x64, 0x61, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x63, 0x6f, 0x6e, 0x73, - 0x6f, 0x6c, 0x65, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x50, 0x61, 0x79, 0x6c, - 0x6f, 0x61, 0x64, 0x45, 0x6e, 0x63, 0x6f, 0x64, 0x69, 0x6e, 0x67, 0x52, 0x08, 0x65, 0x6e, 0x63, - 0x6f, 0x64, 0x69, 0x6e, 0x67, 0x12, 0x2d, 0x0a, 0x12, 0x6e, 0x6f, 0x72, 0x6d, 0x61, 0x6c, 0x69, - 0x7a, 0x65, 0x64, 0x5f, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, - 0x0c, 0x52, 0x11, 0x6e, 0x6f, 0x72, 0x6d, 0x61, 0x6c, 0x69, 0x7a, 0x65, 0x64, 0x50, 0x61, 0x79, - 0x6c, 0x6f, 0x61, 0x64, 0x12, 0x2f, 0x0a, 0x14, 0x69, 0x73, 0x5f, 0x70, 0x61, 0x79, 0x6c, 0x6f, - 0x61, 0x64, 0x5f, 0x74, 0x6f, 0x6f, 0x5f, 0x6c, 0x61, 0x72, 0x67, 0x65, 0x18, 0x05, 0x20, 0x01, - 0x28, 0x08, 0x52, 0x11, 0x69, 0x73, 0x50, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x54, 0x6f, 0x6f, - 0x4c, 0x61, 0x72, 0x67, 0x65, 0x12, 0x61, 0x0a, 0x13, 0x74, 0x72, 0x6f, 0x75, 0x62, 0x6c, 0x65, - 0x73, 0x68, 0x6f, 0x6f, 0x74, 0x5f, 0x72, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x18, 0x06, 0x20, 0x03, - 0x28, 0x0b, 0x32, 0x30, 0x2e, 0x72, 0x65, 0x64, 0x70, 0x61, 0x6e, 0x64, 0x61, 0x2e, 0x61, 0x70, - 0x69, 0x2e, 0x63, 0x6f, 0x6e, 0x73, 0x6f, 0x6c, 0x65, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, - 0x61, 0x2e, 0x54, 0x72, 0x6f, 0x75, 0x62, 0x6c, 0x65, 0x73, 0x68, 0x6f, 0x6f, 0x74, 0x52, 0x65, - 0x70, 0x6f, 0x72, 0x74, 0x52, 0x12, 0x74, 0x72, 0x6f, 0x75, 0x62, 0x6c, 0x65, 0x73, 0x68, 0x6f, - 0x6f, 0x74, 0x52, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x22, 0x4d, 0x0a, 0x12, 0x54, 0x72, 0x6f, 0x75, - 0x62, 0x6c, 0x65, 0x73, 0x68, 0x6f, 0x6f, 0x74, 0x52, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x12, 0x1d, - 0x0a, 0x0a, 0x73, 0x65, 0x72, 0x64, 0x65, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x09, 0x73, 0x65, 0x72, 0x64, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x18, 0x0a, - 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, - 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x22, 0x3b, 0x0a, 0x11, 0x4b, 0x61, 0x66, 0x6b, 0x61, - 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x12, 0x10, 0x0a, 0x03, - 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, - 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x05, 0x76, - 0x61, 0x6c, 0x75, 0x65, 0x2a, 0xc3, 0x01, 0x0a, 0x0f, 0x43, 0x6f, 0x6d, 0x70, 0x72, 0x65, 0x73, - 0x73, 0x69, 0x6f, 0x6e, 0x54, 0x79, 0x70, 0x65, 0x12, 0x20, 0x0a, 0x1c, 0x43, 0x4f, 0x4d, 0x50, - 0x52, 0x45, 0x53, 0x53, 0x49, 0x4f, 0x4e, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x55, 0x4e, 0x53, - 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x21, 0x0a, 0x1d, 0x43, 0x4f, - 0x4d, 0x50, 0x52, 0x45, 0x53, 0x53, 0x49, 0x4f, 0x4e, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x55, - 0x4e, 0x43, 0x4f, 0x4d, 0x50, 0x52, 0x45, 0x53, 0x53, 0x45, 0x44, 0x10, 0x01, 0x12, 0x19, 0x0a, - 0x15, 0x43, 0x4f, 0x4d, 0x50, 0x52, 0x45, 0x53, 0x53, 0x49, 0x4f, 0x4e, 0x5f, 0x54, 0x59, 0x50, - 0x45, 0x5f, 0x47, 0x5a, 0x49, 0x50, 0x10, 0x02, 0x12, 0x1b, 0x0a, 0x17, 0x43, 0x4f, 0x4d, 0x50, - 0x52, 0x45, 0x53, 0x53, 0x49, 0x4f, 0x4e, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x53, 0x4e, 0x41, - 0x50, 0x50, 0x59, 0x10, 0x03, 0x12, 0x18, 0x0a, 0x14, 0x43, 0x4f, 0x4d, 0x50, 0x52, 0x45, 0x53, - 0x53, 0x49, 0x4f, 0x4e, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x4c, 0x5a, 0x34, 0x10, 0x04, 0x12, - 0x19, 0x0a, 0x15, 0x43, 0x4f, 0x4d, 0x50, 0x52, 0x45, 0x53, 0x53, 0x49, 0x4f, 0x4e, 0x5f, 0x54, - 0x59, 0x50, 0x45, 0x5f, 0x5a, 0x53, 0x54, 0x44, 0x10, 0x05, 0x2a, 0xf6, 0x02, 0x0a, 0x0f, 0x50, - 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x45, 0x6e, 0x63, 0x6f, 0x64, 0x69, 0x6e, 0x67, 0x12, 0x20, - 0x0a, 0x1c, 0x50, 0x41, 0x59, 0x4c, 0x4f, 0x41, 0x44, 0x5f, 0x45, 0x4e, 0x43, 0x4f, 0x44, 0x49, - 0x4e, 0x47, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, - 0x12, 0x19, 0x0a, 0x15, 0x50, 0x41, 0x59, 0x4c, 0x4f, 0x41, 0x44, 0x5f, 0x45, 0x4e, 0x43, 0x4f, - 0x44, 0x49, 0x4e, 0x47, 0x5f, 0x4e, 0x4f, 0x4e, 0x45, 0x10, 0x01, 0x12, 0x19, 0x0a, 0x15, 0x50, - 0x41, 0x59, 0x4c, 0x4f, 0x41, 0x44, 0x5f, 0x45, 0x4e, 0x43, 0x4f, 0x44, 0x49, 0x4e, 0x47, 0x5f, - 0x41, 0x56, 0x52, 0x4f, 0x10, 0x02, 0x12, 0x1d, 0x0a, 0x19, 0x50, 0x41, 0x59, 0x4c, 0x4f, 0x41, - 0x44, 0x5f, 0x45, 0x4e, 0x43, 0x4f, 0x44, 0x49, 0x4e, 0x47, 0x5f, 0x50, 0x52, 0x4f, 0x54, 0x4f, - 0x42, 0x55, 0x46, 0x10, 0x03, 0x12, 0x19, 0x0a, 0x15, 0x50, 0x41, 0x59, 0x4c, 0x4f, 0x41, 0x44, - 0x5f, 0x45, 0x4e, 0x43, 0x4f, 0x44, 0x49, 0x4e, 0x47, 0x5f, 0x4a, 0x53, 0x4f, 0x4e, 0x10, 0x04, - 0x12, 0x18, 0x0a, 0x14, 0x50, 0x41, 0x59, 0x4c, 0x4f, 0x41, 0x44, 0x5f, 0x45, 0x4e, 0x43, 0x4f, - 0x44, 0x49, 0x4e, 0x47, 0x5f, 0x58, 0x4d, 0x4c, 0x10, 0x05, 0x12, 0x19, 0x0a, 0x15, 0x50, 0x41, - 0x59, 0x4c, 0x4f, 0x41, 0x44, 0x5f, 0x45, 0x4e, 0x43, 0x4f, 0x44, 0x49, 0x4e, 0x47, 0x5f, 0x54, - 0x45, 0x58, 0x54, 0x10, 0x06, 0x12, 0x19, 0x0a, 0x15, 0x50, 0x41, 0x59, 0x4c, 0x4f, 0x41, 0x44, - 0x5f, 0x45, 0x4e, 0x43, 0x4f, 0x44, 0x49, 0x4e, 0x47, 0x5f, 0x55, 0x54, 0x46, 0x38, 0x10, 0x07, - 0x12, 0x21, 0x0a, 0x1d, 0x50, 0x41, 0x59, 0x4c, 0x4f, 0x41, 0x44, 0x5f, 0x45, 0x4e, 0x43, 0x4f, - 0x44, 0x49, 0x4e, 0x47, 0x5f, 0x4d, 0x45, 0x53, 0x53, 0x41, 0x47, 0x45, 0x5f, 0x50, 0x41, 0x43, - 0x4b, 0x10, 0x08, 0x12, 0x1a, 0x0a, 0x16, 0x50, 0x41, 0x59, 0x4c, 0x4f, 0x41, 0x44, 0x5f, 0x45, - 0x4e, 0x43, 0x4f, 0x44, 0x49, 0x4e, 0x47, 0x5f, 0x53, 0x4d, 0x49, 0x4c, 0x45, 0x10, 0x09, 0x12, - 0x1b, 0x0a, 0x17, 0x50, 0x41, 0x59, 0x4c, 0x4f, 0x41, 0x44, 0x5f, 0x45, 0x4e, 0x43, 0x4f, 0x44, - 0x49, 0x4e, 0x47, 0x5f, 0x42, 0x49, 0x4e, 0x41, 0x52, 0x59, 0x10, 0x0a, 0x12, 0x25, 0x0a, 0x21, - 0x50, 0x41, 0x59, 0x4c, 0x4f, 0x41, 0x44, 0x5f, 0x45, 0x4e, 0x43, 0x4f, 0x44, 0x49, 0x4e, 0x47, - 0x5f, 0x43, 0x4f, 0x4e, 0x53, 0x55, 0x4d, 0x45, 0x52, 0x5f, 0x4f, 0x46, 0x46, 0x53, 0x45, 0x54, - 0x53, 0x10, 0x0b, 0x32, 0x8b, 0x01, 0x0a, 0x0e, 0x43, 0x6f, 0x6e, 0x73, 0x6f, 0x6c, 0x65, 0x53, - 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x79, 0x0a, 0x0c, 0x4c, 0x69, 0x73, 0x74, 0x4d, 0x65, - 0x73, 0x73, 0x61, 0x67, 0x65, 0x73, 0x12, 0x31, 0x2e, 0x72, 0x65, 0x64, 0x70, 0x61, 0x6e, 0x64, + 0x6f, 0x6c, 0x65, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x4c, 0x69, 0x73, 0x74, + 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, + 0x2e, 0x44, 0x61, 0x74, 0x61, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x48, 0x00, 0x52, 0x04, + 0x64, 0x61, 0x74, 0x61, 0x12, 0x57, 0x0a, 0x05, 0x70, 0x68, 0x61, 0x73, 0x65, 0x18, 0x02, 0x20, + 0x01, 0x28, 0x0b, 0x32, 0x3f, 0x2e, 0x72, 0x65, 0x64, 0x70, 0x61, 0x6e, 0x64, 0x61, 0x2e, 0x61, + 0x70, 0x69, 0x2e, 0x63, 0x6f, 0x6e, 0x73, 0x6f, 0x6c, 0x65, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, + 0x68, 0x61, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x73, 0x52, + 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2e, 0x50, 0x68, 0x61, 0x73, 0x65, 0x4d, 0x65, 0x73, + 0x73, 0x61, 0x67, 0x65, 0x48, 0x00, 0x52, 0x05, 0x70, 0x68, 0x61, 0x73, 0x65, 0x12, 0x60, 0x0a, + 0x08, 0x70, 0x72, 0x6f, 0x67, 0x72, 0x65, 0x73, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, + 0x42, 0x2e, 0x72, 0x65, 0x64, 0x70, 0x61, 0x6e, 0x64, 0x61, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x63, + 0x6f, 0x6e, 0x73, 0x6f, 0x6c, 0x65, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x4c, + 0x69, 0x73, 0x74, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, + 0x6e, 0x73, 0x65, 0x2e, 0x50, 0x72, 0x6f, 0x67, 0x72, 0x65, 0x73, 0x73, 0x4d, 0x65, 0x73, 0x73, + 0x61, 0x67, 0x65, 0x48, 0x00, 0x52, 0x08, 0x70, 0x72, 0x6f, 0x67, 0x72, 0x65, 0x73, 0x73, 0x12, + 0x5f, 0x0a, 0x04, 0x64, 0x6f, 0x6e, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x49, 0x2e, + 0x72, 0x65, 0x64, 0x70, 0x61, 0x6e, 0x64, 0x61, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x63, 0x6f, 0x6e, + 0x73, 0x6f, 0x6c, 0x65, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x4c, 0x69, 0x73, + 0x74, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x2e, 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x43, 0x6f, 0x6d, 0x70, 0x6c, 0x65, 0x74, 0x65, + 0x64, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x48, 0x00, 0x52, 0x04, 0x64, 0x6f, 0x6e, 0x65, + 0x12, 0x57, 0x0a, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, + 0x3f, 0x2e, 0x72, 0x65, 0x64, 0x70, 0x61, 0x6e, 0x64, 0x61, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x63, + 0x6f, 0x6e, 0x73, 0x6f, 0x6c, 0x65, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x4c, + 0x69, 0x73, 0x74, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, + 0x6e, 0x73, 0x65, 0x2e, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, + 0x48, 0x00, 0x52, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x1a, 0xb9, 0x03, 0x0a, 0x0b, 0x44, 0x61, + 0x74, 0x61, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x21, 0x0a, 0x0c, 0x70, 0x61, 0x72, + 0x74, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, + 0x0b, 0x70, 0x61, 0x72, 0x74, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x12, 0x16, 0x0a, 0x06, + 0x6f, 0x66, 0x66, 0x73, 0x65, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x06, 0x6f, 0x66, + 0x66, 0x73, 0x65, 0x74, 0x12, 0x1c, 0x0a, 0x09, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, + 0x70, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x09, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, + 0x6d, 0x70, 0x12, 0x4f, 0x0a, 0x0b, 0x63, 0x6f, 0x6d, 0x70, 0x72, 0x65, 0x73, 0x73, 0x69, 0x6f, + 0x6e, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x2d, 0x2e, 0x72, 0x65, 0x64, 0x70, 0x61, 0x6e, + 0x64, 0x61, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x63, 0x6f, 0x6e, 0x73, 0x6f, 0x6c, 0x65, 0x2e, 0x76, + 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x43, 0x6f, 0x6d, 0x70, 0x72, 0x65, 0x73, 0x73, 0x69, + 0x6f, 0x6e, 0x54, 0x79, 0x70, 0x65, 0x52, 0x0b, 0x63, 0x6f, 0x6d, 0x70, 0x72, 0x65, 0x73, 0x73, + 0x69, 0x6f, 0x6e, 0x12, 0x29, 0x0a, 0x10, 0x69, 0x73, 0x5f, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x61, + 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x18, 0x05, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0f, 0x69, + 0x73, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x12, 0x49, + 0x0a, 0x07, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x73, 0x18, 0x06, 0x20, 0x03, 0x28, 0x0b, 0x32, + 0x2f, 0x2e, 0x72, 0x65, 0x64, 0x70, 0x61, 0x6e, 0x64, 0x61, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x63, + 0x6f, 0x6e, 0x73, 0x6f, 0x6c, 0x65, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x4b, + 0x61, 0x66, 0x6b, 0x61, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, + 0x52, 0x07, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x73, 0x12, 0x42, 0x0a, 0x03, 0x6b, 0x65, 0x79, + 0x18, 0x07, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x30, 0x2e, 0x72, 0x65, 0x64, 0x70, 0x61, 0x6e, 0x64, 0x61, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x63, 0x6f, 0x6e, 0x73, 0x6f, 0x6c, 0x65, 0x2e, 0x76, 0x31, - 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, - 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x32, 0x2e, 0x72, 0x65, 0x64, 0x70, - 0x61, 0x6e, 0x64, 0x61, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x63, 0x6f, 0x6e, 0x73, 0x6f, 0x6c, 0x65, - 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x4d, 0x65, 0x73, - 0x73, 0x61, 0x67, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x30, - 0x01, 0x42, 0xab, 0x02, 0x0a, 0x20, 0x63, 0x6f, 0x6d, 0x2e, 0x72, 0x65, 0x64, 0x70, 0x61, 0x6e, + 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x4b, 0x61, 0x66, 0x6b, 0x61, 0x52, 0x65, 0x63, 0x6f, 0x72, + 0x64, 0x50, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x46, 0x0a, + 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x08, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x30, 0x2e, 0x72, + 0x65, 0x64, 0x70, 0x61, 0x6e, 0x64, 0x61, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x63, 0x6f, 0x6e, 0x73, + 0x6f, 0x6c, 0x65, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x4b, 0x61, 0x66, 0x6b, + 0x61, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x50, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x52, 0x05, + 0x76, 0x61, 0x6c, 0x75, 0x65, 0x1a, 0x24, 0x0a, 0x0c, 0x50, 0x68, 0x61, 0x73, 0x65, 0x4d, 0x65, + 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x70, 0x68, 0x61, 0x73, 0x65, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x70, 0x68, 0x61, 0x73, 0x65, 0x1a, 0x65, 0x0a, 0x0f, 0x50, + 0x72, 0x6f, 0x67, 0x72, 0x65, 0x73, 0x73, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x2b, + 0x0a, 0x11, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x73, 0x5f, 0x63, 0x6f, 0x6e, 0x73, 0x75, + 0x6d, 0x65, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x10, 0x6d, 0x65, 0x73, 0x73, 0x61, + 0x67, 0x65, 0x73, 0x43, 0x6f, 0x6e, 0x73, 0x75, 0x6d, 0x65, 0x64, 0x12, 0x25, 0x0a, 0x0e, 0x62, + 0x79, 0x74, 0x65, 0x73, 0x5f, 0x63, 0x6f, 0x6e, 0x73, 0x75, 0x6d, 0x65, 0x64, 0x18, 0x02, 0x20, + 0x01, 0x28, 0x03, 0x52, 0x0d, 0x62, 0x79, 0x74, 0x65, 0x73, 0x43, 0x6f, 0x6e, 0x73, 0x75, 0x6d, + 0x65, 0x64, 0x1a, 0xae, 0x01, 0x0a, 0x16, 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x43, 0x6f, 0x6d, + 0x70, 0x6c, 0x65, 0x74, 0x65, 0x64, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x1d, 0x0a, + 0x0a, 0x65, 0x6c, 0x61, 0x70, 0x73, 0x65, 0x64, 0x5f, 0x6d, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x03, 0x52, 0x09, 0x65, 0x6c, 0x61, 0x70, 0x73, 0x65, 0x64, 0x4d, 0x73, 0x12, 0x21, 0x0a, 0x0c, + 0x69, 0x73, 0x5f, 0x63, 0x61, 0x6e, 0x63, 0x65, 0x6c, 0x6c, 0x65, 0x64, 0x18, 0x02, 0x20, 0x01, + 0x28, 0x08, 0x52, 0x0b, 0x69, 0x73, 0x43, 0x61, 0x6e, 0x63, 0x65, 0x6c, 0x6c, 0x65, 0x64, 0x12, + 0x2b, 0x0a, 0x11, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x73, 0x5f, 0x63, 0x6f, 0x6e, 0x73, + 0x75, 0x6d, 0x65, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x10, 0x6d, 0x65, 0x73, 0x73, + 0x61, 0x67, 0x65, 0x73, 0x43, 0x6f, 0x6e, 0x73, 0x75, 0x6d, 0x65, 0x64, 0x12, 0x25, 0x0a, 0x0e, + 0x62, 0x79, 0x74, 0x65, 0x73, 0x5f, 0x63, 0x6f, 0x6e, 0x73, 0x75, 0x6d, 0x65, 0x64, 0x18, 0x04, + 0x20, 0x01, 0x28, 0x03, 0x52, 0x0d, 0x62, 0x79, 0x74, 0x65, 0x73, 0x43, 0x6f, 0x6e, 0x73, 0x75, + 0x6d, 0x65, 0x64, 0x1a, 0x28, 0x0a, 0x0c, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x4d, 0x65, 0x73, 0x73, + 0x61, 0x67, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x42, 0x11, 0x0a, + 0x0f, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x5f, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, + 0x22, 0xf0, 0x02, 0x0a, 0x12, 0x4b, 0x61, 0x66, 0x6b, 0x61, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, + 0x50, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x12, 0x29, 0x0a, 0x10, 0x6f, 0x72, 0x69, 0x67, 0x69, + 0x6e, 0x61, 0x6c, 0x5f, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x0c, 0x52, 0x0f, 0x6f, 0x72, 0x69, 0x67, 0x69, 0x6e, 0x61, 0x6c, 0x50, 0x61, 0x79, 0x6c, 0x6f, + 0x61, 0x64, 0x12, 0x21, 0x0a, 0x0c, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x5f, 0x73, 0x69, + 0x7a, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0b, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, + 0x64, 0x53, 0x69, 0x7a, 0x65, 0x12, 0x49, 0x0a, 0x08, 0x65, 0x6e, 0x63, 0x6f, 0x64, 0x69, 0x6e, + 0x67, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x2d, 0x2e, 0x72, 0x65, 0x64, 0x70, 0x61, 0x6e, 0x64, 0x61, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x63, 0x6f, 0x6e, 0x73, 0x6f, 0x6c, 0x65, 0x2e, 0x76, - 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x42, 0x11, 0x4c, 0x69, 0x73, 0x74, 0x4d, 0x65, 0x73, 0x73, - 0x61, 0x67, 0x65, 0x73, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x61, 0x67, 0x69, 0x74, - 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x72, 0x65, 0x64, 0x70, 0x61, 0x6e, 0x64, 0x61, - 0x2d, 0x64, 0x61, 0x74, 0x61, 0x2f, 0x63, 0x6f, 0x6e, 0x73, 0x6f, 0x6c, 0x65, 0x2f, 0x62, 0x61, - 0x63, 0x6b, 0x65, 0x6e, 0x64, 0x2f, 0x70, 0x6b, 0x67, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x67, - 0x65, 0x6e, 0x2f, 0x72, 0x65, 0x64, 0x70, 0x61, 0x6e, 0x64, 0x61, 0x2f, 0x61, 0x70, 0x69, 0x2f, - 0x63, 0x6f, 0x6e, 0x73, 0x6f, 0x6c, 0x65, 0x2f, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x3b, - 0x63, 0x6f, 0x6e, 0x73, 0x6f, 0x6c, 0x65, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0xa2, 0x02, - 0x03, 0x52, 0x41, 0x43, 0xaa, 0x02, 0x1c, 0x52, 0x65, 0x64, 0x70, 0x61, 0x6e, 0x64, 0x61, 0x2e, - 0x41, 0x70, 0x69, 0x2e, 0x43, 0x6f, 0x6e, 0x73, 0x6f, 0x6c, 0x65, 0x2e, 0x56, 0x31, 0x61, 0x6c, - 0x70, 0x68, 0x61, 0xca, 0x02, 0x1c, 0x52, 0x65, 0x64, 0x70, 0x61, 0x6e, 0x64, 0x61, 0x5c, 0x41, + 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x50, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x45, 0x6e, + 0x63, 0x6f, 0x64, 0x69, 0x6e, 0x67, 0x52, 0x08, 0x65, 0x6e, 0x63, 0x6f, 0x64, 0x69, 0x6e, 0x67, + 0x12, 0x2d, 0x0a, 0x12, 0x6e, 0x6f, 0x72, 0x6d, 0x61, 0x6c, 0x69, 0x7a, 0x65, 0x64, 0x5f, 0x70, + 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x11, 0x6e, 0x6f, + 0x72, 0x6d, 0x61, 0x6c, 0x69, 0x7a, 0x65, 0x64, 0x50, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x12, + 0x2f, 0x0a, 0x14, 0x69, 0x73, 0x5f, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x5f, 0x74, 0x6f, + 0x6f, 0x5f, 0x6c, 0x61, 0x72, 0x67, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x08, 0x52, 0x11, 0x69, + 0x73, 0x50, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x54, 0x6f, 0x6f, 0x4c, 0x61, 0x72, 0x67, 0x65, + 0x12, 0x61, 0x0a, 0x13, 0x74, 0x72, 0x6f, 0x75, 0x62, 0x6c, 0x65, 0x73, 0x68, 0x6f, 0x6f, 0x74, + 0x5f, 0x72, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x18, 0x06, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x30, 0x2e, + 0x72, 0x65, 0x64, 0x70, 0x61, 0x6e, 0x64, 0x61, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x63, 0x6f, 0x6e, + 0x73, 0x6f, 0x6c, 0x65, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x54, 0x72, 0x6f, + 0x75, 0x62, 0x6c, 0x65, 0x73, 0x68, 0x6f, 0x6f, 0x74, 0x52, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x52, + 0x12, 0x74, 0x72, 0x6f, 0x75, 0x62, 0x6c, 0x65, 0x73, 0x68, 0x6f, 0x6f, 0x74, 0x52, 0x65, 0x70, + 0x6f, 0x72, 0x74, 0x22, 0x4d, 0x0a, 0x12, 0x54, 0x72, 0x6f, 0x75, 0x62, 0x6c, 0x65, 0x73, 0x68, + 0x6f, 0x6f, 0x74, 0x52, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x12, 0x1d, 0x0a, 0x0a, 0x73, 0x65, 0x72, + 0x64, 0x65, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x73, + 0x65, 0x72, 0x64, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x6d, 0x65, 0x73, 0x73, + 0x61, 0x67, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, + 0x67, 0x65, 0x42, 0xab, 0x02, 0x0a, 0x20, 0x63, 0x6f, 0x6d, 0x2e, 0x72, 0x65, 0x64, 0x70, 0x61, + 0x6e, 0x64, 0x61, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x63, 0x6f, 0x6e, 0x73, 0x6f, 0x6c, 0x65, 0x2e, + 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x42, 0x11, 0x4c, 0x69, 0x73, 0x74, 0x4d, 0x65, 0x73, + 0x73, 0x61, 0x67, 0x65, 0x73, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x61, 0x67, 0x69, + 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x72, 0x65, 0x64, 0x70, 0x61, 0x6e, 0x64, + 0x61, 0x2d, 0x64, 0x61, 0x74, 0x61, 0x2f, 0x63, 0x6f, 0x6e, 0x73, 0x6f, 0x6c, 0x65, 0x2f, 0x62, + 0x61, 0x63, 0x6b, 0x65, 0x6e, 0x64, 0x2f, 0x70, 0x6b, 0x67, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, + 0x67, 0x65, 0x6e, 0x2f, 0x72, 0x65, 0x64, 0x70, 0x61, 0x6e, 0x64, 0x61, 0x2f, 0x61, 0x70, 0x69, + 0x2f, 0x63, 0x6f, 0x6e, 0x73, 0x6f, 0x6c, 0x65, 0x2f, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, + 0x3b, 0x63, 0x6f, 0x6e, 0x73, 0x6f, 0x6c, 0x65, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0xa2, + 0x02, 0x03, 0x52, 0x41, 0x43, 0xaa, 0x02, 0x1c, 0x52, 0x65, 0x64, 0x70, 0x61, 0x6e, 0x64, 0x61, + 0x2e, 0x41, 0x70, 0x69, 0x2e, 0x43, 0x6f, 0x6e, 0x73, 0x6f, 0x6c, 0x65, 0x2e, 0x56, 0x31, 0x61, + 0x6c, 0x70, 0x68, 0x61, 0xca, 0x02, 0x1c, 0x52, 0x65, 0x64, 0x70, 0x61, 0x6e, 0x64, 0x61, 0x5c, + 0x41, 0x70, 0x69, 0x5c, 0x43, 0x6f, 0x6e, 0x73, 0x6f, 0x6c, 0x65, 0x5c, 0x56, 0x31, 0x61, 0x6c, + 0x70, 0x68, 0x61, 0xe2, 0x02, 0x28, 0x52, 0x65, 0x64, 0x70, 0x61, 0x6e, 0x64, 0x61, 0x5c, 0x41, 0x70, 0x69, 0x5c, 0x43, 0x6f, 0x6e, 0x73, 0x6f, 0x6c, 0x65, 0x5c, 0x56, 0x31, 0x61, 0x6c, 0x70, - 0x68, 0x61, 0xe2, 0x02, 0x28, 0x52, 0x65, 0x64, 0x70, 0x61, 0x6e, 0x64, 0x61, 0x5c, 0x41, 0x70, - 0x69, 0x5c, 0x43, 0x6f, 0x6e, 0x73, 0x6f, 0x6c, 0x65, 0x5c, 0x56, 0x31, 0x61, 0x6c, 0x70, 0x68, - 0x61, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x1f, - 0x52, 0x65, 0x64, 0x70, 0x61, 0x6e, 0x64, 0x61, 0x3a, 0x3a, 0x41, 0x70, 0x69, 0x3a, 0x3a, 0x43, - 0x6f, 0x6e, 0x73, 0x6f, 0x6c, 0x65, 0x3a, 0x3a, 0x56, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x62, - 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, + 0x68, 0x61, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, + 0x1f, 0x52, 0x65, 0x64, 0x70, 0x61, 0x6e, 0x64, 0x61, 0x3a, 0x3a, 0x41, 0x70, 0x69, 0x3a, 0x3a, + 0x43, 0x6f, 0x6e, 0x73, 0x6f, 0x6c, 0x65, 0x3a, 0x3a, 0x56, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, + 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( @@ -1149,38 +913,35 @@ func file_redpanda_api_console_v1alpha_list_messages_proto_rawDescGZIP() []byte return file_redpanda_api_console_v1alpha_list_messages_proto_rawDescData } -var file_redpanda_api_console_v1alpha_list_messages_proto_enumTypes = make([]protoimpl.EnumInfo, 2) -var file_redpanda_api_console_v1alpha_list_messages_proto_msgTypes = make([]protoimpl.MessageInfo, 10) +var file_redpanda_api_console_v1alpha_list_messages_proto_msgTypes = make([]protoimpl.MessageInfo, 9) var file_redpanda_api_console_v1alpha_list_messages_proto_goTypes = []interface{}{ - (CompressionType)(0), // 0: redpanda.api.console.v1alpha.CompressionType - (PayloadEncoding)(0), // 1: redpanda.api.console.v1alpha.PayloadEncoding - (*ListMessagesRequest)(nil), // 2: redpanda.api.console.v1alpha.ListMessagesRequest - (*ListMessagesResponse)(nil), // 3: redpanda.api.console.v1alpha.ListMessagesResponse - (*KafkaRecordPayload)(nil), // 4: redpanda.api.console.v1alpha.KafkaRecordPayload - (*TroubleshootReport)(nil), // 5: redpanda.api.console.v1alpha.TroubleshootReport - (*KafkaRecordHeader)(nil), // 6: redpanda.api.console.v1alpha.KafkaRecordHeader - (*ListMessagesResponse_DataMessage)(nil), // 7: redpanda.api.console.v1alpha.ListMessagesResponse.DataMessage - (*ListMessagesResponse_PhaseMessage)(nil), // 8: redpanda.api.console.v1alpha.ListMessagesResponse.PhaseMessage - (*ListMessagesResponse_ProgressMessage)(nil), // 9: redpanda.api.console.v1alpha.ListMessagesResponse.ProgressMessage - (*ListMessagesResponse_StreamCompletedMessage)(nil), // 10: redpanda.api.console.v1alpha.ListMessagesResponse.StreamCompletedMessage - (*ListMessagesResponse_ErrorMessage)(nil), // 11: redpanda.api.console.v1alpha.ListMessagesResponse.ErrorMessage + (*ListMessagesRequest)(nil), // 0: redpanda.api.console.v1alpha.ListMessagesRequest + (*ListMessagesResponse)(nil), // 1: redpanda.api.console.v1alpha.ListMessagesResponse + (*KafkaRecordPayload)(nil), // 2: redpanda.api.console.v1alpha.KafkaRecordPayload + (*TroubleshootReport)(nil), // 3: redpanda.api.console.v1alpha.TroubleshootReport + (*ListMessagesResponse_DataMessage)(nil), // 4: redpanda.api.console.v1alpha.ListMessagesResponse.DataMessage + (*ListMessagesResponse_PhaseMessage)(nil), // 5: redpanda.api.console.v1alpha.ListMessagesResponse.PhaseMessage + (*ListMessagesResponse_ProgressMessage)(nil), // 6: redpanda.api.console.v1alpha.ListMessagesResponse.ProgressMessage + (*ListMessagesResponse_StreamCompletedMessage)(nil), // 7: redpanda.api.console.v1alpha.ListMessagesResponse.StreamCompletedMessage + (*ListMessagesResponse_ErrorMessage)(nil), // 8: redpanda.api.console.v1alpha.ListMessagesResponse.ErrorMessage + (PayloadEncoding)(0), // 9: redpanda.api.console.v1alpha.PayloadEncoding + (CompressionType)(0), // 10: redpanda.api.console.v1alpha.CompressionType + (*KafkaRecordHeader)(nil), // 11: redpanda.api.console.v1alpha.KafkaRecordHeader } var file_redpanda_api_console_v1alpha_list_messages_proto_depIdxs = []int32{ - 7, // 0: redpanda.api.console.v1alpha.ListMessagesResponse.data:type_name -> redpanda.api.console.v1alpha.ListMessagesResponse.DataMessage - 8, // 1: redpanda.api.console.v1alpha.ListMessagesResponse.phase:type_name -> redpanda.api.console.v1alpha.ListMessagesResponse.PhaseMessage - 9, // 2: redpanda.api.console.v1alpha.ListMessagesResponse.progress:type_name -> redpanda.api.console.v1alpha.ListMessagesResponse.ProgressMessage - 10, // 3: redpanda.api.console.v1alpha.ListMessagesResponse.done:type_name -> redpanda.api.console.v1alpha.ListMessagesResponse.StreamCompletedMessage - 11, // 4: redpanda.api.console.v1alpha.ListMessagesResponse.error:type_name -> redpanda.api.console.v1alpha.ListMessagesResponse.ErrorMessage - 1, // 5: redpanda.api.console.v1alpha.KafkaRecordPayload.encoding:type_name -> redpanda.api.console.v1alpha.PayloadEncoding - 5, // 6: redpanda.api.console.v1alpha.KafkaRecordPayload.troubleshoot_report:type_name -> redpanda.api.console.v1alpha.TroubleshootReport - 0, // 7: redpanda.api.console.v1alpha.ListMessagesResponse.DataMessage.compression:type_name -> redpanda.api.console.v1alpha.CompressionType - 6, // 8: redpanda.api.console.v1alpha.ListMessagesResponse.DataMessage.headers:type_name -> redpanda.api.console.v1alpha.KafkaRecordHeader - 4, // 9: redpanda.api.console.v1alpha.ListMessagesResponse.DataMessage.key:type_name -> redpanda.api.console.v1alpha.KafkaRecordPayload - 4, // 10: redpanda.api.console.v1alpha.ListMessagesResponse.DataMessage.value:type_name -> redpanda.api.console.v1alpha.KafkaRecordPayload - 2, // 11: redpanda.api.console.v1alpha.ConsoleService.ListMessages:input_type -> redpanda.api.console.v1alpha.ListMessagesRequest - 3, // 12: redpanda.api.console.v1alpha.ConsoleService.ListMessages:output_type -> redpanda.api.console.v1alpha.ListMessagesResponse - 12, // [12:13] is the sub-list for method output_type - 11, // [11:12] is the sub-list for method input_type + 4, // 0: redpanda.api.console.v1alpha.ListMessagesResponse.data:type_name -> redpanda.api.console.v1alpha.ListMessagesResponse.DataMessage + 5, // 1: redpanda.api.console.v1alpha.ListMessagesResponse.phase:type_name -> redpanda.api.console.v1alpha.ListMessagesResponse.PhaseMessage + 6, // 2: redpanda.api.console.v1alpha.ListMessagesResponse.progress:type_name -> redpanda.api.console.v1alpha.ListMessagesResponse.ProgressMessage + 7, // 3: redpanda.api.console.v1alpha.ListMessagesResponse.done:type_name -> redpanda.api.console.v1alpha.ListMessagesResponse.StreamCompletedMessage + 8, // 4: redpanda.api.console.v1alpha.ListMessagesResponse.error:type_name -> redpanda.api.console.v1alpha.ListMessagesResponse.ErrorMessage + 9, // 5: redpanda.api.console.v1alpha.KafkaRecordPayload.encoding:type_name -> redpanda.api.console.v1alpha.PayloadEncoding + 3, // 6: redpanda.api.console.v1alpha.KafkaRecordPayload.troubleshoot_report:type_name -> redpanda.api.console.v1alpha.TroubleshootReport + 10, // 7: redpanda.api.console.v1alpha.ListMessagesResponse.DataMessage.compression:type_name -> redpanda.api.console.v1alpha.CompressionType + 11, // 8: redpanda.api.console.v1alpha.ListMessagesResponse.DataMessage.headers:type_name -> redpanda.api.console.v1alpha.KafkaRecordHeader + 2, // 9: redpanda.api.console.v1alpha.ListMessagesResponse.DataMessage.key:type_name -> redpanda.api.console.v1alpha.KafkaRecordPayload + 2, // 10: redpanda.api.console.v1alpha.ListMessagesResponse.DataMessage.value:type_name -> redpanda.api.console.v1alpha.KafkaRecordPayload + 11, // [11:11] is the sub-list for method output_type + 11, // [11:11] is the sub-list for method input_type 11, // [11:11] is the sub-list for extension type_name 11, // [11:11] is the sub-list for extension extendee 0, // [0:11] is the sub-list for field type_name @@ -1191,6 +952,7 @@ func file_redpanda_api_console_v1alpha_list_messages_proto_init() { if File_redpanda_api_console_v1alpha_list_messages_proto != nil { return } + file_redpanda_api_console_v1alpha_common_proto_init() if !protoimpl.UnsafeEnabled { file_redpanda_api_console_v1alpha_list_messages_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*ListMessagesRequest); i { @@ -1241,18 +1003,6 @@ func file_redpanda_api_console_v1alpha_list_messages_proto_init() { } } file_redpanda_api_console_v1alpha_list_messages_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*KafkaRecordHeader); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_redpanda_api_console_v1alpha_list_messages_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*ListMessagesResponse_DataMessage); i { case 0: return &v.state @@ -1264,7 +1014,7 @@ func file_redpanda_api_console_v1alpha_list_messages_proto_init() { return nil } } - file_redpanda_api_console_v1alpha_list_messages_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { + file_redpanda_api_console_v1alpha_list_messages_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*ListMessagesResponse_PhaseMessage); i { case 0: return &v.state @@ -1276,7 +1026,7 @@ func file_redpanda_api_console_v1alpha_list_messages_proto_init() { return nil } } - file_redpanda_api_console_v1alpha_list_messages_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { + file_redpanda_api_console_v1alpha_list_messages_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*ListMessagesResponse_ProgressMessage); i { case 0: return &v.state @@ -1288,7 +1038,7 @@ func file_redpanda_api_console_v1alpha_list_messages_proto_init() { return nil } } - file_redpanda_api_console_v1alpha_list_messages_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { + file_redpanda_api_console_v1alpha_list_messages_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*ListMessagesResponse_StreamCompletedMessage); i { case 0: return &v.state @@ -1300,7 +1050,7 @@ func file_redpanda_api_console_v1alpha_list_messages_proto_init() { return nil } } - file_redpanda_api_console_v1alpha_list_messages_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { + file_redpanda_api_console_v1alpha_list_messages_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*ListMessagesResponse_ErrorMessage); i { case 0: return &v.state @@ -1325,14 +1075,13 @@ func file_redpanda_api_console_v1alpha_list_messages_proto_init() { File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), RawDescriptor: file_redpanda_api_console_v1alpha_list_messages_proto_rawDesc, - NumEnums: 2, - NumMessages: 10, + NumEnums: 0, + NumMessages: 9, NumExtensions: 0, - NumServices: 1, + NumServices: 0, }, GoTypes: file_redpanda_api_console_v1alpha_list_messages_proto_goTypes, DependencyIndexes: file_redpanda_api_console_v1alpha_list_messages_proto_depIdxs, - EnumInfos: file_redpanda_api_console_v1alpha_list_messages_proto_enumTypes, MessageInfos: file_redpanda_api_console_v1alpha_list_messages_proto_msgTypes, }.Build() File_redpanda_api_console_v1alpha_list_messages_proto = out.File diff --git a/backend/pkg/protogen/redpanda/api/console/v1alpha/publish_message.pb.go b/backend/pkg/protogen/redpanda/api/console/v1alpha/publish_message.pb.go new file mode 100644 index 000000000..545eae317 --- /dev/null +++ b/backend/pkg/protogen/redpanda/api/console/v1alpha/publish_message.pb.go @@ -0,0 +1,327 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.31.0 +// protoc (unknown) +// source: redpanda/api/console/v1alpha/publish_message.proto + +package consolev1alpha + +import ( + reflect "reflect" + sync "sync" + + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" +) + +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) + +// PublishMessageRequest is the request for PublishMessage call. +type PublishMessageRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Topics []string `protobuf:"bytes,1,rep,name=topics,proto3" json:"topics,omitempty"` // The topics to publish to.`` + PartitionId int32 `protobuf:"varint,2,opt,name=partition_id,json=partitionId,proto3" json:"partition_id,omitempty"` + Compression CompressionType `protobuf:"varint,3,opt,name=compression,proto3,enum=redpanda.api.console.v1alpha.CompressionType" json:"compression,omitempty"` // The compression to be used. + UseTransactions bool `protobuf:"varint,4,opt,name=use_transactions,json=useTransactions,proto3" json:"use_transactions,omitempty"` // Use transactions. + Encoding PayloadEncoding `protobuf:"varint,5,opt,name=encoding,proto3,enum=redpanda.api.console.v1alpha.PayloadEncoding" json:"encoding,omitempty"` // Payload encoding to use. + Headers []*KafkaRecordHeader `protobuf:"bytes,6,rep,name=headers,proto3" json:"headers,omitempty"` // Kafka record headers. + Key string `protobuf:"bytes,7,opt,name=key,proto3" json:"key,omitempty"` + Value string `protobuf:"bytes,8,opt,name=value,proto3" json:"value,omitempty"` + SchemaId int32 `protobuf:"varint,9,opt,name=schema_id,json=schemaId,proto3" json:"schema_id,omitempty"` + Index int32 `protobuf:"varint,10,opt,name=index,proto3" json:"index,omitempty"` +} + +func (x *PublishMessageRequest) Reset() { + *x = PublishMessageRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_redpanda_api_console_v1alpha_publish_message_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *PublishMessageRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*PublishMessageRequest) ProtoMessage() {} + +func (x *PublishMessageRequest) ProtoReflect() protoreflect.Message { + mi := &file_redpanda_api_console_v1alpha_publish_message_proto_msgTypes[0] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use PublishMessageRequest.ProtoReflect.Descriptor instead. +func (*PublishMessageRequest) Descriptor() ([]byte, []int) { + return file_redpanda_api_console_v1alpha_publish_message_proto_rawDescGZIP(), []int{0} +} + +func (x *PublishMessageRequest) GetTopics() []string { + if x != nil { + return x.Topics + } + return nil +} + +func (x *PublishMessageRequest) GetPartitionId() int32 { + if x != nil { + return x.PartitionId + } + return 0 +} + +func (x *PublishMessageRequest) GetCompression() CompressionType { + if x != nil { + return x.Compression + } + return CompressionType_COMPRESSION_TYPE_UNSPECIFIED +} + +func (x *PublishMessageRequest) GetUseTransactions() bool { + if x != nil { + return x.UseTransactions + } + return false +} + +func (x *PublishMessageRequest) GetEncoding() PayloadEncoding { + if x != nil { + return x.Encoding + } + return PayloadEncoding_PAYLOAD_ENCODING_UNSPECIFIED +} + +func (x *PublishMessageRequest) GetHeaders() []*KafkaRecordHeader { + if x != nil { + return x.Headers + } + return nil +} + +func (x *PublishMessageRequest) GetKey() string { + if x != nil { + return x.Key + } + return "" +} + +func (x *PublishMessageRequest) GetValue() string { + if x != nil { + return x.Value + } + return "" +} + +func (x *PublishMessageRequest) GetSchemaId() int32 { + if x != nil { + return x.SchemaId + } + return 0 +} + +func (x *PublishMessageRequest) GetIndex() int32 { + if x != nil { + return x.Index + } + return 0 +} + +// PublishMessageResponse is the response for PublishMessage call. +type PublishMessageResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields +} + +func (x *PublishMessageResponse) Reset() { + *x = PublishMessageResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_redpanda_api_console_v1alpha_publish_message_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *PublishMessageResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*PublishMessageResponse) ProtoMessage() {} + +func (x *PublishMessageResponse) ProtoReflect() protoreflect.Message { + mi := &file_redpanda_api_console_v1alpha_publish_message_proto_msgTypes[1] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use PublishMessageResponse.ProtoReflect.Descriptor instead. +func (*PublishMessageResponse) Descriptor() ([]byte, []int) { + return file_redpanda_api_console_v1alpha_publish_message_proto_rawDescGZIP(), []int{1} +} + +var File_redpanda_api_console_v1alpha_publish_message_proto protoreflect.FileDescriptor + +var file_redpanda_api_console_v1alpha_publish_message_proto_rawDesc = []byte{ + 0x0a, 0x32, 0x72, 0x65, 0x64, 0x70, 0x61, 0x6e, 0x64, 0x61, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x63, + 0x6f, 0x6e, 0x73, 0x6f, 0x6c, 0x65, 0x2f, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2f, 0x70, + 0x75, 0x62, 0x6c, 0x69, 0x73, 0x68, 0x5f, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x70, + 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x1c, 0x72, 0x65, 0x64, 0x70, 0x61, 0x6e, 0x64, 0x61, 0x2e, 0x61, + 0x70, 0x69, 0x2e, 0x63, 0x6f, 0x6e, 0x73, 0x6f, 0x6c, 0x65, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, + 0x68, 0x61, 0x1a, 0x29, 0x72, 0x65, 0x64, 0x70, 0x61, 0x6e, 0x64, 0x61, 0x2f, 0x61, 0x70, 0x69, + 0x2f, 0x63, 0x6f, 0x6e, 0x73, 0x6f, 0x6c, 0x65, 0x2f, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, + 0x2f, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xbf, 0x03, + 0x0a, 0x15, 0x50, 0x75, 0x62, 0x6c, 0x69, 0x73, 0x68, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, + 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x74, 0x6f, 0x70, 0x69, 0x63, + 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x09, 0x52, 0x06, 0x74, 0x6f, 0x70, 0x69, 0x63, 0x73, 0x12, + 0x21, 0x0a, 0x0c, 0x70, 0x61, 0x72, 0x74, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x64, 0x18, + 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0b, 0x70, 0x61, 0x72, 0x74, 0x69, 0x74, 0x69, 0x6f, 0x6e, + 0x49, 0x64, 0x12, 0x4f, 0x0a, 0x0b, 0x63, 0x6f, 0x6d, 0x70, 0x72, 0x65, 0x73, 0x73, 0x69, 0x6f, + 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x2d, 0x2e, 0x72, 0x65, 0x64, 0x70, 0x61, 0x6e, + 0x64, 0x61, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x63, 0x6f, 0x6e, 0x73, 0x6f, 0x6c, 0x65, 0x2e, 0x76, + 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x43, 0x6f, 0x6d, 0x70, 0x72, 0x65, 0x73, 0x73, 0x69, + 0x6f, 0x6e, 0x54, 0x79, 0x70, 0x65, 0x52, 0x0b, 0x63, 0x6f, 0x6d, 0x70, 0x72, 0x65, 0x73, 0x73, + 0x69, 0x6f, 0x6e, 0x12, 0x29, 0x0a, 0x10, 0x75, 0x73, 0x65, 0x5f, 0x74, 0x72, 0x61, 0x6e, 0x73, + 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0f, 0x75, + 0x73, 0x65, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x49, + 0x0a, 0x08, 0x65, 0x6e, 0x63, 0x6f, 0x64, 0x69, 0x6e, 0x67, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0e, + 0x32, 0x2d, 0x2e, 0x72, 0x65, 0x64, 0x70, 0x61, 0x6e, 0x64, 0x61, 0x2e, 0x61, 0x70, 0x69, 0x2e, + 0x63, 0x6f, 0x6e, 0x73, 0x6f, 0x6c, 0x65, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, + 0x50, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x45, 0x6e, 0x63, 0x6f, 0x64, 0x69, 0x6e, 0x67, 0x52, + 0x08, 0x65, 0x6e, 0x63, 0x6f, 0x64, 0x69, 0x6e, 0x67, 0x12, 0x49, 0x0a, 0x07, 0x68, 0x65, 0x61, + 0x64, 0x65, 0x72, 0x73, 0x18, 0x06, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2f, 0x2e, 0x72, 0x65, 0x64, + 0x70, 0x61, 0x6e, 0x64, 0x61, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x63, 0x6f, 0x6e, 0x73, 0x6f, 0x6c, + 0x65, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x4b, 0x61, 0x66, 0x6b, 0x61, 0x52, + 0x65, 0x63, 0x6f, 0x72, 0x64, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x52, 0x07, 0x68, 0x65, 0x61, + 0x64, 0x65, 0x72, 0x73, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x07, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, + 0x08, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x1b, 0x0a, 0x09, + 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x5f, 0x69, 0x64, 0x18, 0x09, 0x20, 0x01, 0x28, 0x05, 0x52, + 0x08, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x49, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x69, 0x6e, 0x64, + 0x65, 0x78, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x05, 0x52, 0x05, 0x69, 0x6e, 0x64, 0x65, 0x78, 0x22, + 0x18, 0x0a, 0x16, 0x50, 0x75, 0x62, 0x6c, 0x69, 0x73, 0x68, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, + 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x42, 0xad, 0x02, 0x0a, 0x20, 0x63, 0x6f, + 0x6d, 0x2e, 0x72, 0x65, 0x64, 0x70, 0x61, 0x6e, 0x64, 0x61, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x63, + 0x6f, 0x6e, 0x73, 0x6f, 0x6c, 0x65, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x42, 0x13, + 0x50, 0x75, 0x62, 0x6c, 0x69, 0x73, 0x68, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x50, 0x72, + 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x61, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, + 0x6d, 0x2f, 0x72, 0x65, 0x64, 0x70, 0x61, 0x6e, 0x64, 0x61, 0x2d, 0x64, 0x61, 0x74, 0x61, 0x2f, + 0x63, 0x6f, 0x6e, 0x73, 0x6f, 0x6c, 0x65, 0x2f, 0x62, 0x61, 0x63, 0x6b, 0x65, 0x6e, 0x64, 0x2f, + 0x70, 0x6b, 0x67, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x67, 0x65, 0x6e, 0x2f, 0x72, 0x65, 0x64, + 0x70, 0x61, 0x6e, 0x64, 0x61, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x63, 0x6f, 0x6e, 0x73, 0x6f, 0x6c, + 0x65, 0x2f, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x3b, 0x63, 0x6f, 0x6e, 0x73, 0x6f, 0x6c, + 0x65, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0xa2, 0x02, 0x03, 0x52, 0x41, 0x43, 0xaa, 0x02, + 0x1c, 0x52, 0x65, 0x64, 0x70, 0x61, 0x6e, 0x64, 0x61, 0x2e, 0x41, 0x70, 0x69, 0x2e, 0x43, 0x6f, + 0x6e, 0x73, 0x6f, 0x6c, 0x65, 0x2e, 0x56, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0xca, 0x02, 0x1c, + 0x52, 0x65, 0x64, 0x70, 0x61, 0x6e, 0x64, 0x61, 0x5c, 0x41, 0x70, 0x69, 0x5c, 0x43, 0x6f, 0x6e, + 0x73, 0x6f, 0x6c, 0x65, 0x5c, 0x56, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0xe2, 0x02, 0x28, 0x52, + 0x65, 0x64, 0x70, 0x61, 0x6e, 0x64, 0x61, 0x5c, 0x41, 0x70, 0x69, 0x5c, 0x43, 0x6f, 0x6e, 0x73, + 0x6f, 0x6c, 0x65, 0x5c, 0x56, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x5c, 0x47, 0x50, 0x42, 0x4d, + 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x1f, 0x52, 0x65, 0x64, 0x70, 0x61, 0x6e, + 0x64, 0x61, 0x3a, 0x3a, 0x41, 0x70, 0x69, 0x3a, 0x3a, 0x43, 0x6f, 0x6e, 0x73, 0x6f, 0x6c, 0x65, + 0x3a, 0x3a, 0x56, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, + 0x33, +} + +var ( + file_redpanda_api_console_v1alpha_publish_message_proto_rawDescOnce sync.Once + file_redpanda_api_console_v1alpha_publish_message_proto_rawDescData = file_redpanda_api_console_v1alpha_publish_message_proto_rawDesc +) + +func file_redpanda_api_console_v1alpha_publish_message_proto_rawDescGZIP() []byte { + file_redpanda_api_console_v1alpha_publish_message_proto_rawDescOnce.Do(func() { + file_redpanda_api_console_v1alpha_publish_message_proto_rawDescData = protoimpl.X.CompressGZIP(file_redpanda_api_console_v1alpha_publish_message_proto_rawDescData) + }) + return file_redpanda_api_console_v1alpha_publish_message_proto_rawDescData +} + +var file_redpanda_api_console_v1alpha_publish_message_proto_msgTypes = make([]protoimpl.MessageInfo, 2) +var file_redpanda_api_console_v1alpha_publish_message_proto_goTypes = []interface{}{ + (*PublishMessageRequest)(nil), // 0: redpanda.api.console.v1alpha.PublishMessageRequest + (*PublishMessageResponse)(nil), // 1: redpanda.api.console.v1alpha.PublishMessageResponse + (CompressionType)(0), // 2: redpanda.api.console.v1alpha.CompressionType + (PayloadEncoding)(0), // 3: redpanda.api.console.v1alpha.PayloadEncoding + (*KafkaRecordHeader)(nil), // 4: redpanda.api.console.v1alpha.KafkaRecordHeader +} +var file_redpanda_api_console_v1alpha_publish_message_proto_depIdxs = []int32{ + 2, // 0: redpanda.api.console.v1alpha.PublishMessageRequest.compression:type_name -> redpanda.api.console.v1alpha.CompressionType + 3, // 1: redpanda.api.console.v1alpha.PublishMessageRequest.encoding:type_name -> redpanda.api.console.v1alpha.PayloadEncoding + 4, // 2: redpanda.api.console.v1alpha.PublishMessageRequest.headers:type_name -> redpanda.api.console.v1alpha.KafkaRecordHeader + 3, // [3:3] is the sub-list for method output_type + 3, // [3:3] is the sub-list for method input_type + 3, // [3:3] is the sub-list for extension type_name + 3, // [3:3] is the sub-list for extension extendee + 0, // [0:3] is the sub-list for field type_name +} + +func init() { file_redpanda_api_console_v1alpha_publish_message_proto_init() } +func file_redpanda_api_console_v1alpha_publish_message_proto_init() { + if File_redpanda_api_console_v1alpha_publish_message_proto != nil { + return + } + file_redpanda_api_console_v1alpha_common_proto_init() + if !protoimpl.UnsafeEnabled { + file_redpanda_api_console_v1alpha_publish_message_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*PublishMessageRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_redpanda_api_console_v1alpha_publish_message_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*PublishMessageResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_redpanda_api_console_v1alpha_publish_message_proto_rawDesc, + NumEnums: 0, + NumMessages: 2, + NumExtensions: 0, + NumServices: 0, + }, + GoTypes: file_redpanda_api_console_v1alpha_publish_message_proto_goTypes, + DependencyIndexes: file_redpanda_api_console_v1alpha_publish_message_proto_depIdxs, + MessageInfos: file_redpanda_api_console_v1alpha_publish_message_proto_msgTypes, + }.Build() + File_redpanda_api_console_v1alpha_publish_message_proto = out.File + file_redpanda_api_console_v1alpha_publish_message_proto_rawDesc = nil + file_redpanda_api_console_v1alpha_publish_message_proto_goTypes = nil + file_redpanda_api_console_v1alpha_publish_message_proto_depIdxs = nil +} diff --git a/frontend/src/protogen/redpanda/api/console/v1alpha/common_pb.ts b/frontend/src/protogen/redpanda/api/console/v1alpha/common_pb.ts new file mode 100644 index 000000000..a81b188a3 --- /dev/null +++ b/frontend/src/protogen/redpanda/api/console/v1alpha/common_pb.ts @@ -0,0 +1,181 @@ +// @generated by protoc-gen-es v1.3.0 with parameter "target=ts,import_extension=" +// @generated from file redpanda/api/console/v1alpha/common.proto (package redpanda.api.console.v1alpha, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3 } from "@bufbuild/protobuf"; + +/** + * @generated from enum redpanda.api.console.v1alpha.CompressionType + */ +export enum CompressionType { + /** + * @generated from enum value: COMPRESSION_TYPE_UNSPECIFIED = 0; + */ + UNSPECIFIED = 0, + + /** + * @generated from enum value: COMPRESSION_TYPE_UNCOMPRESSED = 1; + */ + UNCOMPRESSED = 1, + + /** + * @generated from enum value: COMPRESSION_TYPE_GZIP = 2; + */ + GZIP = 2, + + /** + * @generated from enum value: COMPRESSION_TYPE_SNAPPY = 3; + */ + SNAPPY = 3, + + /** + * @generated from enum value: COMPRESSION_TYPE_LZ4 = 4; + */ + LZ4 = 4, + + /** + * @generated from enum value: COMPRESSION_TYPE_ZSTD = 5; + */ + ZSTD = 5, +} +// Retrieve enum metadata with: proto3.getEnumType(CompressionType) +proto3.util.setEnumType(CompressionType, "redpanda.api.console.v1alpha.CompressionType", [ + { no: 0, name: "COMPRESSION_TYPE_UNSPECIFIED" }, + { no: 1, name: "COMPRESSION_TYPE_UNCOMPRESSED" }, + { no: 2, name: "COMPRESSION_TYPE_GZIP" }, + { no: 3, name: "COMPRESSION_TYPE_SNAPPY" }, + { no: 4, name: "COMPRESSION_TYPE_LZ4" }, + { no: 5, name: "COMPRESSION_TYPE_ZSTD" }, +]); + +/** + * @generated from enum redpanda.api.console.v1alpha.PayloadEncoding + */ +export enum PayloadEncoding { + /** + * @generated from enum value: PAYLOAD_ENCODING_UNSPECIFIED = 0; + */ + UNSPECIFIED = 0, + + /** + * @generated from enum value: PAYLOAD_ENCODING_NONE = 1; + */ + NONE = 1, + + /** + * @generated from enum value: PAYLOAD_ENCODING_AVRO = 2; + */ + AVRO = 2, + + /** + * @generated from enum value: PAYLOAD_ENCODING_PROTOBUF = 3; + */ + PROTOBUF = 3, + + /** + * @generated from enum value: PAYLOAD_ENCODING_JSON = 4; + */ + JSON = 4, + + /** + * @generated from enum value: PAYLOAD_ENCODING_XML = 5; + */ + XML = 5, + + /** + * @generated from enum value: PAYLOAD_ENCODING_TEXT = 6; + */ + TEXT = 6, + + /** + * @generated from enum value: PAYLOAD_ENCODING_UTF8 = 7; + */ + UTF8 = 7, + + /** + * @generated from enum value: PAYLOAD_ENCODING_MESSAGE_PACK = 8; + */ + MESSAGE_PACK = 8, + + /** + * @generated from enum value: PAYLOAD_ENCODING_SMILE = 9; + */ + SMILE = 9, + + /** + * @generated from enum value: PAYLOAD_ENCODING_BINARY = 10; + */ + BINARY = 10, + + /** + * @generated from enum value: PAYLOAD_ENCODING_CONSUMER_OFFSETS = 11; + */ + CONSUMER_OFFSETS = 11, +} +// Retrieve enum metadata with: proto3.getEnumType(PayloadEncoding) +proto3.util.setEnumType(PayloadEncoding, "redpanda.api.console.v1alpha.PayloadEncoding", [ + { no: 0, name: "PAYLOAD_ENCODING_UNSPECIFIED" }, + { no: 1, name: "PAYLOAD_ENCODING_NONE" }, + { no: 2, name: "PAYLOAD_ENCODING_AVRO" }, + { no: 3, name: "PAYLOAD_ENCODING_PROTOBUF" }, + { no: 4, name: "PAYLOAD_ENCODING_JSON" }, + { no: 5, name: "PAYLOAD_ENCODING_XML" }, + { no: 6, name: "PAYLOAD_ENCODING_TEXT" }, + { no: 7, name: "PAYLOAD_ENCODING_UTF8" }, + { no: 8, name: "PAYLOAD_ENCODING_MESSAGE_PACK" }, + { no: 9, name: "PAYLOAD_ENCODING_SMILE" }, + { no: 10, name: "PAYLOAD_ENCODING_BINARY" }, + { no: 11, name: "PAYLOAD_ENCODING_CONSUMER_OFFSETS" }, +]); + +/** + * KafkaRecordHeader is the record header. + * + * @generated from message redpanda.api.console.v1alpha.KafkaRecordHeader + */ +export class KafkaRecordHeader extends Message { + /** + * Header key. + * + * @generated from field: string key = 1; + */ + key = ""; + + /** + * Header value. + * + * @generated from field: bytes value = 2; + */ + value = new Uint8Array(0); + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "redpanda.api.console.v1alpha.KafkaRecordHeader"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "key", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "value", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): KafkaRecordHeader { + return new KafkaRecordHeader().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): KafkaRecordHeader { + return new KafkaRecordHeader().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): KafkaRecordHeader { + return new KafkaRecordHeader().fromJsonString(jsonString, options); + } + + static equals(a: KafkaRecordHeader | PlainMessage | undefined, b: KafkaRecordHeader | PlainMessage | undefined): boolean { + return proto3.util.equals(KafkaRecordHeader, a, b); + } +} + diff --git a/frontend/src/protogen/redpanda/api/console/v1alpha/list_messages_connect.ts b/frontend/src/protogen/redpanda/api/console/v1alpha/console_service_connect.ts similarity index 62% rename from frontend/src/protogen/redpanda/api/console/v1alpha/list_messages_connect.ts rename to frontend/src/protogen/redpanda/api/console/v1alpha/console_service_connect.ts index 98b302ac3..537996a1a 100644 --- a/frontend/src/protogen/redpanda/api/console/v1alpha/list_messages_connect.ts +++ b/frontend/src/protogen/redpanda/api/console/v1alpha/console_service_connect.ts @@ -1,10 +1,11 @@ // @generated by protoc-gen-connect-es v0.13.0 with parameter "target=ts,import_extension=" -// @generated from file redpanda/api/console/v1alpha/list_messages.proto (package redpanda.api.console.v1alpha, syntax proto3) +// @generated from file redpanda/api/console/v1alpha/console_service.proto (package redpanda.api.console.v1alpha, syntax proto3) /* eslint-disable */ // @ts-nocheck import { ListMessagesRequest, ListMessagesResponse } from "./list_messages_pb"; import { MethodKind } from "@bufbuild/protobuf"; +import { PublishMessageRequest, PublishMessageResponse } from "./publish_message_pb"; /** * ConsoleService represents the Console API service. @@ -25,6 +26,17 @@ export const ConsoleService = { O: ListMessagesResponse, kind: MethodKind.ServerStreaming, }, + /** + * PublishMessage publishes message. + * + * @generated from rpc redpanda.api.console.v1alpha.ConsoleService.PublishMessage + */ + publishMessage: { + name: "PublishMessage", + I: PublishMessageRequest, + O: PublishMessageResponse, + kind: MethodKind.Unary, + }, } } as const; diff --git a/frontend/src/protogen/redpanda/api/console/v1alpha/list_messages_pb.ts b/frontend/src/protogen/redpanda/api/console/v1alpha/list_messages_pb.ts index 0a9200b91..7aa3b6c6c 100644 --- a/frontend/src/protogen/redpanda/api/console/v1alpha/list_messages_pb.ts +++ b/frontend/src/protogen/redpanda/api/console/v1alpha/list_messages_pb.ts @@ -5,130 +5,7 @@ import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; import { Message, proto3, protoInt64 } from "@bufbuild/protobuf"; - -/** - * @generated from enum redpanda.api.console.v1alpha.CompressionType - */ -export enum CompressionType { - /** - * @generated from enum value: COMPRESSION_TYPE_UNSPECIFIED = 0; - */ - UNSPECIFIED = 0, - - /** - * @generated from enum value: COMPRESSION_TYPE_UNCOMPRESSED = 1; - */ - UNCOMPRESSED = 1, - - /** - * @generated from enum value: COMPRESSION_TYPE_GZIP = 2; - */ - GZIP = 2, - - /** - * @generated from enum value: COMPRESSION_TYPE_SNAPPY = 3; - */ - SNAPPY = 3, - - /** - * @generated from enum value: COMPRESSION_TYPE_LZ4 = 4; - */ - LZ4 = 4, - - /** - * @generated from enum value: COMPRESSION_TYPE_ZSTD = 5; - */ - ZSTD = 5, -} -// Retrieve enum metadata with: proto3.getEnumType(CompressionType) -proto3.util.setEnumType(CompressionType, "redpanda.api.console.v1alpha.CompressionType", [ - { no: 0, name: "COMPRESSION_TYPE_UNSPECIFIED" }, - { no: 1, name: "COMPRESSION_TYPE_UNCOMPRESSED" }, - { no: 2, name: "COMPRESSION_TYPE_GZIP" }, - { no: 3, name: "COMPRESSION_TYPE_SNAPPY" }, - { no: 4, name: "COMPRESSION_TYPE_LZ4" }, - { no: 5, name: "COMPRESSION_TYPE_ZSTD" }, -]); - -/** - * @generated from enum redpanda.api.console.v1alpha.PayloadEncoding - */ -export enum PayloadEncoding { - /** - * @generated from enum value: PAYLOAD_ENCODING_UNSPECIFIED = 0; - */ - UNSPECIFIED = 0, - - /** - * @generated from enum value: PAYLOAD_ENCODING_NONE = 1; - */ - NONE = 1, - - /** - * @generated from enum value: PAYLOAD_ENCODING_AVRO = 2; - */ - AVRO = 2, - - /** - * @generated from enum value: PAYLOAD_ENCODING_PROTOBUF = 3; - */ - PROTOBUF = 3, - - /** - * @generated from enum value: PAYLOAD_ENCODING_JSON = 4; - */ - JSON = 4, - - /** - * @generated from enum value: PAYLOAD_ENCODING_XML = 5; - */ - XML = 5, - - /** - * @generated from enum value: PAYLOAD_ENCODING_TEXT = 6; - */ - TEXT = 6, - - /** - * @generated from enum value: PAYLOAD_ENCODING_UTF8 = 7; - */ - UTF8 = 7, - - /** - * @generated from enum value: PAYLOAD_ENCODING_MESSAGE_PACK = 8; - */ - MESSAGE_PACK = 8, - - /** - * @generated from enum value: PAYLOAD_ENCODING_SMILE = 9; - */ - SMILE = 9, - - /** - * @generated from enum value: PAYLOAD_ENCODING_BINARY = 10; - */ - BINARY = 10, - - /** - * @generated from enum value: PAYLOAD_ENCODING_CONSUMER_OFFSETS = 11; - */ - CONSUMER_OFFSETS = 11, -} -// Retrieve enum metadata with: proto3.getEnumType(PayloadEncoding) -proto3.util.setEnumType(PayloadEncoding, "redpanda.api.console.v1alpha.PayloadEncoding", [ - { no: 0, name: "PAYLOAD_ENCODING_UNSPECIFIED" }, - { no: 1, name: "PAYLOAD_ENCODING_NONE" }, - { no: 2, name: "PAYLOAD_ENCODING_AVRO" }, - { no: 3, name: "PAYLOAD_ENCODING_PROTOBUF" }, - { no: 4, name: "PAYLOAD_ENCODING_JSON" }, - { no: 5, name: "PAYLOAD_ENCODING_XML" }, - { no: 6, name: "PAYLOAD_ENCODING_TEXT" }, - { no: 7, name: "PAYLOAD_ENCODING_UTF8" }, - { no: 8, name: "PAYLOAD_ENCODING_MESSAGE_PACK" }, - { no: 9, name: "PAYLOAD_ENCODING_SMILE" }, - { no: 10, name: "PAYLOAD_ENCODING_BINARY" }, - { no: 11, name: "PAYLOAD_ENCODING_CONSUMER_OFFSETS" }, -]); +import { CompressionType, KafkaRecordHeader, PayloadEncoding } from "./common_pb"; /** * ListMessagesRequest is the request for ListMessages call. @@ -717,52 +594,3 @@ export class TroubleshootReport extends Message { } } -/** - * KafkaRecordHeader is the record header. - * - * @generated from message redpanda.api.console.v1alpha.KafkaRecordHeader - */ -export class KafkaRecordHeader extends Message { - /** - * Header key. - * - * @generated from field: string key = 1; - */ - key = ""; - - /** - * Header value. - * - * @generated from field: bytes value = 2; - */ - value = new Uint8Array(0); - - constructor(data?: PartialMessage) { - super(); - proto3.util.initPartial(data, this); - } - - static readonly runtime: typeof proto3 = proto3; - static readonly typeName = "redpanda.api.console.v1alpha.KafkaRecordHeader"; - static readonly fields: FieldList = proto3.util.newFieldList(() => [ - { no: 1, name: "key", kind: "scalar", T: 9 /* ScalarType.STRING */ }, - { no: 2, name: "value", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, - ]); - - static fromBinary(bytes: Uint8Array, options?: Partial): KafkaRecordHeader { - return new KafkaRecordHeader().fromBinary(bytes, options); - } - - static fromJson(jsonValue: JsonValue, options?: Partial): KafkaRecordHeader { - return new KafkaRecordHeader().fromJson(jsonValue, options); - } - - static fromJsonString(jsonString: string, options?: Partial): KafkaRecordHeader { - return new KafkaRecordHeader().fromJsonString(jsonString, options); - } - - static equals(a: KafkaRecordHeader | PlainMessage | undefined, b: KafkaRecordHeader | PlainMessage | undefined): boolean { - return proto3.util.equals(KafkaRecordHeader, a, b); - } -} - diff --git a/frontend/src/protogen/redpanda/api/console/v1alpha/publish_message_pb.ts b/frontend/src/protogen/redpanda/api/console/v1alpha/publish_message_pb.ts new file mode 100644 index 000000000..510e71328 --- /dev/null +++ b/frontend/src/protogen/redpanda/api/console/v1alpha/publish_message_pb.ts @@ -0,0 +1,145 @@ +// @generated by protoc-gen-es v1.3.0 with parameter "target=ts,import_extension=" +// @generated from file redpanda/api/console/v1alpha/publish_message.proto (package redpanda.api.console.v1alpha, syntax proto3) +/* eslint-disable */ +// @ts-nocheck + +import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; +import { Message, proto3 } from "@bufbuild/protobuf"; +import { CompressionType, KafkaRecordHeader, PayloadEncoding } from "./common_pb"; + +/** + * PublishMessageRequest is the request for PublishMessage call. + * + * @generated from message redpanda.api.console.v1alpha.PublishMessageRequest + */ +export class PublishMessageRequest extends Message { + /** + * The topics to publish to.`` + * + * @generated from field: repeated string topics = 1; + */ + topics: string[] = []; + + /** + * @generated from field: int32 partition_id = 2; + */ + partitionId = 0; + + /** + * The compression to be used. + * + * @generated from field: redpanda.api.console.v1alpha.CompressionType compression = 3; + */ + compression = CompressionType.UNSPECIFIED; + + /** + * Use transactions. + * + * @generated from field: bool use_transactions = 4; + */ + useTransactions = false; + + /** + * Payload encoding to use. + * + * @generated from field: redpanda.api.console.v1alpha.PayloadEncoding encoding = 5; + */ + encoding = PayloadEncoding.UNSPECIFIED; + + /** + * Kafka record headers. + * + * @generated from field: repeated redpanda.api.console.v1alpha.KafkaRecordHeader headers = 6; + */ + headers: KafkaRecordHeader[] = []; + + /** + * @generated from field: string key = 7; + */ + key = ""; + + /** + * @generated from field: string value = 8; + */ + value = ""; + + /** + * @generated from field: int32 schema_id = 9; + */ + schemaId = 0; + + /** + * @generated from field: int32 index = 10; + */ + index = 0; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "redpanda.api.console.v1alpha.PublishMessageRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "topics", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, + { no: 2, name: "partition_id", kind: "scalar", T: 5 /* ScalarType.INT32 */ }, + { no: 3, name: "compression", kind: "enum", T: proto3.getEnumType(CompressionType) }, + { no: 4, name: "use_transactions", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, + { no: 5, name: "encoding", kind: "enum", T: proto3.getEnumType(PayloadEncoding) }, + { no: 6, name: "headers", kind: "message", T: KafkaRecordHeader, repeated: true }, + { no: 7, name: "key", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 8, name: "value", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 9, name: "schema_id", kind: "scalar", T: 5 /* ScalarType.INT32 */ }, + { no: 10, name: "index", kind: "scalar", T: 5 /* ScalarType.INT32 */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): PublishMessageRequest { + return new PublishMessageRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): PublishMessageRequest { + return new PublishMessageRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): PublishMessageRequest { + return new PublishMessageRequest().fromJsonString(jsonString, options); + } + + static equals(a: PublishMessageRequest | PlainMessage | undefined, b: PublishMessageRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(PublishMessageRequest, a, b); + } +} + +/** + * PublishMessageResponse is the response for PublishMessage call. + * + * @generated from message redpanda.api.console.v1alpha.PublishMessageResponse + */ +export class PublishMessageResponse extends Message { + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "redpanda.api.console.v1alpha.PublishMessageResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): PublishMessageResponse { + return new PublishMessageResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): PublishMessageResponse { + return new PublishMessageResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): PublishMessageResponse { + return new PublishMessageResponse().fromJsonString(jsonString, options); + } + + static equals(a: PublishMessageResponse | PlainMessage | undefined, b: PublishMessageResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(PublishMessageResponse, a, b); + } +} + diff --git a/proto/redpanda/api/console/v1alpha/common.proto b/proto/redpanda/api/console/v1alpha/common.proto new file mode 100644 index 000000000..be3be53aa --- /dev/null +++ b/proto/redpanda/api/console/v1alpha/common.proto @@ -0,0 +1,33 @@ +syntax = "proto3"; + +package redpanda.api.console.v1alpha; + +enum CompressionType { + COMPRESSION_TYPE_UNSPECIFIED = 0; + COMPRESSION_TYPE_UNCOMPRESSED = 1; + COMPRESSION_TYPE_GZIP = 2; + COMPRESSION_TYPE_SNAPPY = 3; + COMPRESSION_TYPE_LZ4 = 4; + COMPRESSION_TYPE_ZSTD = 5; +} + +enum PayloadEncoding { + PAYLOAD_ENCODING_UNSPECIFIED = 0; + PAYLOAD_ENCODING_NONE = 1; + PAYLOAD_ENCODING_AVRO = 2; + PAYLOAD_ENCODING_PROTOBUF = 3; + PAYLOAD_ENCODING_JSON = 4; + PAYLOAD_ENCODING_XML = 5; + PAYLOAD_ENCODING_TEXT = 6; + PAYLOAD_ENCODING_UTF8 = 7; + PAYLOAD_ENCODING_MESSAGE_PACK = 8; + PAYLOAD_ENCODING_SMILE = 9; + PAYLOAD_ENCODING_BINARY = 10; + PAYLOAD_ENCODING_CONSUMER_OFFSETS = 11; +} + +// KafkaRecordHeader is the record header. +message KafkaRecordHeader { + string key = 1; // Header key. + bytes value = 2; // Header value. +} diff --git a/proto/redpanda/api/console/v1alpha/console_service.proto b/proto/redpanda/api/console/v1alpha/console_service.proto new file mode 100644 index 000000000..7a702290b --- /dev/null +++ b/proto/redpanda/api/console/v1alpha/console_service.proto @@ -0,0 +1,15 @@ +syntax = "proto3"; + +package redpanda.api.console.v1alpha; + +import "redpanda/api/console/v1alpha/list_messages.proto"; +import "redpanda/api/console/v1alpha/publish_message.proto"; + +// ConsoleService represents the Console API service. +service ConsoleService { + // ListMessages lists the messages according to the requested query. + rpc ListMessages(ListMessagesRequest) returns (stream ListMessagesResponse) {} + + // PublishMessage publishes message. + rpc PublishMessage(PublishMessageRequest) returns (PublishMessageResponse) {} +} diff --git a/proto/redpanda/api/console/v1alpha/list_messages.proto b/proto/redpanda/api/console/v1alpha/list_messages.proto index a7c8932a4..57ae89a8e 100644 --- a/proto/redpanda/api/console/v1alpha/list_messages.proto +++ b/proto/redpanda/api/console/v1alpha/list_messages.proto @@ -3,6 +3,7 @@ syntax = "proto3"; package redpanda.api.console.v1alpha; import "buf/validate/validate.proto"; +import "redpanda/api/console/v1alpha/common.proto"; // ListMessagesRequest is the request for ListMessages call. message ListMessagesRequest { @@ -82,7 +83,7 @@ message ListMessagesResponse { // KafkaRecordPayload is record payload representation. message KafkaRecordPayload { bytes original_payload = 1; // Original raw binary payload. - int32 payload_size = 2; // Payload size in bytes. + int32 payload_size = 2; // Payload size in bytes. PayloadEncoding encoding = 3; // Payload encoding if we have been able to detect. bytes normalized_payload = 4; // Normilized user friendly representation of the payload. bool is_payload_too_large = 5; // If payload is too large for deserialization. @@ -93,39 +94,3 @@ message TroubleshootReport { string serde_name = 1; string message = 2; } - -// KafkaRecordHeader is the record header. -message KafkaRecordHeader { - string key = 1; // Header key. - bytes value = 2; // Header value. -} - -enum CompressionType { - COMPRESSION_TYPE_UNSPECIFIED = 0; - COMPRESSION_TYPE_UNCOMPRESSED = 1; - COMPRESSION_TYPE_GZIP = 2; - COMPRESSION_TYPE_SNAPPY = 3; - COMPRESSION_TYPE_LZ4 = 4; - COMPRESSION_TYPE_ZSTD = 5; -} - -enum PayloadEncoding { - PAYLOAD_ENCODING_UNSPECIFIED = 0; - PAYLOAD_ENCODING_NONE = 1; - PAYLOAD_ENCODING_AVRO = 2; - PAYLOAD_ENCODING_PROTOBUF = 3; - PAYLOAD_ENCODING_JSON = 4; - PAYLOAD_ENCODING_XML = 5; - PAYLOAD_ENCODING_TEXT = 6; - PAYLOAD_ENCODING_UTF8 = 7; - PAYLOAD_ENCODING_MESSAGE_PACK = 8; - PAYLOAD_ENCODING_SMILE = 9; - PAYLOAD_ENCODING_BINARY = 10; - PAYLOAD_ENCODING_CONSUMER_OFFSETS = 11; -} - -// ConsoleService represents the Console API service. -service ConsoleService { - // ListMessages lists the messages according to the requested query. - rpc ListMessages(ListMessagesRequest) returns (stream ListMessagesResponse) {} -} diff --git a/proto/redpanda/api/console/v1alpha/publish_message.proto b/proto/redpanda/api/console/v1alpha/publish_message.proto new file mode 100644 index 000000000..e5527d100 --- /dev/null +++ b/proto/redpanda/api/console/v1alpha/publish_message.proto @@ -0,0 +1,25 @@ +syntax = "proto3"; + +package redpanda.api.console.v1alpha; + +import "redpanda/api/console/v1alpha/common.proto"; + +// import "buf/validate/validate.proto"; + +// PublishMessageRequest is the request for PublishMessage call. +message PublishMessageRequest { + repeated string topics = 1; // The topics to publish to.`` + int32 partition_id = 2; + CompressionType compression = 3; // The compression to be used. + bool use_transactions = 4; // Use transactions. + PayloadEncoding encoding = 5; // Payload encoding to use. + repeated KafkaRecordHeader headers = 6; // Kafka record headers. + string key = 7; + string value = 8; + + int32 schema_id = 9; + int32 index = 10; +} + +// PublishMessageResponse is the response for PublishMessage call. +message PublishMessageResponse {} diff --git a/taskfiles/proto.yaml b/taskfiles/proto.yaml index 89bd841b6..23bb4a8e2 100644 --- a/taskfiles/proto.yaml +++ b/taskfiles/proto.yaml @@ -13,7 +13,7 @@ tasks: - install-buf desc: format proto files cmds: - - PATH={{.BUILD_ROOT}}/bin:$PATH buf format -w --exit-code + - PATH={{.BUILD_ROOT}}/bin:$PATH buf format -w mod-update: deps: @@ -26,6 +26,7 @@ tasks: desc: generate protos deps: - install-buf + - format cmds: # Delete previously generated files - rm -rf {{.BACKEND_ROOT}}/internal/protogen