main.resources.contract.proto Maven / Gradle / Ivy
/* SPDX-FileCopyrightText: 2024 German Aerospace Center
*
* SPDX-License-Identifier: Apache-2.0 */
syntax = "proto2";
package communication;
import "field.proto";
option java_package = "de.dlr.gitlab.fame.protobuf";
option java_outer_classname = "Contracts";
message ProtoContract {
required int64 sender_id = 1;
required int64 receiver_id = 2;
required string product_name = 3;
required int64 first_delivery_time = 4;
required int64 delivery_interval_in_steps = 5;
optional int64 expiration_time = 6 [default = 9223372036854775807]; //Long.MAX_VALUE
repeated iobinary.NestedField fields = 7;
optional string metadata = 8;
}