github.com/cloudwan/edgelq-sdk@v1.15.4/devices/proto/v1/customized_image_change.proto (about) 1 syntax = "proto3"; 2 3 package ntt.devices.v1; 4 5 import "edgelq-sdk/devices/proto/v1/customized_image.proto"; 6 import "google/api/resource.proto"; 7 import "google/protobuf/field_mask.proto"; 8 9 option go_package = "github.com/cloudwan/edgelq-sdk/devices/resources/v1/customized_image;customized_image"; 10 option java_multiple_files = false; 11 option java_outer_classname = "CustomizedImageChangeProto"; 12 option java_package = "com.ntt.devices.pb.v1"; 13 14 // CustomizedImageChange is used by Watch notifications Responses to describe 15 // change of single CustomizedImage One of Added, Modified, Removed 16 message CustomizedImageChange { 17 // CustomizedImage change 18 oneof change_type { 19 // Added is returned when watched document is added, either created or 20 // enters Query view 21 Added added = 1; 22 23 // Modified is returned when watched document is modified 24 Modified modified = 2; 25 26 // Current is returned in stateless watch when document enters query view or 27 // is modified within. 28 Current current = 4; 29 30 // Removed is returned when CustomizedImage is deleted or leaves Query view 31 Removed removed = 3; 32 } 33 34 // CustomizedImage has been added to query view 35 message Added { 36 CustomizedImage customized_image = 1; 37 38 // Integer describing index of added CustomizedImage in resulting query 39 // view. 40 int32 view_index = 2; 41 } 42 43 // CustomizedImage changed some of it's fields - contains either full document 44 // or masked change 45 message Modified { 46 // Name of modified CustomizedImage 47 string name = 1; 48 49 // New version of CustomizedImage or masked difference, depending on 50 // mask_changes instrumentation of issued [WatchCustomizedImageRequest] or 51 // [WatchCustomizedImagesRequest] 52 CustomizedImage customized_image = 2; 53 54 // Used when mask_changes is set, contains field paths of modified 55 // properties. 56 google.protobuf.FieldMask field_mask = 3; 57 58 // Previous view index specifies previous position of modified 59 // CustomizedImage. When modification doesn't affect sorted order, value 60 // will remain identical to [view_index]. 61 int32 previous_view_index = 4; 62 63 // Integer specifying CustomizedImage new index in resulting query view. 64 int32 view_index = 5; 65 } 66 67 // CustomizedImage has been added or modified in a query view. Version used 68 // for stateless watching 69 message Current { CustomizedImage customized_image = 1; } 70 71 // Removed is returned when CustomizedImage is deleted or leaves Query view 72 message Removed { 73 string name = 1; 74 75 // Integer specifying removed CustomizedImage index. Not populated in 76 // stateless watch type. 77 int32 view_index = 2; 78 } 79 }