...

Source file src/google.golang.org/genproto/googleapis/devtools/resultstore/v2/file_set.pb.go

Documentation: google.golang.org/genproto/googleapis/devtools/resultstore/v2

     1  // Copyright 2021 Google LLC
     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.26.0
    18  // 	protoc        v3.12.2
    19  // source: google/devtools/resultstore/v2/file_set.proto
    20  
    21  package resultstore
    22  
    23  import (
    24  	reflect "reflect"
    25  	sync "sync"
    26  
    27  	_ "google.golang.org/genproto/googleapis/api/annotations"
    28  	protoreflect "google.golang.org/protobuf/reflect/protoreflect"
    29  	protoimpl "google.golang.org/protobuf/runtime/protoimpl"
    30  )
    31  
    32  const (
    33  	// Verify that this generated code is sufficiently up-to-date.
    34  	_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
    35  	// Verify that runtime/protoimpl is sufficiently up-to-date.
    36  	_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
    37  )
    38  
    39  // This resource represents a set of Files and other (nested) FileSets.
    40  // A FileSet is a node in the graph, and the file_sets field represents the
    41  // outgoing edges. A resource may reference various nodes in the graph to
    42  // represent the transitive closure of all files from those nodes.
    43  // The FileSets must form a directed acyclic graph. The Upload API is unable to
    44  // enforce that the graph is acyclic at write time, and if cycles are written,
    45  // it may cause issues at read time.
    46  //
    47  // A FileSet may be referenced by other resources in conjunction with Files.
    48  //
    49  // Clients should prefer using Files directly under resources. Clients should
    50  // not use FileSets unless their usecase requires a directed acyclic graph of
    51  // Files.
    52  type FileSet struct {
    53  	state         protoimpl.MessageState
    54  	sizeCache     protoimpl.SizeCache
    55  	unknownFields protoimpl.UnknownFields
    56  
    57  	// The format of this FileSet resource name must be:
    58  	// invocations/${INVOCATION_ID}/fileSets/${url_encode(FILE_SET_ID)}
    59  	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
    60  	// The resource ID components that identify the file set. They must match the
    61  	// resource name after proper encoding.
    62  	Id *FileSet_Id `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"`
    63  	// List of names of other file sets that are referenced from this one.
    64  	// Each name must point to a file set under the same invocation. The name
    65  	// format must be: invocations/${INVOCATION_ID}/fileSets/${FILE_SET_ID}
    66  	FileSets []string `protobuf:"bytes,3,rep,name=file_sets,json=fileSets,proto3" json:"file_sets,omitempty"`
    67  	// Files that are contained within this file set.
    68  	// The uid field in the file should be unique for the Invocation.
    69  	Files []*File `protobuf:"bytes,4,rep,name=files,proto3" json:"files,omitempty"`
    70  }
    71  
    72  func (x *FileSet) Reset() {
    73  	*x = FileSet{}
    74  	if protoimpl.UnsafeEnabled {
    75  		mi := &file_google_devtools_resultstore_v2_file_set_proto_msgTypes[0]
    76  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
    77  		ms.StoreMessageInfo(mi)
    78  	}
    79  }
    80  
    81  func (x *FileSet) String() string {
    82  	return protoimpl.X.MessageStringOf(x)
    83  }
    84  
    85  func (*FileSet) ProtoMessage() {}
    86  
    87  func (x *FileSet) ProtoReflect() protoreflect.Message {
    88  	mi := &file_google_devtools_resultstore_v2_file_set_proto_msgTypes[0]
    89  	if protoimpl.UnsafeEnabled && x != nil {
    90  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
    91  		if ms.LoadMessageInfo() == nil {
    92  			ms.StoreMessageInfo(mi)
    93  		}
    94  		return ms
    95  	}
    96  	return mi.MessageOf(x)
    97  }
    98  
    99  // Deprecated: Use FileSet.ProtoReflect.Descriptor instead.
   100  func (*FileSet) Descriptor() ([]byte, []int) {
   101  	return file_google_devtools_resultstore_v2_file_set_proto_rawDescGZIP(), []int{0}
   102  }
   103  
   104  func (x *FileSet) GetName() string {
   105  	if x != nil {
   106  		return x.Name
   107  	}
   108  	return ""
   109  }
   110  
   111  func (x *FileSet) GetId() *FileSet_Id {
   112  	if x != nil {
   113  		return x.Id
   114  	}
   115  	return nil
   116  }
   117  
   118  func (x *FileSet) GetFileSets() []string {
   119  	if x != nil {
   120  		return x.FileSets
   121  	}
   122  	return nil
   123  }
   124  
   125  func (x *FileSet) GetFiles() []*File {
   126  	if x != nil {
   127  		return x.Files
   128  	}
   129  	return nil
   130  }
   131  
   132  // The resource ID components that identify the FileSet.
   133  type FileSet_Id struct {
   134  	state         protoimpl.MessageState
   135  	sizeCache     protoimpl.SizeCache
   136  	unknownFields protoimpl.UnknownFields
   137  
   138  	// The Invocation ID.
   139  	InvocationId string `protobuf:"bytes,1,opt,name=invocation_id,json=invocationId,proto3" json:"invocation_id,omitempty"`
   140  	// The FileSet ID.
   141  	FileSetId string `protobuf:"bytes,2,opt,name=file_set_id,json=fileSetId,proto3" json:"file_set_id,omitempty"`
   142  }
   143  
   144  func (x *FileSet_Id) Reset() {
   145  	*x = FileSet_Id{}
   146  	if protoimpl.UnsafeEnabled {
   147  		mi := &file_google_devtools_resultstore_v2_file_set_proto_msgTypes[1]
   148  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   149  		ms.StoreMessageInfo(mi)
   150  	}
   151  }
   152  
   153  func (x *FileSet_Id) String() string {
   154  	return protoimpl.X.MessageStringOf(x)
   155  }
   156  
   157  func (*FileSet_Id) ProtoMessage() {}
   158  
   159  func (x *FileSet_Id) ProtoReflect() protoreflect.Message {
   160  	mi := &file_google_devtools_resultstore_v2_file_set_proto_msgTypes[1]
   161  	if protoimpl.UnsafeEnabled && x != nil {
   162  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   163  		if ms.LoadMessageInfo() == nil {
   164  			ms.StoreMessageInfo(mi)
   165  		}
   166  		return ms
   167  	}
   168  	return mi.MessageOf(x)
   169  }
   170  
   171  // Deprecated: Use FileSet_Id.ProtoReflect.Descriptor instead.
   172  func (*FileSet_Id) Descriptor() ([]byte, []int) {
   173  	return file_google_devtools_resultstore_v2_file_set_proto_rawDescGZIP(), []int{0, 0}
   174  }
   175  
   176  func (x *FileSet_Id) GetInvocationId() string {
   177  	if x != nil {
   178  		return x.InvocationId
   179  	}
   180  	return ""
   181  }
   182  
   183  func (x *FileSet_Id) GetFileSetId() string {
   184  	if x != nil {
   185  		return x.FileSetId
   186  	}
   187  	return ""
   188  }
   189  
   190  var File_google_devtools_resultstore_v2_file_set_proto protoreflect.FileDescriptor
   191  
   192  var file_google_devtools_resultstore_v2_file_set_proto_rawDesc = []byte{
   193  	0x0a, 0x2d, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x64, 0x65, 0x76, 0x74, 0x6f, 0x6f, 0x6c,
   194  	0x73, 0x2f, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2f, 0x76, 0x32,
   195  	0x2f, 0x66, 0x69, 0x6c, 0x65, 0x5f, 0x73, 0x65, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12,
   196  	0x1e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x64, 0x65, 0x76, 0x74, 0x6f, 0x6f, 0x6c, 0x73,
   197  	0x2e, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x76, 0x32, 0x1a,
   198  	0x19, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x72, 0x65, 0x73, 0x6f,
   199  	0x75, 0x72, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x29, 0x67, 0x6f, 0x6f, 0x67,
   200  	0x6c, 0x65, 0x2f, 0x64, 0x65, 0x76, 0x74, 0x6f, 0x6f, 0x6c, 0x73, 0x2f, 0x72, 0x65, 0x73, 0x75,
   201  	0x6c, 0x74, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2f, 0x76, 0x32, 0x2f, 0x66, 0x69, 0x6c, 0x65, 0x2e,
   202  	0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xd4, 0x02, 0x0a, 0x07, 0x46, 0x69, 0x6c, 0x65, 0x53, 0x65,
   203  	0x74, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52,
   204  	0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x3a, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28,
   205  	0x0b, 0x32, 0x2a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x64, 0x65, 0x76, 0x74, 0x6f,
   206  	0x6f, 0x6c, 0x73, 0x2e, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e,
   207  	0x76, 0x32, 0x2e, 0x46, 0x69, 0x6c, 0x65, 0x53, 0x65, 0x74, 0x2e, 0x49, 0x64, 0x52, 0x02, 0x69,
   208  	0x64, 0x12, 0x1b, 0x0a, 0x09, 0x66, 0x69, 0x6c, 0x65, 0x5f, 0x73, 0x65, 0x74, 0x73, 0x18, 0x03,
   209  	0x20, 0x03, 0x28, 0x09, 0x52, 0x08, 0x66, 0x69, 0x6c, 0x65, 0x53, 0x65, 0x74, 0x73, 0x12, 0x3a,
   210  	0x0a, 0x05, 0x66, 0x69, 0x6c, 0x65, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x24, 0x2e,
   211  	0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x64, 0x65, 0x76, 0x74, 0x6f, 0x6f, 0x6c, 0x73, 0x2e,
   212  	0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x76, 0x32, 0x2e, 0x46,
   213  	0x69, 0x6c, 0x65, 0x52, 0x05, 0x66, 0x69, 0x6c, 0x65, 0x73, 0x1a, 0x49, 0x0a, 0x02, 0x49, 0x64,
   214  	0x12, 0x23, 0x0a, 0x0d, 0x69, 0x6e, 0x76, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x69,
   215  	0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x69, 0x6e, 0x76, 0x6f, 0x63, 0x61, 0x74,
   216  	0x69, 0x6f, 0x6e, 0x49, 0x64, 0x12, 0x1e, 0x0a, 0x0b, 0x66, 0x69, 0x6c, 0x65, 0x5f, 0x73, 0x65,
   217  	0x74, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x66, 0x69, 0x6c, 0x65,
   218  	0x53, 0x65, 0x74, 0x49, 0x64, 0x3a, 0x55, 0xea, 0x41, 0x52, 0x0a, 0x22, 0x72, 0x65, 0x73, 0x75,
   219  	0x6c, 0x74, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70,
   220  	0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x46, 0x69, 0x6c, 0x65, 0x53, 0x65, 0x74, 0x12, 0x2c,
   221  	0x69, 0x6e, 0x76, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x7b, 0x69, 0x6e, 0x76,
   222  	0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x7d, 0x2f, 0x66, 0x69, 0x6c, 0x65, 0x53, 0x65, 0x74,
   223  	0x73, 0x2f, 0x7b, 0x66, 0x69, 0x6c, 0x65, 0x5f, 0x73, 0x65, 0x74, 0x7d, 0x42, 0x7f, 0x0a, 0x22,
   224  	0x63, 0x6f, 0x6d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x64, 0x65, 0x76, 0x74, 0x6f,
   225  	0x6f, 0x6c, 0x73, 0x2e, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e,
   226  	0x76, 0x32, 0x42, 0x0c, 0x46, 0x69, 0x6c, 0x65, 0x53, 0x65, 0x74, 0x50, 0x72, 0x6f, 0x74, 0x6f,
   227  	0x50, 0x01, 0x5a, 0x49, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x67, 0x6f, 0x6c, 0x61, 0x6e,
   228  	0x67, 0x2e, 0x6f, 0x72, 0x67, 0x2f, 0x67, 0x65, 0x6e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67,
   229  	0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2f, 0x64, 0x65, 0x76, 0x74, 0x6f, 0x6f,
   230  	0x6c, 0x73, 0x2f, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2f, 0x76,
   231  	0x32, 0x3b, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x62, 0x06, 0x70,
   232  	0x72, 0x6f, 0x74, 0x6f, 0x33,
   233  }
   234  
   235  var (
   236  	file_google_devtools_resultstore_v2_file_set_proto_rawDescOnce sync.Once
   237  	file_google_devtools_resultstore_v2_file_set_proto_rawDescData = file_google_devtools_resultstore_v2_file_set_proto_rawDesc
   238  )
   239  
   240  func file_google_devtools_resultstore_v2_file_set_proto_rawDescGZIP() []byte {
   241  	file_google_devtools_resultstore_v2_file_set_proto_rawDescOnce.Do(func() {
   242  		file_google_devtools_resultstore_v2_file_set_proto_rawDescData = protoimpl.X.CompressGZIP(file_google_devtools_resultstore_v2_file_set_proto_rawDescData)
   243  	})
   244  	return file_google_devtools_resultstore_v2_file_set_proto_rawDescData
   245  }
   246  
   247  var file_google_devtools_resultstore_v2_file_set_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
   248  var file_google_devtools_resultstore_v2_file_set_proto_goTypes = []interface{}{
   249  	(*FileSet)(nil),    // 0: google.devtools.resultstore.v2.FileSet
   250  	(*FileSet_Id)(nil), // 1: google.devtools.resultstore.v2.FileSet.Id
   251  	(*File)(nil),       // 2: google.devtools.resultstore.v2.File
   252  }
   253  var file_google_devtools_resultstore_v2_file_set_proto_depIdxs = []int32{
   254  	1, // 0: google.devtools.resultstore.v2.FileSet.id:type_name -> google.devtools.resultstore.v2.FileSet.Id
   255  	2, // 1: google.devtools.resultstore.v2.FileSet.files:type_name -> google.devtools.resultstore.v2.File
   256  	2, // [2:2] is the sub-list for method output_type
   257  	2, // [2:2] is the sub-list for method input_type
   258  	2, // [2:2] is the sub-list for extension type_name
   259  	2, // [2:2] is the sub-list for extension extendee
   260  	0, // [0:2] is the sub-list for field type_name
   261  }
   262  
   263  func init() { file_google_devtools_resultstore_v2_file_set_proto_init() }
   264  func file_google_devtools_resultstore_v2_file_set_proto_init() {
   265  	if File_google_devtools_resultstore_v2_file_set_proto != nil {
   266  		return
   267  	}
   268  	file_google_devtools_resultstore_v2_file_proto_init()
   269  	if !protoimpl.UnsafeEnabled {
   270  		file_google_devtools_resultstore_v2_file_set_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
   271  			switch v := v.(*FileSet); i {
   272  			case 0:
   273  				return &v.state
   274  			case 1:
   275  				return &v.sizeCache
   276  			case 2:
   277  				return &v.unknownFields
   278  			default:
   279  				return nil
   280  			}
   281  		}
   282  		file_google_devtools_resultstore_v2_file_set_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
   283  			switch v := v.(*FileSet_Id); i {
   284  			case 0:
   285  				return &v.state
   286  			case 1:
   287  				return &v.sizeCache
   288  			case 2:
   289  				return &v.unknownFields
   290  			default:
   291  				return nil
   292  			}
   293  		}
   294  	}
   295  	type x struct{}
   296  	out := protoimpl.TypeBuilder{
   297  		File: protoimpl.DescBuilder{
   298  			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
   299  			RawDescriptor: file_google_devtools_resultstore_v2_file_set_proto_rawDesc,
   300  			NumEnums:      0,
   301  			NumMessages:   2,
   302  			NumExtensions: 0,
   303  			NumServices:   0,
   304  		},
   305  		GoTypes:           file_google_devtools_resultstore_v2_file_set_proto_goTypes,
   306  		DependencyIndexes: file_google_devtools_resultstore_v2_file_set_proto_depIdxs,
   307  		MessageInfos:      file_google_devtools_resultstore_v2_file_set_proto_msgTypes,
   308  	}.Build()
   309  	File_google_devtools_resultstore_v2_file_set_proto = out.File
   310  	file_google_devtools_resultstore_v2_file_set_proto_rawDesc = nil
   311  	file_google_devtools_resultstore_v2_file_set_proto_goTypes = nil
   312  	file_google_devtools_resultstore_v2_file_set_proto_depIdxs = nil
   313  }
   314  

View as plain text