(t v1pb.Revision_Type)
| 367 | } |
| 368 | |
| 369 | func convertRevisionType(t v1pb.Revision_Type) storepb.SchemaChangeType { |
| 370 | //exhaustive:enforce |
| 371 | switch t { |
| 372 | case v1pb.Revision_TYPE_UNSPECIFIED: |
| 373 | return storepb.SchemaChangeType_SCHEMA_CHANGE_TYPE_UNSPECIFIED |
| 374 | case v1pb.Revision_VERSIONED: |
| 375 | return storepb.SchemaChangeType_VERSIONED |
| 376 | case v1pb.Revision_DECLARATIVE: |
| 377 | return storepb.SchemaChangeType_DECLARATIVE |
| 378 | default: |
| 379 | return storepb.SchemaChangeType_SCHEMA_CHANGE_TYPE_UNSPECIFIED |
| 380 | } |
| 381 | } |