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

     1  // Copyright 2024 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/proto/bq/text_artifact_row.proto
    20  
    21  package resultpb
    22  
    23  import (
    24  	protoreflect "google.golang.org/protobuf/reflect/protoreflect"
    25  	protoimpl "google.golang.org/protobuf/runtime/protoimpl"
    26  	timestamppb "google.golang.org/protobuf/types/known/timestamppb"
    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  // TextArtifactRow represents a row in a BigQuery table `luci-resultdb.internal.text_artifacts`.
    39  type TextArtifactRow struct {
    40  	state         protoimpl.MessageState
    41  	sizeCache     protoimpl.SizeCache
    42  	unknownFields protoimpl.UnknownFields
    43  
    44  	// The LUCI project that the artifact belongs to (e.g. chromium).
    45  	Project string `protobuf:"bytes,1,opt,name=project,proto3" json:"project,omitempty"`
    46  	// The LUCI Realm the the artifact exists under.
    47  	// Only contain the sub-realm (e.g. "try", instead of "chromium:try).
    48  	// The project is stored in the project field.
    49  	Realm string `protobuf:"bytes,2,opt,name=realm,proto3" json:"realm,omitempty"`
    50  	// The invocation ID of the parent invocation.
    51  	InvocationId string `protobuf:"bytes,3,opt,name=invocation_id,json=invocationId,proto3" json:"invocation_id,omitempty"`
    52  	// The test that the artifact belongs to.
    53  	// It will be empty if the artifact is an invocation-level artifact.
    54  	TestId string `protobuf:"bytes,4,opt,name=test_id,json=testId,proto3" json:"test_id,omitempty"`
    55  	// The result that the artifact belongs to.
    56  	// It will be empty if the artifact is an invocation-level artifact.
    57  	ResultId string `protobuf:"bytes,5,opt,name=result_id,json=resultId,proto3" json:"result_id,omitempty"`
    58  	// Id of the artifact.
    59  	// Refer to luci.resultdb.v1.Artifact.artifact_id for details.
    60  	ArtifactId string `protobuf:"bytes,6,opt,name=artifact_id,json=artifactId,proto3" json:"artifact_id,omitempty"`
    61  	// The number of shards needed to store this artifact.
    62  	NumShards int32 `protobuf:"varint,7,opt,name=num_shards,json=numShards,proto3" json:"num_shards,omitempty"`
    63  	// Id of the artifact shard.
    64  	// Row size limit is 10MB according to
    65  	// https://cloud.google.com/bigquery/quotas#write-api-limits.
    66  	// The content itself will have a smaller limit because we will
    67  	// have other data in the row and overhead.
    68  	// If the size of the artifact content is larger than the limit, the data will be
    69  	// sharded.
    70  	//
    71  	// When sharding, we try to keep the content size as close to the
    72  	// limit as possible, but we will also prefer sharding at line-break
    73  	// or white-space characters if such characters exist near the sharding
    74  	// position (within 1KB). Sharding will never break a multi-byte Unicode
    75  	// character.
    76  	//
    77  	// shard_id is monotonically increasing and starts at 0.
    78  	ShardId int32 `protobuf:"varint,8,opt,name=shard_id,json=shardId,proto3" json:"shard_id,omitempty"`
    79  	// Optional. Content type of the artifact (e.g. text/plain).
    80  	ContentType string `protobuf:"bytes,9,opt,name=content_type,json=contentType,proto3" json:"content_type,omitempty"`
    81  	// Artifact shard content.
    82  	// Encoded as UTF-8.
    83  	Content string `protobuf:"bytes,10,opt,name=content,proto3" json:"content,omitempty"`
    84  	// Size of the artifact content in bytes.
    85  	// This is the sum of shard_content_size of all shards of the artifact.
    86  	ArtifactContentSize int32 `protobuf:"varint,11,opt,name=artifact_content_size,json=artifactContentSize,proto3" json:"artifact_content_size,omitempty"`
    87  	// Size of the shard content in bytes.
    88  	ShardContentSize int32 `protobuf:"varint,12,opt,name=shard_content_size,json=shardContentSize,proto3" json:"shard_content_size,omitempty"`
    89  	// Partition_time is used to partition the table.
    90  	// It is the time when the exported invocation was created in Spanner.
    91  	// It is NOT the time when the row is inserted into BigQuery table.
    92  	PartitionTime *timestamppb.Timestamp `protobuf:"bytes,13,opt,name=partition_time,json=partitionTime,proto3" json:"partition_time,omitempty"`
    93  	// String of the format <artifact_id>:<shard_id>.
    94  	// This is for the purpose of clustering.
    95  	ArtifactShard string `protobuf:"bytes,14,opt,name=artifact_shard,json=artifactShard,proto3" json:"artifact_shard,omitempty"`
    96  }
    97  
    98  func (x *TextArtifactRow) Reset() {
    99  	*x = TextArtifactRow{}
   100  	if protoimpl.UnsafeEnabled {
   101  		mi := &file_go_chromium_org_luci_resultdb_proto_bq_text_artifact_row_proto_msgTypes[0]
   102  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   103  		ms.StoreMessageInfo(mi)
   104  	}
   105  }
   106  
   107  func (x *TextArtifactRow) String() string {
   108  	return protoimpl.X.MessageStringOf(x)
   109  }
   110  
   111  func (*TextArtifactRow) ProtoMessage() {}
   112  
   113  func (x *TextArtifactRow) ProtoReflect() protoreflect.Message {
   114  	mi := &file_go_chromium_org_luci_resultdb_proto_bq_text_artifact_row_proto_msgTypes[0]
   115  	if protoimpl.UnsafeEnabled && x != nil {
   116  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   117  		if ms.LoadMessageInfo() == nil {
   118  			ms.StoreMessageInfo(mi)
   119  		}
   120  		return ms
   121  	}
   122  	return mi.MessageOf(x)
   123  }
   124  
   125  // Deprecated: Use TextArtifactRow.ProtoReflect.Descriptor instead.
   126  func (*TextArtifactRow) Descriptor() ([]byte, []int) {
   127  	return file_go_chromium_org_luci_resultdb_proto_bq_text_artifact_row_proto_rawDescGZIP(), []int{0}
   128  }
   129  
   130  func (x *TextArtifactRow) GetProject() string {
   131  	if x != nil {
   132  		return x.Project
   133  	}
   134  	return ""
   135  }
   136  
   137  func (x *TextArtifactRow) GetRealm() string {
   138  	if x != nil {
   139  		return x.Realm
   140  	}
   141  	return ""
   142  }
   143  
   144  func (x *TextArtifactRow) GetInvocationId() string {
   145  	if x != nil {
   146  		return x.InvocationId
   147  	}
   148  	return ""
   149  }
   150  
   151  func (x *TextArtifactRow) GetTestId() string {
   152  	if x != nil {
   153  		return x.TestId
   154  	}
   155  	return ""
   156  }
   157  
   158  func (x *TextArtifactRow) GetResultId() string {
   159  	if x != nil {
   160  		return x.ResultId
   161  	}
   162  	return ""
   163  }
   164  
   165  func (x *TextArtifactRow) GetArtifactId() string {
   166  	if x != nil {
   167  		return x.ArtifactId
   168  	}
   169  	return ""
   170  }
   171  
   172  func (x *TextArtifactRow) GetNumShards() int32 {
   173  	if x != nil {
   174  		return x.NumShards
   175  	}
   176  	return 0
   177  }
   178  
   179  func (x *TextArtifactRow) GetShardId() int32 {
   180  	if x != nil {
   181  		return x.ShardId
   182  	}
   183  	return 0
   184  }
   185  
   186  func (x *TextArtifactRow) GetContentType() string {
   187  	if x != nil {
   188  		return x.ContentType
   189  	}
   190  	return ""
   191  }
   192  
   193  func (x *TextArtifactRow) GetContent() string {
   194  	if x != nil {
   195  		return x.Content
   196  	}
   197  	return ""
   198  }
   199  
   200  func (x *TextArtifactRow) GetArtifactContentSize() int32 {
   201  	if x != nil {
   202  		return x.ArtifactContentSize
   203  	}
   204  	return 0
   205  }
   206  
   207  func (x *TextArtifactRow) GetShardContentSize() int32 {
   208  	if x != nil {
   209  		return x.ShardContentSize
   210  	}
   211  	return 0
   212  }
   213  
   214  func (x *TextArtifactRow) GetPartitionTime() *timestamppb.Timestamp {
   215  	if x != nil {
   216  		return x.PartitionTime
   217  	}
   218  	return nil
   219  }
   220  
   221  func (x *TextArtifactRow) GetArtifactShard() string {
   222  	if x != nil {
   223  		return x.ArtifactShard
   224  	}
   225  	return ""
   226  }
   227  
   228  var File_go_chromium_org_luci_resultdb_proto_bq_text_artifact_row_proto protoreflect.FileDescriptor
   229  
   230  var file_go_chromium_org_luci_resultdb_proto_bq_text_artifact_row_proto_rawDesc = []byte{
   231  	0x0a, 0x3e, 0x67, 0x6f, 0x2e, 0x63, 0x68, 0x72, 0x6f, 0x6d, 0x69, 0x75, 0x6d, 0x2e, 0x6f, 0x72,
   232  	0x67, 0x2f, 0x6c, 0x75, 0x63, 0x69, 0x2f, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x64, 0x62, 0x2f,
   233  	0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x62, 0x71, 0x2f, 0x74, 0x65, 0x78, 0x74, 0x5f, 0x61, 0x72,
   234  	0x74, 0x69, 0x66, 0x61, 0x63, 0x74, 0x5f, 0x72, 0x6f, 0x77, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
   235  	0x12, 0x10, 0x6c, 0x75, 0x63, 0x69, 0x2e, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x64, 0x62, 0x2e,
   236  	0x62, 0x71, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f,
   237  	0x62, 0x75, 0x66, 0x2f, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x2e, 0x70, 0x72,
   238  	0x6f, 0x74, 0x6f, 0x22, 0x80, 0x04, 0x0a, 0x0f, 0x54, 0x65, 0x78, 0x74, 0x41, 0x72, 0x74, 0x69,
   239  	0x66, 0x61, 0x63, 0x74, 0x52, 0x6f, 0x77, 0x12, 0x18, 0x0a, 0x07, 0x70, 0x72, 0x6f, 0x6a, 0x65,
   240  	0x63, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63,
   241  	0x74, 0x12, 0x14, 0x0a, 0x05, 0x72, 0x65, 0x61, 0x6c, 0x6d, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09,
   242  	0x52, 0x05, 0x72, 0x65, 0x61, 0x6c, 0x6d, 0x12, 0x23, 0x0a, 0x0d, 0x69, 0x6e, 0x76, 0x6f, 0x63,
   243  	0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c,
   244  	0x69, 0x6e, 0x76, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x12, 0x17, 0x0a, 0x07,
   245  	0x74, 0x65, 0x73, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x74,
   246  	0x65, 0x73, 0x74, 0x49, 0x64, 0x12, 0x1b, 0x0a, 0x09, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x5f,
   247  	0x69, 0x64, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74,
   248  	0x49, 0x64, 0x12, 0x1f, 0x0a, 0x0b, 0x61, 0x72, 0x74, 0x69, 0x66, 0x61, 0x63, 0x74, 0x5f, 0x69,
   249  	0x64, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x61, 0x72, 0x74, 0x69, 0x66, 0x61, 0x63,
   250  	0x74, 0x49, 0x64, 0x12, 0x1d, 0x0a, 0x0a, 0x6e, 0x75, 0x6d, 0x5f, 0x73, 0x68, 0x61, 0x72, 0x64,
   251  	0x73, 0x18, 0x07, 0x20, 0x01, 0x28, 0x05, 0x52, 0x09, 0x6e, 0x75, 0x6d, 0x53, 0x68, 0x61, 0x72,
   252  	0x64, 0x73, 0x12, 0x19, 0x0a, 0x08, 0x73, 0x68, 0x61, 0x72, 0x64, 0x5f, 0x69, 0x64, 0x18, 0x08,
   253  	0x20, 0x01, 0x28, 0x05, 0x52, 0x07, 0x73, 0x68, 0x61, 0x72, 0x64, 0x49, 0x64, 0x12, 0x21, 0x0a,
   254  	0x0c, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x09, 0x20,
   255  	0x01, 0x28, 0x09, 0x52, 0x0b, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x54, 0x79, 0x70, 0x65,
   256  	0x12, 0x18, 0x0a, 0x07, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x18, 0x0a, 0x20, 0x01, 0x28,
   257  	0x09, 0x52, 0x07, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x12, 0x32, 0x0a, 0x15, 0x61, 0x72,
   258  	0x74, 0x69, 0x66, 0x61, 0x63, 0x74, 0x5f, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x5f, 0x73,
   259  	0x69, 0x7a, 0x65, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x05, 0x52, 0x13, 0x61, 0x72, 0x74, 0x69, 0x66,
   260  	0x61, 0x63, 0x74, 0x43, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x53, 0x69, 0x7a, 0x65, 0x12, 0x2c,
   261  	0x0a, 0x12, 0x73, 0x68, 0x61, 0x72, 0x64, 0x5f, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x5f,
   262  	0x73, 0x69, 0x7a, 0x65, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x05, 0x52, 0x10, 0x73, 0x68, 0x61, 0x72,
   263  	0x64, 0x43, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x53, 0x69, 0x7a, 0x65, 0x12, 0x41, 0x0a, 0x0e,
   264  	0x70, 0x61, 0x72, 0x74, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x0d,
   265  	0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72,
   266  	0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70,
   267  	0x52, 0x0d, 0x70, 0x61, 0x72, 0x74, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x54, 0x69, 0x6d, 0x65, 0x12,
   268  	0x25, 0x0a, 0x0e, 0x61, 0x72, 0x74, 0x69, 0x66, 0x61, 0x63, 0x74, 0x5f, 0x73, 0x68, 0x61, 0x72,
   269  	0x64, 0x18, 0x0e, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x61, 0x72, 0x74, 0x69, 0x66, 0x61, 0x63,
   270  	0x74, 0x53, 0x68, 0x61, 0x72, 0x64, 0x42, 0x31, 0x5a, 0x2f, 0x67, 0x6f, 0x2e, 0x63, 0x68, 0x72,
   271  	0x6f, 0x6d, 0x69, 0x75, 0x6d, 0x2e, 0x6f, 0x72, 0x67, 0x2f, 0x6c, 0x75, 0x63, 0x69, 0x2f, 0x72,
   272  	0x65, 0x73, 0x75, 0x6c, 0x74, 0x64, 0x62, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x62, 0x71,
   273  	0x3b, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f,
   274  	0x33,
   275  }
   276  
   277  var (
   278  	file_go_chromium_org_luci_resultdb_proto_bq_text_artifact_row_proto_rawDescOnce sync.Once
   279  	file_go_chromium_org_luci_resultdb_proto_bq_text_artifact_row_proto_rawDescData = file_go_chromium_org_luci_resultdb_proto_bq_text_artifact_row_proto_rawDesc
   280  )
   281  
   282  func file_go_chromium_org_luci_resultdb_proto_bq_text_artifact_row_proto_rawDescGZIP() []byte {
   283  	file_go_chromium_org_luci_resultdb_proto_bq_text_artifact_row_proto_rawDescOnce.Do(func() {
   284  		file_go_chromium_org_luci_resultdb_proto_bq_text_artifact_row_proto_rawDescData = protoimpl.X.CompressGZIP(file_go_chromium_org_luci_resultdb_proto_bq_text_artifact_row_proto_rawDescData)
   285  	})
   286  	return file_go_chromium_org_luci_resultdb_proto_bq_text_artifact_row_proto_rawDescData
   287  }
   288  
   289  var file_go_chromium_org_luci_resultdb_proto_bq_text_artifact_row_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
   290  var file_go_chromium_org_luci_resultdb_proto_bq_text_artifact_row_proto_goTypes = []interface{}{
   291  	(*TextArtifactRow)(nil),       // 0: luci.resultdb.bq.TextArtifactRow
   292  	(*timestamppb.Timestamp)(nil), // 1: google.protobuf.Timestamp
   293  }
   294  var file_go_chromium_org_luci_resultdb_proto_bq_text_artifact_row_proto_depIdxs = []int32{
   295  	1, // 0: luci.resultdb.bq.TextArtifactRow.partition_time:type_name -> google.protobuf.Timestamp
   296  	1, // [1:1] is the sub-list for method output_type
   297  	1, // [1:1] is the sub-list for method input_type
   298  	1, // [1:1] is the sub-list for extension type_name
   299  	1, // [1:1] is the sub-list for extension extendee
   300  	0, // [0:1] is the sub-list for field type_name
   301  }
   302  
   303  func init() { file_go_chromium_org_luci_resultdb_proto_bq_text_artifact_row_proto_init() }
   304  func file_go_chromium_org_luci_resultdb_proto_bq_text_artifact_row_proto_init() {
   305  	if File_go_chromium_org_luci_resultdb_proto_bq_text_artifact_row_proto != nil {
   306  		return
   307  	}
   308  	if !protoimpl.UnsafeEnabled {
   309  		file_go_chromium_org_luci_resultdb_proto_bq_text_artifact_row_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
   310  			switch v := v.(*TextArtifactRow); i {
   311  			case 0:
   312  				return &v.state
   313  			case 1:
   314  				return &v.sizeCache
   315  			case 2:
   316  				return &v.unknownFields
   317  			default:
   318  				return nil
   319  			}
   320  		}
   321  	}
   322  	type x struct{}
   323  	out := protoimpl.TypeBuilder{
   324  		File: protoimpl.DescBuilder{
   325  			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
   326  			RawDescriptor: file_go_chromium_org_luci_resultdb_proto_bq_text_artifact_row_proto_rawDesc,
   327  			NumEnums:      0,
   328  			NumMessages:   1,
   329  			NumExtensions: 0,
   330  			NumServices:   0,
   331  		},
   332  		GoTypes:           file_go_chromium_org_luci_resultdb_proto_bq_text_artifact_row_proto_goTypes,
   333  		DependencyIndexes: file_go_chromium_org_luci_resultdb_proto_bq_text_artifact_row_proto_depIdxs,
   334  		MessageInfos:      file_go_chromium_org_luci_resultdb_proto_bq_text_artifact_row_proto_msgTypes,
   335  	}.Build()
   336  	File_go_chromium_org_luci_resultdb_proto_bq_text_artifact_row_proto = out.File
   337  	file_go_chromium_org_luci_resultdb_proto_bq_text_artifact_row_proto_rawDesc = nil
   338  	file_go_chromium_org_luci_resultdb_proto_bq_text_artifact_row_proto_goTypes = nil
   339  	file_go_chromium_org_luci_resultdb_proto_bq_text_artifact_row_proto_depIdxs = nil
   340  }