1 // Generated by the protocol buffer compiler. DO NOT EDIT! 2 // source: tensorflow/core/protobuf/struct.proto 3 4 module tensorflow.struct_; 5 6 import google.protobuf; 7 import tensorflow.tensor_shape; 8 import tensorflow.types; 9 10 enum protocVersion = 3012004; 11 12 class StructuredValue 13 { 14 enum KindCase 15 { 16 kindNotSet = 0, 17 noneValue = 1, 18 float64Value = 11, 19 int64Value = 12, 20 stringValue = 13, 21 boolValue = 14, 22 tensorShapeValue = 31, 23 tensorDtypeValue = 32, 24 tensorSpecValue = 33, 25 typeSpecValue = 34, 26 listValue = 51, 27 tupleValue = 52, 28 dictValue = 53, 29 namedTupleValue = 54, 30 } 31 KindCase _kindCase = KindCase.kindNotSet; 32 @property KindCase kindCase() { return _kindCase; } 33 void clearKind() { _kindCase = KindCase.kindNotSet; } 34 @Oneof("_kindCase") union 35 { 36 @Proto(1) NoneValue _noneValue = protoDefaultValue!(NoneValue); mixin(oneofAccessors!_noneValue); 37 @Proto(11) double _float64Value; mixin(oneofAccessors!_float64Value); 38 @Proto(12, Wire.zigzag) long _int64Value; mixin(oneofAccessors!_int64Value); 39 @Proto(13) string _stringValue; mixin(oneofAccessors!_stringValue); 40 @Proto(14) bool _boolValue; mixin(oneofAccessors!_boolValue); 41 @Proto(31) TensorShapeProto _tensorShapeValue; mixin(oneofAccessors!_tensorShapeValue); 42 @Proto(32) DataType _tensorDtypeValue; mixin(oneofAccessors!_tensorDtypeValue); 43 @Proto(33) TensorSpecProto _tensorSpecValue; mixin(oneofAccessors!_tensorSpecValue); 44 @Proto(34) TypeSpecProto _typeSpecValue; mixin(oneofAccessors!_typeSpecValue); 45 @Proto(51) ListValue _listValue; mixin(oneofAccessors!_listValue); 46 @Proto(52) TupleValue _tupleValue; mixin(oneofAccessors!_tupleValue); 47 @Proto(53) DictValue _dictValue; mixin(oneofAccessors!_dictValue); 48 @Proto(54) NamedTupleValue _namedTupleValue; mixin(oneofAccessors!_namedTupleValue); 49 } 50 } 51 52 class NoneValue 53 { 54 } 55 56 class ListValue 57 { 58 @Proto(1) StructuredValue[] values = protoDefaultValue!(StructuredValue[]); 59 } 60 61 class TupleValue 62 { 63 @Proto(1) StructuredValue[] values = protoDefaultValue!(StructuredValue[]); 64 } 65 66 class DictValue 67 { 68 @Proto(1) StructuredValue[string] fields = protoDefaultValue!(StructuredValue[string]); 69 } 70 71 class PairValue 72 { 73 @Proto(1) string key = protoDefaultValue!(string); 74 @Proto(2) StructuredValue value = protoDefaultValue!(StructuredValue); 75 } 76 77 class NamedTupleValue 78 { 79 @Proto(1) string name = protoDefaultValue!(string); 80 @Proto(2) PairValue[] values = protoDefaultValue!(PairValue[]); 81 } 82 83 class TensorSpecProto 84 { 85 @Proto(1) string name = protoDefaultValue!(string); 86 @Proto(2) TensorShapeProto shape = protoDefaultValue!(TensorShapeProto); 87 @Proto(3) DataType dtype = protoDefaultValue!(DataType); 88 } 89 90 class TypeSpecProto 91 { 92 @Proto(1) TypeSpecClass typeSpecClass = protoDefaultValue!(TypeSpecClass); 93 @Proto(2) StructuredValue typeState = protoDefaultValue!(StructuredValue); 94 @Proto(3) string typeSpecClassName = protoDefaultValue!(string); 95 96 enum TypeSpecClass 97 { 98 UNKNOWN = 0, 99 SPARSE_TENSOR_SPEC = 1, 100 INDEXED_SLICES_SPEC = 2, 101 RAGGED_TENSOR_SPEC = 3, 102 TENSOR_ARRAY_SPEC = 4, 103 DATA_DATASET_SPEC = 5, 104 DATA_ITERATOR_SPEC = 6, 105 OPTIONAL_SPEC = 7, 106 PER_REPLICA_SPEC = 8, 107 VARIABLE_SPEC = 9, 108 } 109 }