go.chromium.org/luci@v0.0.0-20240309015107-7cdc2e660f33/resultdb/internal/proto/redis.pb.go (about)

     1  // Copyright 2019 The LUCI Authors.
     2  //
     3  // Licensed under the Apache License, Version 2.0 (the "License");
     4  // you may not use this file except in compliance with the License.
     5  // You may obtain a copy of the License at
     6  //
     7  //      http://www.apache.org/licenses/LICENSE-2.0
     8  //
     9  // Unless required by applicable law or agreed to in writing, software
    10  // distributed under the License is distributed on an "AS IS" BASIS,
    11  // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    12  // See the License for the specific language governing permissions and
    13  // limitations under the License.
    14  
    15  // Code generated by protoc-gen-go. DO NOT EDIT.
    16  // versions:
    17  // 	protoc-gen-go v1.31.0
    18  // 	protoc        v3.21.7
    19  // source: go.chromium.org/luci/resultdb/internal/proto/redis.proto
    20  
    21  package internalpb
    22  
    23  import (
    24  	v1 "go.chromium.org/luci/resultdb/proto/v1"
    25  	protoreflect "google.golang.org/protobuf/reflect/protoreflect"
    26  	protoimpl "google.golang.org/protobuf/runtime/protoimpl"
    27  	reflect "reflect"
    28  	sync "sync"
    29  )
    30  
    31  const (
    32  	// Verify that this generated code is sufficiently up-to-date.
    33  	_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
    34  	// Verify that runtime/protoimpl is sufficiently up-to-date.
    35  	_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
    36  )
    37  
    38  // ReachableInvocations captures the invocations reachable from a root
    39  // invocation (including the invocation itself). It is stored as a value
    40  // in redis for finalized invocations alongside the ID of that invocation.
    41  type ReachableInvocations struct {
    42  	state         protoimpl.MessageState
    43  	sizeCache     protoimpl.SizeCache
    44  	unknownFields protoimpl.UnknownFields
    45  
    46  	// The invocations reachable. This includes the root invocation
    47  	// (the invocation for which this cache entry is) itself.
    48  	Invocations []*ReachableInvocations_ReachableInvocation `protobuf:"bytes,1,rep,name=invocations,proto3" json:"invocations,omitempty"`
    49  	// The distinct sources in the reachable invocation graph.
    50  	// As many invocations will have the same sources, this
    51  	// is used to reduce the stored size.
    52  	Sources []*v1.Sources `protobuf:"bytes,2,rep,name=sources,proto3" json:"sources,omitempty"`
    53  }
    54  
    55  func (x *ReachableInvocations) Reset() {
    56  	*x = ReachableInvocations{}
    57  	if protoimpl.UnsafeEnabled {
    58  		mi := &file_go_chromium_org_luci_resultdb_internal_proto_redis_proto_msgTypes[0]
    59  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
    60  		ms.StoreMessageInfo(mi)
    61  	}
    62  }
    63  
    64  func (x *ReachableInvocations) String() string {
    65  	return protoimpl.X.MessageStringOf(x)
    66  }
    67  
    68  func (*ReachableInvocations) ProtoMessage() {}
    69  
    70  func (x *ReachableInvocations) ProtoReflect() protoreflect.Message {
    71  	mi := &file_go_chromium_org_luci_resultdb_internal_proto_redis_proto_msgTypes[0]
    72  	if protoimpl.UnsafeEnabled && x != nil {
    73  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
    74  		if ms.LoadMessageInfo() == nil {
    75  			ms.StoreMessageInfo(mi)
    76  		}
    77  		return ms
    78  	}
    79  	return mi.MessageOf(x)
    80  }
    81  
    82  // Deprecated: Use ReachableInvocations.ProtoReflect.Descriptor instead.
    83  func (*ReachableInvocations) Descriptor() ([]byte, []int) {
    84  	return file_go_chromium_org_luci_resultdb_internal_proto_redis_proto_rawDescGZIP(), []int{0}
    85  }
    86  
    87  func (x *ReachableInvocations) GetInvocations() []*ReachableInvocations_ReachableInvocation {
    88  	if x != nil {
    89  		return x.Invocations
    90  	}
    91  	return nil
    92  }
    93  
    94  func (x *ReachableInvocations) GetSources() []*v1.Sources {
    95  	if x != nil {
    96  		return x.Sources
    97  	}
    98  	return nil
    99  }
   100  
   101  type ReachableInvocations_ReachableInvocation struct {
   102  	state         protoimpl.MessageState
   103  	sizeCache     protoimpl.SizeCache
   104  	unknownFields protoimpl.UnknownFields
   105  
   106  	// The invocation ID.
   107  	InvocationId string `protobuf:"bytes,1,opt,name=invocation_id,json=invocationId,proto3" json:"invocation_id,omitempty"`
   108  	// Whether the invocation has any test results.
   109  	HasTestResults bool `protobuf:"varint,2,opt,name=has_test_results,json=hasTestResults,proto3" json:"has_test_results,omitempty"`
   110  	// Whether the invocation has any test exonerations.
   111  	HasTestExonerations bool `protobuf:"varint,3,opt,name=has_test_exonerations,json=hasTestExonerations,proto3" json:"has_test_exonerations,omitempty"`
   112  	// The realm of the invocation.
   113  	Realm string `protobuf:"bytes,4,opt,name=realm,proto3" json:"realm,omitempty"`
   114  	// The offset of this invocation's resolved sources
   115  	// in ReachableInvocations.sources.
   116  	// 0 indicates there are no sources, 1 indicates the
   117  	// sources are at ReachableInvocations.sources[0], 2 indicates
   118  	// the sources are at ReachableInvocations.sources[1] and so on.
   119  	SourceOffset int64 `protobuf:"varint,5,opt,name=source_offset,json=sourceOffset,proto3" json:"source_offset,omitempty"`
   120  }
   121  
   122  func (x *ReachableInvocations_ReachableInvocation) Reset() {
   123  	*x = ReachableInvocations_ReachableInvocation{}
   124  	if protoimpl.UnsafeEnabled {
   125  		mi := &file_go_chromium_org_luci_resultdb_internal_proto_redis_proto_msgTypes[1]
   126  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   127  		ms.StoreMessageInfo(mi)
   128  	}
   129  }
   130  
   131  func (x *ReachableInvocations_ReachableInvocation) String() string {
   132  	return protoimpl.X.MessageStringOf(x)
   133  }
   134  
   135  func (*ReachableInvocations_ReachableInvocation) ProtoMessage() {}
   136  
   137  func (x *ReachableInvocations_ReachableInvocation) ProtoReflect() protoreflect.Message {
   138  	mi := &file_go_chromium_org_luci_resultdb_internal_proto_redis_proto_msgTypes[1]
   139  	if protoimpl.UnsafeEnabled && x != nil {
   140  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   141  		if ms.LoadMessageInfo() == nil {
   142  			ms.StoreMessageInfo(mi)
   143  		}
   144  		return ms
   145  	}
   146  	return mi.MessageOf(x)
   147  }
   148  
   149  // Deprecated: Use ReachableInvocations_ReachableInvocation.ProtoReflect.Descriptor instead.
   150  func (*ReachableInvocations_ReachableInvocation) Descriptor() ([]byte, []int) {
   151  	return file_go_chromium_org_luci_resultdb_internal_proto_redis_proto_rawDescGZIP(), []int{0, 0}
   152  }
   153  
   154  func (x *ReachableInvocations_ReachableInvocation) GetInvocationId() string {
   155  	if x != nil {
   156  		return x.InvocationId
   157  	}
   158  	return ""
   159  }
   160  
   161  func (x *ReachableInvocations_ReachableInvocation) GetHasTestResults() bool {
   162  	if x != nil {
   163  		return x.HasTestResults
   164  	}
   165  	return false
   166  }
   167  
   168  func (x *ReachableInvocations_ReachableInvocation) GetHasTestExonerations() bool {
   169  	if x != nil {
   170  		return x.HasTestExonerations
   171  	}
   172  	return false
   173  }
   174  
   175  func (x *ReachableInvocations_ReachableInvocation) GetRealm() string {
   176  	if x != nil {
   177  		return x.Realm
   178  	}
   179  	return ""
   180  }
   181  
   182  func (x *ReachableInvocations_ReachableInvocation) GetSourceOffset() int64 {
   183  	if x != nil {
   184  		return x.SourceOffset
   185  	}
   186  	return 0
   187  }
   188  
   189  var File_go_chromium_org_luci_resultdb_internal_proto_redis_proto protoreflect.FileDescriptor
   190  
   191  var file_go_chromium_org_luci_resultdb_internal_proto_redis_proto_rawDesc = []byte{
   192  	0x0a, 0x38, 0x67, 0x6f, 0x2e, 0x63, 0x68, 0x72, 0x6f, 0x6d, 0x69, 0x75, 0x6d, 0x2e, 0x6f, 0x72,
   193  	0x67, 0x2f, 0x6c, 0x75, 0x63, 0x69, 0x2f, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x64, 0x62, 0x2f,
   194  	0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x72,
   195  	0x65, 0x64, 0x69, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x16, 0x6c, 0x75, 0x63, 0x69,
   196  	0x2e, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x64, 0x62, 0x2e, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e,
   197  	0x61, 0x6c, 0x1a, 0x37, 0x67, 0x6f, 0x2e, 0x63, 0x68, 0x72, 0x6f, 0x6d, 0x69, 0x75, 0x6d, 0x2e,
   198  	0x6f, 0x72, 0x67, 0x2f, 0x6c, 0x75, 0x63, 0x69, 0x2f, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x64,
   199  	0x62, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x76, 0x31, 0x2f, 0x69, 0x6e, 0x76, 0x6f, 0x63,
   200  	0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x85, 0x03, 0x0a, 0x14,
   201  	0x52, 0x65, 0x61, 0x63, 0x68, 0x61, 0x62, 0x6c, 0x65, 0x49, 0x6e, 0x76, 0x6f, 0x63, 0x61, 0x74,
   202  	0x69, 0x6f, 0x6e, 0x73, 0x12, 0x62, 0x0a, 0x0b, 0x69, 0x6e, 0x76, 0x6f, 0x63, 0x61, 0x74, 0x69,
   203  	0x6f, 0x6e, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x40, 0x2e, 0x6c, 0x75, 0x63, 0x69,
   204  	0x2e, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x64, 0x62, 0x2e, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e,
   205  	0x61, 0x6c, 0x2e, 0x52, 0x65, 0x61, 0x63, 0x68, 0x61, 0x62, 0x6c, 0x65, 0x49, 0x6e, 0x76, 0x6f,
   206  	0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x52, 0x65, 0x61, 0x63, 0x68, 0x61, 0x62, 0x6c,
   207  	0x65, 0x49, 0x6e, 0x76, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x0b, 0x69, 0x6e, 0x76,
   208  	0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x33, 0x0a, 0x07, 0x73, 0x6f, 0x75, 0x72,
   209  	0x63, 0x65, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x6c, 0x75, 0x63, 0x69,
   210  	0x2e, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x64, 0x62, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x6f, 0x75,
   211  	0x72, 0x63, 0x65, 0x73, 0x52, 0x07, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x1a, 0xd3, 0x01,
   212  	0x0a, 0x13, 0x52, 0x65, 0x61, 0x63, 0x68, 0x61, 0x62, 0x6c, 0x65, 0x49, 0x6e, 0x76, 0x6f, 0x63,
   213  	0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x23, 0x0a, 0x0d, 0x69, 0x6e, 0x76, 0x6f, 0x63, 0x61, 0x74,
   214  	0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x69, 0x6e,
   215  	0x76, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x12, 0x28, 0x0a, 0x10, 0x68, 0x61,
   216  	0x73, 0x5f, 0x74, 0x65, 0x73, 0x74, 0x5f, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x73, 0x18, 0x02,
   217  	0x20, 0x01, 0x28, 0x08, 0x52, 0x0e, 0x68, 0x61, 0x73, 0x54, 0x65, 0x73, 0x74, 0x52, 0x65, 0x73,
   218  	0x75, 0x6c, 0x74, 0x73, 0x12, 0x32, 0x0a, 0x15, 0x68, 0x61, 0x73, 0x5f, 0x74, 0x65, 0x73, 0x74,
   219  	0x5f, 0x65, 0x78, 0x6f, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x03, 0x20,
   220  	0x01, 0x28, 0x08, 0x52, 0x13, 0x68, 0x61, 0x73, 0x54, 0x65, 0x73, 0x74, 0x45, 0x78, 0x6f, 0x6e,
   221  	0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x14, 0x0a, 0x05, 0x72, 0x65, 0x61, 0x6c,
   222  	0x6d, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x72, 0x65, 0x61, 0x6c, 0x6d, 0x12, 0x23,
   223  	0x0a, 0x0d, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x6f, 0x66, 0x66, 0x73, 0x65, 0x74, 0x18,
   224  	0x05, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0c, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x4f, 0x66, 0x66,
   225  	0x73, 0x65, 0x74, 0x42, 0x39, 0x5a, 0x37, 0x67, 0x6f, 0x2e, 0x63, 0x68, 0x72, 0x6f, 0x6d, 0x69,
   226  	0x75, 0x6d, 0x2e, 0x6f, 0x72, 0x67, 0x2f, 0x6c, 0x75, 0x63, 0x69, 0x2f, 0x72, 0x65, 0x73, 0x75,
   227  	0x6c, 0x74, 0x64, 0x62, 0x2f, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x2f, 0x70, 0x72,
   228  	0x6f, 0x74, 0x6f, 0x3b, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x70, 0x62, 0x62, 0x06,
   229  	0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
   230  }
   231  
   232  var (
   233  	file_go_chromium_org_luci_resultdb_internal_proto_redis_proto_rawDescOnce sync.Once
   234  	file_go_chromium_org_luci_resultdb_internal_proto_redis_proto_rawDescData = file_go_chromium_org_luci_resultdb_internal_proto_redis_proto_rawDesc
   235  )
   236  
   237  func file_go_chromium_org_luci_resultdb_internal_proto_redis_proto_rawDescGZIP() []byte {
   238  	file_go_chromium_org_luci_resultdb_internal_proto_redis_proto_rawDescOnce.Do(func() {
   239  		file_go_chromium_org_luci_resultdb_internal_proto_redis_proto_rawDescData = protoimpl.X.CompressGZIP(file_go_chromium_org_luci_resultdb_internal_proto_redis_proto_rawDescData)
   240  	})
   241  	return file_go_chromium_org_luci_resultdb_internal_proto_redis_proto_rawDescData
   242  }
   243  
   244  var file_go_chromium_org_luci_resultdb_internal_proto_redis_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
   245  var file_go_chromium_org_luci_resultdb_internal_proto_redis_proto_goTypes = []interface{}{
   246  	(*ReachableInvocations)(nil),                     // 0: luci.resultdb.internal.ReachableInvocations
   247  	(*ReachableInvocations_ReachableInvocation)(nil), // 1: luci.resultdb.internal.ReachableInvocations.ReachableInvocation
   248  	(*v1.Sources)(nil),                               // 2: luci.resultdb.v1.Sources
   249  }
   250  var file_go_chromium_org_luci_resultdb_internal_proto_redis_proto_depIdxs = []int32{
   251  	1, // 0: luci.resultdb.internal.ReachableInvocations.invocations:type_name -> luci.resultdb.internal.ReachableInvocations.ReachableInvocation
   252  	2, // 1: luci.resultdb.internal.ReachableInvocations.sources:type_name -> luci.resultdb.v1.Sources
   253  	2, // [2:2] is the sub-list for method output_type
   254  	2, // [2:2] is the sub-list for method input_type
   255  	2, // [2:2] is the sub-list for extension type_name
   256  	2, // [2:2] is the sub-list for extension extendee
   257  	0, // [0:2] is the sub-list for field type_name
   258  }
   259  
   260  func init() { file_go_chromium_org_luci_resultdb_internal_proto_redis_proto_init() }
   261  func file_go_chromium_org_luci_resultdb_internal_proto_redis_proto_init() {
   262  	if File_go_chromium_org_luci_resultdb_internal_proto_redis_proto != nil {
   263  		return
   264  	}
   265  	if !protoimpl.UnsafeEnabled {
   266  		file_go_chromium_org_luci_resultdb_internal_proto_redis_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
   267  			switch v := v.(*ReachableInvocations); i {
   268  			case 0:
   269  				return &v.state
   270  			case 1:
   271  				return &v.sizeCache
   272  			case 2:
   273  				return &v.unknownFields
   274  			default:
   275  				return nil
   276  			}
   277  		}
   278  		file_go_chromium_org_luci_resultdb_internal_proto_redis_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
   279  			switch v := v.(*ReachableInvocations_ReachableInvocation); i {
   280  			case 0:
   281  				return &v.state
   282  			case 1:
   283  				return &v.sizeCache
   284  			case 2:
   285  				return &v.unknownFields
   286  			default:
   287  				return nil
   288  			}
   289  		}
   290  	}
   291  	type x struct{}
   292  	out := protoimpl.TypeBuilder{
   293  		File: protoimpl.DescBuilder{
   294  			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
   295  			RawDescriptor: file_go_chromium_org_luci_resultdb_internal_proto_redis_proto_rawDesc,
   296  			NumEnums:      0,
   297  			NumMessages:   2,
   298  			NumExtensions: 0,
   299  			NumServices:   0,
   300  		},
   301  		GoTypes:           file_go_chromium_org_luci_resultdb_internal_proto_redis_proto_goTypes,
   302  		DependencyIndexes: file_go_chromium_org_luci_resultdb_internal_proto_redis_proto_depIdxs,
   303  		MessageInfos:      file_go_chromium_org_luci_resultdb_internal_proto_redis_proto_msgTypes,
   304  	}.Build()
   305  	File_go_chromium_org_luci_resultdb_internal_proto_redis_proto = out.File
   306  	file_go_chromium_org_luci_resultdb_internal_proto_redis_proto_rawDesc = nil
   307  	file_go_chromium_org_luci_resultdb_internal_proto_redis_proto_goTypes = nil
   308  	file_go_chromium_org_luci_resultdb_internal_proto_redis_proto_depIdxs = nil
   309  }