Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // <auto-generated>
- // Generated by the protocol buffer compiler. DO NOT EDIT!
- // source: my.proto
- // </auto-generated>
- #pragma warning disable 1591, 0612, 3021
- #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
- {
- /// <summary>Holder for reflection information generated from my.proto</summary>
- public static partial class MyReflection
- {
- #region Descriptor
- /// <summary>File descriptor for my.proto</summary>
- public static pbr::FileDescriptor Descriptor
- {
- get { return descriptor; }
- }
- private static pbr::FileDescriptor descriptor;
- static MyReflection()
- {
- byte[] descriptorData = global::System.Convert.FromBase64String(
- string.Concat(
- "CghteS5wcm90bxIKdGVuc29yZmxvdyIxCgdFeGFtcGxlEiYKCGZlYXR1cmVz",
- "GAEgASgLMhQudGVuc29yZmxvdy5GZWF0dXJlcyJpCg9TZXF1ZW5jZUV4YW1w",
- "bGUSJQoHY29udGV4dBgBIAEoCzIULnRlbnNvcmZsb3cuRmVhdHVyZXMSLwoN",
- "ZmVhdHVyZV9saXN0cxgCIAEoCzIYLnRlbnNvcmZsb3cuRmVhdHVyZUxpc3Rz",
- "IhoKCUJ5dGVzTGlzdBINCgV2YWx1ZRgBIAMoDCIeCglGbG9hdExpc3QSEQoF",
- "dmFsdWUYASADKAJCAhABIh4KCUludDY0TGlzdBIRCgV2YWx1ZRgBIAMoA0IC",
- "EAEimAEKB0ZlYXR1cmUSKwoKYnl0ZXNfbGlzdBgBIAEoCzIVLnRlbnNvcmZs",
- "b3cuQnl0ZXNMaXN0SAASKwoKZmxvYXRfbGlzdBgCIAEoCzIVLnRlbnNvcmZs",
- "b3cuRmxvYXRMaXN0SAASKwoKaW50NjRfbGlzdBgDIAEoCzIVLnRlbnNvcmZs",
- "b3cuSW50NjRMaXN0SABCBgoEa2luZCKDAQoIRmVhdHVyZXMSMgoHZmVhdHVy",
- "ZRgBIAMoCzIhLnRlbnNvcmZsb3cuRmVhdHVyZXMuRmVhdHVyZUVudHJ5GkMK",
- "DEZlYXR1cmVFbnRyeRILCgNrZXkYASABKAkSIgoFdmFsdWUYAiABKAsyEy50",
- "ZW5zb3JmbG93LkZlYXR1cmU6AjgBIjMKC0ZlYXR1cmVMaXN0EiQKB2ZlYXR1",
- "cmUYASADKAsyEy50ZW5zb3JmbG93LkZlYXR1cmUinAEKDEZlYXR1cmVMaXN0",
- "cxI/CgxmZWF0dXJlX2xpc3QYASADKAsyKS50ZW5zb3JmbG93LkZlYXR1cmVM",
- "aXN0cy5GZWF0dXJlTGlzdEVudHJ5GksKEEZlYXR1cmVMaXN0RW50cnkSCwoD",
- "a2V5GAEgASgJEiYKBXZhbHVlGAIgASgLMhcudGVuc29yZmxvdy5GZWF0dXJl",
- "TGlzdDoCOAEiNAoLRXhhbXBsZUxpc3QSJQoIZXhhbXBsZXMYASADKAsyEy50",
- "ZW5zb3JmbG93LkV4YW1wbGUiZQoWRXhhbXBsZUxpc3RXaXRoQ29udGV4dBIl",
- "CghleGFtcGxlcxgBIAMoCzITLnRlbnNvcmZsb3cuRXhhbXBsZRIkCgdjb250",
- "ZXh0GAIgASgLMhMudGVuc29yZmxvdy5FeGFtcGxlIpEBCgVJbnB1dBIzCgxl",
- "eGFtcGxlX2xpc3QYASABKAsyFy50ZW5zb3JmbG93LkV4YW1wbGVMaXN0QgIo",
- "AUgAEksKGWV4YW1wbGVfbGlzdF93aXRoX2NvbnRleHQYAiABKAsyIi50ZW5z",
- "b3JmbG93LkV4YW1wbGVMaXN0V2l0aENvbnRleHRCAigBSABCBgoEa2luZEKB",
- "AQoWb3JnLnRlbnNvcmZsb3cuZXhhbXBsZUINRXhhbXBsZVByb3Rvc1ABWlNn",
- "aXRodWIuY29tL3RlbnNvcmZsb3cvdGVuc29yZmxvdy90ZW5zb3JmbG93L2dv",
- "L2NvcmUvZXhhbXBsZS9leGFtcGxlX3Byb3Rvc19nb19wcm90b/gBAWIGcHJv",
- "dG8z"));
- descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
- new pbr::FileDescriptor[] { },
- new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] {
- new pbr::GeneratedClrTypeInfo(typeof(global::Tensorflow.Example), global::Tensorflow.Example.Parser, new[]{ "Features" }, null, null, null, null),
- new pbr::GeneratedClrTypeInfo(typeof(global::Tensorflow.SequenceExample), global::Tensorflow.SequenceExample.Parser, new[]{ "Context", "FeatureLists" }, null, null, null, null),
- new pbr::GeneratedClrTypeInfo(typeof(global::Tensorflow.BytesList), global::Tensorflow.BytesList.Parser, new[]{ "Value" }, null, null, null, null),
- new pbr::GeneratedClrTypeInfo(typeof(global::Tensorflow.FloatList), global::Tensorflow.FloatList.Parser, new[]{ "Value" }, null, null, null, null),
- new pbr::GeneratedClrTypeInfo(typeof(global::Tensorflow.Int64List), global::Tensorflow.Int64List.Parser, new[]{ "Value" }, null, null, null, null),
- new pbr::GeneratedClrTypeInfo(typeof(global::Tensorflow.Feature), global::Tensorflow.Feature.Parser, new[]{ "BytesList", "FloatList", "Int64List" }, new[]{ "Kind" }, null, null, null),
- new pbr::GeneratedClrTypeInfo(typeof(global::Tensorflow.Features), global::Tensorflow.Features.Parser, new[]{ "Feature" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { null, }),
- new pbr::GeneratedClrTypeInfo(typeof(global::Tensorflow.FeatureList), global::Tensorflow.FeatureList.Parser, new[]{ "Feature" }, null, null, null, null),
- new pbr::GeneratedClrTypeInfo(typeof(global::Tensorflow.FeatureLists), global::Tensorflow.FeatureLists.Parser, new[]{ "FeatureList" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { null, }),
- new pbr::GeneratedClrTypeInfo(typeof(global::Tensorflow.ExampleList), global::Tensorflow.ExampleList.Parser, new[]{ "Examples" }, null, null, null, null),
- new pbr::GeneratedClrTypeInfo(typeof(global::Tensorflow.ExampleListWithContext), global::Tensorflow.ExampleListWithContext.Parser, new[]{ "Examples", "Context" }, null, null, null, null),
- new pbr::GeneratedClrTypeInfo(typeof(global::Tensorflow.Input), global::Tensorflow.Input.Parser, new[]{ "ExampleList", "ExampleListWithContext" }, new[]{ "Kind" }, null, null, null)
- }));
- }
- #endregion
- }
- #region Messages
- public sealed partial class Example : pb::IMessage<Example>
- {
- private static readonly pb::MessageParser<Example> _parser = new pb::MessageParser<Example>(() => new Example());
- private pb::UnknownFieldSet _unknownFields;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static pb::MessageParser<Example> Parser { get { return _parser; } }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static pbr::MessageDescriptor Descriptor
- {
- get { return global::Tensorflow.MyReflection.Descriptor.MessageTypes[0]; }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- pbr::MessageDescriptor pb::IMessage.Descriptor
- {
- get { return Descriptor; }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public Example()
- {
- OnConstruction();
- }
- partial void OnConstruction();
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public Example(Example other) : this()
- {
- features_ = other.features_ != null ? other.features_.Clone() : null;
- _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public Example Clone()
- {
- return new Example(this);
- }
- /// <summary>Field number for the "features" field.</summary>
- public const int FeaturesFieldNumber = 1;
- private global::Tensorflow.Features features_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public global::Tensorflow.Features Features
- {
- get { return features_; }
- set
- {
- features_ = value;
- }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override bool Equals(object other)
- {
- return Equals(other as Example);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool Equals(Example other)
- {
- if (ReferenceEquals(other, null))
- {
- return false;
- }
- if (ReferenceEquals(other, this))
- {
- return true;
- }
- if (!object.Equals(Features, other.Features)) return false;
- return Equals(_unknownFields, other._unknownFields);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override int GetHashCode()
- {
- int hash = 1;
- if (features_ != null) hash ^= Features.GetHashCode();
- if (_unknownFields != null)
- {
- hash ^= _unknownFields.GetHashCode();
- }
- return hash;
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override string ToString()
- {
- return pb::JsonFormatter.ToDiagnosticString(this);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void WriteTo(pb::CodedOutputStream output)
- {
- if (features_ != null)
- {
- output.WriteRawTag(10);
- output.WriteMessage(Features);
- }
- if (_unknownFields != null)
- {
- _unknownFields.WriteTo(output);
- }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public int CalculateSize()
- {
- int size = 0;
- if (features_ != null)
- {
- size += 1 + pb::CodedOutputStream.ComputeMessageSize(Features);
- }
- if (_unknownFields != null)
- {
- size += _unknownFields.CalculateSize();
- }
- return size;
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(Example other)
- {
- if (other == null)
- {
- return;
- }
- if (other.features_ != null)
- {
- if (features_ == null)
- {
- Features = new global::Tensorflow.Features();
- }
- Features.MergeFrom(other.Features);
- }
- _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(pb::CodedInputStream input)
- {
- uint tag;
- while ((tag = input.ReadTag()) != 0)
- {
- switch (tag)
- {
- default:
- _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
- break;
- case 10:
- {
- if (features_ == null)
- {
- Features = new global::Tensorflow.Features();
- }
- input.ReadMessage(Features);
- break;
- }
- }
- }
- }
- }
- public sealed partial class SequenceExample : pb::IMessage<SequenceExample>
- {
- private static readonly pb::MessageParser<SequenceExample> _parser = new pb::MessageParser<SequenceExample>(() => new SequenceExample());
- private pb::UnknownFieldSet _unknownFields;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static pb::MessageParser<SequenceExample> Parser { get { return _parser; } }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static pbr::MessageDescriptor Descriptor
- {
- get { return global::Tensorflow.MyReflection.Descriptor.MessageTypes[1]; }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- pbr::MessageDescriptor pb::IMessage.Descriptor
- {
- get { return Descriptor; }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public SequenceExample()
- {
- OnConstruction();
- }
- partial void OnConstruction();
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public SequenceExample(SequenceExample other) : this()
- {
- context_ = other.context_ != null ? other.context_.Clone() : null;
- featureLists_ = other.featureLists_ != null ? other.featureLists_.Clone() : null;
- _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public SequenceExample Clone()
- {
- return new SequenceExample(this);
- }
- /// <summary>Field number for the "context" field.</summary>
- public const int ContextFieldNumber = 1;
- private global::Tensorflow.Features context_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public global::Tensorflow.Features Context
- {
- get { return context_; }
- set
- {
- context_ = value;
- }
- }
- /// <summary>Field number for the "feature_lists" field.</summary>
- public const int FeatureListsFieldNumber = 2;
- private global::Tensorflow.FeatureLists featureLists_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public global::Tensorflow.FeatureLists FeatureLists
- {
- get { return featureLists_; }
- set
- {
- featureLists_ = value;
- }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override bool Equals(object other)
- {
- return Equals(other as SequenceExample);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool Equals(SequenceExample other)
- {
- if (ReferenceEquals(other, null))
- {
- return false;
- }
- if (ReferenceEquals(other, this))
- {
- return true;
- }
- if (!object.Equals(Context, other.Context)) return false;
- if (!object.Equals(FeatureLists, other.FeatureLists)) return false;
- return Equals(_unknownFields, other._unknownFields);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override int GetHashCode()
- {
- int hash = 1;
- if (context_ != null) hash ^= Context.GetHashCode();
- if (featureLists_ != null) hash ^= FeatureLists.GetHashCode();
- if (_unknownFields != null)
- {
- hash ^= _unknownFields.GetHashCode();
- }
- return hash;
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override string ToString()
- {
- return pb::JsonFormatter.ToDiagnosticString(this);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void WriteTo(pb::CodedOutputStream output)
- {
- if (context_ != null)
- {
- output.WriteRawTag(10);
- output.WriteMessage(Context);
- }
- if (featureLists_ != null)
- {
- output.WriteRawTag(18);
- output.WriteMessage(FeatureLists);
- }
- if (_unknownFields != null)
- {
- _unknownFields.WriteTo(output);
- }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public int CalculateSize()
- {
- int size = 0;
- if (context_ != null)
- {
- size += 1 + pb::CodedOutputStream.ComputeMessageSize(Context);
- }
- if (featureLists_ != null)
- {
- size += 1 + pb::CodedOutputStream.ComputeMessageSize(FeatureLists);
- }
- if (_unknownFields != null)
- {
- size += _unknownFields.CalculateSize();
- }
- return size;
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(SequenceExample other)
- {
- if (other == null)
- {
- return;
- }
- if (other.context_ != null)
- {
- if (context_ == null)
- {
- Context = new global::Tensorflow.Features();
- }
- Context.MergeFrom(other.Context);
- }
- if (other.featureLists_ != null)
- {
- if (featureLists_ == null)
- {
- FeatureLists = new global::Tensorflow.FeatureLists();
- }
- FeatureLists.MergeFrom(other.FeatureLists);
- }
- _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(pb::CodedInputStream input)
- {
- uint tag;
- while ((tag = input.ReadTag()) != 0)
- {
- switch (tag)
- {
- default:
- _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
- break;
- case 10:
- {
- if (context_ == null)
- {
- Context = new global::Tensorflow.Features();
- }
- input.ReadMessage(Context);
- break;
- }
- case 18:
- {
- if (featureLists_ == null)
- {
- FeatureLists = new global::Tensorflow.FeatureLists();
- }
- input.ReadMessage(FeatureLists);
- break;
- }
- }
- }
- }
- }
- /// <summary>
- /// Containers to hold repeated fundamental values.
- /// </summary>
- public sealed partial class BytesList : pb::IMessage<BytesList>
- {
- private static readonly pb::MessageParser<BytesList> _parser = new pb::MessageParser<BytesList>(() => new BytesList());
- private pb::UnknownFieldSet _unknownFields;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static pb::MessageParser<BytesList> Parser { get { return _parser; } }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static pbr::MessageDescriptor Descriptor
- {
- get { return global::Tensorflow.MyReflection.Descriptor.MessageTypes[2]; }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- pbr::MessageDescriptor pb::IMessage.Descriptor
- {
- get { return Descriptor; }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public BytesList()
- {
- OnConstruction();
- }
- partial void OnConstruction();
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public BytesList(BytesList other) : this()
- {
- value_ = other.value_.Clone();
- _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public BytesList Clone()
- {
- return new BytesList(this);
- }
- /// <summary>Field number for the "value" field.</summary>
- public const int ValueFieldNumber = 1;
- private static readonly pb::FieldCodec<pb::ByteString> _repeated_value_codec
- = pb::FieldCodec.ForBytes(10);
- private readonly pbc::RepeatedField<pb::ByteString> value_ = new pbc::RepeatedField<pb::ByteString>();
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public pbc::RepeatedField<pb::ByteString> Value
- {
- get { return value_; }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override bool Equals(object other)
- {
- return Equals(other as BytesList);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool Equals(BytesList other)
- {
- if (ReferenceEquals(other, null))
- {
- return false;
- }
- if (ReferenceEquals(other, this))
- {
- return true;
- }
- if (!value_.Equals(other.value_)) return false;
- return Equals(_unknownFields, other._unknownFields);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override int GetHashCode()
- {
- int hash = 1;
- hash ^= value_.GetHashCode();
- if (_unknownFields != null)
- {
- hash ^= _unknownFields.GetHashCode();
- }
- return hash;
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override string ToString()
- {
- return pb::JsonFormatter.ToDiagnosticString(this);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void WriteTo(pb::CodedOutputStream output)
- {
- value_.WriteTo(output, _repeated_value_codec);
- if (_unknownFields != null)
- {
- _unknownFields.WriteTo(output);
- }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public int CalculateSize()
- {
- int size = 0;
- size += value_.CalculateSize(_repeated_value_codec);
- if (_unknownFields != null)
- {
- size += _unknownFields.CalculateSize();
- }
- return size;
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(BytesList other)
- {
- if (other == null)
- {
- return;
- }
- value_.Add(other.value_);
- _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(pb::CodedInputStream input)
- {
- uint tag;
- while ((tag = input.ReadTag()) != 0)
- {
- switch (tag)
- {
- default:
- _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
- break;
- case 10:
- {
- value_.AddEntriesFrom(input, _repeated_value_codec);
- break;
- }
- }
- }
- }
- }
- public sealed partial class FloatList : pb::IMessage<FloatList>
- {
- private static readonly pb::MessageParser<FloatList> _parser = new pb::MessageParser<FloatList>(() => new FloatList());
- private pb::UnknownFieldSet _unknownFields;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static pb::MessageParser<FloatList> Parser { get { return _parser; } }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static pbr::MessageDescriptor Descriptor
- {
- get { return global::Tensorflow.MyReflection.Descriptor.MessageTypes[3]; }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- pbr::MessageDescriptor pb::IMessage.Descriptor
- {
- get { return Descriptor; }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public FloatList()
- {
- OnConstruction();
- }
- partial void OnConstruction();
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public FloatList(FloatList other) : this()
- {
- value_ = other.value_.Clone();
- _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public FloatList Clone()
- {
- return new FloatList(this);
- }
- /// <summary>Field number for the "value" field.</summary>
- public const int ValueFieldNumber = 1;
- private static readonly pb::FieldCodec<float> _repeated_value_codec
- = pb::FieldCodec.ForFloat(10);
- private readonly pbc::RepeatedField<float> value_ = new pbc::RepeatedField<float>();
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public pbc::RepeatedField<float> Value
- {
- get { return value_; }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override bool Equals(object other)
- {
- return Equals(other as FloatList);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool Equals(FloatList other)
- {
- if (ReferenceEquals(other, null))
- {
- return false;
- }
- if (ReferenceEquals(other, this))
- {
- return true;
- }
- if (!value_.Equals(other.value_)) return false;
- return Equals(_unknownFields, other._unknownFields);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override int GetHashCode()
- {
- int hash = 1;
- hash ^= value_.GetHashCode();
- if (_unknownFields != null)
- {
- hash ^= _unknownFields.GetHashCode();
- }
- return hash;
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override string ToString()
- {
- return pb::JsonFormatter.ToDiagnosticString(this);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void WriteTo(pb::CodedOutputStream output)
- {
- value_.WriteTo(output, _repeated_value_codec);
- if (_unknownFields != null)
- {
- _unknownFields.WriteTo(output);
- }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public int CalculateSize()
- {
- int size = 0;
- size += value_.CalculateSize(_repeated_value_codec);
- if (_unknownFields != null)
- {
- size += _unknownFields.CalculateSize();
- }
- return size;
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(FloatList other)
- {
- if (other == null)
- {
- return;
- }
- value_.Add(other.value_);
- _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(pb::CodedInputStream input)
- {
- uint tag;
- while ((tag = input.ReadTag()) != 0)
- {
- switch (tag)
- {
- default:
- _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
- break;
- case 10:
- case 13:
- {
- value_.AddEntriesFrom(input, _repeated_value_codec);
- break;
- }
- }
- }
- }
- }
- public sealed partial class Int64List : pb::IMessage<Int64List>
- {
- private static readonly pb::MessageParser<Int64List> _parser = new pb::MessageParser<Int64List>(() => new Int64List());
- private pb::UnknownFieldSet _unknownFields;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static pb::MessageParser<Int64List> Parser { get { return _parser; } }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static pbr::MessageDescriptor Descriptor
- {
- get { return global::Tensorflow.MyReflection.Descriptor.MessageTypes[4]; }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- pbr::MessageDescriptor pb::IMessage.Descriptor
- {
- get { return Descriptor; }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public Int64List()
- {
- OnConstruction();
- }
- partial void OnConstruction();
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public Int64List(Int64List other) : this()
- {
- value_ = other.value_.Clone();
- _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public Int64List Clone()
- {
- return new Int64List(this);
- }
- /// <summary>Field number for the "value" field.</summary>
- public const int ValueFieldNumber = 1;
- private static readonly pb::FieldCodec<long> _repeated_value_codec
- = pb::FieldCodec.ForInt64(10);
- private readonly pbc::RepeatedField<long> value_ = new pbc::RepeatedField<long>();
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public pbc::RepeatedField<long> Value
- {
- get { return value_; }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override bool Equals(object other)
- {
- return Equals(other as Int64List);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool Equals(Int64List other)
- {
- if (ReferenceEquals(other, null))
- {
- return false;
- }
- if (ReferenceEquals(other, this))
- {
- return true;
- }
- if (!value_.Equals(other.value_)) return false;
- return Equals(_unknownFields, other._unknownFields);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override int GetHashCode()
- {
- int hash = 1;
- hash ^= value_.GetHashCode();
- if (_unknownFields != null)
- {
- hash ^= _unknownFields.GetHashCode();
- }
- return hash;
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override string ToString()
- {
- return pb::JsonFormatter.ToDiagnosticString(this);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void WriteTo(pb::CodedOutputStream output)
- {
- value_.WriteTo(output, _repeated_value_codec);
- if (_unknownFields != null)
- {
- _unknownFields.WriteTo(output);
- }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public int CalculateSize()
- {
- int size = 0;
- size += value_.CalculateSize(_repeated_value_codec);
- if (_unknownFields != null)
- {
- size += _unknownFields.CalculateSize();
- }
- return size;
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(Int64List other)
- {
- if (other == null)
- {
- return;
- }
- value_.Add(other.value_);
- _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(pb::CodedInputStream input)
- {
- uint tag;
- while ((tag = input.ReadTag()) != 0)
- {
- switch (tag)
- {
- default:
- _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
- break;
- case 10:
- case 8:
- {
- value_.AddEntriesFrom(input, _repeated_value_codec);
- break;
- }
- }
- }
- }
- }
- /// <summary>
- /// Containers for non-sequential data.
- /// </summary>
- public sealed partial class Feature : pb::IMessage<Feature>
- {
- private static readonly pb::MessageParser<Feature> _parser = new pb::MessageParser<Feature>(() => new Feature());
- private pb::UnknownFieldSet _unknownFields;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static pb::MessageParser<Feature> Parser { get { return _parser; } }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static pbr::MessageDescriptor Descriptor
- {
- get { return global::Tensorflow.MyReflection.Descriptor.MessageTypes[5]; }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- pbr::MessageDescriptor pb::IMessage.Descriptor
- {
- get { return Descriptor; }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public Feature()
- {
- OnConstruction();
- }
- partial void OnConstruction();
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public Feature(Feature other) : this()
- {
- switch (other.KindCase)
- {
- case KindOneofCase.BytesList:
- BytesList = other.BytesList.Clone();
- break;
- case KindOneofCase.FloatList:
- FloatList = other.FloatList.Clone();
- break;
- case KindOneofCase.Int64List:
- Int64List = other.Int64List.Clone();
- break;
- }
- _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public Feature Clone()
- {
- return new Feature(this);
- }
- /// <summary>Field number for the "bytes_list" field.</summary>
- public const int BytesListFieldNumber = 1;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public global::Tensorflow.BytesList BytesList
- {
- get { return kindCase_ == KindOneofCase.BytesList ? (global::Tensorflow.BytesList)kind_ : null; }
- set
- {
- kind_ = value;
- kindCase_ = value == null ? KindOneofCase.None : KindOneofCase.BytesList;
- }
- }
- /// <summary>Field number for the "float_list" field.</summary>
- public const int FloatListFieldNumber = 2;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public global::Tensorflow.FloatList FloatList
- {
- get { return kindCase_ == KindOneofCase.FloatList ? (global::Tensorflow.FloatList)kind_ : null; }
- set
- {
- kind_ = value;
- kindCase_ = value == null ? KindOneofCase.None : KindOneofCase.FloatList;
- }
- }
- /// <summary>Field number for the "int64_list" field.</summary>
- public const int Int64ListFieldNumber = 3;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public global::Tensorflow.Int64List Int64List
- {
- get { return kindCase_ == KindOneofCase.Int64List ? (global::Tensorflow.Int64List)kind_ : null; }
- set
- {
- kind_ = value;
- kindCase_ = value == null ? KindOneofCase.None : KindOneofCase.Int64List;
- }
- }
- private object kind_;
- /// <summary>Enum of possible cases for the "kind" oneof.</summary>
- public enum KindOneofCase
- {
- None = 0,
- BytesList = 1,
- FloatList = 2,
- Int64List = 3,
- }
- private KindOneofCase kindCase_ = KindOneofCase.None;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public KindOneofCase KindCase
- {
- get { return kindCase_; }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void ClearKind()
- {
- kindCase_ = KindOneofCase.None;
- kind_ = null;
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override bool Equals(object other)
- {
- return Equals(other as Feature);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool Equals(Feature other)
- {
- if (ReferenceEquals(other, null))
- {
- return false;
- }
- if (ReferenceEquals(other, this))
- {
- return true;
- }
- if (!object.Equals(BytesList, other.BytesList)) return false;
- if (!object.Equals(FloatList, other.FloatList)) return false;
- if (!object.Equals(Int64List, other.Int64List)) return false;
- if (KindCase != other.KindCase) return false;
- return Equals(_unknownFields, other._unknownFields);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override int GetHashCode()
- {
- int hash = 1;
- if (kindCase_ == KindOneofCase.BytesList) hash ^= BytesList.GetHashCode();
- if (kindCase_ == KindOneofCase.FloatList) hash ^= FloatList.GetHashCode();
- if (kindCase_ == KindOneofCase.Int64List) hash ^= Int64List.GetHashCode();
- hash ^= (int)kindCase_;
- if (_unknownFields != null)
- {
- hash ^= _unknownFields.GetHashCode();
- }
- return hash;
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override string ToString()
- {
- return pb::JsonFormatter.ToDiagnosticString(this);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void WriteTo(pb::CodedOutputStream output)
- {
- if (kindCase_ == KindOneofCase.BytesList)
- {
- output.WriteRawTag(10);
- output.WriteMessage(BytesList);
- }
- if (kindCase_ == KindOneofCase.FloatList)
- {
- output.WriteRawTag(18);
- output.WriteMessage(FloatList);
- }
- if (kindCase_ == KindOneofCase.Int64List)
- {
- output.WriteRawTag(26);
- output.WriteMessage(Int64List);
- }
- if (_unknownFields != null)
- {
- _unknownFields.WriteTo(output);
- }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public int CalculateSize()
- {
- int size = 0;
- if (kindCase_ == KindOneofCase.BytesList)
- {
- size += 1 + pb::CodedOutputStream.ComputeMessageSize(BytesList);
- }
- if (kindCase_ == KindOneofCase.FloatList)
- {
- size += 1 + pb::CodedOutputStream.ComputeMessageSize(FloatList);
- }
- if (kindCase_ == KindOneofCase.Int64List)
- {
- size += 1 + pb::CodedOutputStream.ComputeMessageSize(Int64List);
- }
- if (_unknownFields != null)
- {
- size += _unknownFields.CalculateSize();
- }
- return size;
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(Feature other)
- {
- if (other == null)
- {
- return;
- }
- switch (other.KindCase)
- {
- case KindOneofCase.BytesList:
- if (BytesList == null)
- {
- BytesList = new global::Tensorflow.BytesList();
- }
- BytesList.MergeFrom(other.BytesList);
- break;
- case KindOneofCase.FloatList:
- if (FloatList == null)
- {
- FloatList = new global::Tensorflow.FloatList();
- }
- FloatList.MergeFrom(other.FloatList);
- break;
- case KindOneofCase.Int64List:
- if (Int64List == null)
- {
- Int64List = new global::Tensorflow.Int64List();
- }
- Int64List.MergeFrom(other.Int64List);
- break;
- }
- _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(pb::CodedInputStream input)
- {
- uint tag;
- while ((tag = input.ReadTag()) != 0)
- {
- switch (tag)
- {
- default:
- _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
- break;
- case 10:
- {
- global::Tensorflow.BytesList subBuilder = new global::Tensorflow.BytesList();
- if (kindCase_ == KindOneofCase.BytesList)
- {
- subBuilder.MergeFrom(BytesList);
- }
- input.ReadMessage(subBuilder);
- BytesList = subBuilder;
- break;
- }
- case 18:
- {
- global::Tensorflow.FloatList subBuilder = new global::Tensorflow.FloatList();
- if (kindCase_ == KindOneofCase.FloatList)
- {
- subBuilder.MergeFrom(FloatList);
- }
- input.ReadMessage(subBuilder);
- FloatList = subBuilder;
- break;
- }
- case 26:
- {
- global::Tensorflow.Int64List subBuilder = new global::Tensorflow.Int64List();
- if (kindCase_ == KindOneofCase.Int64List)
- {
- subBuilder.MergeFrom(Int64List);
- }
- input.ReadMessage(subBuilder);
- Int64List = subBuilder;
- break;
- }
- }
- }
- }
- }
- public sealed partial class Features : pb::IMessage<Features>
- {
- private static readonly pb::MessageParser<Features> _parser = new pb::MessageParser<Features>(() => new Features());
- private pb::UnknownFieldSet _unknownFields;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static pb::MessageParser<Features> Parser { get { return _parser; } }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static pbr::MessageDescriptor Descriptor
- {
- get { return global::Tensorflow.MyReflection.Descriptor.MessageTypes[6]; }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- pbr::MessageDescriptor pb::IMessage.Descriptor
- {
- get { return Descriptor; }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public Features()
- {
- OnConstruction();
- }
- partial void OnConstruction();
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public Features(Features other) : this()
- {
- feature_ = other.feature_.Clone();
- _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public Features Clone()
- {
- return new Features(this);
- }
- /// <summary>Field number for the "feature" field.</summary>
- public const int FeatureFieldNumber = 1;
- private static readonly pbc::MapField<string, global::Tensorflow.Feature>.Codec _map_feature_codec
- = new pbc::MapField<string, global::Tensorflow.Feature>.Codec(pb::FieldCodec.ForString(10, ""), pb::FieldCodec.ForMessage(18, global::Tensorflow.Feature.Parser), 10);
- private readonly pbc::MapField<string, global::Tensorflow.Feature> feature_ = new pbc::MapField<string, global::Tensorflow.Feature>();
- /// <summary>
- /// Map from feature name to feature.
- /// </summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public pbc::MapField<string, global::Tensorflow.Feature> Feature
- {
- get { return feature_; }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override bool Equals(object other)
- {
- return Equals(other as Features);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool Equals(Features other)
- {
- if (ReferenceEquals(other, null))
- {
- return false;
- }
- if (ReferenceEquals(other, this))
- {
- return true;
- }
- if (!Feature.Equals(other.Feature)) return false;
- return Equals(_unknownFields, other._unknownFields);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override int GetHashCode()
- {
- int hash = 1;
- hash ^= Feature.GetHashCode();
- if (_unknownFields != null)
- {
- hash ^= _unknownFields.GetHashCode();
- }
- return hash;
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override string ToString()
- {
- return pb::JsonFormatter.ToDiagnosticString(this);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void WriteTo(pb::CodedOutputStream output)
- {
- feature_.WriteTo(output, _map_feature_codec);
- if (_unknownFields != null)
- {
- _unknownFields.WriteTo(output);
- }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public int CalculateSize()
- {
- int size = 0;
- size += feature_.CalculateSize(_map_feature_codec);
- if (_unknownFields != null)
- {
- size += _unknownFields.CalculateSize();
- }
- return size;
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(Features other)
- {
- if (other == null)
- {
- return;
- }
- feature_.Add(other.feature_);
- _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(pb::CodedInputStream input)
- {
- uint tag;
- while ((tag = input.ReadTag()) != 0)
- {
- switch (tag)
- {
- default:
- _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
- break;
- case 10:
- {
- feature_.AddEntriesFrom(input, _map_feature_codec);
- break;
- }
- }
- }
- }
- }
- /// <summary>
- /// Containers for sequential data.
- ///
- /// A FeatureList contains lists of Features. These may hold zero or more
- /// Feature values.
- ///
- /// FeatureLists are organized into categories by name. The FeatureLists message
- /// contains the mapping from name to FeatureList.
- /// </summary>
- public sealed partial class FeatureList : pb::IMessage<FeatureList>
- {
- private static readonly pb::MessageParser<FeatureList> _parser = new pb::MessageParser<FeatureList>(() => new FeatureList());
- private pb::UnknownFieldSet _unknownFields;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static pb::MessageParser<FeatureList> Parser { get { return _parser; } }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static pbr::MessageDescriptor Descriptor
- {
- get { return global::Tensorflow.MyReflection.Descriptor.MessageTypes[7]; }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- pbr::MessageDescriptor pb::IMessage.Descriptor
- {
- get { return Descriptor; }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public FeatureList()
- {
- OnConstruction();
- }
- partial void OnConstruction();
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public FeatureList(FeatureList other) : this()
- {
- feature_ = other.feature_.Clone();
- _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public FeatureList Clone()
- {
- return new FeatureList(this);
- }
- /// <summary>Field number for the "feature" field.</summary>
- public const int FeatureFieldNumber = 1;
- private static readonly pb::FieldCodec<global::Tensorflow.Feature> _repeated_feature_codec
- = pb::FieldCodec.ForMessage(10, global::Tensorflow.Feature.Parser);
- private readonly pbc::RepeatedField<global::Tensorflow.Feature> feature_ = new pbc::RepeatedField<global::Tensorflow.Feature>();
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public pbc::RepeatedField<global::Tensorflow.Feature> Feature
- {
- get { return feature_; }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override bool Equals(object other)
- {
- return Equals(other as FeatureList);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool Equals(FeatureList other)
- {
- if (ReferenceEquals(other, null))
- {
- return false;
- }
- if (ReferenceEquals(other, this))
- {
- return true;
- }
- if (!feature_.Equals(other.feature_)) return false;
- return Equals(_unknownFields, other._unknownFields);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override int GetHashCode()
- {
- int hash = 1;
- hash ^= feature_.GetHashCode();
- if (_unknownFields != null)
- {
- hash ^= _unknownFields.GetHashCode();
- }
- return hash;
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override string ToString()
- {
- return pb::JsonFormatter.ToDiagnosticString(this);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void WriteTo(pb::CodedOutputStream output)
- {
- feature_.WriteTo(output, _repeated_feature_codec);
- if (_unknownFields != null)
- {
- _unknownFields.WriteTo(output);
- }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public int CalculateSize()
- {
- int size = 0;
- size += feature_.CalculateSize(_repeated_feature_codec);
- if (_unknownFields != null)
- {
- size += _unknownFields.CalculateSize();
- }
- return size;
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(FeatureList other)
- {
- if (other == null)
- {
- return;
- }
- feature_.Add(other.feature_);
- _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(pb::CodedInputStream input)
- {
- uint tag;
- while ((tag = input.ReadTag()) != 0)
- {
- switch (tag)
- {
- default:
- _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
- break;
- case 10:
- {
- feature_.AddEntriesFrom(input, _repeated_feature_codec);
- break;
- }
- }
- }
- }
- }
- public sealed partial class FeatureLists : pb::IMessage<FeatureLists>
- {
- private static readonly pb::MessageParser<FeatureLists> _parser = new pb::MessageParser<FeatureLists>(() => new FeatureLists());
- private pb::UnknownFieldSet _unknownFields;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static pb::MessageParser<FeatureLists> Parser { get { return _parser; } }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static pbr::MessageDescriptor Descriptor
- {
- get { return global::Tensorflow.MyReflection.Descriptor.MessageTypes[8]; }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- pbr::MessageDescriptor pb::IMessage.Descriptor
- {
- get { return Descriptor; }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public FeatureLists()
- {
- OnConstruction();
- }
- partial void OnConstruction();
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public FeatureLists(FeatureLists other) : this()
- {
- featureList_ = other.featureList_.Clone();
- _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public FeatureLists Clone()
- {
- return new FeatureLists(this);
- }
- /// <summary>Field number for the "feature_list" field.</summary>
- public const int FeatureListFieldNumber = 1;
- private static readonly pbc::MapField<string, global::Tensorflow.FeatureList>.Codec _map_featureList_codec
- = new pbc::MapField<string, global::Tensorflow.FeatureList>.Codec(pb::FieldCodec.ForString(10, ""), pb::FieldCodec.ForMessage(18, global::Tensorflow.FeatureList.Parser), 10);
- private readonly pbc::MapField<string, global::Tensorflow.FeatureList> featureList_ = new pbc::MapField<string, global::Tensorflow.FeatureList>();
- /// <summary>
- /// Map from feature name to feature list.
- /// </summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public pbc::MapField<string, global::Tensorflow.FeatureList> FeatureList
- {
- get { return featureList_; }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override bool Equals(object other)
- {
- return Equals(other as FeatureLists);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool Equals(FeatureLists other)
- {
- if (ReferenceEquals(other, null))
- {
- return false;
- }
- if (ReferenceEquals(other, this))
- {
- return true;
- }
- if (!FeatureList.Equals(other.FeatureList)) return false;
- return Equals(_unknownFields, other._unknownFields);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override int GetHashCode()
- {
- int hash = 1;
- hash ^= FeatureList.GetHashCode();
- if (_unknownFields != null)
- {
- hash ^= _unknownFields.GetHashCode();
- }
- return hash;
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override string ToString()
- {
- return pb::JsonFormatter.ToDiagnosticString(this);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void WriteTo(pb::CodedOutputStream output)
- {
- featureList_.WriteTo(output, _map_featureList_codec);
- if (_unknownFields != null)
- {
- _unknownFields.WriteTo(output);
- }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public int CalculateSize()
- {
- int size = 0;
- size += featureList_.CalculateSize(_map_featureList_codec);
- if (_unknownFields != null)
- {
- size += _unknownFields.CalculateSize();
- }
- return size;
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(FeatureLists other)
- {
- if (other == null)
- {
- return;
- }
- featureList_.Add(other.featureList_);
- _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(pb::CodedInputStream input)
- {
- uint tag;
- while ((tag = input.ReadTag()) != 0)
- {
- switch (tag)
- {
- default:
- _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
- break;
- case 10:
- {
- featureList_.AddEntriesFrom(input, _map_featureList_codec);
- break;
- }
- }
- }
- }
- }
- /// <summary>
- /// Specifies one or more fully independent input Examples.
- /// See examples at:
- /// https://github.com/tensorflow/tensorflow/blob/master/tensorflow/core/example/example.proto
- /// </summary>
- public sealed partial class ExampleList : pb::IMessage<ExampleList>
- {
- private static readonly pb::MessageParser<ExampleList> _parser = new pb::MessageParser<ExampleList>(() => new ExampleList());
- private pb::UnknownFieldSet _unknownFields;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static pb::MessageParser<ExampleList> Parser { get { return _parser; } }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static pbr::MessageDescriptor Descriptor
- {
- get { return global::Tensorflow.MyReflection.Descriptor.MessageTypes[9]; }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- pbr::MessageDescriptor pb::IMessage.Descriptor
- {
- get { return Descriptor; }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public ExampleList()
- {
- OnConstruction();
- }
- partial void OnConstruction();
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public ExampleList(ExampleList other) : this()
- {
- examples_ = other.examples_.Clone();
- _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public ExampleList Clone()
- {
- return new ExampleList(this);
- }
- /// <summary>Field number for the "examples" field.</summary>
- public const int ExamplesFieldNumber = 1;
- private static readonly pb::FieldCodec<global::Tensorflow.Example> _repeated_examples_codec
- = pb::FieldCodec.ForMessage(10, global::Tensorflow.Example.Parser);
- private readonly pbc::RepeatedField<global::Tensorflow.Example> examples_ = new pbc::RepeatedField<global::Tensorflow.Example>();
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public pbc::RepeatedField<global::Tensorflow.Example> Examples
- {
- get { return examples_; }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override bool Equals(object other)
- {
- return Equals(other as ExampleList);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool Equals(ExampleList other)
- {
- if (ReferenceEquals(other, null))
- {
- return false;
- }
- if (ReferenceEquals(other, this))
- {
- return true;
- }
- if (!examples_.Equals(other.examples_)) return false;
- return Equals(_unknownFields, other._unknownFields);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override int GetHashCode()
- {
- int hash = 1;
- hash ^= examples_.GetHashCode();
- if (_unknownFields != null)
- {
- hash ^= _unknownFields.GetHashCode();
- }
- return hash;
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override string ToString()
- {
- return pb::JsonFormatter.ToDiagnosticString(this);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void WriteTo(pb::CodedOutputStream output)
- {
- examples_.WriteTo(output, _repeated_examples_codec);
- if (_unknownFields != null)
- {
- _unknownFields.WriteTo(output);
- }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public int CalculateSize()
- {
- int size = 0;
- size += examples_.CalculateSize(_repeated_examples_codec);
- if (_unknownFields != null)
- {
- size += _unknownFields.CalculateSize();
- }
- return size;
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(ExampleList other)
- {
- if (other == null)
- {
- return;
- }
- examples_.Add(other.examples_);
- _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(pb::CodedInputStream input)
- {
- uint tag;
- while ((tag = input.ReadTag()) != 0)
- {
- switch (tag)
- {
- default:
- _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
- break;
- case 10:
- {
- examples_.AddEntriesFrom(input, _repeated_examples_codec);
- break;
- }
- }
- }
- }
- }
- /// <summary>
- /// Specifies one or more independent input Examples, with a common context
- /// Example.
- ///
- /// The common use case for context is to cleanly and optimally specify some
- /// features that are common across multiple examples.
- ///
- /// See example below with a search query as the context and multiple restaurants
- /// to perform some inference on.
- ///
- /// context: {
- /// features: {
- /// feature: {
- /// key : "query"
- /// value: {
- /// bytes_list: {
- /// value: [ "pizza" ]
- /// }
- /// }
- /// }
- /// }
- /// }
- /// examples: {
- /// features: {
- /// feature: {
- /// key : "cuisine"
- /// value: {
- /// bytes_list: {
- /// value: [ "Pizzeria" ]
- /// }
- /// }
- /// }
- /// }
- /// }
- /// examples: {
- /// features: {
- /// feature: {
- /// key : "cuisine"
- /// value: {
- /// bytes_list: {
- /// value: [ "Taqueria" ]
- /// }
- /// }
- /// }
- /// }
- /// }
- ///
- /// Implementations of ExampleListWithContext merge the context Example into each
- /// of the Examples. Note that feature keys must not be duplicated between the
- /// Examples and context Example, or the behavior is undefined.
- ///
- /// See also:
- /// tensorflow/core/example/example.proto
- /// https://developers.google.com/protocol-buffers/docs/proto3#maps
- /// </summary>
- public sealed partial class ExampleListWithContext : pb::IMessage<ExampleListWithContext>
- {
- private static readonly pb::MessageParser<ExampleListWithContext> _parser = new pb::MessageParser<ExampleListWithContext>(() => new ExampleListWithContext());
- private pb::UnknownFieldSet _unknownFields;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static pb::MessageParser<ExampleListWithContext> Parser { get { return _parser; } }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static pbr::MessageDescriptor Descriptor
- {
- get { return global::Tensorflow.MyReflection.Descriptor.MessageTypes[10]; }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- pbr::MessageDescriptor pb::IMessage.Descriptor
- {
- get { return Descriptor; }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public ExampleListWithContext()
- {
- OnConstruction();
- }
- partial void OnConstruction();
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public ExampleListWithContext(ExampleListWithContext other) : this()
- {
- examples_ = other.examples_.Clone();
- context_ = other.context_ != null ? other.context_.Clone() : null;
- _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public ExampleListWithContext Clone()
- {
- return new ExampleListWithContext(this);
- }
- /// <summary>Field number for the "examples" field.</summary>
- public const int ExamplesFieldNumber = 1;
- private static readonly pb::FieldCodec<global::Tensorflow.Example> _repeated_examples_codec
- = pb::FieldCodec.ForMessage(10, global::Tensorflow.Example.Parser);
- private readonly pbc::RepeatedField<global::Tensorflow.Example> examples_ = new pbc::RepeatedField<global::Tensorflow.Example>();
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public pbc::RepeatedField<global::Tensorflow.Example> Examples
- {
- get { return examples_; }
- }
- /// <summary>Field number for the "context" field.</summary>
- public const int ContextFieldNumber = 2;
- private global::Tensorflow.Example context_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public global::Tensorflow.Example Context
- {
- get { return context_; }
- set
- {
- context_ = value;
- }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override bool Equals(object other)
- {
- return Equals(other as ExampleListWithContext);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool Equals(ExampleListWithContext other)
- {
- if (ReferenceEquals(other, null))
- {
- return false;
- }
- if (ReferenceEquals(other, this))
- {
- return true;
- }
- if (!examples_.Equals(other.examples_)) return false;
- if (!object.Equals(Context, other.Context)) return false;
- return Equals(_unknownFields, other._unknownFields);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override int GetHashCode()
- {
- int hash = 1;
- hash ^= examples_.GetHashCode();
- if (context_ != null) hash ^= Context.GetHashCode();
- if (_unknownFields != null)
- {
- hash ^= _unknownFields.GetHashCode();
- }
- return hash;
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override string ToString()
- {
- return pb::JsonFormatter.ToDiagnosticString(this);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void WriteTo(pb::CodedOutputStream output)
- {
- examples_.WriteTo(output, _repeated_examples_codec);
- if (context_ != null)
- {
- output.WriteRawTag(18);
- output.WriteMessage(Context);
- }
- if (_unknownFields != null)
- {
- _unknownFields.WriteTo(output);
- }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public int CalculateSize()
- {
- int size = 0;
- size += examples_.CalculateSize(_repeated_examples_codec);
- if (context_ != null)
- {
- size += 1 + pb::CodedOutputStream.ComputeMessageSize(Context);
- }
- if (_unknownFields != null)
- {
- size += _unknownFields.CalculateSize();
- }
- return size;
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(ExampleListWithContext other)
- {
- if (other == null)
- {
- return;
- }
- examples_.Add(other.examples_);
- if (other.context_ != null)
- {
- if (context_ == null)
- {
- Context = new global::Tensorflow.Example();
- }
- Context.MergeFrom(other.Context);
- }
- _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(pb::CodedInputStream input)
- {
- uint tag;
- while ((tag = input.ReadTag()) != 0)
- {
- switch (tag)
- {
- default:
- _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
- break;
- case 10:
- {
- examples_.AddEntriesFrom(input, _repeated_examples_codec);
- break;
- }
- case 18:
- {
- if (context_ == null)
- {
- Context = new global::Tensorflow.Example();
- }
- input.ReadMessage(Context);
- break;
- }
- }
- }
- }
- }
- public sealed partial class Input : pb::IMessage<Input>
- {
- private static readonly pb::MessageParser<Input> _parser = new pb::MessageParser<Input>(() => new Input());
- private pb::UnknownFieldSet _unknownFields;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static pb::MessageParser<Input> Parser { get { return _parser; } }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public static pbr::MessageDescriptor Descriptor
- {
- get { return global::Tensorflow.MyReflection.Descriptor.MessageTypes[11]; }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- pbr::MessageDescriptor pb::IMessage.Descriptor
- {
- get { return Descriptor; }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public Input()
- {
- OnConstruction();
- }
- partial void OnConstruction();
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public Input(Input other) : this()
- {
- switch (other.KindCase)
- {
- case KindOneofCase.ExampleList:
- ExampleList = other.ExampleList.Clone();
- break;
- case KindOneofCase.ExampleListWithContext:
- ExampleListWithContext = other.ExampleListWithContext.Clone();
- break;
- }
- _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public Input Clone()
- {
- return new Input(this);
- }
- /// <summary>Field number for the "example_list" field.</summary>
- public const int ExampleListFieldNumber = 1;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public global::Tensorflow.ExampleList ExampleList
- {
- get { return kindCase_ == KindOneofCase.ExampleList ? (global::Tensorflow.ExampleList)kind_ : null; }
- set
- {
- kind_ = value;
- kindCase_ = value == null ? KindOneofCase.None : KindOneofCase.ExampleList;
- }
- }
- /// <summary>Field number for the "example_list_with_context" field.</summary>
- public const int ExampleListWithContextFieldNumber = 2;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public global::Tensorflow.ExampleListWithContext ExampleListWithContext
- {
- get { return kindCase_ == KindOneofCase.ExampleListWithContext ? (global::Tensorflow.ExampleListWithContext)kind_ : null; }
- set
- {
- kind_ = value;
- kindCase_ = value == null ? KindOneofCase.None : KindOneofCase.ExampleListWithContext;
- }
- }
- private object kind_;
- /// <summary>Enum of possible cases for the "kind" oneof.</summary>
- public enum KindOneofCase
- {
- None = 0,
- ExampleList = 1,
- ExampleListWithContext = 2,
- }
- private KindOneofCase kindCase_ = KindOneofCase.None;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public KindOneofCase KindCase
- {
- get { return kindCase_; }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void ClearKind()
- {
- kindCase_ = KindOneofCase.None;
- kind_ = null;
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override bool Equals(object other)
- {
- return Equals(other as Input);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public bool Equals(Input other)
- {
- if (ReferenceEquals(other, null))
- {
- return false;
- }
- if (ReferenceEquals(other, this))
- {
- return true;
- }
- if (!object.Equals(ExampleList, other.ExampleList)) return false;
- if (!object.Equals(ExampleListWithContext, other.ExampleListWithContext)) return false;
- if (KindCase != other.KindCase) return false;
- return Equals(_unknownFields, other._unknownFields);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override int GetHashCode()
- {
- int hash = 1;
- if (kindCase_ == KindOneofCase.ExampleList) hash ^= ExampleList.GetHashCode();
- if (kindCase_ == KindOneofCase.ExampleListWithContext) hash ^= ExampleListWithContext.GetHashCode();
- hash ^= (int)kindCase_;
- if (_unknownFields != null)
- {
- hash ^= _unknownFields.GetHashCode();
- }
- return hash;
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public override string ToString()
- {
- return pb::JsonFormatter.ToDiagnosticString(this);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void WriteTo(pb::CodedOutputStream output)
- {
- if (kindCase_ == KindOneofCase.ExampleList)
- {
- output.WriteRawTag(10);
- output.WriteMessage(ExampleList);
- }
- if (kindCase_ == KindOneofCase.ExampleListWithContext)
- {
- output.WriteRawTag(18);
- output.WriteMessage(ExampleListWithContext);
- }
- if (_unknownFields != null)
- {
- _unknownFields.WriteTo(output);
- }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public int CalculateSize()
- {
- int size = 0;
- if (kindCase_ == KindOneofCase.ExampleList)
- {
- size += 1 + pb::CodedOutputStream.ComputeMessageSize(ExampleList);
- }
- if (kindCase_ == KindOneofCase.ExampleListWithContext)
- {
- size += 1 + pb::CodedOutputStream.ComputeMessageSize(ExampleListWithContext);
- }
- if (_unknownFields != null)
- {
- size += _unknownFields.CalculateSize();
- }
- return size;
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(Input other)
- {
- if (other == null)
- {
- return;
- }
- switch (other.KindCase)
- {
- case KindOneofCase.ExampleList:
- if (ExampleList == null)
- {
- ExampleList = new global::Tensorflow.ExampleList();
- }
- ExampleList.MergeFrom(other.ExampleList);
- break;
- case KindOneofCase.ExampleListWithContext:
- if (ExampleListWithContext == null)
- {
- ExampleListWithContext = new global::Tensorflow.ExampleListWithContext();
- }
- ExampleListWithContext.MergeFrom(other.ExampleListWithContext);
- break;
- }
- _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public void MergeFrom(pb::CodedInputStream input)
- {
- uint tag;
- while ((tag = input.ReadTag()) != 0)
- {
- switch (tag)
- {
- default:
- _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
- break;
- case 10:
- {
- global::Tensorflow.ExampleList subBuilder = new global::Tensorflow.ExampleList();
- if (kindCase_ == KindOneofCase.ExampleList)
- {
- subBuilder.MergeFrom(ExampleList);
- }
- input.ReadMessage(subBuilder);
- ExampleList = subBuilder;
- break;
- }
- case 18:
- {
- global::Tensorflow.ExampleListWithContext subBuilder = new global::Tensorflow.ExampleListWithContext();
- if (kindCase_ == KindOneofCase.ExampleListWithContext)
- {
- subBuilder.MergeFrom(ExampleListWithContext);
- }
- input.ReadMessage(subBuilder);
- ExampleListWithContext = subBuilder;
- break;
- }
- }
- }
- }
- }
- #endregion
- }
- #endregion Designer generated code
Add Comment
Please, Sign In to add comment