fizyr.calibration.v2.proto (v0.14.0-beta4)
The fizyr.calibration.v2.proto file exactly as Calibration v0.14.0-beta4 released it. It has no imports, so this one file is all you need to generate a client. See the v0.14.0-beta4 reference for what each RPC does.
syntax = "proto3";
package fizyr.calibration.v2;
service CalibrationService {
// Ping the server to see if communication is working properly.
rpc Ping (Empty) returns (Empty);
// Get the version of the calibration interface being used by this server.
rpc GetApiVersion (GetApiVersionRequest) returns (GetApiVersionResponse);
// Get more detailed information about the interface and software (including the version numbers).
rpc GetServerInfo (GetServerInfoRequest) returns (GetServerInfoResponse);
// Get a list of saved calibrations.
rpc ListCalibrations (ListCalibrationsRequest) returns (ListCalibrationsResponse);
// Get the data of a saved calibration.
//
// Can also be used to get the data of the currently active calibration.
rpc GetCalibration (GetCalibrationRequest) returns (GetCalibrationResponse);
// Set the active calibration to any of the saved calibrations.
rpc SetActiveCalibration (SetActiveCalibrationRequest) returns (SetActiveCalibrationResponse);
// Delete a saved calibration.
rpc DeleteCalibration (DeleteCalibrationRequest) returns (DeleteCalibrationResponse);
// Upload a calibration to the server.
//
// This service can be used to upload calibration data managed by some other system.
// You can set `make_active` to true to directly make it the active calibration.
rpc UploadCalibration (UploadCalibrationRequest) returns (UploadCalibrationResponse);
// Start a new calibration cycle.
//
// Note that not all cameras support starting multiple calibration cycles at once.
// In that case, you must close any open calibration cycle before starting a new one.
//
// A calibration cycle will calibrate the camera with respect to either a fixed frame or a moving frame.
// A common choice for fixed frame is the base frame of the robot.
// It is important that this frame does not move (or the robot moves along with it).
// The moving frame is usually the flange of the robot, or some other tool or end-effector configured on the robot.
//
// If the camera is attached to the moving frame then the calibration plate must be attached to the fixed frame.
// And the other way around: if the camera is attached to the fixed frame then the calibration plate must be attached to the moving frame.
//
// A normal calibration cycle could consist of the following service calls:
// * One call to [`start_calibration_cycle`] to start the cycle.
// * One or more calls to [`record_sample`] to add samples.
// * One call to [`compute_calibration`] (which by defalt also saves the calibration and closes the calibration cycle).
// * One call to [`set_active_calibration`] to make the newly computed calibration the active one (if desired).
rpc StartCalibrationCycle (StartCalibrationCycleRequest) returns (StartCalibrationCycleResponse);
// Close an open calibration cycle.
//
// If the calibration has not been computed or saved yet, it is lost.
//
// This service gives an error if there is no calibration cycle currently open.
rpc CloseCalibrationCycle (CloseCalibrationCycleRequest) returns (CloseCalibrationCycleResponse);
// List all open calibration cycles.
rpc ListCalibrationCycles (ListCalibrationCyclesRequest) returns (ListCalibrationCyclesResponse);
// Record a new sample for a calibration cycle.
//
// The robot (or moving frame) must be standing still at the pose indicated in the request.
//
// This will record an image and (try to) detect the calibration pattern in it.
//
// This service gives an error if there is no calibration cycle currently open.
rpc RecordSample (RecordSampleRequest) returns (RecordSampleResponse);
// Compute the calibration for a calibration cycle.
//
// The amount of samples required depends on whether or not [`skip_pattern_pose_computation`] is enabled.
// If it is, only 1 sample is needed, but you can still add more samples to increase the accuracy of the calibration.
//
// If [`skip_pattern_pose_computation`] is disabled, then the absolute minimum number of samples is 3.
// However, it is recommended to record at least 10 samples with different robot positions and orientations.
//
// By default, the calibration will be saved using an auto-generated name,
// and the calibration cycle will be closed.
// However, both of these actions can be disabled by setting [`no_save`] and [`no_close`] respectively.
//
// This service gives an error if there is no calibration cycle currently open.
rpc ComputeCalibration (ComputeCalibrationRequest) returns (ComputeCalibrationResponse);
// Save the calibration computed in a calibration cycle.
//
// By default, this service will also close the calibration cycle, but this can be disabled by setting [`no_close`] to true.
//
// Note that the [`compute_calibration`] service already saves the calibration by default.
//
// This service gives an error if there is no calibration cycle currently open,
// or if no calibration has been computed yet.
rpc SaveComputedCalibration (SaveComputedCalibrationRequest) returns (SaveComputedCalibrationResponse);
}
// Request body for the `get_api_version` request.
message GetApiVersionRequest {
}
// Response body for the `get_api_version` request.
message GetApiVersionResponse {
// The pick interface version.
Version version = 1;
}
// Request body for the `get_server_info` request.
message GetServerInfoRequest {
}
// Response body for the `get_server_info` request.
message GetServerInfoResponse {
// The information about the serde.
ServerInformation info = 1;
}
// Request body for the `list_calibrations` service.
message ListCalibrationsRequest {
}
// Response body for the `list_calibrations` service.
message ListCalibrationsResponse {
// The IDs of the saved calibrations.
repeated string calibration_ids = 1;
}
// Request body for the `get_calibration()` service.
message GetCalibrationRequest {
// The ID of the calibration to retrieve.
//
// If not set (or set to an empty string), the active calibration is returned.
optional string calibration_id = 1;
// Specify the rotation format to use for the response.
optional RotationFormat rotation_format = 2;
}
// Response body for the `get_calibration()` service.
message GetCalibrationResponse {
// The requested calibration.
Calibration calibration = 1;
}
// Request body for the `set_active_calibration` service.
message SetActiveCalibrationRequest {
// The ID of the saved calibration to set as active calibration.
string calibration_id = 1;
}
// Response body for the `set_active_calibration` service.
message SetActiveCalibrationResponse {
}
// Request body for the `delete_calibration` request.
message DeleteCalibrationRequest {
// The ID of the saved calibration to delete.
string calibration_id = 1;
}
// Response body for the `delete_calibration` request.
message DeleteCalibrationResponse {
}
// Request body for the `upload_calibration` request.
message UploadCalibrationRequest {
// The calibration to upload.
//
// You can choose the ID of the calibration by setting the [`Calibration::calibration_id`] field.
// If you leave it unset, then a new unique ID is generated automatically.
Calibration calibration = 1;
// Overwrite the calibration with the given ID if it already exists.
//
// If this is set to `false` or not specified,
// an error is returned if a saved calibration with the same ID already exists.
bool overwrite_existing = 2;
// If set to true, make the uploaded calibration the active calibration.
bool make_active = 3;
}
// Response body for the `upload_calibration` request.
message UploadCalibrationResponse {
// The ID of the saved calibration.
//
// Mostly useful if you left the [`Calibration::calibration_id`] field unset during the upload.
// Otherwise, it is just copy of that value.
string calibration_id = 1;
}
// Request body for the `start_calibration_cycle()` service.
message StartCalibrationCycleRequest {
}
// Response body for the `start_calibration_cycle()` service.
message StartCalibrationCycleResponse {
// The ID of the newly started cycle.
uint32 cycle_id = 1;
}
// Request body for the `close_calibration()` service.
message CloseCalibrationCycleRequest {
// The ID of the calibration cycle.
uint32 cycle_id = 1;
}
// Response body for the `close_calibration()` service.
message CloseCalibrationCycleResponse {
}
// List open calibration cycles.
message ListCalibrationCyclesRequest {
}
// Response body for the `list_calibration_cycles` service.
message ListCalibrationCyclesResponse {
// The IDs of all open calibration cycles.
repeated uint32 cycle_ids = 1;
}
// Request body for the `record_sample()` service.
message RecordSampleRequest {
// The ID of the calibration cycle.
uint32 cycle_id = 1;
// The pose of the robot (or moving frame).
Pose3 robot_pose = 2;
// Region of interest in pixels to limit the search space of the calibration pattern.
repeated Point2U region_of_interest = 3;
// Specify the rotation format to use for the response.
//
// This does not have to match with the format of the `robot_pose` field.
// It is only used to choose the rotation format in the response.
optional RotationFormat rotation_format = 4;
}
// Response body for the `record_sample()` service.
message RecordSampleResponse {
// The ID of the recorded sample.
//
// Sample ids are specific to the calibration cycle in which they were recorded.
uint32 sample_id = 1;
// Indicates if the pattern was found in the recorded image.
//
// If no pattern was found, the sample can not be used for calibration.
bool pattern_found = 2;
// The detected pose of the calibration pattern in the uncalibrated camera frame.
//
// NOTE: The call may be forwarded to a camera-vendor-specific calibration algorithm.
// Such algorithms may not report the pose of the detected pattern.
// In that case, this field may be empty / omitted even though `pattern_found` is `true`.
optional Pose3 pattern_pose = 3;
}
// Request body for the `compute_calibration` service.
message ComputeCalibrationRequest {
// The ID of the calibration cycle.
uint32 cycle_id = 1;
// Do not automatically close the computed calibration.
//
// You can save it later if desired using the [`save_calibration`] service.
bool no_save = 2;
// Do not automatically close the calibration cycle.
//
// You should close it later using the [`close_calibration_cycle`] service.
bool no_close = 3;
// Indicates if the camera is mounted attached to the moving frame (the robot).
bool moving_camera = 4;
// Skip computation of the calibration pattern pose.
//
// If this is `true`, the `pattern_pose` field is used directly as the pattern pose.
// This is significantly faster than computing the pattern pose and it requires less samples:
// only 1 sample is enough, but using more samples can still improve the accuracy of the calibration.
//
// However, if you skip the computation of the pattern pose,
// the calibration will not account for manufacturing tolerances, mounting inaccuracies or measurement errors.
//
// If you enable this option, you *must* set `pattern_pose` correctly too.
bool skip_pattern_pose_computation = 5;
// An initial guess for pose of the camera.
//
// The pose must be with respect to the fixed frame (if `moving_camera` is `false`) or the moving frame (if `moving_camera` is `true`).
//
// This may be used to speed up the calibration routine,
// but providing a bad guess may actually slow down the calibration routine, or even lead to inaccurate results.
optional Pose3 camera_pose = 6;
// The known pose of the calibration plate, or an initial guess for its pose.
//
// The pose must be with respect to the moving frame (if `moving_camera` is `false`) or the fixed frame (if `moving_camera` is `true`).
//
// This may be used to speed up the calibration routine,
// but providing a bad guess may actually slow down the calibration routine, or even lead to inaccurate results.
//
// If `skip_pattern_pose_computation` is set, this pose must be the actual pose of the calibration pattern,
// and not just an initial guess.
optional Pose3 pattern_pose = 7;
// Specify the rotation format to use for the response.
//
// This does not change the way the calibration is stored internally.
// It is only used for the response message to the request.
optional RotationFormat rotation_format = 8;
}
// Response body for the `compute_calibration` service.
message ComputeCalibrationResponse {
// The computed calibration.
Calibration calibration = 1;
}
// Request body for the `save_calibration` service.
message SaveComputedCalibrationRequest {
// The ID of the calibration cycle.
uint32 cycle_id = 1;
// Save the calibration under the given ID.
//
// If you leave this unset, a new ID is generated automatically.
optional string calibration_id = 2;
// Overwrite a calibration with the same ID, if it already exists.
bool overwrite_existing = 3;
}
// Response body for the `save_computed_calibration` service.
message SaveComputedCalibrationResponse {
// The ID of the saved calibration.
//
// Useful if you left the [`SaveComputedCalibrationRequest::calibration_id`] field unset.
string calibration_id = 1;
}
// A rotation of a specific angle around a specific axis.
message AngleAxis {
// The angle of rotation in radians.
float angle = 1;
// The axis of rotation.
Vector3 axis = 2;
}
// An extrinsic camera calibration.
message Calibration {
// The ID of the calibration.
//
// This field is only set if the calibration has already been saved.
//
// If left unset when adding a calibration, a new unique ID will automatically be generated for it.
optional string calibration_id = 1;
// The timestamp when the calibration was recorded.
//
// Specified as number of milliseconds since January 1 1970 00:00 UTC (the Unix epoch).
uint64 timestamp = 2;
// The number of valid samples used to compute this calibration.
uint32 num_samples = 3;
// Specifies if the camera is attached to the moving frame (the robot) or the fixed frame.
bool camera_moving = 4;
// The pose of the camera with respect to the parent frame.
//
// If `camera_moving` is true, the parent frame is the moving frame.
// Otherwise, the parent frame is the fixed frame.
Pose3 camera_pose = 5;
// The pose of the calibration pattern with respect to the parent frame.
//
// If `camera_moving` is true, the parent frame is the fixed frame.
// Otherwise, the parent frame is the moving frame.
Pose3 pattern_pose = 6;
// The root mean square error of the pattern pose for all calibration samples.
//
// NOTE: The exact meaning of this field depends on the camera.
// Vendor specific camera algorithms may compute the RMSE slightly different,
// but a lower error is always better.
//
// NOTE: This field may not be provided by all cameras, and it may not be set in manually uploaded calibrations.
optional float root_mean_square_error = 7;
// The mean translation error in meters, computed over all calibration samples.
//
// NOTE: This field may not be provided by all cameras, and it may not be set in manually uploaded calibrations.
optional float mean_translation_error = 8;
// The mean rotation error in radians, computed over all calibration samples.
//
// NOTE: This field may not be provided by all cameras, and it may not be set in manually uploaded calibrations.
optional float mean_rotation_error = 9;
}
// An empty message
message Empty {
}
// Euler rotation representation
message EulerRotation {
// The format of the Euler angles.
//
// This determines the order in which the rotations are applied.
EulerRotationFormat format = 1;
// An array containing the angles of rotation for each axis.
//
// The order of the angles is the order as per the variant of the `format` field.
//
// This field needs exactly 3 values
repeated float angles = 2;
}
// The type of Euler (Tait-Bryan) angles and the sequence of the rotation.
enum EulerRotationFormat {
// Unspecified value.
//
// If used, the server will act as if no value has been specified.
EULER_ROTATION_FORMAT_UNSPECIFIED = 0;
// The angles represent intrinsic rotations in XYZ order.
//
// See [`RotationFormat::EulerIntrinsicXyz`] for more information.
EULER_ROTATION_FORMAT_INTRINSIC_XYZ = 1;
// The angles represent intrinsic rotations in XZY order.
//
// See [`RotationFormat::EulerIntrinsicXzy`] for more information.
EULER_ROTATION_FORMAT_INTRINSIC_XZY = 2;
// The angles represent intrinsic rotations in YXZ order.
//
// See [`RotationFormat::EulerIntrinsicYxz`] for more information.
EULER_ROTATION_FORMAT_INTRINSIC_YXZ = 3;
// The angles represent intrinsic rotations in YZX order.
//
// See [`RotationFormat::EulerIntrinsicYzx`] for more information.
EULER_ROTATION_FORMAT_INTRINSIC_YZX = 4;
// The angles represent intrinsic rotations in ZXY order.
//
// See [`RotationFormat::EulerIntrinsicZxy`] for more information.
EULER_ROTATION_FORMAT_INTRINSIC_ZXY = 5;
// The angles represent intrinsic rotations in ZYX order.
//
// See [`RotationFormat::EulerIntrinsicZyx`] for more information.
EULER_ROTATION_FORMAT_INTRINSIC_ZYX = 6;
// The angles represent extrinsic rotations in XYZ order.
//
// See [`RotationFormat::EulerExtrinsicXyz`] for more information.
EULER_ROTATION_FORMAT_EXTRINSIC_XYZ = 7;
// The angles represent extrinsic rotations in XZY order.
//
// See [`RotationFormat::EulerExtrinsicXzy`] for more information.
EULER_ROTATION_FORMAT_EXTRINSIC_XZY = 8;
// The angles represent extrinsic rotations in YXZ order.
//
// See [`RotationFormat::EulerExtrinsicYxz`] for more information.
EULER_ROTATION_FORMAT_EXTRINSIC_YXZ = 9;
// The angles represent extrinsic rotations in YZX order.
//
// See [`RotationFormat::EulerExtrinsicYzx`] for more information.
EULER_ROTATION_FORMAT_EXTRINSIC_YZX = 10;
// The angles represent extrinsic rotations in ZXY order.
//
// See [`RotationFormat::EulerExtrinsicZxy`] for more information.
EULER_ROTATION_FORMAT_EXTRINSIC_ZXY = 11;
// The angles represent extrinsic rotations in ZYX order.
//
// See [`RotationFormat::EulerExtrinsicZyx`] for more information.
EULER_ROTATION_FORMAT_EXTRINSIC_ZYX = 12;
}
// A two dimensional point in space.
message Point2U {
// The X component of the point.
uint32 x = 1;
// The Y component of the point.
uint32 y = 2;
}
// A three dimensional point in space.
message Point3 {
// The X component of the point.
float x = 1;
// The Y component of the point.
float y = 2;
// The Z component of the point.
float z = 3;
}
// A pose in three dimensional space.
//
// A pose combines a position and an orientation.
message Pose3 {
// The position in 3D space.
Point3 position = 1;
// The orientation in 3D space.
Rotation3 orientation = 2;
}
// This struct represents a quaternion.
//
// The quaternion w+xi+yj+zk is a convenient representation of orientations
// and rotations of objects in three dimensions.
// Operations interpreting the quaternion as rotation have undefined behavior
// if the quaternion is not normalized.
message Quaternion {
// X component of the quaternion.
float x = 1;
// Y component of the quaternion.
float y = 2;
// Z component of the quaternion.
float z = 3;
// W component of the quaternion.
float w = 4;
}
// A rotation in one of several possible formats.
message Rotation3 {
oneof value {
// An angle-axis rotation.
AngleAxis AngleAxis = 1;
// A rotation represented as quaternion.
Quaternion Quaternion = 2;
// A rotation represented as three separate rotations around the major axes.
EulerRotation Euler = 3;
}
}
// The format of a 3D rotation.
enum RotationFormat {
// Unspecified value.
//
// If used, the server will act as if no value has been specified.
ROTATION_FORMAT_UNSPECIFIED = 0;
// The rotation is represented as an axis and an angle of rotation.
ROTATION_FORMAT_ANGLE_AXIS = 1;
// The rotation is represented as a quaternion.
ROTATION_FORMAT_QUATERNION = 2;
// The rotation is represented as three intrinsic rotations: around the X axis, then the Y axis and then the Z axis.
//
// The rotations are intrinsic: this means that the second rotation is applied in the *rotated* reference frame of the first rotation,
// and the third rotation is applied in the *rotated* reference frame of the second rotation.
//
// This representation is also known as (improper) Euler angles or Tait-Bryan angles.
//
// Known robots manufacturers that use this representation:
// - Staubli (NOTE: uses degrees rather than radians)
ROTATION_FORMAT_EULER_INTRINSIC_XYZ = 3;
// The rotation is represented as three intrinsic rotations: around the X axis, then the Z axis and then the Y axis.
//
// The rotations are intrinsic: this means that the second rotation is applied in the *rotated* reference frame of the first rotation,
// and the third rotation is applied in the *rotated* reference frame of the second rotation.
//
// This representation is also known as (improper) Euler angles or Tait-Bryan angles.
ROTATION_FORMAT_EULER_INTRINSIC_XZY = 4;
// The rotation is represented as three intrinsic rotations: around the Y axis, then the X axis and then the Z axis.
//
// The rotations are intrinsic: this means that the second rotation is applied in the *rotated* reference frame of the first rotation,
// and the third rotation is applied in the *rotated* reference frame of the second rotation.
//
// This representation is also known as (improper) Euler angles or Tait-Bryan angles.
ROTATION_FORMAT_EULER_INTRINSIC_YXZ = 5;
// The rotation is represented as three intrinsic rotations: around the Y axis, then the Z axis and then the X axis.
//
// The rotations are intrinsic: this means that the second rotation is applied in the *rotated* reference frame of the first rotation,
// and the third rotation is applied in the *rotated* reference frame of the second rotation.
//
// This representation is also known as (improper) Euler angles or Tait-Bryan angles.
ROTATION_FORMAT_EULER_INTRINSIC_YZX = 6;
// The rotation is represented as three intrinsic rotations: around the Z axis, then the X axis and then the Y axis.
//
// The rotations are intrinsic: this means that the second rotation is applied in the *rotated* reference frame of the first rotation,
// and the third rotation is applied in the *rotated* reference frame of the second rotation.
//
// This representation is also known as (improper) Euler angles or Tait-Bryan angles.
ROTATION_FORMAT_EULER_INTRINSIC_ZXY = 7;
// The rotation is represented as three intrinsic rotations: around the Z axis, then the Y axis and then the X axis.
//
// The rotations are intrinsic: this means that the second rotation is applied in the *rotated* reference frame of the first rotation,
// and the third rotation is applied in the *rotated* reference frame of the second rotation.
//
// This representation is also known as (improper) Euler angles or Tait-Bryan angles.
//
// Known robots models that use intrinsic Euler ZYX:
// - Mitsubishi Industrial Robot CR750/CR751 Series
// - Kawasaki (NOTE: uses degrees rather than radians)
// - Kuka (NOTE: uses degrees rather than radians)
// - Yaskawa (NOTE: uses degrees rather than radians)
ROTATION_FORMAT_EULER_INTRINSIC_ZYX = 8;
// The rotation is represented as three extrinsic rotations: around the X axis, then the Y axis and then the Z axis.
//
// The rotations are extrinsic: this means that the second rotation is applied in the *unrotated* base or world frame,
// and the third rotation is again applied in the *unrotated* base or world frame.
//
// This representation is also known as (improper) Euler angles or Tait-Bryan angles.
//
// Known robots models that use intrinsic Euler ZYX:
// - Fanuc (NOTE: Fanuc calls them `W`, `P`, and `R` instead of `X`, `Y` and `Z`, and they use degrees rather than radians).
ROTATION_FORMAT_EULER_EXTRINSIC_XYZ = 9;
// The rotation is represented as three extrinsic rotations: around the X axis, then the Z axis and then the Y axis.
//
// The rotations are extrinsic: this means that the second rotation is applied in the *unrotated* base or world frame,
// and the third rotation is again applied in the *unrotated* base or world frame.
//
// This representation is also known as (improper) Euler angles or Tait-Bryan angles.
ROTATION_FORMAT_EULER_EXTRINSIC_XZY = 10;
// The rotation is represented as three extrinsic rotations: around the Y axis, then the X axis and then the Z axis.
//
// The rotations are extrinsic: this means that the second rotation is applied in the *unrotated* base or world frame,
// and the third rotation is again applied in the *unrotated* base or world frame.
//
// This representation is also known as (improper) Euler angles or Tait-Bryan angles.
ROTATION_FORMAT_EULER_EXTRINSIC_YXZ = 11;
// The rotation is represented as three extrinsic rotations: around the Y axis, then the Z axis and then the X axis.
//
// The rotations are extrinsic: this means that the second rotation is applied in the *unrotated* base or world frame,
// and the third rotation is again applied in the *unrotated* base or world frame.
//
// This representation is also known as (improper) Euler angles or Tait-Bryan angles.
ROTATION_FORMAT_EULER_EXTRINSIC_YZX = 12;
// The rotation is represented as three extrinsic rotations: around the Z axis, then the X axis and then the Y axis.
//
// The rotations are extrinsic: this means that the second rotation is applied in the *unrotated* base or world frame,
// and the third rotation is again applied in the *unrotated* base or world frame.
//
// This representation is also known as (improper) Euler angles or Tait-Bryan angles.
ROTATION_FORMAT_EULER_EXTRINSIC_ZXY = 13;
// The rotation is represented as three extrinsic rotations: around the Z axis, then the Y axis and then the X axis.
//
// The rotations are extrinsic: this means that the second rotation is applied in the *unrotated* base or world frame,
// and the third rotation is again applied in the *unrotated* base or world frame.
//
// This representation is also known as (improper) Euler angles or Tait-Bryan angles.
ROTATION_FORMAT_EULER_EXTRINSIC_ZYX = 14;
}
// Information about a server, including software and API versions.
message ServerInformation {
// The name of the interface.
string interface_name = 1;
// The version of the server's interface.
Version interface_version = 2;
// The name of the application.
//
// This is important for interfaces that are implemented by multiple applications, (eg: cameras).
string application_name = 3;
// The version of the application.
//
// This can be useful for logging purposes.
// However, for checking compatibility with an interface you should always look at the interface name and version, not at the application name or version.
Version application_version = 4;
// The name of this particular instance of the application.
//
// This can be used to distinguish between different instances of a service if there is more than one instance of the same application running on the system.
string service_name = 5;
}
// A three dimensional vector.
message Vector3 {
// The X component of the vector.
float x = 1;
// The Y component of the vector.
float y = 2;
// The Z component of the vector.
float z = 3;
}
// A version with major, minor and patch number.
message Version {
// The major version.
//
// A change to this value indicates a backwards-incompatible change to the public interface.
uint32 major = 1;
// The minor version.
//
// A change to this value indicates a backwards-compatible change to the public interface.
uint32 minor = 2;
// The patch version.
//
// A change to this value indicates an internal change with no impact on the public interface.
uint32 patch = 3;
}