//
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: tensorflow/core/protobuf/verifier_config.proto
//
#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 {
/// Holder for reflection information generated from tensorflow/core/protobuf/verifier_config.proto
public static partial class VerifierConfigReflection {
#region Descriptor
/// File descriptor for tensorflow/core/protobuf/verifier_config.proto
public static pbr::FileDescriptor Descriptor {
get { return descriptor; }
}
private static pbr::FileDescriptor descriptor;
static VerifierConfigReflection() {
byte[] descriptorData = global::System.Convert.FromBase64String(
string.Concat(
"Ci50ZW5zb3JmbG93L2NvcmUvcHJvdG9idWYvdmVyaWZpZXJfY29uZmlnLnBy",
"b3RvEgp0ZW5zb3JmbG93IpsBCg5WZXJpZmllckNvbmZpZxIiChp2ZXJpZmlj",
"YXRpb25fdGltZW91dF9pbl9tcxgBIAEoAxI9ChJzdHJ1Y3R1cmVfdmVyaWZp",
"ZXIYAiABKA4yIS50ZW5zb3JmbG93LlZlcmlmaWVyQ29uZmlnLlRvZ2dsZSIm",
"CgZUb2dnbGUSCwoHREVGQVVMVBAAEgYKAk9OEAESBwoDT0ZGEAJCcwoYb3Jn",
"LnRlbnNvcmZsb3cuZnJhbWV3b3JrQhRWZXJpZmllckNvbmZpZ1Byb3Rvc1AB",
"WjxnaXRodWIuY29tL3RlbnNvcmZsb3cvdGVuc29yZmxvdy90ZW5zb3JmbG93",
"L2dvL2NvcmUvcHJvdG9idWb4AQFiBnByb3RvMw=="));
descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
new pbr::FileDescriptor[] { },
new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] {
new pbr::GeneratedClrTypeInfo(typeof(global::Tensorflow.VerifierConfig), global::Tensorflow.VerifierConfig.Parser, new[]{ "VerificationTimeoutInMs", "StructureVerifier" }, null, new[]{ typeof(global::Tensorflow.VerifierConfig.Types.Toggle) }, null, null)
}));
}
#endregion
}
#region Messages
///
/// The config for graph verifiers.
///
public sealed partial class VerifierConfig : pb::IMessage {
private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new VerifierConfig());
private pb::UnknownFieldSet _unknownFields;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public static pb::MessageParser Parser { get { return _parser; } }
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public static pbr::MessageDescriptor Descriptor {
get { return global::Tensorflow.VerifierConfigReflection.Descriptor.MessageTypes[0]; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
pbr::MessageDescriptor pb::IMessage.Descriptor {
get { return Descriptor; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public VerifierConfig() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public VerifierConfig(VerifierConfig other) : this() {
verificationTimeoutInMs_ = other.verificationTimeoutInMs_;
structureVerifier_ = other.structureVerifier_;
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public VerifierConfig Clone() {
return new VerifierConfig(this);
}
/// Field number for the "verification_timeout_in_ms" field.
public const int VerificationTimeoutInMsFieldNumber = 1;
private long verificationTimeoutInMs_;
///
/// Deadline for completion of all verification i.e. all the Toggle ON
/// verifiers must complete execution within this time.
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public long VerificationTimeoutInMs {
get { return verificationTimeoutInMs_; }
set {
verificationTimeoutInMs_ = value;
}
}
/// Field number for the "structure_verifier" field.
public const int StructureVerifierFieldNumber = 2;
private global::Tensorflow.VerifierConfig.Types.Toggle structureVerifier_ = global::Tensorflow.VerifierConfig.Types.Toggle.Default;
///
/// Perform structural validation on a tensorflow graph. Default is OFF.
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public global::Tensorflow.VerifierConfig.Types.Toggle StructureVerifier {
get { return structureVerifier_; }
set {
structureVerifier_ = value;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public override bool Equals(object other) {
return Equals(other as VerifierConfig);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool Equals(VerifierConfig other) {
if (ReferenceEquals(other, null)) {
return false;
}
if (ReferenceEquals(other, this)) {
return true;
}
if (VerificationTimeoutInMs != other.VerificationTimeoutInMs) return false;
if (StructureVerifier != other.StructureVerifier) return false;
return Equals(_unknownFields, other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public override int GetHashCode() {
int hash = 1;
if (VerificationTimeoutInMs != 0L) hash ^= VerificationTimeoutInMs.GetHashCode();
if (StructureVerifier != global::Tensorflow.VerifierConfig.Types.Toggle.Default) hash ^= StructureVerifier.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 (VerificationTimeoutInMs != 0L) {
output.WriteRawTag(8);
output.WriteInt64(VerificationTimeoutInMs);
}
if (StructureVerifier != global::Tensorflow.VerifierConfig.Types.Toggle.Default) {
output.WriteRawTag(16);
output.WriteEnum((int) StructureVerifier);
}
if (_unknownFields != null) {
_unknownFields.WriteTo(output);
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public int CalculateSize() {
int size = 0;
if (VerificationTimeoutInMs != 0L) {
size += 1 + pb::CodedOutputStream.ComputeInt64Size(VerificationTimeoutInMs);
}
if (StructureVerifier != global::Tensorflow.VerifierConfig.Types.Toggle.Default) {
size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) StructureVerifier);
}
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
return size;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void MergeFrom(VerifierConfig other) {
if (other == null) {
return;
}
if (other.VerificationTimeoutInMs != 0L) {
VerificationTimeoutInMs = other.VerificationTimeoutInMs;
}
if (other.StructureVerifier != global::Tensorflow.VerifierConfig.Types.Toggle.Default) {
StructureVerifier = other.StructureVerifier;
}
_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 8: {
VerificationTimeoutInMs = input.ReadInt64();
break;
}
case 16: {
StructureVerifier = (global::Tensorflow.VerifierConfig.Types.Toggle) input.ReadEnum();
break;
}
}
}
}
#region Nested types
/// Container for nested types declared in the VerifierConfig message type.
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public static partial class Types {
public enum Toggle {
[pbr::OriginalName("DEFAULT")] Default = 0,
[pbr::OriginalName("ON")] On = 1,
[pbr::OriginalName("OFF")] Off = 2,
}
}
#endregion
}
#endregion
}
#endregion Designer generated code