go.chromium.org/luci@v0.0.0-20240309015107-7cdc2e660f33/logdog/api/endpoints/coordinator/services/v1/state.pb.go (about) 1 // Copyright 2016 The LUCI Authors. All rights reserved. 2 // Use of this source code is governed under the Apache License, Version 2.0 3 // that can be found in the LICENSE file. 4 5 // Code generated by protoc-gen-go. DO NOT EDIT. 6 // versions: 7 // protoc-gen-go v1.31.0 8 // protoc v3.21.7 9 // source: go.chromium.org/luci/logdog/api/endpoints/coordinator/services/v1/state.proto 10 11 package logdog 12 13 import ( 14 protoreflect "google.golang.org/protobuf/reflect/protoreflect" 15 protoimpl "google.golang.org/protobuf/runtime/protoimpl" 16 reflect "reflect" 17 sync "sync" 18 ) 19 20 const ( 21 // Verify that this generated code is sufficiently up-to-date. 22 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) 23 // Verify that runtime/protoimpl is sufficiently up-to-date. 24 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) 25 ) 26 27 // InternalLogStreamState is the log stream state value communicated to 28 // services. 29 type InternalLogStreamState struct { 30 state protoimpl.MessageState 31 sizeCache protoimpl.SizeCache 32 unknownFields protoimpl.UnknownFields 33 34 // ProtoVersion is the protobuf version for this stream. 35 ProtoVersion string `protobuf:"bytes,1,opt,name=proto_version,json=protoVersion,proto3" json:"proto_version,omitempty"` 36 // The log stream's secret. 37 // 38 // Note that the secret is returned! This is okay, since this endpoint is only 39 // accessible to trusted services. The secret can be cached by services to 40 // validate stream information without needing to ping the Coordinator in 41 // between each update. 42 Secret []byte `protobuf:"bytes,2,opt,name=secret,proto3" json:"secret,omitempty"` 43 // The stream index of the log stream's terminal message. If the value is -1, 44 // the log is still streaming. 45 TerminalIndex int64 `protobuf:"varint,3,opt,name=terminal_index,json=terminalIndex,proto3" json:"terminal_index,omitempty"` 46 // If the log stream has been archived. 47 Archived bool `protobuf:"varint,4,opt,name=archived,proto3" json:"archived,omitempty"` 48 // If the log stream has been purged. 49 Purged bool `protobuf:"varint,5,opt,name=purged,proto3" json:"purged,omitempty"` 50 } 51 52 func (x *InternalLogStreamState) Reset() { 53 *x = InternalLogStreamState{} 54 if protoimpl.UnsafeEnabled { 55 mi := &file_go_chromium_org_luci_logdog_api_endpoints_coordinator_services_v1_state_proto_msgTypes[0] 56 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 57 ms.StoreMessageInfo(mi) 58 } 59 } 60 61 func (x *InternalLogStreamState) String() string { 62 return protoimpl.X.MessageStringOf(x) 63 } 64 65 func (*InternalLogStreamState) ProtoMessage() {} 66 67 func (x *InternalLogStreamState) ProtoReflect() protoreflect.Message { 68 mi := &file_go_chromium_org_luci_logdog_api_endpoints_coordinator_services_v1_state_proto_msgTypes[0] 69 if protoimpl.UnsafeEnabled && x != nil { 70 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 71 if ms.LoadMessageInfo() == nil { 72 ms.StoreMessageInfo(mi) 73 } 74 return ms 75 } 76 return mi.MessageOf(x) 77 } 78 79 // Deprecated: Use InternalLogStreamState.ProtoReflect.Descriptor instead. 80 func (*InternalLogStreamState) Descriptor() ([]byte, []int) { 81 return file_go_chromium_org_luci_logdog_api_endpoints_coordinator_services_v1_state_proto_rawDescGZIP(), []int{0} 82 } 83 84 func (x *InternalLogStreamState) GetProtoVersion() string { 85 if x != nil { 86 return x.ProtoVersion 87 } 88 return "" 89 } 90 91 func (x *InternalLogStreamState) GetSecret() []byte { 92 if x != nil { 93 return x.Secret 94 } 95 return nil 96 } 97 98 func (x *InternalLogStreamState) GetTerminalIndex() int64 { 99 if x != nil { 100 return x.TerminalIndex 101 } 102 return 0 103 } 104 105 func (x *InternalLogStreamState) GetArchived() bool { 106 if x != nil { 107 return x.Archived 108 } 109 return false 110 } 111 112 func (x *InternalLogStreamState) GetPurged() bool { 113 if x != nil { 114 return x.Purged 115 } 116 return false 117 } 118 119 var File_go_chromium_org_luci_logdog_api_endpoints_coordinator_services_v1_state_proto protoreflect.FileDescriptor 120 121 var file_go_chromium_org_luci_logdog_api_endpoints_coordinator_services_v1_state_proto_rawDesc = []byte{ 122 0x0a, 0x4d, 0x67, 0x6f, 0x2e, 0x63, 0x68, 0x72, 0x6f, 0x6d, 0x69, 0x75, 0x6d, 0x2e, 0x6f, 0x72, 123 0x67, 0x2f, 0x6c, 0x75, 0x63, 0x69, 0x2f, 0x6c, 0x6f, 0x67, 0x64, 0x6f, 0x67, 0x2f, 0x61, 0x70, 124 0x69, 0x2f, 0x65, 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x73, 0x2f, 0x63, 0x6f, 0x6f, 0x72, 125 0x64, 0x69, 0x6e, 0x61, 0x74, 0x6f, 0x72, 0x2f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 126 0x2f, 0x76, 0x31, 0x2f, 0x73, 0x74, 0x61, 0x74, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 127 0x06, 0x6c, 0x6f, 0x67, 0x64, 0x6f, 0x67, 0x22, 0xb0, 0x01, 0x0a, 0x16, 0x49, 0x6e, 0x74, 0x65, 128 0x72, 0x6e, 0x61, 0x6c, 0x4c, 0x6f, 0x67, 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x53, 0x74, 0x61, 129 0x74, 0x65, 0x12, 0x23, 0x0a, 0x0d, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x5f, 0x76, 0x65, 0x72, 0x73, 130 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x70, 0x72, 0x6f, 0x74, 0x6f, 131 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x16, 0x0a, 0x06, 0x73, 0x65, 0x63, 0x72, 0x65, 132 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x06, 0x73, 0x65, 0x63, 0x72, 0x65, 0x74, 0x12, 133 0x25, 0x0a, 0x0e, 0x74, 0x65, 0x72, 0x6d, 0x69, 0x6e, 0x61, 0x6c, 0x5f, 0x69, 0x6e, 0x64, 0x65, 134 0x78, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0d, 0x74, 0x65, 0x72, 0x6d, 0x69, 0x6e, 0x61, 135 0x6c, 0x49, 0x6e, 0x64, 0x65, 0x78, 0x12, 0x1a, 0x0a, 0x08, 0x61, 0x72, 0x63, 0x68, 0x69, 0x76, 136 0x65, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x08, 0x52, 0x08, 0x61, 0x72, 0x63, 0x68, 0x69, 0x76, 137 0x65, 0x64, 0x12, 0x16, 0x0a, 0x06, 0x70, 0x75, 0x72, 0x67, 0x65, 0x64, 0x18, 0x05, 0x20, 0x01, 138 0x28, 0x08, 0x52, 0x06, 0x70, 0x75, 0x72, 0x67, 0x65, 0x64, 0x42, 0x4a, 0x5a, 0x48, 0x67, 0x6f, 139 0x2e, 0x63, 0x68, 0x72, 0x6f, 0x6d, 0x69, 0x75, 0x6d, 0x2e, 0x6f, 0x72, 0x67, 0x2f, 0x6c, 0x75, 140 0x63, 0x69, 0x2f, 0x6c, 0x6f, 0x67, 0x64, 0x6f, 0x67, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x65, 0x6e, 141 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x73, 0x2f, 0x63, 0x6f, 0x6f, 0x72, 0x64, 0x69, 0x6e, 0x61, 142 0x74, 0x6f, 0x72, 0x2f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2f, 0x76, 0x31, 0x3b, 143 0x6c, 0x6f, 0x67, 0x64, 0x6f, 0x67, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, 144 } 145 146 var ( 147 file_go_chromium_org_luci_logdog_api_endpoints_coordinator_services_v1_state_proto_rawDescOnce sync.Once 148 file_go_chromium_org_luci_logdog_api_endpoints_coordinator_services_v1_state_proto_rawDescData = file_go_chromium_org_luci_logdog_api_endpoints_coordinator_services_v1_state_proto_rawDesc 149 ) 150 151 func file_go_chromium_org_luci_logdog_api_endpoints_coordinator_services_v1_state_proto_rawDescGZIP() []byte { 152 file_go_chromium_org_luci_logdog_api_endpoints_coordinator_services_v1_state_proto_rawDescOnce.Do(func() { 153 file_go_chromium_org_luci_logdog_api_endpoints_coordinator_services_v1_state_proto_rawDescData = protoimpl.X.CompressGZIP(file_go_chromium_org_luci_logdog_api_endpoints_coordinator_services_v1_state_proto_rawDescData) 154 }) 155 return file_go_chromium_org_luci_logdog_api_endpoints_coordinator_services_v1_state_proto_rawDescData 156 } 157 158 var file_go_chromium_org_luci_logdog_api_endpoints_coordinator_services_v1_state_proto_msgTypes = make([]protoimpl.MessageInfo, 1) 159 var file_go_chromium_org_luci_logdog_api_endpoints_coordinator_services_v1_state_proto_goTypes = []interface{}{ 160 (*InternalLogStreamState)(nil), // 0: logdog.InternalLogStreamState 161 } 162 var file_go_chromium_org_luci_logdog_api_endpoints_coordinator_services_v1_state_proto_depIdxs = []int32{ 163 0, // [0:0] is the sub-list for method output_type 164 0, // [0:0] is the sub-list for method input_type 165 0, // [0:0] is the sub-list for extension type_name 166 0, // [0:0] is the sub-list for extension extendee 167 0, // [0:0] is the sub-list for field type_name 168 } 169 170 func init() { 171 file_go_chromium_org_luci_logdog_api_endpoints_coordinator_services_v1_state_proto_init() 172 } 173 func file_go_chromium_org_luci_logdog_api_endpoints_coordinator_services_v1_state_proto_init() { 174 if File_go_chromium_org_luci_logdog_api_endpoints_coordinator_services_v1_state_proto != nil { 175 return 176 } 177 if !protoimpl.UnsafeEnabled { 178 file_go_chromium_org_luci_logdog_api_endpoints_coordinator_services_v1_state_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { 179 switch v := v.(*InternalLogStreamState); i { 180 case 0: 181 return &v.state 182 case 1: 183 return &v.sizeCache 184 case 2: 185 return &v.unknownFields 186 default: 187 return nil 188 } 189 } 190 } 191 type x struct{} 192 out := protoimpl.TypeBuilder{ 193 File: protoimpl.DescBuilder{ 194 GoPackagePath: reflect.TypeOf(x{}).PkgPath(), 195 RawDescriptor: file_go_chromium_org_luci_logdog_api_endpoints_coordinator_services_v1_state_proto_rawDesc, 196 NumEnums: 0, 197 NumMessages: 1, 198 NumExtensions: 0, 199 NumServices: 0, 200 }, 201 GoTypes: file_go_chromium_org_luci_logdog_api_endpoints_coordinator_services_v1_state_proto_goTypes, 202 DependencyIndexes: file_go_chromium_org_luci_logdog_api_endpoints_coordinator_services_v1_state_proto_depIdxs, 203 MessageInfos: file_go_chromium_org_luci_logdog_api_endpoints_coordinator_services_v1_state_proto_msgTypes, 204 }.Build() 205 File_go_chromium_org_luci_logdog_api_endpoints_coordinator_services_v1_state_proto = out.File 206 file_go_chromium_org_luci_logdog_api_endpoints_coordinator_services_v1_state_proto_rawDesc = nil 207 file_go_chromium_org_luci_logdog_api_endpoints_coordinator_services_v1_state_proto_goTypes = nil 208 file_go_chromium_org_luci_logdog_api_endpoints_coordinator_services_v1_state_proto_depIdxs = nil 209 }