github.com/thanos-io/thanos@v0.32.5/pkg/store/labelpb/types.proto (about)

     1  // Copyright (c) The Thanos Authors.
     2  // Licensed under the Apache License 2.0.
     3  
     4  syntax = "proto3";
     5  package thanos;
     6  
     7  option go_package = "labelpb";
     8  
     9  import "gogoproto/gogo.proto";
    10  
    11  option (gogoproto.sizer_all) = true;
    12  option (gogoproto.marshaler_all) = true;
    13  option (gogoproto.unmarshaler_all) = true;
    14  option (gogoproto.goproto_getters_all) = false;
    15  
    16  // Do not generate XXX fields to reduce memory footprint and opening a door
    17  // for zero-copy casts to/from prometheus data types.
    18  option (gogoproto.goproto_unkeyed_all) = false;
    19  option (gogoproto.goproto_unrecognized_all) = false;
    20  option (gogoproto.goproto_sizecache_all) = false;
    21  
    22  message Label {
    23      string name  = 1;
    24      string value = 2;
    25  }
    26  
    27  message LabelSet {
    28      repeated Label labels = 1 [(gogoproto.nullable) = false];
    29  }
    30  
    31  message ZLabelSet {
    32      repeated Label labels = 1 [(gogoproto.nullable) = false, (gogoproto.customtype) = "ZLabel"];
    33  }