| // Code generated by protoc-gen-go. DO NOT EDIT. |
| // source: github.com/luci/luci-go/logdog/api/logpb/butler.proto |
| |
| /* |
| Package logpb is a generated protocol buffer package. |
| |
| It is generated from these files: |
| github.com/luci/luci-go/logdog/api/logpb/butler.proto |
| github.com/luci/luci-go/logdog/api/logpb/log.proto |
| |
| It has these top-level messages: |
| ButlerMetadata |
| ButlerLogBundle |
| LogStreamDescriptor |
| Text |
| Binary |
| Datagram |
| LogEntry |
| LogIndex |
| */ |
| package logpb |
| |
| import proto "github.com/golang/protobuf/proto" |
| import fmt "fmt" |
| import math "math" |
| import google_protobuf "github.com/golang/protobuf/ptypes/timestamp" |
| |
| // Reference imports to suppress errors if they are not otherwise used. |
| var _ = proto.Marshal |
| var _ = fmt.Errorf |
| var _ = math.Inf |
| |
| // This is a compile-time assertion to ensure that this generated file |
| // is compatible with the proto package it is being compiled against. |
| // A compilation error at this line likely means your copy of the |
| // proto package needs to be updated. |
| const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package |
| |
| // |
| // This enumerates the possible contents of published Butler data. |
| type ButlerMetadata_ContentType int32 |
| |
| const ( |
| // An invalid content type. Do not use. |
| ButlerMetadata_Invalid ButlerMetadata_ContentType = 0 |
| // The published data is a ButlerLogBundle protobuf message. |
| ButlerMetadata_ButlerLogBundle ButlerMetadata_ContentType = 1 |
| ) |
| |
| var ButlerMetadata_ContentType_name = map[int32]string{ |
| 0: "Invalid", |
| 1: "ButlerLogBundle", |
| } |
| var ButlerMetadata_ContentType_value = map[string]int32{ |
| "Invalid": 0, |
| "ButlerLogBundle": 1, |
| } |
| |
| func (x ButlerMetadata_ContentType) String() string { |
| return proto.EnumName(ButlerMetadata_ContentType_name, int32(x)) |
| } |
| func (ButlerMetadata_ContentType) EnumDescriptor() ([]byte, []int) { |
| return fileDescriptor0, []int{0, 0} |
| } |
| |
| // Compression scheme of attached data. |
| type ButlerMetadata_Compression int32 |
| |
| const ( |
| ButlerMetadata_NONE ButlerMetadata_Compression = 0 |
| ButlerMetadata_ZLIB ButlerMetadata_Compression = 1 |
| ) |
| |
| var ButlerMetadata_Compression_name = map[int32]string{ |
| 0: "NONE", |
| 1: "ZLIB", |
| } |
| var ButlerMetadata_Compression_value = map[string]int32{ |
| "NONE": 0, |
| "ZLIB": 1, |
| } |
| |
| func (x ButlerMetadata_Compression) String() string { |
| return proto.EnumName(ButlerMetadata_Compression_name, int32(x)) |
| } |
| func (ButlerMetadata_Compression) EnumDescriptor() ([]byte, []int) { |
| return fileDescriptor0, []int{0, 1} |
| } |
| |
| // |
| // ButlerMetadata appears as a frame at the beginning of Butler published data |
| // to describe the remainder of the contents. |
| type ButlerMetadata struct { |
| // This is the type of data in the subsequent frame. |
| Type ButlerMetadata_ContentType `protobuf:"varint,1,opt,name=type,enum=logpb.ButlerMetadata_ContentType" json:"type,omitempty"` |
| Compression ButlerMetadata_Compression `protobuf:"varint,2,opt,name=compression,enum=logpb.ButlerMetadata_Compression" json:"compression,omitempty"` |
| // The protobuf version string (see version.go). |
| ProtoVersion string `protobuf:"bytes,3,opt,name=proto_version,json=protoVersion" json:"proto_version,omitempty"` |
| } |
| |
| func (m *ButlerMetadata) Reset() { *m = ButlerMetadata{} } |
| func (m *ButlerMetadata) String() string { return proto.CompactTextString(m) } |
| func (*ButlerMetadata) ProtoMessage() {} |
| func (*ButlerMetadata) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{0} } |
| |
| func (m *ButlerMetadata) GetType() ButlerMetadata_ContentType { |
| if m != nil { |
| return m.Type |
| } |
| return ButlerMetadata_Invalid |
| } |
| |
| func (m *ButlerMetadata) GetCompression() ButlerMetadata_Compression { |
| if m != nil { |
| return m.Compression |
| } |
| return ButlerMetadata_NONE |
| } |
| |
| func (m *ButlerMetadata) GetProtoVersion() string { |
| if m != nil { |
| return m.ProtoVersion |
| } |
| return "" |
| } |
| |
| // |
| // A message containing log data in transit from the Butler. |
| // |
| // The Butler is capable of conserving bandwidth by bundling collected log |
| // messages together into this protocol buffer. Based on Butler bundling |
| // settings, this message can represent anything from a single LogRecord to |
| // multiple LogRecords belonging to several different streams. |
| // |
| // Entries in a Log Bundle are fully self-descriptive: no additional information |
| // is needed to fully associate the contained data with its proper place in |
| // the source log stream. |
| type ButlerLogBundle struct { |
| // |
| // (DEPRECATED) Stream source information. Now supplied during prefix |
| // registration. |
| DeprecatedSource string `protobuf:"bytes,1,opt,name=deprecated_source,json=deprecatedSource" json:"deprecated_source,omitempty"` |
| // The timestamp when this bundle was generated. |
| // |
| // This field will be used for debugging and internal accounting. |
| Timestamp *google_protobuf.Timestamp `protobuf:"bytes,2,opt,name=timestamp" json:"timestamp,omitempty"` |
| // * |
| // Each Entry is an individual set of log records for a given log stream. |
| Entries []*ButlerLogBundle_Entry `protobuf:"bytes,3,rep,name=entries" json:"entries,omitempty"` |
| // * Project specifies which luci-config project this stream belongs to. |
| Project string `protobuf:"bytes,4,opt,name=project" json:"project,omitempty"` |
| // * |
| // The log stream prefix that is shared by all bundled streams. |
| // |
| // This prefix is valid within the supplied project scope. |
| Prefix string `protobuf:"bytes,5,opt,name=prefix" json:"prefix,omitempty"` |
| // |
| // The log prefix's secret value (required). |
| // |
| // The secret is bound to all log streams that share the supplied Prefix, and |
| // The Coordinator will record the secret associated with a given log Prefix, |
| // but will not expose the secret to users. |
| // |
| // The Collector will check the secret prior to ingesting logs. If the |
| // secret doesn't match the value recorded by the Coordinator, the log |
| // will be discarded. |
| // |
| // This ensures that only the Butler instance that generated the log stream |
| // can emit log data for that stream. It also ensures that only authenticated |
| // users can write to a Prefix. |
| Secret []byte `protobuf:"bytes,6,opt,name=secret,proto3" json:"secret,omitempty"` |
| } |
| |
| func (m *ButlerLogBundle) Reset() { *m = ButlerLogBundle{} } |
| func (m *ButlerLogBundle) String() string { return proto.CompactTextString(m) } |
| func (*ButlerLogBundle) ProtoMessage() {} |
| func (*ButlerLogBundle) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{1} } |
| |
| func (m *ButlerLogBundle) GetDeprecatedSource() string { |
| if m != nil { |
| return m.DeprecatedSource |
| } |
| return "" |
| } |
| |
| func (m *ButlerLogBundle) GetTimestamp() *google_protobuf.Timestamp { |
| if m != nil { |
| return m.Timestamp |
| } |
| return nil |
| } |
| |
| func (m *ButlerLogBundle) GetEntries() []*ButlerLogBundle_Entry { |
| if m != nil { |
| return m.Entries |
| } |
| return nil |
| } |
| |
| func (m *ButlerLogBundle) GetProject() string { |
| if m != nil { |
| return m.Project |
| } |
| return "" |
| } |
| |
| func (m *ButlerLogBundle) GetPrefix() string { |
| if m != nil { |
| return m.Prefix |
| } |
| return "" |
| } |
| |
| func (m *ButlerLogBundle) GetSecret() []byte { |
| if m != nil { |
| return m.Secret |
| } |
| return nil |
| } |
| |
| // |
| // A bundle Entry describes a set of LogEntry messages originating from the |
| // same log stream. |
| type ButlerLogBundle_Entry struct { |
| // |
| // The descriptor for this entry's log stream. |
| // |
| // Each LogEntry in the "logs" field is shares this common descriptor. |
| Desc *LogStreamDescriptor `protobuf:"bytes,1,opt,name=desc" json:"desc,omitempty"` |
| // (DEPRECATED) Per-entry secret replaced with Butler-wide secret. |
| DeprecatedEntrySecret []byte `protobuf:"bytes,2,opt,name=deprecated_entry_secret,json=deprecatedEntrySecret,proto3" json:"deprecated_entry_secret,omitempty"` |
| // |
| // Whether this log entry terminates its stream. |
| // |
| // If present and "true", this field declares that this Entry is the last |
| // such entry in the stream. This fact is recorded by the Collector and |
| // registered with the Coordinator. The largest stream prefix in this Entry |
| // will be bound the stream's LogEntry records to [0:largest_prefix]. Once |
| // all messages in that range have been received, the log may be archived. |
| // |
| // Further log entries belonging to this stream with stream indices |
| // exceeding the terminal log's index will be discarded. |
| Terminal bool `protobuf:"varint,3,opt,name=terminal" json:"terminal,omitempty"` |
| // |
| // If terminal is true, this is the terminal stream index; that is, the last |
| // message index in the stream. |
| TerminalIndex uint64 `protobuf:"varint,4,opt,name=terminal_index,json=terminalIndex" json:"terminal_index,omitempty"` |
| // |
| // Log entries attached to this record. These MUST be sequential. |
| // |
| // This is the main log entry content. |
| Logs []*LogEntry `protobuf:"bytes,5,rep,name=logs" json:"logs,omitempty"` |
| } |
| |
| func (m *ButlerLogBundle_Entry) Reset() { *m = ButlerLogBundle_Entry{} } |
| func (m *ButlerLogBundle_Entry) String() string { return proto.CompactTextString(m) } |
| func (*ButlerLogBundle_Entry) ProtoMessage() {} |
| func (*ButlerLogBundle_Entry) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{1, 0} } |
| |
| func (m *ButlerLogBundle_Entry) GetDesc() *LogStreamDescriptor { |
| if m != nil { |
| return m.Desc |
| } |
| return nil |
| } |
| |
| func (m *ButlerLogBundle_Entry) GetDeprecatedEntrySecret() []byte { |
| if m != nil { |
| return m.DeprecatedEntrySecret |
| } |
| return nil |
| } |
| |
| func (m *ButlerLogBundle_Entry) GetTerminal() bool { |
| if m != nil { |
| return m.Terminal |
| } |
| return false |
| } |
| |
| func (m *ButlerLogBundle_Entry) GetTerminalIndex() uint64 { |
| if m != nil { |
| return m.TerminalIndex |
| } |
| return 0 |
| } |
| |
| func (m *ButlerLogBundle_Entry) GetLogs() []*LogEntry { |
| if m != nil { |
| return m.Logs |
| } |
| return nil |
| } |
| |
| func init() { |
| proto.RegisterType((*ButlerMetadata)(nil), "logpb.ButlerMetadata") |
| proto.RegisterType((*ButlerLogBundle)(nil), "logpb.ButlerLogBundle") |
| proto.RegisterType((*ButlerLogBundle_Entry)(nil), "logpb.ButlerLogBundle.Entry") |
| proto.RegisterEnum("logpb.ButlerMetadata_ContentType", ButlerMetadata_ContentType_name, ButlerMetadata_ContentType_value) |
| proto.RegisterEnum("logpb.ButlerMetadata_Compression", ButlerMetadata_Compression_name, ButlerMetadata_Compression_value) |
| } |
| |
| func init() { |
| proto.RegisterFile("github.com/luci/luci-go/logdog/api/logpb/butler.proto", fileDescriptor0) |
| } |
| |
| var fileDescriptor0 = []byte{ |
| // 499 bytes of a gzipped FileDescriptorProto |
| 0x1f, 0x8b, 0x08, 0x00, 0x00, 0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