// // Generated by the protocol buffer compiler. DO NOT EDIT! // source: tensorflow/core/protobuf/struct.proto // #pragma warning disable 1591, 0612, 3021, 8981 #region Designer generated code using pb = global::Google.Protobuf; using pbc = global::Google.Protobuf.Collections; using pbr = global::Google.Protobuf.Reflection; using scg = global::System.Collections.Generic; namespace Tensorflow { /// Holder for reflection information generated from tensorflow/core/protobuf/struct.proto public static partial class StructReflection { #region Descriptor /// File descriptor for tensorflow/core/protobuf/struct.proto public static pbr::FileDescriptor Descriptor { get { return descriptor; } } private static pbr::FileDescriptor descriptor; static StructReflection() { byte[] descriptorData = global::System.Convert.FromBase64String( string.Concat( "CiV0ZW5zb3JmbG93L2NvcmUvcHJvdG9idWYvc3RydWN0LnByb3RvEgp0ZW5z", "b3JmbG93GiZ0ZW5zb3JmbG93L2NvcmUvZnJhbWV3b3JrL3RlbnNvci5wcm90", "bxosdGVuc29yZmxvdy9jb3JlL2ZyYW1ld29yay90ZW5zb3Jfc2hhcGUucHJv", "dG8aJXRlbnNvcmZsb3cvY29yZS9mcmFtZXdvcmsvdHlwZXMucHJvdG8ikAUK", "D1N0cnVjdHVyZWRWYWx1ZRIrCgpub25lX3ZhbHVlGAEgASgLMhUudGVuc29y", "Zmxvdy5Ob25lVmFsdWVIABIXCg1mbG9hdDY0X3ZhbHVlGAsgASgBSAASFQoL", "aW50NjRfdmFsdWUYDCABKBJIABIWCgxzdHJpbmdfdmFsdWUYDSABKAlIABIU", "Cgpib29sX3ZhbHVlGA4gASgISAASOgoSdGVuc29yX3NoYXBlX3ZhbHVlGB8g", "ASgLMhwudGVuc29yZmxvdy5UZW5zb3JTaGFwZVByb3RvSAASMgoSdGVuc29y", "X2R0eXBlX3ZhbHVlGCAgASgOMhQudGVuc29yZmxvdy5EYXRhVHlwZUgAEjgK", "EXRlbnNvcl9zcGVjX3ZhbHVlGCEgASgLMhsudGVuc29yZmxvdy5UZW5zb3JT", "cGVjUHJvdG9IABI0Cg90eXBlX3NwZWNfdmFsdWUYIiABKAsyGS50ZW5zb3Jm", "bG93LlR5cGVTcGVjUHJvdG9IABJHChlib3VuZGVkX3RlbnNvcl9zcGVjX3Zh", "bHVlGCMgASgLMiIudGVuc29yZmxvdy5Cb3VuZGVkVGVuc29yU3BlY1Byb3Rv", "SAASKwoKbGlzdF92YWx1ZRgzIAEoCzIVLnRlbnNvcmZsb3cuTGlzdFZhbHVl", "SAASLQoLdHVwbGVfdmFsdWUYNCABKAsyFi50ZW5zb3JmbG93LlR1cGxlVmFs", "dWVIABIrCgpkaWN0X3ZhbHVlGDUgASgLMhUudGVuc29yZmxvdy5EaWN0VmFs", "dWVIABI4ChFuYW1lZF90dXBsZV92YWx1ZRg2IAEoCzIbLnRlbnNvcmZsb3cu", "TmFtZWRUdXBsZVZhbHVlSABCBgoEa2luZCILCglOb25lVmFsdWUiOAoJTGlz", "dFZhbHVlEisKBnZhbHVlcxgBIAMoCzIbLnRlbnNvcmZsb3cuU3RydWN0dXJl", "ZFZhbHVlIjkKClR1cGxlVmFsdWUSKwoGdmFsdWVzGAEgAygLMhsudGVuc29y", "Zmxvdy5TdHJ1Y3R1cmVkVmFsdWUiigEKCURpY3RWYWx1ZRIxCgZmaWVsZHMY", "ASADKAsyIS50ZW5zb3JmbG93LkRpY3RWYWx1ZS5GaWVsZHNFbnRyeRpKCgtG", "aWVsZHNFbnRyeRILCgNrZXkYASABKAkSKgoFdmFsdWUYAiABKAsyGy50ZW5z", "b3JmbG93LlN0cnVjdHVyZWRWYWx1ZToCOAEiRAoJUGFpclZhbHVlEgsKA2tl", "eRgBIAEoCRIqCgV2YWx1ZRgCIAEoCzIbLnRlbnNvcmZsb3cuU3RydWN0dXJl", "ZFZhbHVlIkYKD05hbWVkVHVwbGVWYWx1ZRIMCgRuYW1lGAEgASgJEiUKBnZh", "bHVlcxgCIAMoCzIVLnRlbnNvcmZsb3cuUGFpclZhbHVlInEKD1RlbnNvclNw", "ZWNQcm90bxIMCgRuYW1lGAEgASgJEisKBXNoYXBlGAIgASgLMhwudGVuc29y", "Zmxvdy5UZW5zb3JTaGFwZVByb3RvEiMKBWR0eXBlGAMgASgOMhQudGVuc29y", "Zmxvdy5EYXRhVHlwZSLMAQoWQm91bmRlZFRlbnNvclNwZWNQcm90bxIMCgRu", "YW1lGAEgASgJEisKBXNoYXBlGAIgASgLMhwudGVuc29yZmxvdy5UZW5zb3JT", "aGFwZVByb3RvEiMKBWR0eXBlGAMgASgOMhQudGVuc29yZmxvdy5EYXRhVHlw", "ZRIoCgdtaW5pbXVtGAQgASgLMhcudGVuc29yZmxvdy5UZW5zb3JQcm90bxIo", "CgdtYXhpbXVtGAUgASgLMhcudGVuc29yZmxvdy5UZW5zb3JQcm90byL4AwoN", "VHlwZVNwZWNQcm90bxJACg90eXBlX3NwZWNfY2xhc3MYASABKA4yJy50ZW5z", "b3JmbG93LlR5cGVTcGVjUHJvdG8uVHlwZVNwZWNDbGFzcxIvCgp0eXBlX3N0", "YXRlGAIgASgLMhsudGVuc29yZmxvdy5TdHJ1Y3R1cmVkVmFsdWUSHAoUdHlw", "ZV9zcGVjX2NsYXNzX25hbWUYAyABKAkSGwoTbnVtX2ZsYXRfY29tcG9uZW50", "cxgEIAEoBSK4AgoNVHlwZVNwZWNDbGFzcxILCgdVTktOT1dOEAASFgoSU1BB", "UlNFX1RFTlNPUl9TUEVDEAESFwoTSU5ERVhFRF9TTElDRVNfU1BFQxACEhYK", "ElJBR0dFRF9URU5TT1JfU1BFQxADEhUKEVRFTlNPUl9BUlJBWV9TUEVDEAQS", "FQoRREFUQV9EQVRBU0VUX1NQRUMQBRIWChJEQVRBX0lURVJBVE9SX1NQRUMQ", "BhIRCg1PUFRJT05BTF9TUEVDEAcSFAoQUEVSX1JFUExJQ0FfU1BFQxAIEhEK", "DVZBUklBQkxFX1NQRUMQCRIWChJST1dfUEFSVElUSU9OX1NQRUMQChIYChRS", "RUdJU1RFUkVEX1RZUEVfU1BFQxAMEhcKE0VYVEVOU0lPTl9UWVBFX1NQRUMQ", "DSIECAsQC0JXWlVnaXRodWIuY29tL3RlbnNvcmZsb3cvdGVuc29yZmxvdy90", "ZW5zb3JmbG93L2dvL2NvcmUvcHJvdG9idWYvZm9yX2NvcmVfcHJvdG9zX2dv", "X3Byb3RvYgZwcm90bzM=")); descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, new pbr::FileDescriptor[] { global::Tensorflow.TensorReflection.Descriptor, global::Tensorflow.TensorShapeReflection.Descriptor, global::Tensorflow.TypesReflection.Descriptor, }, new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Tensorflow.StructuredValue), global::Tensorflow.StructuredValue.Parser, new[]{ "NoneValue", "Float64Value", "Int64Value", "StringValue", "BoolValue", "TensorShapeValue", "TensorDtypeValue", "TensorSpecValue", "TypeSpecValue", "BoundedTensorSpecValue", "ListValue", "TupleValue", "DictValue", "NamedTupleValue" }, new[]{ "Kind" }, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Tensorflow.NoneValue), global::Tensorflow.NoneValue.Parser, null, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Tensorflow.ListValue), global::Tensorflow.ListValue.Parser, new[]{ "Values" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Tensorflow.TupleValue), global::Tensorflow.TupleValue.Parser, new[]{ "Values" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Tensorflow.DictValue), global::Tensorflow.DictValue.Parser, new[]{ "Fields" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { null, }), new pbr::GeneratedClrTypeInfo(typeof(global::Tensorflow.PairValue), global::Tensorflow.PairValue.Parser, new[]{ "Key", "Value" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Tensorflow.NamedTupleValue), global::Tensorflow.NamedTupleValue.Parser, new[]{ "Name", "Values" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Tensorflow.TensorSpecProto), global::Tensorflow.TensorSpecProto.Parser, new[]{ "Name", "Shape", "Dtype" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Tensorflow.BoundedTensorSpecProto), global::Tensorflow.BoundedTensorSpecProto.Parser, new[]{ "Name", "Shape", "Dtype", "Minimum", "Maximum" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Tensorflow.TypeSpecProto), global::Tensorflow.TypeSpecProto.Parser, new[]{ "TypeSpecClass", "TypeState", "TypeSpecClassName", "NumFlatComponents" }, null, new[]{ typeof(global::Tensorflow.TypeSpecProto.Types.TypeSpecClass) }, null, null) })); } #endregion } #region Messages /// /// `StructuredValue` represents a dynamically typed value representing various /// data structures that are inspired by Python data structures typically used in /// TensorFlow functions as inputs and outputs. /// /// For example when saving a Layer there may be a `training` argument. If the /// user passes a boolean True/False, that switches between two concrete /// TensorFlow functions. In order to switch between them in the same way after /// loading the SavedModel, we need to represent "True" and "False". /// /// A more advanced example might be a function which takes a list of /// dictionaries mapping from strings to Tensors. In order to map from /// user-specified arguments `[{"a": tf.constant(1.)}, {"q": tf.constant(3.)}]` /// after load to the right saved TensorFlow function, we need to represent the /// nested structure and the strings, recording that we have a trace for anything /// matching `[{"a": tf.TensorSpec(None, tf.float32)}, {"q": tf.TensorSpec([], /// tf.float64)}]` as an example. /// /// Likewise functions may return nested structures of Tensors, for example /// returning a dictionary mapping from strings to Tensors. In order for the /// loaded function to return the same structure we need to serialize it. /// /// This is an ergonomic aid for working with loaded SavedModels, not a promise /// to serialize all possible function signatures. For example we do not expect /// to pickle generic Python objects, and ideally we'd stay language-agnostic. /// public sealed partial class StructuredValue : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new StructuredValue()); private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { get { return global::Tensorflow.StructReflection.Descriptor.MessageTypes[0]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public StructuredValue() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public StructuredValue(StructuredValue other) : this() { switch (other.KindCase) { case KindOneofCase.NoneValue: NoneValue = other.NoneValue.Clone(); break; case KindOneofCase.Float64Value: Float64Value = other.Float64Value; break; case KindOneofCase.Int64Value: Int64Value = other.Int64Value; break; case KindOneofCase.StringValue: StringValue = other.StringValue; break; case KindOneofCase.BoolValue: BoolValue = other.BoolValue; break; case KindOneofCase.TensorShapeValue: TensorShapeValue = other.TensorShapeValue.Clone(); break; case KindOneofCase.TensorDtypeValue: TensorDtypeValue = other.TensorDtypeValue; break; case KindOneofCase.TensorSpecValue: TensorSpecValue = other.TensorSpecValue.Clone(); break; case KindOneofCase.TypeSpecValue: TypeSpecValue = other.TypeSpecValue.Clone(); break; case KindOneofCase.BoundedTensorSpecValue: BoundedTensorSpecValue = other.BoundedTensorSpecValue.Clone(); break; case KindOneofCase.ListValue: ListValue = other.ListValue.Clone(); break; case KindOneofCase.TupleValue: TupleValue = other.TupleValue.Clone(); break; case KindOneofCase.DictValue: DictValue = other.DictValue.Clone(); break; case KindOneofCase.NamedTupleValue: NamedTupleValue = other.NamedTupleValue.Clone(); break; } _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public StructuredValue Clone() { return new StructuredValue(this); } /// Field number for the "none_value" field. public const int NoneValueFieldNumber = 1; /// /// Represents None. /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Tensorflow.NoneValue NoneValue { get { return kindCase_ == KindOneofCase.NoneValue ? (global::Tensorflow.NoneValue) kind_ : null; } set { kind_ = value; kindCase_ = value == null ? KindOneofCase.None : KindOneofCase.NoneValue; } } /// Field number for the "float64_value" field. public const int Float64ValueFieldNumber = 11; /// /// Represents a double-precision floating-point value (a Python `float`). /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public double Float64Value { get { return kindCase_ == KindOneofCase.Float64Value ? (double) kind_ : 0D; } set { kind_ = value; kindCase_ = KindOneofCase.Float64Value; } } /// Field number for the "int64_value" field. public const int Int64ValueFieldNumber = 12; /// /// Represents a signed integer value, limited to 64 bits. /// Larger values from Python's arbitrary-precision integers are unsupported. /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public long Int64Value { get { return kindCase_ == KindOneofCase.Int64Value ? (long) kind_ : 0L; } set { kind_ = value; kindCase_ = KindOneofCase.Int64Value; } } /// Field number for the "string_value" field. public const int StringValueFieldNumber = 13; /// /// Represents a string of Unicode characters stored in a Python `str`. /// In Python 3, this is exactly what type `str` is. /// In Python 2, this is the UTF-8 encoding of the characters. /// For strings with ASCII characters only (as often used in TensorFlow code) /// there is effectively no difference between the language versions. /// The obsolescent `unicode` type of Python 2 is not supported here. /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string StringValue { get { return kindCase_ == KindOneofCase.StringValue ? (string) kind_ : ""; } set { kind_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); kindCase_ = KindOneofCase.StringValue; } } /// Field number for the "bool_value" field. public const int BoolValueFieldNumber = 14; /// /// Represents a boolean value. /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool BoolValue { get { return kindCase_ == KindOneofCase.BoolValue ? (bool) kind_ : false; } set { kind_ = value; kindCase_ = KindOneofCase.BoolValue; } } /// Field number for the "tensor_shape_value" field. public const int TensorShapeValueFieldNumber = 31; /// /// Represents a TensorShape. /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Tensorflow.TensorShapeProto TensorShapeValue { get { return kindCase_ == KindOneofCase.TensorShapeValue ? (global::Tensorflow.TensorShapeProto) kind_ : null; } set { kind_ = value; kindCase_ = value == null ? KindOneofCase.None : KindOneofCase.TensorShapeValue; } } /// Field number for the "tensor_dtype_value" field. public const int TensorDtypeValueFieldNumber = 32; /// /// Represents an enum value for dtype. /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Tensorflow.DataType TensorDtypeValue { get { return kindCase_ == KindOneofCase.TensorDtypeValue ? (global::Tensorflow.DataType) kind_ : global::Tensorflow.DataType.DtInvalid; } set { kind_ = value; kindCase_ = KindOneofCase.TensorDtypeValue; } } /// Field number for the "tensor_spec_value" field. public const int TensorSpecValueFieldNumber = 33; /// /// Represents a value for tf.TensorSpec. /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Tensorflow.TensorSpecProto TensorSpecValue { get { return kindCase_ == KindOneofCase.TensorSpecValue ? (global::Tensorflow.TensorSpecProto) kind_ : null; } set { kind_ = value; kindCase_ = value == null ? KindOneofCase.None : KindOneofCase.TensorSpecValue; } } /// Field number for the "type_spec_value" field. public const int TypeSpecValueFieldNumber = 34; /// /// Represents a value for tf.TypeSpec. /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Tensorflow.TypeSpecProto TypeSpecValue { get { return kindCase_ == KindOneofCase.TypeSpecValue ? (global::Tensorflow.TypeSpecProto) kind_ : null; } set { kind_ = value; kindCase_ = value == null ? KindOneofCase.None : KindOneofCase.TypeSpecValue; } } /// Field number for the "bounded_tensor_spec_value" field. public const int BoundedTensorSpecValueFieldNumber = 35; /// /// Represents a value for tf.BoundedTensorSpec. /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Tensorflow.BoundedTensorSpecProto BoundedTensorSpecValue { get { return kindCase_ == KindOneofCase.BoundedTensorSpecValue ? (global::Tensorflow.BoundedTensorSpecProto) kind_ : null; } set { kind_ = value; kindCase_ = value == null ? KindOneofCase.None : KindOneofCase.BoundedTensorSpecValue; } } /// Field number for the "list_value" field. public const int ListValueFieldNumber = 51; /// /// Represents a list of `Value`. /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Tensorflow.ListValue ListValue { get { return kindCase_ == KindOneofCase.ListValue ? (global::Tensorflow.ListValue) kind_ : null; } set { kind_ = value; kindCase_ = value == null ? KindOneofCase.None : KindOneofCase.ListValue; } } /// Field number for the "tuple_value" field. public const int TupleValueFieldNumber = 52; /// /// Represents a tuple of `Value`. /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Tensorflow.TupleValue TupleValue { get { return kindCase_ == KindOneofCase.TupleValue ? (global::Tensorflow.TupleValue) kind_ : null; } set { kind_ = value; kindCase_ = value == null ? KindOneofCase.None : KindOneofCase.TupleValue; } } /// Field number for the "dict_value" field. public const int DictValueFieldNumber = 53; /// /// Represents a dict `Value`. /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Tensorflow.DictValue DictValue { get { return kindCase_ == KindOneofCase.DictValue ? (global::Tensorflow.DictValue) kind_ : null; } set { kind_ = value; kindCase_ = value == null ? KindOneofCase.None : KindOneofCase.DictValue; } } /// Field number for the "named_tuple_value" field. public const int NamedTupleValueFieldNumber = 54; /// /// Represents Python's namedtuple. /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Tensorflow.NamedTupleValue NamedTupleValue { get { return kindCase_ == KindOneofCase.NamedTupleValue ? (global::Tensorflow.NamedTupleValue) kind_ : null; } set { kind_ = value; kindCase_ = value == null ? KindOneofCase.None : KindOneofCase.NamedTupleValue; } } private object kind_; /// Enum of possible cases for the "kind" oneof. public enum KindOneofCase { None = 0, NoneValue = 1, Float64Value = 11, Int64Value = 12, StringValue = 13, BoolValue = 14, TensorShapeValue = 31, TensorDtypeValue = 32, TensorSpecValue = 33, TypeSpecValue = 34, BoundedTensorSpecValue = 35, ListValue = 51, TupleValue = 52, DictValue = 53, NamedTupleValue = 54, } private KindOneofCase kindCase_ = KindOneofCase.None; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public KindOneofCase KindCase { get { return kindCase_; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void ClearKind() { kindCase_ = KindOneofCase.None; kind_ = null; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as StructuredValue); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(StructuredValue other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if (!object.Equals(NoneValue, other.NoneValue)) return false; if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(Float64Value, other.Float64Value)) return false; if (Int64Value != other.Int64Value) return false; if (StringValue != other.StringValue) return false; if (BoolValue != other.BoolValue) return false; if (!object.Equals(TensorShapeValue, other.TensorShapeValue)) return false; if (TensorDtypeValue != other.TensorDtypeValue) return false; if (!object.Equals(TensorSpecValue, other.TensorSpecValue)) return false; if (!object.Equals(TypeSpecValue, other.TypeSpecValue)) return false; if (!object.Equals(BoundedTensorSpecValue, other.BoundedTensorSpecValue)) return false; if (!object.Equals(ListValue, other.ListValue)) return false; if (!object.Equals(TupleValue, other.TupleValue)) return false; if (!object.Equals(DictValue, other.DictValue)) return false; if (!object.Equals(NamedTupleValue, other.NamedTupleValue)) return false; if (KindCase != other.KindCase) return false; return Equals(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; if (kindCase_ == KindOneofCase.NoneValue) hash ^= NoneValue.GetHashCode(); if (kindCase_ == KindOneofCase.Float64Value) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(Float64Value); if (kindCase_ == KindOneofCase.Int64Value) hash ^= Int64Value.GetHashCode(); if (kindCase_ == KindOneofCase.StringValue) hash ^= StringValue.GetHashCode(); if (kindCase_ == KindOneofCase.BoolValue) hash ^= BoolValue.GetHashCode(); if (kindCase_ == KindOneofCase.TensorShapeValue) hash ^= TensorShapeValue.GetHashCode(); if (kindCase_ == KindOneofCase.TensorDtypeValue) hash ^= TensorDtypeValue.GetHashCode(); if (kindCase_ == KindOneofCase.TensorSpecValue) hash ^= TensorSpecValue.GetHashCode(); if (kindCase_ == KindOneofCase.TypeSpecValue) hash ^= TypeSpecValue.GetHashCode(); if (kindCase_ == KindOneofCase.BoundedTensorSpecValue) hash ^= BoundedTensorSpecValue.GetHashCode(); if (kindCase_ == KindOneofCase.ListValue) hash ^= ListValue.GetHashCode(); if (kindCase_ == KindOneofCase.TupleValue) hash ^= TupleValue.GetHashCode(); if (kindCase_ == KindOneofCase.DictValue) hash ^= DictValue.GetHashCode(); if (kindCase_ == KindOneofCase.NamedTupleValue) hash ^= NamedTupleValue.GetHashCode(); hash ^= (int) kindCase_; if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return hash; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else if (kindCase_ == KindOneofCase.NoneValue) { output.WriteRawTag(10); output.WriteMessage(NoneValue); } if (kindCase_ == KindOneofCase.Float64Value) { output.WriteRawTag(89); output.WriteDouble(Float64Value); } if (kindCase_ == KindOneofCase.Int64Value) { output.WriteRawTag(96); output.WriteSInt64(Int64Value); } if (kindCase_ == KindOneofCase.StringValue) { output.WriteRawTag(106); output.WriteString(StringValue); } if (kindCase_ == KindOneofCase.BoolValue) { output.WriteRawTag(112); output.WriteBool(BoolValue); } if (kindCase_ == KindOneofCase.TensorShapeValue) { output.WriteRawTag(250, 1); output.WriteMessage(TensorShapeValue); } if (kindCase_ == KindOneofCase.TensorDtypeValue) { output.WriteRawTag(128, 2); output.WriteEnum((int) TensorDtypeValue); } if (kindCase_ == KindOneofCase.TensorSpecValue) { output.WriteRawTag(138, 2); output.WriteMessage(TensorSpecValue); } if (kindCase_ == KindOneofCase.TypeSpecValue) { output.WriteRawTag(146, 2); output.WriteMessage(TypeSpecValue); } if (kindCase_ == KindOneofCase.BoundedTensorSpecValue) { output.WriteRawTag(154, 2); output.WriteMessage(BoundedTensorSpecValue); } if (kindCase_ == KindOneofCase.ListValue) { output.WriteRawTag(154, 3); output.WriteMessage(ListValue); } if (kindCase_ == KindOneofCase.TupleValue) { output.WriteRawTag(162, 3); output.WriteMessage(TupleValue); } if (kindCase_ == KindOneofCase.DictValue) { output.WriteRawTag(170, 3); output.WriteMessage(DictValue); } if (kindCase_ == KindOneofCase.NamedTupleValue) { output.WriteRawTag(178, 3); output.WriteMessage(NamedTupleValue); } if (_unknownFields != null) { _unknownFields.WriteTo(output); } #endif } #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { if (kindCase_ == KindOneofCase.NoneValue) { output.WriteRawTag(10); output.WriteMessage(NoneValue); } if (kindCase_ == KindOneofCase.Float64Value) { output.WriteRawTag(89); output.WriteDouble(Float64Value); } if (kindCase_ == KindOneofCase.Int64Value) { output.WriteRawTag(96); output.WriteSInt64(Int64Value); } if (kindCase_ == KindOneofCase.StringValue) { output.WriteRawTag(106); output.WriteString(StringValue); } if (kindCase_ == KindOneofCase.BoolValue) { output.WriteRawTag(112); output.WriteBool(BoolValue); } if (kindCase_ == KindOneofCase.TensorShapeValue) { output.WriteRawTag(250, 1); output.WriteMessage(TensorShapeValue); } if (kindCase_ == KindOneofCase.TensorDtypeValue) { output.WriteRawTag(128, 2); output.WriteEnum((int) TensorDtypeValue); } if (kindCase_ == KindOneofCase.TensorSpecValue) { output.WriteRawTag(138, 2); output.WriteMessage(TensorSpecValue); } if (kindCase_ == KindOneofCase.TypeSpecValue) { output.WriteRawTag(146, 2); output.WriteMessage(TypeSpecValue); } if (kindCase_ == KindOneofCase.BoundedTensorSpecValue) { output.WriteRawTag(154, 2); output.WriteMessage(BoundedTensorSpecValue); } if (kindCase_ == KindOneofCase.ListValue) { output.WriteRawTag(154, 3); output.WriteMessage(ListValue); } if (kindCase_ == KindOneofCase.TupleValue) { output.WriteRawTag(162, 3); output.WriteMessage(TupleValue); } if (kindCase_ == KindOneofCase.DictValue) { output.WriteRawTag(170, 3); output.WriteMessage(DictValue); } if (kindCase_ == KindOneofCase.NamedTupleValue) { output.WriteRawTag(178, 3); output.WriteMessage(NamedTupleValue); } if (_unknownFields != null) { _unknownFields.WriteTo(ref output); } } #endif [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; if (kindCase_ == KindOneofCase.NoneValue) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(NoneValue); } if (kindCase_ == KindOneofCase.Float64Value) { size += 1 + 8; } if (kindCase_ == KindOneofCase.Int64Value) { size += 1 + pb::CodedOutputStream.ComputeSInt64Size(Int64Value); } if (kindCase_ == KindOneofCase.StringValue) { size += 1 + pb::CodedOutputStream.ComputeStringSize(StringValue); } if (kindCase_ == KindOneofCase.BoolValue) { size += 1 + 1; } if (kindCase_ == KindOneofCase.TensorShapeValue) { size += 2 + pb::CodedOutputStream.ComputeMessageSize(TensorShapeValue); } if (kindCase_ == KindOneofCase.TensorDtypeValue) { size += 2 + pb::CodedOutputStream.ComputeEnumSize((int) TensorDtypeValue); } if (kindCase_ == KindOneofCase.TensorSpecValue) { size += 2 + pb::CodedOutputStream.ComputeMessageSize(TensorSpecValue); } if (kindCase_ == KindOneofCase.TypeSpecValue) { size += 2 + pb::CodedOutputStream.ComputeMessageSize(TypeSpecValue); } if (kindCase_ == KindOneofCase.BoundedTensorSpecValue) { size += 2 + pb::CodedOutputStream.ComputeMessageSize(BoundedTensorSpecValue); } if (kindCase_ == KindOneofCase.ListValue) { size += 2 + pb::CodedOutputStream.ComputeMessageSize(ListValue); } if (kindCase_ == KindOneofCase.TupleValue) { size += 2 + pb::CodedOutputStream.ComputeMessageSize(TupleValue); } if (kindCase_ == KindOneofCase.DictValue) { size += 2 + pb::CodedOutputStream.ComputeMessageSize(DictValue); } if (kindCase_ == KindOneofCase.NamedTupleValue) { size += 2 + pb::CodedOutputStream.ComputeMessageSize(NamedTupleValue); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(StructuredValue other) { if (other == null) { return; } switch (other.KindCase) { case KindOneofCase.NoneValue: if (NoneValue == null) { NoneValue = new global::Tensorflow.NoneValue(); } NoneValue.MergeFrom(other.NoneValue); break; case KindOneofCase.Float64Value: Float64Value = other.Float64Value; break; case KindOneofCase.Int64Value: Int64Value = other.Int64Value; break; case KindOneofCase.StringValue: StringValue = other.StringValue; break; case KindOneofCase.BoolValue: BoolValue = other.BoolValue; break; case KindOneofCase.TensorShapeValue: if (TensorShapeValue == null) { TensorShapeValue = new global::Tensorflow.TensorShapeProto(); } TensorShapeValue.MergeFrom(other.TensorShapeValue); break; case KindOneofCase.TensorDtypeValue: TensorDtypeValue = other.TensorDtypeValue; break; case KindOneofCase.TensorSpecValue: if (TensorSpecValue == null) { TensorSpecValue = new global::Tensorflow.TensorSpecProto(); } TensorSpecValue.MergeFrom(other.TensorSpecValue); break; case KindOneofCase.TypeSpecValue: if (TypeSpecValue == null) { TypeSpecValue = new global::Tensorflow.TypeSpecProto(); } TypeSpecValue.MergeFrom(other.TypeSpecValue); break; case KindOneofCase.BoundedTensorSpecValue: if (BoundedTensorSpecValue == null) { BoundedTensorSpecValue = new global::Tensorflow.BoundedTensorSpecProto(); } BoundedTensorSpecValue.MergeFrom(other.BoundedTensorSpecValue); break; case KindOneofCase.ListValue: if (ListValue == null) { ListValue = new global::Tensorflow.ListValue(); } ListValue.MergeFrom(other.ListValue); break; case KindOneofCase.TupleValue: if (TupleValue == null) { TupleValue = new global::Tensorflow.TupleValue(); } TupleValue.MergeFrom(other.TupleValue); break; case KindOneofCase.DictValue: if (DictValue == null) { DictValue = new global::Tensorflow.DictValue(); } DictValue.MergeFrom(other.DictValue); break; case KindOneofCase.NamedTupleValue: if (NamedTupleValue == null) { NamedTupleValue = new global::Tensorflow.NamedTupleValue(); } NamedTupleValue.MergeFrom(other.NamedTupleValue); break; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(pb::CodedInputStream input) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE input.ReadRawMessage(this); #else uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 10: { global::Tensorflow.NoneValue subBuilder = new global::Tensorflow.NoneValue(); if (kindCase_ == KindOneofCase.NoneValue) { subBuilder.MergeFrom(NoneValue); } input.ReadMessage(subBuilder); NoneValue = subBuilder; break; } case 89: { Float64Value = input.ReadDouble(); break; } case 96: { Int64Value = input.ReadSInt64(); break; } case 106: { StringValue = input.ReadString(); break; } case 112: { BoolValue = input.ReadBool(); break; } case 250: { global::Tensorflow.TensorShapeProto subBuilder = new global::Tensorflow.TensorShapeProto(); if (kindCase_ == KindOneofCase.TensorShapeValue) { subBuilder.MergeFrom(TensorShapeValue); } input.ReadMessage(subBuilder); TensorShapeValue = subBuilder; break; } case 256: { kind_ = input.ReadEnum(); kindCase_ = KindOneofCase.TensorDtypeValue; break; } case 266: { global::Tensorflow.TensorSpecProto subBuilder = new global::Tensorflow.TensorSpecProto(); if (kindCase_ == KindOneofCase.TensorSpecValue) { subBuilder.MergeFrom(TensorSpecValue); } input.ReadMessage(subBuilder); TensorSpecValue = subBuilder; break; } case 274: { global::Tensorflow.TypeSpecProto subBuilder = new global::Tensorflow.TypeSpecProto(); if (kindCase_ == KindOneofCase.TypeSpecValue) { subBuilder.MergeFrom(TypeSpecValue); } input.ReadMessage(subBuilder); TypeSpecValue = subBuilder; break; } case 282: { global::Tensorflow.BoundedTensorSpecProto subBuilder = new global::Tensorflow.BoundedTensorSpecProto(); if (kindCase_ == KindOneofCase.BoundedTensorSpecValue) { subBuilder.MergeFrom(BoundedTensorSpecValue); } input.ReadMessage(subBuilder); BoundedTensorSpecValue = subBuilder; break; } case 410: { global::Tensorflow.ListValue subBuilder = new global::Tensorflow.ListValue(); if (kindCase_ == KindOneofCase.ListValue) { subBuilder.MergeFrom(ListValue); } input.ReadMessage(subBuilder); ListValue = subBuilder; break; } case 418: { global::Tensorflow.TupleValue subBuilder = new global::Tensorflow.TupleValue(); if (kindCase_ == KindOneofCase.TupleValue) { subBuilder.MergeFrom(TupleValue); } input.ReadMessage(subBuilder); TupleValue = subBuilder; break; } case 426: { global::Tensorflow.DictValue subBuilder = new global::Tensorflow.DictValue(); if (kindCase_ == KindOneofCase.DictValue) { subBuilder.MergeFrom(DictValue); } input.ReadMessage(subBuilder); DictValue = subBuilder; break; } case 434: { global::Tensorflow.NamedTupleValue subBuilder = new global::Tensorflow.NamedTupleValue(); if (kindCase_ == KindOneofCase.NamedTupleValue) { subBuilder.MergeFrom(NamedTupleValue); } input.ReadMessage(subBuilder); NamedTupleValue = subBuilder; break; } } } #endif } #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; case 10: { global::Tensorflow.NoneValue subBuilder = new global::Tensorflow.NoneValue(); if (kindCase_ == KindOneofCase.NoneValue) { subBuilder.MergeFrom(NoneValue); } input.ReadMessage(subBuilder); NoneValue = subBuilder; break; } case 89: { Float64Value = input.ReadDouble(); break; } case 96: { Int64Value = input.ReadSInt64(); break; } case 106: { StringValue = input.ReadString(); break; } case 112: { BoolValue = input.ReadBool(); break; } case 250: { global::Tensorflow.TensorShapeProto subBuilder = new global::Tensorflow.TensorShapeProto(); if (kindCase_ == KindOneofCase.TensorShapeValue) { subBuilder.MergeFrom(TensorShapeValue); } input.ReadMessage(subBuilder); TensorShapeValue = subBuilder; break; } case 256: { kind_ = input.ReadEnum(); kindCase_ = KindOneofCase.TensorDtypeValue; break; } case 266: { global::Tensorflow.TensorSpecProto subBuilder = new global::Tensorflow.TensorSpecProto(); if (kindCase_ == KindOneofCase.TensorSpecValue) { subBuilder.MergeFrom(TensorSpecValue); } input.ReadMessage(subBuilder); TensorSpecValue = subBuilder; break; } case 274: { global::Tensorflow.TypeSpecProto subBuilder = new global::Tensorflow.TypeSpecProto(); if (kindCase_ == KindOneofCase.TypeSpecValue) { subBuilder.MergeFrom(TypeSpecValue); } input.ReadMessage(subBuilder); TypeSpecValue = subBuilder; break; } case 282: { global::Tensorflow.BoundedTensorSpecProto subBuilder = new global::Tensorflow.BoundedTensorSpecProto(); if (kindCase_ == KindOneofCase.BoundedTensorSpecValue) { subBuilder.MergeFrom(BoundedTensorSpecValue); } input.ReadMessage(subBuilder); BoundedTensorSpecValue = subBuilder; break; } case 410: { global::Tensorflow.ListValue subBuilder = new global::Tensorflow.ListValue(); if (kindCase_ == KindOneofCase.ListValue) { subBuilder.MergeFrom(ListValue); } input.ReadMessage(subBuilder); ListValue = subBuilder; break; } case 418: { global::Tensorflow.TupleValue subBuilder = new global::Tensorflow.TupleValue(); if (kindCase_ == KindOneofCase.TupleValue) { subBuilder.MergeFrom(TupleValue); } input.ReadMessage(subBuilder); TupleValue = subBuilder; break; } case 426: { global::Tensorflow.DictValue subBuilder = new global::Tensorflow.DictValue(); if (kindCase_ == KindOneofCase.DictValue) { subBuilder.MergeFrom(DictValue); } input.ReadMessage(subBuilder); DictValue = subBuilder; break; } case 434: { global::Tensorflow.NamedTupleValue subBuilder = new global::Tensorflow.NamedTupleValue(); if (kindCase_ == KindOneofCase.NamedTupleValue) { subBuilder.MergeFrom(NamedTupleValue); } input.ReadMessage(subBuilder); NamedTupleValue = subBuilder; break; } } } } #endif } /// /// Represents None. /// public sealed partial class NoneValue : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new NoneValue()); private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { get { return global::Tensorflow.StructReflection.Descriptor.MessageTypes[1]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public NoneValue() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public NoneValue(NoneValue other) : this() { _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public NoneValue Clone() { return new NoneValue(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as NoneValue); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(NoneValue other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } return Equals(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return hash; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else if (_unknownFields != null) { _unknownFields.WriteTo(output); } #endif } #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { if (_unknownFields != null) { _unknownFields.WriteTo(ref output); } } #endif [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(NoneValue other) { if (other == null) { return; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(pb::CodedInputStream input) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE input.ReadRawMessage(this); #else uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; } } #endif } #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; } } } #endif } /// /// Represents a Python list. /// public sealed partial class ListValue : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ListValue()); private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { get { return global::Tensorflow.StructReflection.Descriptor.MessageTypes[2]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public ListValue() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public ListValue(ListValue other) : this() { values_ = other.values_.Clone(); _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public ListValue Clone() { return new ListValue(this); } /// Field number for the "values" field. public const int ValuesFieldNumber = 1; private static readonly pb::FieldCodec _repeated_values_codec = pb::FieldCodec.ForMessage(10, global::Tensorflow.StructuredValue.Parser); private readonly pbc::RepeatedField values_ = new pbc::RepeatedField(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public pbc::RepeatedField Values { get { return values_; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as ListValue); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(ListValue other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if(!values_.Equals(other.values_)) return false; return Equals(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; hash ^= values_.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return hash; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else values_.WriteTo(output, _repeated_values_codec); if (_unknownFields != null) { _unknownFields.WriteTo(output); } #endif } #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { values_.WriteTo(ref output, _repeated_values_codec); if (_unknownFields != null) { _unknownFields.WriteTo(ref output); } } #endif [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; size += values_.CalculateSize(_repeated_values_codec); if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(ListValue other) { if (other == null) { return; } values_.Add(other.values_); _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(pb::CodedInputStream input) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE input.ReadRawMessage(this); #else uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 10: { values_.AddEntriesFrom(input, _repeated_values_codec); break; } } } #endif } #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; case 10: { values_.AddEntriesFrom(ref input, _repeated_values_codec); break; } } } } #endif } /// /// Represents a Python tuple. /// public sealed partial class TupleValue : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TupleValue()); private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { get { return global::Tensorflow.StructReflection.Descriptor.MessageTypes[3]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public TupleValue() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public TupleValue(TupleValue other) : this() { values_ = other.values_.Clone(); _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public TupleValue Clone() { return new TupleValue(this); } /// Field number for the "values" field. public const int ValuesFieldNumber = 1; private static readonly pb::FieldCodec _repeated_values_codec = pb::FieldCodec.ForMessage(10, global::Tensorflow.StructuredValue.Parser); private readonly pbc::RepeatedField values_ = new pbc::RepeatedField(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public pbc::RepeatedField Values { get { return values_; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as TupleValue); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(TupleValue other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if(!values_.Equals(other.values_)) return false; return Equals(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; hash ^= values_.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return hash; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else values_.WriteTo(output, _repeated_values_codec); if (_unknownFields != null) { _unknownFields.WriteTo(output); } #endif } #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { values_.WriteTo(ref output, _repeated_values_codec); if (_unknownFields != null) { _unknownFields.WriteTo(ref output); } } #endif [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; size += values_.CalculateSize(_repeated_values_codec); if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(TupleValue other) { if (other == null) { return; } values_.Add(other.values_); _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(pb::CodedInputStream input) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE input.ReadRawMessage(this); #else uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 10: { values_.AddEntriesFrom(input, _repeated_values_codec); break; } } } #endif } #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; case 10: { values_.AddEntriesFrom(ref input, _repeated_values_codec); break; } } } } #endif } /// /// Represents a Python dict keyed by `str`. /// The comment on Unicode from Value.string_value applies analogously. /// public sealed partial class DictValue : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new DictValue()); private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { get { return global::Tensorflow.StructReflection.Descriptor.MessageTypes[4]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public DictValue() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public DictValue(DictValue other) : this() { fields_ = other.fields_.Clone(); _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public DictValue Clone() { return new DictValue(this); } /// Field number for the "fields" field. public const int FieldsFieldNumber = 1; private static readonly pbc::MapField.Codec _map_fields_codec = new pbc::MapField.Codec(pb::FieldCodec.ForString(10, ""), pb::FieldCodec.ForMessage(18, global::Tensorflow.StructuredValue.Parser), 10); private readonly pbc::MapField fields_ = new pbc::MapField(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public pbc::MapField Fields { get { return fields_; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as DictValue); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(DictValue other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if (!Fields.Equals(other.Fields)) return false; return Equals(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; hash ^= Fields.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return hash; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else fields_.WriteTo(output, _map_fields_codec); if (_unknownFields != null) { _unknownFields.WriteTo(output); } #endif } #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { fields_.WriteTo(ref output, _map_fields_codec); if (_unknownFields != null) { _unknownFields.WriteTo(ref output); } } #endif [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; size += fields_.CalculateSize(_map_fields_codec); if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(DictValue other) { if (other == null) { return; } fields_.MergeFrom(other.fields_); _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(pb::CodedInputStream input) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE input.ReadRawMessage(this); #else uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 10: { fields_.AddEntriesFrom(input, _map_fields_codec); break; } } } #endif } #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; case 10: { fields_.AddEntriesFrom(ref input, _map_fields_codec); break; } } } } #endif } /// /// Represents a (key, value) pair. /// public sealed partial class PairValue : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new PairValue()); private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { get { return global::Tensorflow.StructReflection.Descriptor.MessageTypes[5]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public PairValue() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public PairValue(PairValue other) : this() { key_ = other.key_; value_ = other.value_ != null ? other.value_.Clone() : null; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public PairValue Clone() { return new PairValue(this); } /// Field number for the "key" field. public const int KeyFieldNumber = 1; private string key_ = ""; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string Key { get { return key_; } set { key_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } /// Field number for the "value" field. public const int ValueFieldNumber = 2; private global::Tensorflow.StructuredValue value_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Tensorflow.StructuredValue Value { get { return value_; } set { value_ = value; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as PairValue); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(PairValue other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if (Key != other.Key) return false; if (!object.Equals(Value, other.Value)) return false; return Equals(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; if (Key.Length != 0) hash ^= Key.GetHashCode(); if (value_ != null) hash ^= Value.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return hash; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else if (Key.Length != 0) { output.WriteRawTag(10); output.WriteString(Key); } if (value_ != null) { output.WriteRawTag(18); output.WriteMessage(Value); } if (_unknownFields != null) { _unknownFields.WriteTo(output); } #endif } #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { if (Key.Length != 0) { output.WriteRawTag(10); output.WriteString(Key); } if (value_ != null) { output.WriteRawTag(18); output.WriteMessage(Value); } if (_unknownFields != null) { _unknownFields.WriteTo(ref output); } } #endif [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; if (Key.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(Key); } if (value_ != null) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(Value); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(PairValue other) { if (other == null) { return; } if (other.Key.Length != 0) { Key = other.Key; } if (other.value_ != null) { if (value_ == null) { Value = new global::Tensorflow.StructuredValue(); } Value.MergeFrom(other.Value); } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(pb::CodedInputStream input) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE input.ReadRawMessage(this); #else uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 10: { Key = input.ReadString(); break; } case 18: { if (value_ == null) { Value = new global::Tensorflow.StructuredValue(); } input.ReadMessage(Value); break; } } } #endif } #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; case 10: { Key = input.ReadString(); break; } case 18: { if (value_ == null) { Value = new global::Tensorflow.StructuredValue(); } input.ReadMessage(Value); break; } } } } #endif } /// /// Represents Python's namedtuple. /// public sealed partial class NamedTupleValue : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new NamedTupleValue()); private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { get { return global::Tensorflow.StructReflection.Descriptor.MessageTypes[6]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public NamedTupleValue() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public NamedTupleValue(NamedTupleValue other) : this() { name_ = other.name_; values_ = other.values_.Clone(); _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public NamedTupleValue Clone() { return new NamedTupleValue(this); } /// Field number for the "name" field. public const int NameFieldNumber = 1; private string name_ = ""; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string Name { get { return name_; } set { name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } /// Field number for the "values" field. public const int ValuesFieldNumber = 2; private static readonly pb::FieldCodec _repeated_values_codec = pb::FieldCodec.ForMessage(18, global::Tensorflow.PairValue.Parser); private readonly pbc::RepeatedField values_ = new pbc::RepeatedField(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public pbc::RepeatedField Values { get { return values_; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as NamedTupleValue); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(NamedTupleValue other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if (Name != other.Name) return false; if(!values_.Equals(other.values_)) return false; return Equals(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; if (Name.Length != 0) hash ^= Name.GetHashCode(); hash ^= values_.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return hash; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else if (Name.Length != 0) { output.WriteRawTag(10); output.WriteString(Name); } values_.WriteTo(output, _repeated_values_codec); if (_unknownFields != null) { _unknownFields.WriteTo(output); } #endif } #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { if (Name.Length != 0) { output.WriteRawTag(10); output.WriteString(Name); } values_.WriteTo(ref output, _repeated_values_codec); if (_unknownFields != null) { _unknownFields.WriteTo(ref output); } } #endif [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; if (Name.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); } size += values_.CalculateSize(_repeated_values_codec); if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(NamedTupleValue other) { if (other == null) { return; } if (other.Name.Length != 0) { Name = other.Name; } values_.Add(other.values_); _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(pb::CodedInputStream input) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE input.ReadRawMessage(this); #else uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 10: { Name = input.ReadString(); break; } case 18: { values_.AddEntriesFrom(input, _repeated_values_codec); break; } } } #endif } #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; case 10: { Name = input.ReadString(); break; } case 18: { values_.AddEntriesFrom(ref input, _repeated_values_codec); break; } } } } #endif } /// /// A protobuf to represent tf.TensorSpec. /// public sealed partial class TensorSpecProto : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TensorSpecProto()); private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { get { return global::Tensorflow.StructReflection.Descriptor.MessageTypes[7]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public TensorSpecProto() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public TensorSpecProto(TensorSpecProto other) : this() { name_ = other.name_; shape_ = other.shape_ != null ? other.shape_.Clone() : null; dtype_ = other.dtype_; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public TensorSpecProto Clone() { return new TensorSpecProto(this); } /// Field number for the "name" field. public const int NameFieldNumber = 1; private string name_ = ""; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string Name { get { return name_; } set { name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } /// Field number for the "shape" field. public const int ShapeFieldNumber = 2; private global::Tensorflow.TensorShapeProto shape_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Tensorflow.TensorShapeProto Shape { get { return shape_; } set { shape_ = value; } } /// Field number for the "dtype" field. public const int DtypeFieldNumber = 3; private global::Tensorflow.DataType dtype_ = global::Tensorflow.DataType.DtInvalid; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Tensorflow.DataType Dtype { get { return dtype_; } set { dtype_ = value; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as TensorSpecProto); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(TensorSpecProto other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if (Name != other.Name) return false; if (!object.Equals(Shape, other.Shape)) return false; if (Dtype != other.Dtype) return false; return Equals(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; if (Name.Length != 0) hash ^= Name.GetHashCode(); if (shape_ != null) hash ^= Shape.GetHashCode(); if (Dtype != global::Tensorflow.DataType.DtInvalid) hash ^= Dtype.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return hash; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else if (Name.Length != 0) { output.WriteRawTag(10); output.WriteString(Name); } if (shape_ != null) { output.WriteRawTag(18); output.WriteMessage(Shape); } if (Dtype != global::Tensorflow.DataType.DtInvalid) { output.WriteRawTag(24); output.WriteEnum((int) Dtype); } if (_unknownFields != null) { _unknownFields.WriteTo(output); } #endif } #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { if (Name.Length != 0) { output.WriteRawTag(10); output.WriteString(Name); } if (shape_ != null) { output.WriteRawTag(18); output.WriteMessage(Shape); } if (Dtype != global::Tensorflow.DataType.DtInvalid) { output.WriteRawTag(24); output.WriteEnum((int) Dtype); } if (_unknownFields != null) { _unknownFields.WriteTo(ref output); } } #endif [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; if (Name.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); } if (shape_ != null) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(Shape); } if (Dtype != global::Tensorflow.DataType.DtInvalid) { size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Dtype); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(TensorSpecProto other) { if (other == null) { return; } if (other.Name.Length != 0) { Name = other.Name; } if (other.shape_ != null) { if (shape_ == null) { Shape = new global::Tensorflow.TensorShapeProto(); } Shape.MergeFrom(other.Shape); } if (other.Dtype != global::Tensorflow.DataType.DtInvalid) { Dtype = other.Dtype; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(pb::CodedInputStream input) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE input.ReadRawMessage(this); #else uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 10: { Name = input.ReadString(); break; } case 18: { if (shape_ == null) { Shape = new global::Tensorflow.TensorShapeProto(); } input.ReadMessage(Shape); break; } case 24: { Dtype = (global::Tensorflow.DataType) input.ReadEnum(); break; } } } #endif } #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; case 10: { Name = input.ReadString(); break; } case 18: { if (shape_ == null) { Shape = new global::Tensorflow.TensorShapeProto(); } input.ReadMessage(Shape); break; } case 24: { Dtype = (global::Tensorflow.DataType) input.ReadEnum(); break; } } } } #endif } /// /// A protobuf to represent tf.BoundedTensorSpec. /// public sealed partial class BoundedTensorSpecProto : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new BoundedTensorSpecProto()); private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { get { return global::Tensorflow.StructReflection.Descriptor.MessageTypes[8]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public BoundedTensorSpecProto() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public BoundedTensorSpecProto(BoundedTensorSpecProto other) : this() { name_ = other.name_; shape_ = other.shape_ != null ? other.shape_.Clone() : null; dtype_ = other.dtype_; minimum_ = other.minimum_ != null ? other.minimum_.Clone() : null; maximum_ = other.maximum_ != null ? other.maximum_.Clone() : null; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public BoundedTensorSpecProto Clone() { return new BoundedTensorSpecProto(this); } /// Field number for the "name" field. public const int NameFieldNumber = 1; private string name_ = ""; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string Name { get { return name_; } set { name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } /// Field number for the "shape" field. public const int ShapeFieldNumber = 2; private global::Tensorflow.TensorShapeProto shape_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Tensorflow.TensorShapeProto Shape { get { return shape_; } set { shape_ = value; } } /// Field number for the "dtype" field. public const int DtypeFieldNumber = 3; private global::Tensorflow.DataType dtype_ = global::Tensorflow.DataType.DtInvalid; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Tensorflow.DataType Dtype { get { return dtype_; } set { dtype_ = value; } } /// Field number for the "minimum" field. public const int MinimumFieldNumber = 4; private global::Tensorflow.TensorProto minimum_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Tensorflow.TensorProto Minimum { get { return minimum_; } set { minimum_ = value; } } /// Field number for the "maximum" field. public const int MaximumFieldNumber = 5; private global::Tensorflow.TensorProto maximum_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Tensorflow.TensorProto Maximum { get { return maximum_; } set { maximum_ = value; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as BoundedTensorSpecProto); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(BoundedTensorSpecProto other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if (Name != other.Name) return false; if (!object.Equals(Shape, other.Shape)) return false; if (Dtype != other.Dtype) return false; if (!object.Equals(Minimum, other.Minimum)) return false; if (!object.Equals(Maximum, other.Maximum)) return false; return Equals(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; if (Name.Length != 0) hash ^= Name.GetHashCode(); if (shape_ != null) hash ^= Shape.GetHashCode(); if (Dtype != global::Tensorflow.DataType.DtInvalid) hash ^= Dtype.GetHashCode(); if (minimum_ != null) hash ^= Minimum.GetHashCode(); if (maximum_ != null) hash ^= Maximum.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return hash; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else if (Name.Length != 0) { output.WriteRawTag(10); output.WriteString(Name); } if (shape_ != null) { output.WriteRawTag(18); output.WriteMessage(Shape); } if (Dtype != global::Tensorflow.DataType.DtInvalid) { output.WriteRawTag(24); output.WriteEnum((int) Dtype); } if (minimum_ != null) { output.WriteRawTag(34); output.WriteMessage(Minimum); } if (maximum_ != null) { output.WriteRawTag(42); output.WriteMessage(Maximum); } if (_unknownFields != null) { _unknownFields.WriteTo(output); } #endif } #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { if (Name.Length != 0) { output.WriteRawTag(10); output.WriteString(Name); } if (shape_ != null) { output.WriteRawTag(18); output.WriteMessage(Shape); } if (Dtype != global::Tensorflow.DataType.DtInvalid) { output.WriteRawTag(24); output.WriteEnum((int) Dtype); } if (minimum_ != null) { output.WriteRawTag(34); output.WriteMessage(Minimum); } if (maximum_ != null) { output.WriteRawTag(42); output.WriteMessage(Maximum); } if (_unknownFields != null) { _unknownFields.WriteTo(ref output); } } #endif [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; if (Name.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); } if (shape_ != null) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(Shape); } if (Dtype != global::Tensorflow.DataType.DtInvalid) { size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Dtype); } if (minimum_ != null) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(Minimum); } if (maximum_ != null) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(Maximum); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(BoundedTensorSpecProto other) { if (other == null) { return; } if (other.Name.Length != 0) { Name = other.Name; } if (other.shape_ != null) { if (shape_ == null) { Shape = new global::Tensorflow.TensorShapeProto(); } Shape.MergeFrom(other.Shape); } if (other.Dtype != global::Tensorflow.DataType.DtInvalid) { Dtype = other.Dtype; } if (other.minimum_ != null) { if (minimum_ == null) { Minimum = new global::Tensorflow.TensorProto(); } Minimum.MergeFrom(other.Minimum); } if (other.maximum_ != null) { if (maximum_ == null) { Maximum = new global::Tensorflow.TensorProto(); } Maximum.MergeFrom(other.Maximum); } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(pb::CodedInputStream input) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE input.ReadRawMessage(this); #else uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 10: { Name = input.ReadString(); break; } case 18: { if (shape_ == null) { Shape = new global::Tensorflow.TensorShapeProto(); } input.ReadMessage(Shape); break; } case 24: { Dtype = (global::Tensorflow.DataType) input.ReadEnum(); break; } case 34: { if (minimum_ == null) { Minimum = new global::Tensorflow.TensorProto(); } input.ReadMessage(Minimum); break; } case 42: { if (maximum_ == null) { Maximum = new global::Tensorflow.TensorProto(); } input.ReadMessage(Maximum); break; } } } #endif } #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; case 10: { Name = input.ReadString(); break; } case 18: { if (shape_ == null) { Shape = new global::Tensorflow.TensorShapeProto(); } input.ReadMessage(Shape); break; } case 24: { Dtype = (global::Tensorflow.DataType) input.ReadEnum(); break; } case 34: { if (minimum_ == null) { Minimum = new global::Tensorflow.TensorProto(); } input.ReadMessage(Minimum); break; } case 42: { if (maximum_ == null) { Maximum = new global::Tensorflow.TensorProto(); } input.ReadMessage(Maximum); break; } } } } #endif } /// /// Represents a tf.TypeSpec /// public sealed partial class TypeSpecProto : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TypeSpecProto()); private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { get { return global::Tensorflow.StructReflection.Descriptor.MessageTypes[9]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public TypeSpecProto() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public TypeSpecProto(TypeSpecProto other) : this() { typeSpecClass_ = other.typeSpecClass_; typeState_ = other.typeState_ != null ? other.typeState_.Clone() : null; typeSpecClassName_ = other.typeSpecClassName_; numFlatComponents_ = other.numFlatComponents_; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public TypeSpecProto Clone() { return new TypeSpecProto(this); } /// Field number for the "type_spec_class" field. public const int TypeSpecClassFieldNumber = 1; private global::Tensorflow.TypeSpecProto.Types.TypeSpecClass typeSpecClass_ = global::Tensorflow.TypeSpecProto.Types.TypeSpecClass.Unknown; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Tensorflow.TypeSpecProto.Types.TypeSpecClass TypeSpecClass { get { return typeSpecClass_; } set { typeSpecClass_ = value; } } /// Field number for the "type_state" field. public const int TypeStateFieldNumber = 2; private global::Tensorflow.StructuredValue typeState_; /// /// The value returned by TypeSpec._serialize(). /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Tensorflow.StructuredValue TypeState { get { return typeState_; } set { typeState_ = value; } } /// Field number for the "type_spec_class_name" field. public const int TypeSpecClassNameFieldNumber = 3; private string typeSpecClassName_ = ""; /// /// The name of the TypeSpec class. /// * If type_spec_class == REGISTERED_TYPE_SPEC, the TypeSpec class is /// the one registered under this name. For types registered outside /// core TensorFlow by an add-on library, that library must be loaded /// before this value can be deserialized by nested_structure_coder. /// * If type_spec_class specifies a particular TypeSpec class, this field is /// redundant with the type_spec_class enum, and is only used for error /// reporting in older binaries that do not know the tupe_spec_class enum. /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string TypeSpecClassName { get { return typeSpecClassName_; } set { typeSpecClassName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } /// Field number for the "num_flat_components" field. public const int NumFlatComponentsFieldNumber = 4; private int numFlatComponents_; /// /// The number of flat tensor components required by this TypeSpec. /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int NumFlatComponents { get { return numFlatComponents_; } set { numFlatComponents_ = value; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as TypeSpecProto); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(TypeSpecProto other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if (TypeSpecClass != other.TypeSpecClass) return false; if (!object.Equals(TypeState, other.TypeState)) return false; if (TypeSpecClassName != other.TypeSpecClassName) return false; if (NumFlatComponents != other.NumFlatComponents) return false; return Equals(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; if (TypeSpecClass != global::Tensorflow.TypeSpecProto.Types.TypeSpecClass.Unknown) hash ^= TypeSpecClass.GetHashCode(); if (typeState_ != null) hash ^= TypeState.GetHashCode(); if (TypeSpecClassName.Length != 0) hash ^= TypeSpecClassName.GetHashCode(); if (NumFlatComponents != 0) hash ^= NumFlatComponents.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return hash; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else if (TypeSpecClass != global::Tensorflow.TypeSpecProto.Types.TypeSpecClass.Unknown) { output.WriteRawTag(8); output.WriteEnum((int) TypeSpecClass); } if (typeState_ != null) { output.WriteRawTag(18); output.WriteMessage(TypeState); } if (TypeSpecClassName.Length != 0) { output.WriteRawTag(26); output.WriteString(TypeSpecClassName); } if (NumFlatComponents != 0) { output.WriteRawTag(32); output.WriteInt32(NumFlatComponents); } if (_unknownFields != null) { _unknownFields.WriteTo(output); } #endif } #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { if (TypeSpecClass != global::Tensorflow.TypeSpecProto.Types.TypeSpecClass.Unknown) { output.WriteRawTag(8); output.WriteEnum((int) TypeSpecClass); } if (typeState_ != null) { output.WriteRawTag(18); output.WriteMessage(TypeState); } if (TypeSpecClassName.Length != 0) { output.WriteRawTag(26); output.WriteString(TypeSpecClassName); } if (NumFlatComponents != 0) { output.WriteRawTag(32); output.WriteInt32(NumFlatComponents); } if (_unknownFields != null) { _unknownFields.WriteTo(ref output); } } #endif [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; if (TypeSpecClass != global::Tensorflow.TypeSpecProto.Types.TypeSpecClass.Unknown) { size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) TypeSpecClass); } if (typeState_ != null) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(TypeState); } if (TypeSpecClassName.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(TypeSpecClassName); } if (NumFlatComponents != 0) { size += 1 + pb::CodedOutputStream.ComputeInt32Size(NumFlatComponents); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(TypeSpecProto other) { if (other == null) { return; } if (other.TypeSpecClass != global::Tensorflow.TypeSpecProto.Types.TypeSpecClass.Unknown) { TypeSpecClass = other.TypeSpecClass; } if (other.typeState_ != null) { if (typeState_ == null) { TypeState = new global::Tensorflow.StructuredValue(); } TypeState.MergeFrom(other.TypeState); } if (other.TypeSpecClassName.Length != 0) { TypeSpecClassName = other.TypeSpecClassName; } if (other.NumFlatComponents != 0) { NumFlatComponents = other.NumFlatComponents; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(pb::CodedInputStream input) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE input.ReadRawMessage(this); #else uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 8: { TypeSpecClass = (global::Tensorflow.TypeSpecProto.Types.TypeSpecClass) input.ReadEnum(); break; } case 18: { if (typeState_ == null) { TypeState = new global::Tensorflow.StructuredValue(); } input.ReadMessage(TypeState); break; } case 26: { TypeSpecClassName = input.ReadString(); break; } case 32: { NumFlatComponents = input.ReadInt32(); break; } } } #endif } #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; case 8: { TypeSpecClass = (global::Tensorflow.TypeSpecProto.Types.TypeSpecClass) input.ReadEnum(); break; } case 18: { if (typeState_ == null) { TypeState = new global::Tensorflow.StructuredValue(); } input.ReadMessage(TypeState); break; } case 26: { TypeSpecClassName = input.ReadString(); break; } case 32: { NumFlatComponents = input.ReadInt32(); break; } } } } #endif #region Nested types /// Container for nested types declared in the TypeSpecProto message type. [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static partial class Types { public enum TypeSpecClass { [pbr::OriginalName("UNKNOWN")] Unknown = 0, /// /// tf.SparseTensorSpec /// [pbr::OriginalName("SPARSE_TENSOR_SPEC")] SparseTensorSpec = 1, /// /// tf.IndexedSlicesSpec /// [pbr::OriginalName("INDEXED_SLICES_SPEC")] IndexedSlicesSpec = 2, /// /// tf.RaggedTensorSpec /// [pbr::OriginalName("RAGGED_TENSOR_SPEC")] RaggedTensorSpec = 3, /// /// tf.TensorArraySpec /// [pbr::OriginalName("TENSOR_ARRAY_SPEC")] TensorArraySpec = 4, /// /// tf.data.DatasetSpec /// [pbr::OriginalName("DATA_DATASET_SPEC")] DataDatasetSpec = 5, /// /// IteratorSpec from data/ops/iterator_ops.py /// [pbr::OriginalName("DATA_ITERATOR_SPEC")] DataIteratorSpec = 6, /// /// tf.OptionalSpec /// [pbr::OriginalName("OPTIONAL_SPEC")] OptionalSpec = 7, /// /// PerReplicaSpec from distribute/values.py /// [pbr::OriginalName("PER_REPLICA_SPEC")] PerReplicaSpec = 8, /// /// tf.VariableSpec /// [pbr::OriginalName("VARIABLE_SPEC")] VariableSpec = 9, /// /// RowPartitionSpec from ragged/row_partition.py /// [pbr::OriginalName("ROW_PARTITION_SPEC")] RowPartitionSpec = 10, /// /// The type registered as type_spec_class_name. /// [pbr::OriginalName("REGISTERED_TYPE_SPEC")] RegisteredTypeSpec = 12, /// /// Subclasses of tf.ExtensionType /// [pbr::OriginalName("EXTENSION_TYPE_SPEC")] ExtensionTypeSpec = 13, } } #endregion } #endregion } #endregion Designer generated code