| OLD | NEW |
| 1 // Code generated by protoc-gen-go. | 1 // Code generated by protoc-gen-go. |
| 2 // source: state.proto | 2 // source: state.proto |
| 3 // DO NOT EDIT! | 3 // DO NOT EDIT! |
| 4 | 4 |
| 5 package logdog | 5 package logdog |
| 6 | 6 |
| 7 import proto "github.com/golang/protobuf/proto" | 7 import proto "github.com/golang/protobuf/proto" |
| 8 import fmt "fmt" | 8 import fmt "fmt" |
| 9 import math "math" | 9 import math "math" |
| 10 import google_protobuf "github.com/luci/luci-go/common/proto/google" | 10 import google_protobuf "github.com/luci/luci-go/common/proto/google" |
| 11 | 11 |
| 12 // Reference imports to suppress errors if they are not otherwise used. | 12 // Reference imports to suppress errors if they are not otherwise used. |
| 13 var _ = proto.Marshal | 13 var _ = proto.Marshal |
| 14 var _ = fmt.Errorf | 14 var _ = fmt.Errorf |
| 15 var _ = math.Inf | 15 var _ = math.Inf |
| 16 | 16 |
| 17 // LogStreamState is a bidirectional state value used in UpdateStream calls. | 17 // LogStreamState is a bidirectional state value used in UpdateStream calls. |
| 18 // | 18 // |
| 19 // LogStreamState is embeddable in Endpoints request/response structs. | 19 // LogStreamState is embeddable in Endpoints request/response structs. |
| 20 type LogStreamState struct { | 20 type LogStreamState struct { |
| 21 // ProtoVersion is the protobuf version for this stream. | 21 // ProtoVersion is the protobuf version for this stream. |
| 22 ProtoVersion string `protobuf:"bytes,1,opt,name=proto_version,json=proto
Version" json:"proto_version,omitempty"` | 22 ProtoVersion string `protobuf:"bytes,1,opt,name=proto_version,json=proto
Version" json:"proto_version,omitempty"` |
| 23 // The time when the log stream was registered with the Coordinator. | 23 // The time when the log stream was registered with the Coordinator. |
| 24 Created *google_protobuf.Timestamp `protobuf:"bytes,2,opt,name=created"
json:"created,omitempty"` | 24 Created *google_protobuf.Timestamp `protobuf:"bytes,2,opt,name=created"
json:"created,omitempty"` |
| 25 // The time when the log stream's state was last updated. | |
| 26 Updated *google_protobuf.Timestamp `protobuf:"bytes,3,opt,name=updated"
json:"updated,omitempty"` | |
| 27 // The stream index of the log stream's terminal message. If the value i
s -1, | 25 // The stream index of the log stream's terminal message. If the value i
s -1, |
| 28 // the log is still streaming. | 26 // the log is still streaming. |
| 29 » TerminalIndex int64 `protobuf:"varint,4,opt,name=terminal_index,json=ter
minalIndex" json:"terminal_index,omitempty"` | 27 » TerminalIndex int64 `protobuf:"varint,3,opt,name=terminal_index,json=ter
minalIndex" json:"terminal_index,omitempty"` |
| 30 // If non-nil, the log stream is archived, and this field contains archi
val | 28 // If non-nil, the log stream is archived, and this field contains archi
val |
| 31 // details. | 29 // details. |
| 32 » Archive *LogStreamState_ArchiveInfo `protobuf:"bytes,5,opt,name=archive"
json:"archive,omitempty"` | 30 » Archive *LogStreamState_ArchiveInfo `protobuf:"bytes,4,opt,name=archive"
json:"archive,omitempty"` |
| 33 // Indicates the purged state of a log. A log that has been purged is on
ly | 31 // Indicates the purged state of a log. A log that has been purged is on
ly |
| 34 // acknowledged to administrative clients. | 32 // acknowledged to administrative clients. |
| 35 » Purged bool `protobuf:"varint,6,opt,name=purged" json:"purged,omitempty"
` | 33 » Purged bool `protobuf:"varint,5,opt,name=purged" json:"purged,omitempty"
` |
| 36 } | 34 } |
| 37 | 35 |
| 38 func (m *LogStreamState) Reset() { *m = LogStreamState{} } | 36 func (m *LogStreamState) Reset() { *m = LogStreamState{} } |
| 39 func (m *LogStreamState) String() string { return proto.CompactTextSt
ring(m) } | 37 func (m *LogStreamState) String() string { return proto.CompactTextSt
ring(m) } |
| 40 func (*LogStreamState) ProtoMessage() {} | 38 func (*LogStreamState) ProtoMessage() {} |
| 41 func (*LogStreamState) Descriptor() ([]byte, []int) { return fileDescriptor1, []
int{0} } | 39 func (*LogStreamState) Descriptor() ([]byte, []int) { return fileDescriptor1, []
int{0} } |
| 42 | 40 |
| 43 func (m *LogStreamState) GetCreated() *google_protobuf.Timestamp { | 41 func (m *LogStreamState) GetCreated() *google_protobuf.Timestamp { |
| 44 if m != nil { | 42 if m != nil { |
| 45 return m.Created | 43 return m.Created |
| 46 } | 44 } |
| 47 return nil | 45 return nil |
| 48 } | 46 } |
| 49 | 47 |
| 50 func (m *LogStreamState) GetUpdated() *google_protobuf.Timestamp { | |
| 51 if m != nil { | |
| 52 return m.Updated | |
| 53 } | |
| 54 return nil | |
| 55 } | |
| 56 | |
| 57 func (m *LogStreamState) GetArchive() *LogStreamState_ArchiveInfo { | 48 func (m *LogStreamState) GetArchive() *LogStreamState_ArchiveInfo { |
| 58 if m != nil { | 49 if m != nil { |
| 59 return m.Archive | 50 return m.Archive |
| 60 } | 51 } |
| 61 return nil | 52 return nil |
| 62 } | 53 } |
| 63 | 54 |
| 64 // ArchiveInfo contains archive details for the log stream. | 55 // ArchiveInfo contains archive details for the log stream. |
| 65 type LogStreamState_ArchiveInfo struct { | 56 type LogStreamState_ArchiveInfo struct { |
| 66 // The Google Storage URL where the log stream's index is archived. | 57 // The Google Storage URL where the log stream's index is archived. |
| 67 IndexUrl string `protobuf:"bytes,1,opt,name=index_url,json=indexUrl" jso
n:"index_url,omitempty"` | 58 IndexUrl string `protobuf:"bytes,1,opt,name=index_url,json=indexUrl" jso
n:"index_url,omitempty"` |
| 68 // The Google Storage URL where the log stream's raw stream data is arch
ived. | 59 // The Google Storage URL where the log stream's raw stream data is arch
ived. |
| 69 StreamUrl string `protobuf:"bytes,2,opt,name=stream_url,json=streamUrl"
json:"stream_url,omitempty"` | 60 StreamUrl string `protobuf:"bytes,2,opt,name=stream_url,json=streamUrl"
json:"stream_url,omitempty"` |
| 70 // The Google Storage URL where the log stream's assembled data is archi
ved. | 61 // The Google Storage URL where the log stream's assembled data is archi
ved. |
| 71 DataUrl string `protobuf:"bytes,3,opt,name=data_url,json=dataUrl" json:"
data_url,omitempty"` | 62 DataUrl string `protobuf:"bytes,3,opt,name=data_url,json=dataUrl" json:"
data_url,omitempty"` |
| 72 // If true, all log entries between 0 and terminal_index were archived.
If | 63 // If true, all log entries between 0 and terminal_index were archived.
If |
| 73 // false, this indicates that the log stream was not completely loaded i
nto | 64 // false, this indicates that the log stream was not completely loaded i
nto |
| 74 // intermediate storage when the archival interval expired. | 65 // intermediate storage when the archival interval expired. |
| 75 » Whole bool `protobuf:"varint,4,opt,name=whole" json:"whole,omitempty"` | 66 » Complete bool `protobuf:"varint,4,opt,name=complete" json:"complete,omit
empty"` |
| 67 » // The number of log |
| 68 » LogEntryCount int64 `protobuf:"varint,5,opt,name=log_entry_count,json=lo
gEntryCount" json:"log_entry_count,omitempty"` |
| 76 } | 69 } |
| 77 | 70 |
| 78 func (m *LogStreamState_ArchiveInfo) Reset() { *m = LogStream
State_ArchiveInfo{} } | 71 func (m *LogStreamState_ArchiveInfo) Reset() { *m = LogStream
State_ArchiveInfo{} } |
| 79 func (m *LogStreamState_ArchiveInfo) String() string { return proto.C
ompactTextString(m) } | 72 func (m *LogStreamState_ArchiveInfo) String() string { return proto.C
ompactTextString(m) } |
| 80 func (*LogStreamState_ArchiveInfo) ProtoMessage() {} | 73 func (*LogStreamState_ArchiveInfo) ProtoMessage() {} |
| 81 func (*LogStreamState_ArchiveInfo) Descriptor() ([]byte, []int) { return fileDes
criptor1, []int{0, 0} } | 74 func (*LogStreamState_ArchiveInfo) Descriptor() ([]byte, []int) { return fileDes
criptor1, []int{0, 0} } |
| 82 | 75 |
| 83 func init() { | 76 func init() { |
| 84 proto.RegisterType((*LogStreamState)(nil), "logdog.LogStreamState") | 77 proto.RegisterType((*LogStreamState)(nil), "logdog.LogStreamState") |
| 85 proto.RegisterType((*LogStreamState_ArchiveInfo)(nil), "logdog.LogStream
State.ArchiveInfo") | 78 proto.RegisterType((*LogStreamState_ArchiveInfo)(nil), "logdog.LogStream
State.ArchiveInfo") |
| 86 } | 79 } |
| 87 | 80 |
| 88 var fileDescriptor1 = []byte{ | 81 var fileDescriptor1 = []byte{ |
| 89 » // 299 bytes of a gzipped FileDescriptorProto | 82 » // 315 bytes of a gzipped FileDescriptorProto |
| 90 » 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x09, 0x6e, 0x88, 0x02, 0xff, 0x84, 0x90,
0x31, 0x4f, 0xfb, 0x30, | 83 » 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x09, 0x6e, 0x88, 0x02, 0xff, 0x54, 0x90,
0xc1, 0x4b, 0xc3, 0x30, |
| 91 » 0x10, 0xc5, 0xd5, 0xe6, 0xdf, 0x34, 0xbd, 0xfc, 0xdb, 0xc1, 0x42, 0x28,
0x04, 0x21, 0x50, 0x11, | 84 » 0x14, 0xc6, 0xd9, 0xaa, 0x5b, 0xf7, 0xe6, 0x26, 0xe4, 0x20, 0xb5, 0x22,
0xca, 0x44, 0xf1, 0x94, |
| 92 » 0x12, 0x93, 0x2b, 0x01, 0x23, 0x0b, 0x63, 0x25, 0x26, 0x17, 0x58, 0xa3,
0xb4, 0x71, 0xdd, 0x48, | 85 » 0x81, 0x7a, 0xf4, 0x22, 0xe2, 0x61, 0xe0, 0xa9, 0x53, 0xaf, 0x25, 0x6b,
0xb3, 0x58, 0x48, 0x93, |
| 93 » 0x4e, 0x1c, 0x39, 0x4e, 0x41, 0x7c, 0x14, 0x3e, 0x2d, 0xf6, 0x39, 0x91,
0x60, 0x62, 0xbc, 0xf7, | 86 » 0x92, 0xa5, 0x43, 0xff, 0x0e, 0xff, 0x09, 0xff, 0x4c, 0x93, 0x97, 0x55,
0xf4, 0xf8, 0x7e, 0xdf, |
| 94 » 0x7b, 0xcf, 0xcf, 0x77, 0x10, 0xb7, 0x26, 0x37, 0x9c, 0x36, 0x5a, 0x19,
0x45, 0x42, 0xa9, 0x44, | 87 » 0xfb, 0xf2, 0x7d, 0x2f, 0x30, 0xde, 0x58, 0x66, 0x39, 0x6d, 0x8c, 0xb6,
0x9a, 0x0c, 0xa4, 0x16, |
| 95 » 0xa1, 0x44, 0x7a, 0x29, 0x94, 0x12, 0x92, 0xaf, 0x50, 0xdd, 0x76, 0xfb,
0x95, 0x29, 0x2b, 0x6e, | 88 » 0xa5, 0x16, 0xe9, 0x99, 0xd0, 0x5a, 0x48, 0x3e, 0x47, 0xba, 0x6a, 0xd7,
0x73, 0x5b, 0xd5, 0xdc, |
| 96 » 0x8d, 0x55, 0xe3, 0x8d, 0xcb, 0xaf, 0x00, 0x16, 0xcf, 0x4a, 0x6c, 0x8c,
0xe6, 0x79, 0xb5, 0x71, | 89 » 0x2d, 0xd6, 0x4d, 0x58, 0x9c, 0x7d, 0x45, 0x30, 0x7d, 0xd6, 0x62, 0x69,
0x0d, 0x67, 0xf5, 0xd2, |
| 97 » 0x2f, 0x90, 0x6b, 0x98, 0x23, 0xcb, 0x8e, 0x5c, 0xb7, 0xa5, 0xaa, 0x93,
0xd1, 0xd5, 0xe8, 0x76, | 90 » 0xbf, 0x40, 0x2e, 0x60, 0x82, 0x5a, 0xbe, 0xe5, 0x66, 0x53, 0x69, 0x95,
0xf4, 0xce, 0x7b, 0xd7, |
| 98 » 0xc6, 0xfe, 0xa3, 0xf8, 0xe6, 0x35, 0xf2, 0x00, 0xd3, 0x9d, 0x8d, 0x18,
0x5e, 0x24, 0x63, 0x8b, | 91 » 0xa3, 0xec, 0x00, 0xe1, 0x5b, 0x60, 0xe4, 0x0e, 0x86, 0x85, 0xb3, 0x58,
0x5e, 0x26, 0x7d, 0x27, |
| 99 » 0xe3, 0xbb, 0x94, 0xfa, 0x2a, 0x3a, 0x54, 0xd1, 0x97, 0xa1, 0x8a, 0x0d,
0x56, 0x97, 0xea, 0x9a, | 92 » 0x8f, 0x6f, 0x52, 0x1a, 0xa2, 0x68, 0x17, 0x45, 0x5f, 0xba, 0xa8, 0xac,
0x5b, 0x25, 0x97, 0x30, |
| 100 » 0x02, 0x53, 0xc1, 0xdf, 0xa9, 0xde, 0x4a, 0x6e, 0x60, 0x61, 0xb8, 0xae,
0xca, 0x3a, 0x97, 0x59, | 93 » 0xb5, 0xdc, 0xd4, 0x95, 0x62, 0x32, 0xaf, 0x54, 0xc9, 0x3f, 0x92, 0xc8,
0x99, 0xa3, 0x6c, 0xd2, |
| 101 » 0x59, 0x17, 0xfc, 0x23, 0xf9, 0x67, 0xc3, 0x01, 0x9b, 0x0f, 0xea, 0xda,
0x89, 0xe4, 0x11, 0xa6, | 94 » 0xd1, 0x85, 0x87, 0xe4, 0x1e, 0x86, 0xcc, 0x14, 0xef, 0xd5, 0x96, 0x27,
0x7b, 0xf8, 0xf8, 0x8c, |
| 102 » 0xb9, 0xde, 0x1d, 0xca, 0x23, 0x4f, 0x26, 0xf8, 0xf8, 0x92, 0xfa, 0x2b,
0xd0, 0xdf, 0x0b, 0xd2, | 95 » 0x86, 0x7b, 0xe8, 0xff, 0xaa, 0xf4, 0x21, 0x6c, 0x2d, 0xd4, 0x5a, 0x67,
0x9d, 0x85, 0x1c, 0xc1, |
| 103 » 0x27, 0xef, 0x5a, 0xd7, 0x7b, 0xc5, 0x86, 0x08, 0x39, 0x85, 0xb0, 0xe9,
0xb4, 0xb0, 0x3f, 0x0b, | 96 » 0xa0, 0x69, 0x8d, 0x70, 0xcd, 0xf6, 0x9d, 0x39, 0xce, 0x76, 0x53, 0xfa,
0xdd, 0x83, 0xf1, 0x1f, |
| 104 » 0x6d, 0x38, 0x62, 0xfd, 0x94, 0x7e, 0x42, 0xfc, 0xc3, 0x4f, 0xce, 0x61,
0x86, 0x5f, 0xc8, 0x3a, | 97 » 0x03, 0x39, 0x81, 0x11, 0x76, 0xc8, 0x5b, 0x23, 0x77, 0x37, 0xc6, 0x08,
0x5e, 0x8d, 0x24, 0xa7, |
| 105 » 0x2d, 0xfb, 0xc3, 0x44, 0x28, 0xbc, 0x6a, 0x49, 0x2e, 0x00, 0x5a, 0xec,
0x41, 0x3a, 0x46, 0x3a, | 98 » 0x00, 0x1b, 0x0c, 0x42, 0xb5, 0x8f, 0xea, 0x28, 0x10, 0x2f, 0x1f, 0x43,
0x5c, 0x32, 0xcb, 0x50, |
| 106 » 0xf3, 0x8a, 0xc3, 0x67, 0x10, 0xd9, 0x85, 0x72, 0x84, 0x01, 0xc2, 0xa9,
0x9b, 0x1d, 0x3a, 0x81, | 99 » 0x8c, 0x50, 0x1c, 0xfa, 0xd9, 0x4b, 0x29, 0xc4, 0x85, 0xae, 0x1b, 0xc9,
0x6d, 0x68, 0x1f, 0x67, |
| 107 » 0xc9, 0xfb, 0x41, 0x49, 0x8e, 0x9b, 0x45, 0xcc, 0x0f, 0xdb, 0x10, 0xaf,
0x72, 0xff, 0x1d, 0x00, | 100 » 0xbf, 0x33, 0xb9, 0x82, 0x43, 0x77, 0x48, 0xce, 0x95, 0x35, 0x9f, 0x79,
0xa1, 0x5b, 0x65, 0xb1, |
| 108 » 0x00, 0xff, 0xff, 0x3b, 0x13, 0xfb, 0x13, 0xdb, 0x01, 0x00, 0x00, | 101 » 0xa3, 0xfb, 0x00, 0x87, 0x9f, 0x3c, 0x7d, 0xf4, 0x70, 0x35, 0xc0, 0x4f,
0xbc, 0xfd, 0x09, 0x00, |
| 102 » 0x00, 0xff, 0xff, 0x50, 0xfa, 0x01, 0x03, 0xd4, 0x01, 0x00, 0x00, |
| 109 } | 103 } |
| OLD | NEW |