You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

VerifierConfig.cs 8.8 kB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229
  1. // <auto-generated>
  2. // Generated by the protocol buffer compiler. DO NOT EDIT!
  3. // source: tensorflow/core/protobuf/verifier_config.proto
  4. // </auto-generated>
  5. #pragma warning disable 1591, 0612, 3021
  6. #region Designer generated code
  7. using pb = global::Google.Protobuf;
  8. using pbc = global::Google.Protobuf.Collections;
  9. using pbr = global::Google.Protobuf.Reflection;
  10. using scg = global::System.Collections.Generic;
  11. namespace Tensorflow {
  12. /// <summary>Holder for reflection information generated from tensorflow/core/protobuf/verifier_config.proto</summary>
  13. public static partial class VerifierConfigReflection {
  14. #region Descriptor
  15. /// <summary>File descriptor for tensorflow/core/protobuf/verifier_config.proto</summary>
  16. public static pbr::FileDescriptor Descriptor {
  17. get { return descriptor; }
  18. }
  19. private static pbr::FileDescriptor descriptor;
  20. static VerifierConfigReflection() {
  21. byte[] descriptorData = global::System.Convert.FromBase64String(
  22. string.Concat(
  23. "Ci50ZW5zb3JmbG93L2NvcmUvcHJvdG9idWYvdmVyaWZpZXJfY29uZmlnLnBy",
  24. "b3RvEgp0ZW5zb3JmbG93IpsBCg5WZXJpZmllckNvbmZpZxIiChp2ZXJpZmlj",
  25. "YXRpb25fdGltZW91dF9pbl9tcxgBIAEoAxI9ChJzdHJ1Y3R1cmVfdmVyaWZp",
  26. "ZXIYAiABKA4yIS50ZW5zb3JmbG93LlZlcmlmaWVyQ29uZmlnLlRvZ2dsZSIm",
  27. "CgZUb2dnbGUSCwoHREVGQVVMVBAAEgYKAk9OEAESBwoDT0ZGEAJCcwoYb3Jn",
  28. "LnRlbnNvcmZsb3cuZnJhbWV3b3JrQhRWZXJpZmllckNvbmZpZ1Byb3Rvc1AB",
  29. "WjxnaXRodWIuY29tL3RlbnNvcmZsb3cvdGVuc29yZmxvdy90ZW5zb3JmbG93",
  30. "L2dvL2NvcmUvcHJvdG9idWb4AQFiBnByb3RvMw=="));
  31. descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
  32. new pbr::FileDescriptor[] { },
  33. new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] {
  34. new pbr::GeneratedClrTypeInfo(typeof(global::Tensorflow.VerifierConfig), global::Tensorflow.VerifierConfig.Parser, new[]{ "VerificationTimeoutInMs", "StructureVerifier" }, null, new[]{ typeof(global::Tensorflow.VerifierConfig.Types.Toggle) }, null, null)
  35. }));
  36. }
  37. #endregion
  38. }
  39. #region Messages
  40. /// <summary>
  41. /// The config for graph verifiers.
  42. /// </summary>
  43. public sealed partial class VerifierConfig : pb::IMessage<VerifierConfig> {
  44. private static readonly pb::MessageParser<VerifierConfig> _parser = new pb::MessageParser<VerifierConfig>(() => new VerifierConfig());
  45. private pb::UnknownFieldSet _unknownFields;
  46. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  47. public static pb::MessageParser<VerifierConfig> Parser { get { return _parser; } }
  48. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  49. public static pbr::MessageDescriptor Descriptor {
  50. get { return global::Tensorflow.VerifierConfigReflection.Descriptor.MessageTypes[0]; }
  51. }
  52. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  53. pbr::MessageDescriptor pb::IMessage.Descriptor {
  54. get { return Descriptor; }
  55. }
  56. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  57. public VerifierConfig() {
  58. OnConstruction();
  59. }
  60. partial void OnConstruction();
  61. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  62. public VerifierConfig(VerifierConfig other) : this() {
  63. verificationTimeoutInMs_ = other.verificationTimeoutInMs_;
  64. structureVerifier_ = other.structureVerifier_;
  65. _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
  66. }
  67. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  68. public VerifierConfig Clone() {
  69. return new VerifierConfig(this);
  70. }
  71. /// <summary>Field number for the "verification_timeout_in_ms" field.</summary>
  72. public const int VerificationTimeoutInMsFieldNumber = 1;
  73. private long verificationTimeoutInMs_;
  74. /// <summary>
  75. /// Deadline for completion of all verification i.e. all the Toggle ON
  76. /// verifiers must complete execution within this time.
  77. /// </summary>
  78. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  79. public long VerificationTimeoutInMs {
  80. get { return verificationTimeoutInMs_; }
  81. set {
  82. verificationTimeoutInMs_ = value;
  83. }
  84. }
  85. /// <summary>Field number for the "structure_verifier" field.</summary>
  86. public const int StructureVerifierFieldNumber = 2;
  87. private global::Tensorflow.VerifierConfig.Types.Toggle structureVerifier_ = global::Tensorflow.VerifierConfig.Types.Toggle.Default;
  88. /// <summary>
  89. /// Perform structural validation on a tensorflow graph. Default is OFF.
  90. /// </summary>
  91. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  92. public global::Tensorflow.VerifierConfig.Types.Toggle StructureVerifier {
  93. get { return structureVerifier_; }
  94. set {
  95. structureVerifier_ = value;
  96. }
  97. }
  98. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  99. public override bool Equals(object other) {
  100. return Equals(other as VerifierConfig);
  101. }
  102. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  103. public bool Equals(VerifierConfig other) {
  104. if (ReferenceEquals(other, null)) {
  105. return false;
  106. }
  107. if (ReferenceEquals(other, this)) {
  108. return true;
  109. }
  110. if (VerificationTimeoutInMs != other.VerificationTimeoutInMs) return false;
  111. if (StructureVerifier != other.StructureVerifier) return false;
  112. return Equals(_unknownFields, other._unknownFields);
  113. }
  114. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  115. public override int GetHashCode() {
  116. int hash = 1;
  117. if (VerificationTimeoutInMs != 0L) hash ^= VerificationTimeoutInMs.GetHashCode();
  118. if (StructureVerifier != global::Tensorflow.VerifierConfig.Types.Toggle.Default) hash ^= StructureVerifier.GetHashCode();
  119. if (_unknownFields != null) {
  120. hash ^= _unknownFields.GetHashCode();
  121. }
  122. return hash;
  123. }
  124. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  125. public override string ToString() {
  126. return pb::JsonFormatter.ToDiagnosticString(this);
  127. }
  128. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  129. public void WriteTo(pb::CodedOutputStream output) {
  130. if (VerificationTimeoutInMs != 0L) {
  131. output.WriteRawTag(8);
  132. output.WriteInt64(VerificationTimeoutInMs);
  133. }
  134. if (StructureVerifier != global::Tensorflow.VerifierConfig.Types.Toggle.Default) {
  135. output.WriteRawTag(16);
  136. output.WriteEnum((int) StructureVerifier);
  137. }
  138. if (_unknownFields != null) {
  139. _unknownFields.WriteTo(output);
  140. }
  141. }
  142. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  143. public int CalculateSize() {
  144. int size = 0;
  145. if (VerificationTimeoutInMs != 0L) {
  146. size += 1 + pb::CodedOutputStream.ComputeInt64Size(VerificationTimeoutInMs);
  147. }
  148. if (StructureVerifier != global::Tensorflow.VerifierConfig.Types.Toggle.Default) {
  149. size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) StructureVerifier);
  150. }
  151. if (_unknownFields != null) {
  152. size += _unknownFields.CalculateSize();
  153. }
  154. return size;
  155. }
  156. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  157. public void MergeFrom(VerifierConfig other) {
  158. if (other == null) {
  159. return;
  160. }
  161. if (other.VerificationTimeoutInMs != 0L) {
  162. VerificationTimeoutInMs = other.VerificationTimeoutInMs;
  163. }
  164. if (other.StructureVerifier != global::Tensorflow.VerifierConfig.Types.Toggle.Default) {
  165. StructureVerifier = other.StructureVerifier;
  166. }
  167. _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
  168. }
  169. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  170. public void MergeFrom(pb::CodedInputStream input) {
  171. uint tag;
  172. while ((tag = input.ReadTag()) != 0) {
  173. switch(tag) {
  174. default:
  175. _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
  176. break;
  177. case 8: {
  178. VerificationTimeoutInMs = input.ReadInt64();
  179. break;
  180. }
  181. case 16: {
  182. StructureVerifier = (global::Tensorflow.VerifierConfig.Types.Toggle) input.ReadEnum();
  183. break;
  184. }
  185. }
  186. }
  187. }
  188. #region Nested types
  189. /// <summary>Container for nested types declared in the VerifierConfig message type.</summary>
  190. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  191. public static partial class Types {
  192. public enum Toggle {
  193. [pbr::OriginalName("DEFAULT")] Default = 0,
  194. [pbr::OriginalName("ON")] On = 1,
  195. [pbr::OriginalName("OFF")] Off = 2,
  196. }
  197. }
  198. #endregion
  199. }
  200. #endregion
  201. }
  202. #endregion Designer generated code