github.com/cloudwan/edgelq-sdk@v1.15.4/devices/proto/v1/tpm_attestation_cert_change.proto (about)

     1  syntax = "proto3";
     2  
     3  package ntt.devices.v1;
     4  
     5  import "edgelq-sdk/devices/proto/v1/tpm_attestation_cert.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/tpm_attestation_cert;tpm_attestation_cert";
    10  option java_multiple_files = false;
    11  option java_outer_classname = "TpmAttestationCertChangeProto";
    12  option java_package = "com.ntt.devices.pb.v1";
    13  
    14  // TpmAttestationCertChange is used by Watch notifications Responses to describe
    15  // change of single TpmAttestationCert One of Added, Modified, Removed
    16  message TpmAttestationCertChange {
    17    // TpmAttestationCert 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 TpmAttestationCert is deleted or leaves Query
    31      // view
    32      Removed removed = 3;
    33    }
    34  
    35    // TpmAttestationCert has been added to query view
    36    message Added {
    37      TpmAttestationCert tpm_attestation_cert = 1;
    38  
    39      // Integer describing index of added TpmAttestationCert in resulting query
    40      // view.
    41      int32 view_index = 2;
    42    }
    43  
    44    // TpmAttestationCert changed some of it's fields - contains either full
    45    // document or masked change
    46    message Modified {
    47      // Name of modified TpmAttestationCert
    48      string name = 1;
    49  
    50      // New version of TpmAttestationCert or masked difference, depending on
    51      // mask_changes instrumentation of issued [WatchTpmAttestationCertRequest]
    52      // or [WatchTpmAttestationCertsRequest]
    53      TpmAttestationCert tpm_attestation_cert = 2;
    54  
    55      // Used when mask_changes is set, contains field paths of modified
    56      // properties.
    57      google.protobuf.FieldMask field_mask = 3;
    58  
    59      // Previous view index specifies previous position of modified
    60      // TpmAttestationCert. When modification doesn't affect sorted order, value
    61      // will remain identical to [view_index].
    62      int32 previous_view_index = 4;
    63  
    64      // Integer specifying TpmAttestationCert new index in resulting query view.
    65      int32 view_index = 5;
    66    }
    67  
    68    // TpmAttestationCert has been added or modified in a query view. Version used
    69    // for stateless watching
    70    message Current { TpmAttestationCert tpm_attestation_cert = 1; }
    71  
    72    // Removed is returned when TpmAttestationCert is deleted or leaves Query view
    73    message Removed {
    74      string name = 1;
    75  
    76      // Integer specifying removed TpmAttestationCert index. Not populated in
    77      // stateless watch type.
    78      int32 view_index = 2;
    79    }
    80  }