go.chromium.org/luci@v0.0.0-20240309015107-7cdc2e660f33/cipd/appengine/impl/cas/tasks/tasks.pb.go (about)

     1  // Copyright 2018 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/cipd/appengine/impl/cas/tasks/tasks.proto
    20  
    21  package tasks
    22  
    23  import (
    24  	protoreflect "google.golang.org/protobuf/reflect/protoreflect"
    25  	protoimpl "google.golang.org/protobuf/runtime/protoimpl"
    26  	reflect "reflect"
    27  	sync "sync"
    28  )
    29  
    30  const (
    31  	// Verify that this generated code is sufficiently up-to-date.
    32  	_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
    33  	// Verify that runtime/protoimpl is sufficiently up-to-date.
    34  	_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
    35  )
    36  
    37  // VerifyUpload task verifies data uploaded by a user and closes the upload
    38  // session based on the result.
    39  type VerifyUpload struct {
    40  	state         protoimpl.MessageState
    41  	sizeCache     protoimpl.SizeCache
    42  	unknownFields protoimpl.UnknownFields
    43  
    44  	UploadOperationId int64 `protobuf:"varint,1,opt,name=upload_operation_id,json=uploadOperationId,proto3" json:"upload_operation_id,omitempty"` // unwrapped integer ID of Operation entity
    45  }
    46  
    47  func (x *VerifyUpload) Reset() {
    48  	*x = VerifyUpload{}
    49  	if protoimpl.UnsafeEnabled {
    50  		mi := &file_go_chromium_org_luci_cipd_appengine_impl_cas_tasks_tasks_proto_msgTypes[0]
    51  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
    52  		ms.StoreMessageInfo(mi)
    53  	}
    54  }
    55  
    56  func (x *VerifyUpload) String() string {
    57  	return protoimpl.X.MessageStringOf(x)
    58  }
    59  
    60  func (*VerifyUpload) ProtoMessage() {}
    61  
    62  func (x *VerifyUpload) ProtoReflect() protoreflect.Message {
    63  	mi := &file_go_chromium_org_luci_cipd_appengine_impl_cas_tasks_tasks_proto_msgTypes[0]
    64  	if protoimpl.UnsafeEnabled && x != nil {
    65  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
    66  		if ms.LoadMessageInfo() == nil {
    67  			ms.StoreMessageInfo(mi)
    68  		}
    69  		return ms
    70  	}
    71  	return mi.MessageOf(x)
    72  }
    73  
    74  // Deprecated: Use VerifyUpload.ProtoReflect.Descriptor instead.
    75  func (*VerifyUpload) Descriptor() ([]byte, []int) {
    76  	return file_go_chromium_org_luci_cipd_appengine_impl_cas_tasks_tasks_proto_rawDescGZIP(), []int{0}
    77  }
    78  
    79  func (x *VerifyUpload) GetUploadOperationId() int64 {
    80  	if x != nil {
    81  		return x.UploadOperationId
    82  	}
    83  	return 0
    84  }
    85  
    86  // CleanupUpload task cleans up garbage after canceled upload.
    87  type CleanupUpload struct {
    88  	state         protoimpl.MessageState
    89  	sizeCache     protoimpl.SizeCache
    90  	unknownFields protoimpl.UnknownFields
    91  
    92  	UploadOperationId int64  `protobuf:"varint,1,opt,name=upload_operation_id,json=uploadOperationId,proto3" json:"upload_operation_id,omitempty"` // unwrapped integer ID of Operation entity
    93  	UploadUrl         string `protobuf:"bytes,2,opt,name=upload_url,json=uploadUrl,proto3" json:"upload_url,omitempty"`                            // URL of the upload session to cancel
    94  	PathToCleanup     string `protobuf:"bytes,3,opt,name=path_to_cleanup,json=pathToCleanup,proto3" json:"path_to_cleanup,omitempty"`              // gs file to delete
    95  }
    96  
    97  func (x *CleanupUpload) Reset() {
    98  	*x = CleanupUpload{}
    99  	if protoimpl.UnsafeEnabled {
   100  		mi := &file_go_chromium_org_luci_cipd_appengine_impl_cas_tasks_tasks_proto_msgTypes[1]
   101  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   102  		ms.StoreMessageInfo(mi)
   103  	}
   104  }
   105  
   106  func (x *CleanupUpload) String() string {
   107  	return protoimpl.X.MessageStringOf(x)
   108  }
   109  
   110  func (*CleanupUpload) ProtoMessage() {}
   111  
   112  func (x *CleanupUpload) ProtoReflect() protoreflect.Message {
   113  	mi := &file_go_chromium_org_luci_cipd_appengine_impl_cas_tasks_tasks_proto_msgTypes[1]
   114  	if protoimpl.UnsafeEnabled && x != nil {
   115  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   116  		if ms.LoadMessageInfo() == nil {
   117  			ms.StoreMessageInfo(mi)
   118  		}
   119  		return ms
   120  	}
   121  	return mi.MessageOf(x)
   122  }
   123  
   124  // Deprecated: Use CleanupUpload.ProtoReflect.Descriptor instead.
   125  func (*CleanupUpload) Descriptor() ([]byte, []int) {
   126  	return file_go_chromium_org_luci_cipd_appengine_impl_cas_tasks_tasks_proto_rawDescGZIP(), []int{1}
   127  }
   128  
   129  func (x *CleanupUpload) GetUploadOperationId() int64 {
   130  	if x != nil {
   131  		return x.UploadOperationId
   132  	}
   133  	return 0
   134  }
   135  
   136  func (x *CleanupUpload) GetUploadUrl() string {
   137  	if x != nil {
   138  		return x.UploadUrl
   139  	}
   140  	return ""
   141  }
   142  
   143  func (x *CleanupUpload) GetPathToCleanup() string {
   144  	if x != nil {
   145  		return x.PathToCleanup
   146  	}
   147  	return ""
   148  }
   149  
   150  var File_go_chromium_org_luci_cipd_appengine_impl_cas_tasks_tasks_proto protoreflect.FileDescriptor
   151  
   152  var file_go_chromium_org_luci_cipd_appengine_impl_cas_tasks_tasks_proto_rawDesc = []byte{
   153  	0x0a, 0x3e, 0x67, 0x6f, 0x2e, 0x63, 0x68, 0x72, 0x6f, 0x6d, 0x69, 0x75, 0x6d, 0x2e, 0x6f, 0x72,
   154  	0x67, 0x2f, 0x6c, 0x75, 0x63, 0x69, 0x2f, 0x63, 0x69, 0x70, 0x64, 0x2f, 0x61, 0x70, 0x70, 0x65,
   155  	0x6e, 0x67, 0x69, 0x6e, 0x65, 0x2f, 0x69, 0x6d, 0x70, 0x6c, 0x2f, 0x63, 0x61, 0x73, 0x2f, 0x74,
   156  	0x61, 0x73, 0x6b, 0x73, 0x2f, 0x74, 0x61, 0x73, 0x6b, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
   157  	0x12, 0x05, 0x74, 0x61, 0x73, 0x6b, 0x73, 0x22, 0x3e, 0x0a, 0x0c, 0x56, 0x65, 0x72, 0x69, 0x66,
   158  	0x79, 0x55, 0x70, 0x6c, 0x6f, 0x61, 0x64, 0x12, 0x2e, 0x0a, 0x13, 0x75, 0x70, 0x6c, 0x6f, 0x61,
   159  	0x64, 0x5f, 0x6f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x01,
   160  	0x20, 0x01, 0x28, 0x03, 0x52, 0x11, 0x75, 0x70, 0x6c, 0x6f, 0x61, 0x64, 0x4f, 0x70, 0x65, 0x72,
   161  	0x61, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x22, 0x86, 0x01, 0x0a, 0x0d, 0x43, 0x6c, 0x65, 0x61,
   162  	0x6e, 0x75, 0x70, 0x55, 0x70, 0x6c, 0x6f, 0x61, 0x64, 0x12, 0x2e, 0x0a, 0x13, 0x75, 0x70, 0x6c,
   163  	0x6f, 0x61, 0x64, 0x5f, 0x6f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x64,
   164  	0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x11, 0x75, 0x70, 0x6c, 0x6f, 0x61, 0x64, 0x4f, 0x70,
   165  	0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x12, 0x1d, 0x0a, 0x0a, 0x75, 0x70, 0x6c,
   166  	0x6f, 0x61, 0x64, 0x5f, 0x75, 0x72, 0x6c, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x75,
   167  	0x70, 0x6c, 0x6f, 0x61, 0x64, 0x55, 0x72, 0x6c, 0x12, 0x26, 0x0a, 0x0f, 0x70, 0x61, 0x74, 0x68,
   168  	0x5f, 0x74, 0x6f, 0x5f, 0x63, 0x6c, 0x65, 0x61, 0x6e, 0x75, 0x70, 0x18, 0x03, 0x20, 0x01, 0x28,
   169  	0x09, 0x52, 0x0d, 0x70, 0x61, 0x74, 0x68, 0x54, 0x6f, 0x43, 0x6c, 0x65, 0x61, 0x6e, 0x75, 0x70,
   170  	0x42, 0x34, 0x5a, 0x32, 0x67, 0x6f, 0x2e, 0x63, 0x68, 0x72, 0x6f, 0x6d, 0x69, 0x75, 0x6d, 0x2e,
   171  	0x6f, 0x72, 0x67, 0x2f, 0x6c, 0x75, 0x63, 0x69, 0x2f, 0x63, 0x69, 0x70, 0x64, 0x2f, 0x61, 0x70,
   172  	0x70, 0x65, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x2f, 0x69, 0x6d, 0x70, 0x6c, 0x2f, 0x63, 0x61, 0x73,
   173  	0x2f, 0x74, 0x61, 0x73, 0x6b, 0x73, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
   174  }
   175  
   176  var (
   177  	file_go_chromium_org_luci_cipd_appengine_impl_cas_tasks_tasks_proto_rawDescOnce sync.Once
   178  	file_go_chromium_org_luci_cipd_appengine_impl_cas_tasks_tasks_proto_rawDescData = file_go_chromium_org_luci_cipd_appengine_impl_cas_tasks_tasks_proto_rawDesc
   179  )
   180  
   181  func file_go_chromium_org_luci_cipd_appengine_impl_cas_tasks_tasks_proto_rawDescGZIP() []byte {
   182  	file_go_chromium_org_luci_cipd_appengine_impl_cas_tasks_tasks_proto_rawDescOnce.Do(func() {
   183  		file_go_chromium_org_luci_cipd_appengine_impl_cas_tasks_tasks_proto_rawDescData = protoimpl.X.CompressGZIP(file_go_chromium_org_luci_cipd_appengine_impl_cas_tasks_tasks_proto_rawDescData)
   184  	})
   185  	return file_go_chromium_org_luci_cipd_appengine_impl_cas_tasks_tasks_proto_rawDescData
   186  }
   187  
   188  var file_go_chromium_org_luci_cipd_appengine_impl_cas_tasks_tasks_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
   189  var file_go_chromium_org_luci_cipd_appengine_impl_cas_tasks_tasks_proto_goTypes = []interface{}{
   190  	(*VerifyUpload)(nil),  // 0: tasks.VerifyUpload
   191  	(*CleanupUpload)(nil), // 1: tasks.CleanupUpload
   192  }
   193  var file_go_chromium_org_luci_cipd_appengine_impl_cas_tasks_tasks_proto_depIdxs = []int32{
   194  	0, // [0:0] is the sub-list for method output_type
   195  	0, // [0:0] is the sub-list for method input_type
   196  	0, // [0:0] is the sub-list for extension type_name
   197  	0, // [0:0] is the sub-list for extension extendee
   198  	0, // [0:0] is the sub-list for field type_name
   199  }
   200  
   201  func init() { file_go_chromium_org_luci_cipd_appengine_impl_cas_tasks_tasks_proto_init() }
   202  func file_go_chromium_org_luci_cipd_appengine_impl_cas_tasks_tasks_proto_init() {
   203  	if File_go_chromium_org_luci_cipd_appengine_impl_cas_tasks_tasks_proto != nil {
   204  		return
   205  	}
   206  	if !protoimpl.UnsafeEnabled {
   207  		file_go_chromium_org_luci_cipd_appengine_impl_cas_tasks_tasks_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
   208  			switch v := v.(*VerifyUpload); i {
   209  			case 0:
   210  				return &v.state
   211  			case 1:
   212  				return &v.sizeCache
   213  			case 2:
   214  				return &v.unknownFields
   215  			default:
   216  				return nil
   217  			}
   218  		}
   219  		file_go_chromium_org_luci_cipd_appengine_impl_cas_tasks_tasks_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
   220  			switch v := v.(*CleanupUpload); i {
   221  			case 0:
   222  				return &v.state
   223  			case 1:
   224  				return &v.sizeCache
   225  			case 2:
   226  				return &v.unknownFields
   227  			default:
   228  				return nil
   229  			}
   230  		}
   231  	}
   232  	type x struct{}
   233  	out := protoimpl.TypeBuilder{
   234  		File: protoimpl.DescBuilder{
   235  			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
   236  			RawDescriptor: file_go_chromium_org_luci_cipd_appengine_impl_cas_tasks_tasks_proto_rawDesc,
   237  			NumEnums:      0,
   238  			NumMessages:   2,
   239  			NumExtensions: 0,
   240  			NumServices:   0,
   241  		},
   242  		GoTypes:           file_go_chromium_org_luci_cipd_appengine_impl_cas_tasks_tasks_proto_goTypes,
   243  		DependencyIndexes: file_go_chromium_org_luci_cipd_appengine_impl_cas_tasks_tasks_proto_depIdxs,
   244  		MessageInfos:      file_go_chromium_org_luci_cipd_appengine_impl_cas_tasks_tasks_proto_msgTypes,
   245  	}.Build()
   246  	File_go_chromium_org_luci_cipd_appengine_impl_cas_tasks_tasks_proto = out.File
   247  	file_go_chromium_org_luci_cipd_appengine_impl_cas_tasks_tasks_proto_rawDesc = nil
   248  	file_go_chromium_org_luci_cipd_appengine_impl_cas_tasks_tasks_proto_goTypes = nil
   249  	file_go_chromium_org_luci_cipd_appengine_impl_cas_tasks_tasks_proto_depIdxs = nil
   250  }