1*d5c09012SAndroid Build Coastguard Worker// Copyright 2023 Google LLC 2*d5c09012SAndroid Build Coastguard Worker// 3*d5c09012SAndroid Build Coastguard Worker// Licensed under the Apache License, Version 2.0 (the "License"); 4*d5c09012SAndroid Build Coastguard Worker// you may not use this file except in compliance with the License. 5*d5c09012SAndroid Build Coastguard Worker// You may obtain a copy of the License at 6*d5c09012SAndroid Build Coastguard Worker// 7*d5c09012SAndroid Build Coastguard Worker// http://www.apache.org/licenses/LICENSE-2.0 8*d5c09012SAndroid Build Coastguard Worker// 9*d5c09012SAndroid Build Coastguard Worker// Unless required by applicable law or agreed to in writing, software 10*d5c09012SAndroid Build Coastguard Worker// distributed under the License is distributed on an "AS IS" BASIS, 11*d5c09012SAndroid Build Coastguard Worker// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12*d5c09012SAndroid Build Coastguard Worker// See the License for the specific language governing permissions and 13*d5c09012SAndroid Build Coastguard Worker// limitations under the License. 14*d5c09012SAndroid Build Coastguard Worker 15*d5c09012SAndroid Build Coastguard Workersyntax = "proto3"; 16*d5c09012SAndroid Build Coastguard Worker 17*d5c09012SAndroid Build Coastguard Workerpackage google.cloud.securitycenter.v1; 18*d5c09012SAndroid Build Coastguard Worker 19*d5c09012SAndroid Build Coastguard Workeroption csharp_namespace = "Google.Cloud.SecurityCenter.V1"; 20*d5c09012SAndroid Build Coastguard Workeroption go_package = "cloud.google.com/go/securitycenter/apiv1/securitycenterpb;securitycenterpb"; 21*d5c09012SAndroid Build Coastguard Workeroption java_multiple_files = true; 22*d5c09012SAndroid Build Coastguard Workeroption java_outer_classname = "FileProto"; 23*d5c09012SAndroid Build Coastguard Workeroption java_package = "com.google.cloud.securitycenter.v1"; 24*d5c09012SAndroid Build Coastguard Workeroption php_namespace = "Google\\Cloud\\SecurityCenter\\V1"; 25*d5c09012SAndroid Build Coastguard Workeroption ruby_package = "Google::Cloud::SecurityCenter::V1"; 26*d5c09012SAndroid Build Coastguard Worker 27*d5c09012SAndroid Build Coastguard Worker// File information about the related binary/library used by an executable, or 28*d5c09012SAndroid Build Coastguard Worker// the script used by a script interpreter 29*d5c09012SAndroid Build Coastguard Workermessage File { 30*d5c09012SAndroid Build Coastguard Worker // Path of the file in terms of underlying disk/partition identifiers. 31*d5c09012SAndroid Build Coastguard Worker message DiskPath { 32*d5c09012SAndroid Build Coastguard Worker // UUID of the partition (format 33*d5c09012SAndroid Build Coastguard Worker // https://wiki.archlinux.org/title/persistent_block_device_naming#by-uuid) 34*d5c09012SAndroid Build Coastguard Worker string partition_uuid = 1; 35*d5c09012SAndroid Build Coastguard Worker 36*d5c09012SAndroid Build Coastguard Worker // Relative path of the file in the partition as a JSON encoded string. 37*d5c09012SAndroid Build Coastguard Worker // Example: /home/user1/executable_file.sh 38*d5c09012SAndroid Build Coastguard Worker string relative_path = 2; 39*d5c09012SAndroid Build Coastguard Worker } 40*d5c09012SAndroid Build Coastguard Worker 41*d5c09012SAndroid Build Coastguard Worker // Absolute path of the file as a JSON encoded string. 42*d5c09012SAndroid Build Coastguard Worker string path = 1; 43*d5c09012SAndroid Build Coastguard Worker 44*d5c09012SAndroid Build Coastguard Worker // Size of the file in bytes. 45*d5c09012SAndroid Build Coastguard Worker int64 size = 2; 46*d5c09012SAndroid Build Coastguard Worker 47*d5c09012SAndroid Build Coastguard Worker // SHA256 hash of the first hashed_size bytes of the file encoded as a 48*d5c09012SAndroid Build Coastguard Worker // hex string. If hashed_size == size, sha256 represents the SHA256 hash 49*d5c09012SAndroid Build Coastguard Worker // of the entire file. 50*d5c09012SAndroid Build Coastguard Worker string sha256 = 3; 51*d5c09012SAndroid Build Coastguard Worker 52*d5c09012SAndroid Build Coastguard Worker // The length in bytes of the file prefix that was hashed. If 53*d5c09012SAndroid Build Coastguard Worker // hashed_size == size, any hashes reported represent the entire 54*d5c09012SAndroid Build Coastguard Worker // file. 55*d5c09012SAndroid Build Coastguard Worker int64 hashed_size = 4; 56*d5c09012SAndroid Build Coastguard Worker 57*d5c09012SAndroid Build Coastguard Worker // True when the hash covers only a prefix of the file. 58*d5c09012SAndroid Build Coastguard Worker bool partially_hashed = 5; 59*d5c09012SAndroid Build Coastguard Worker 60*d5c09012SAndroid Build Coastguard Worker // Prefix of the file contents as a JSON-encoded string. 61*d5c09012SAndroid Build Coastguard Worker string contents = 6; 62*d5c09012SAndroid Build Coastguard Worker 63*d5c09012SAndroid Build Coastguard Worker // Path of the file in terms of underlying disk/partition identifiers. 64*d5c09012SAndroid Build Coastguard Worker DiskPath disk_path = 7; 65*d5c09012SAndroid Build Coastguard Worker} 66