// // Generated by the protocol buffer compiler. DO NOT EDIT! // source: tensorflow/python/framework/cpp_shape_inference.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/python/framework/cpp_shape_inference.proto public static partial class CppShapeInferenceReflection { #region Descriptor /// File descriptor for tensorflow/python/framework/cpp_shape_inference.proto public static pbr::FileDescriptor Descriptor { get { return descriptor; } } private static pbr::FileDescriptor descriptor; static CppShapeInferenceReflection() { byte[] descriptorData = global::System.Convert.FromBase64String( string.Concat( "CjV0ZW5zb3JmbG93L3B5dGhvbi9mcmFtZXdvcmsvY3BwX3NoYXBlX2luZmVy", "ZW5jZS5wcm90bxIKdGVuc29yZmxvdxoldGVuc29yZmxvdy9jb3JlL2ZyYW1l", "d29yay90eXBlcy5wcm90bxosdGVuc29yZmxvdy9jb3JlL2ZyYW1ld29yay90", "ZW5zb3Jfc2hhcGUucHJvdG8i7QIKF0NwcFNoYXBlSW5mZXJlbmNlUmVzdWx0", "EisKBXNoYXBlGAEgASgLMhwudGVuc29yZmxvdy5UZW5zb3JTaGFwZVByb3Rv", "EkMKC2hhbmRsZV9kYXRhGAQgASgLMi4udGVuc29yZmxvdy5DcHBTaGFwZUlu", "ZmVyZW5jZVJlc3VsdC5IYW5kbGVEYXRhGmYKEkhhbmRsZVNoYXBlQW5kVHlw", "ZRIrCgVzaGFwZRgBIAEoCzIcLnRlbnNvcmZsb3cuVGVuc29yU2hhcGVQcm90", "bxIjCgVkdHlwZRgCIAEoDjIULnRlbnNvcmZsb3cuRGF0YVR5cGUabAoKSGFu", "ZGxlRGF0YRIOCgZpc19zZXQYASABKAgSTgoOc2hhcGVfYW5kX3R5cGUYAiAD", "KAsyNi50ZW5zb3JmbG93LkNwcFNoYXBlSW5mZXJlbmNlUmVzdWx0LkhhbmRs", "ZVNoYXBlQW5kVHlwZUoECAIQA0oECAMQBCJlCh1DcHBTaGFwZUluZmVyZW5j", "ZUlucHV0c05lZWRlZBIcChRpbnB1dF90ZW5zb3JzX25lZWRlZBgBIAMoBRIm", "Ch5pbnB1dF90ZW5zb3JzX2FzX3NoYXBlc19uZWVkZWQYAiADKAVCA/gBAWIG", "cHJvdG8z")); descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, new pbr::FileDescriptor[] { global::Tensorflow.TypesReflection.Descriptor, global::Tensorflow.TensorShapeReflection.Descriptor, }, new pbr::GeneratedClrTypeInfo(null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Tensorflow.CppShapeInferenceResult), global::Tensorflow.CppShapeInferenceResult.Parser, new[]{ "Shape", "HandleData" }, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Tensorflow.CppShapeInferenceResult.Types.HandleShapeAndType), global::Tensorflow.CppShapeInferenceResult.Types.HandleShapeAndType.Parser, new[]{ "Shape", "Dtype" }, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Tensorflow.CppShapeInferenceResult.Types.HandleData), global::Tensorflow.CppShapeInferenceResult.Types.HandleData.Parser, new[]{ "IsSet", "ShapeAndType" }, null, null, null)}), new pbr::GeneratedClrTypeInfo(typeof(global::Tensorflow.CppShapeInferenceInputsNeeded), global::Tensorflow.CppShapeInferenceInputsNeeded.Parser, new[]{ "InputTensorsNeeded", "InputTensorsAsShapesNeeded" }, null, null, null) })); } #endregion } #region Messages public sealed partial class CppShapeInferenceResult : pb::IMessage { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CppShapeInferenceResult()); 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.CppShapeInferenceReflection.Descriptor.MessageTypes[0]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public CppShapeInferenceResult() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public CppShapeInferenceResult(CppShapeInferenceResult other) : this() { shape_ = other.shape_ != null ? other.shape_.Clone() : null; handleData_ = other.handleData_ != null ? other.handleData_.Clone() : null; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public CppShapeInferenceResult Clone() { return new CppShapeInferenceResult(this); } /// Field number for the "shape" field. public const int ShapeFieldNumber = 1; private global::Tensorflow.TensorShapeProto shape_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public global::Tensorflow.TensorShapeProto Shape { get { return shape_; } set { shape_ = value; } } /// Field number for the "handle_data" field. public const int HandleDataFieldNumber = 4; private global::Tensorflow.CppShapeInferenceResult.Types.HandleData handleData_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public global::Tensorflow.CppShapeInferenceResult.Types.HandleData HandleData { get { return handleData_; } set { handleData_ = value; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public override bool Equals(object other) { return Equals(other as CppShapeInferenceResult); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public bool Equals(CppShapeInferenceResult other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if (!object.Equals(Shape, other.Shape)) return false; if (!object.Equals(HandleData, other.HandleData)) return false; return Equals(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public override int GetHashCode() { int hash = 1; if (shape_ != null) hash ^= Shape.GetHashCode(); if (handleData_ != null) hash ^= HandleData.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 (shape_ != null) { output.WriteRawTag(10); output.WriteMessage(Shape); } if (handleData_ != null) { output.WriteRawTag(34); output.WriteMessage(HandleData); } if (_unknownFields != null) { _unknownFields.WriteTo(output); } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public int CalculateSize() { int size = 0; if (shape_ != null) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(Shape); } if (handleData_ != null) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(HandleData); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void MergeFrom(CppShapeInferenceResult other) { if (other == null) { return; } if (other.shape_ != null) { if (shape_ == null) { shape_ = new global::Tensorflow.TensorShapeProto(); } Shape.MergeFrom(other.Shape); } if (other.handleData_ != null) { if (handleData_ == null) { handleData_ = new global::Tensorflow.CppShapeInferenceResult.Types.HandleData(); } HandleData.MergeFrom(other.HandleData); } _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 (shape_ == null) { shape_ = new global::Tensorflow.TensorShapeProto(); } input.ReadMessage(shape_); break; } case 34: { if (handleData_ == null) { handleData_ = new global::Tensorflow.CppShapeInferenceResult.Types.HandleData(); } input.ReadMessage(handleData_); break; } } } } #region Nested types /// Container for nested types declared in the CppShapeInferenceResult message type. [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public static partial class Types { public sealed partial class HandleShapeAndType : pb::IMessage { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new HandleShapeAndType()); 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.CppShapeInferenceResult.Descriptor.NestedTypes[0]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public HandleShapeAndType() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public HandleShapeAndType(HandleShapeAndType other) : this() { shape_ = other.shape_ != null ? other.shape_.Clone() : null; dtype_ = other.dtype_; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public HandleShapeAndType Clone() { return new HandleShapeAndType(this); } /// Field number for the "shape" field. public const int ShapeFieldNumber = 1; private global::Tensorflow.TensorShapeProto shape_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public global::Tensorflow.TensorShapeProto Shape { get { return shape_; } set { shape_ = value; } } /// Field number for the "dtype" field. public const int DtypeFieldNumber = 2; private global::Tensorflow.DataType dtype_ = 0; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public global::Tensorflow.DataType Dtype { get { return dtype_; } set { dtype_ = value; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public override bool Equals(object other) { return Equals(other as HandleShapeAndType); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public bool Equals(HandleShapeAndType other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if (!object.Equals(Shape, other.Shape)) return false; if (Dtype != other.Dtype) return false; return Equals(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public override int GetHashCode() { int hash = 1; if (shape_ != null) hash ^= Shape.GetHashCode(); if (Dtype != 0) hash ^= Dtype.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 (shape_ != null) { output.WriteRawTag(10); output.WriteMessage(Shape); } if (Dtype != 0) { output.WriteRawTag(16); output.WriteEnum((int) Dtype); } if (_unknownFields != null) { _unknownFields.WriteTo(output); } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public int CalculateSize() { int size = 0; if (shape_ != null) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(Shape); } if (Dtype != 0) { size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Dtype); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void MergeFrom(HandleShapeAndType other) { if (other == null) { return; } if (other.shape_ != null) { if (shape_ == null) { shape_ = new global::Tensorflow.TensorShapeProto(); } Shape.MergeFrom(other.Shape); } if (other.Dtype != 0) { Dtype = other.Dtype; } _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 (shape_ == null) { shape_ = new global::Tensorflow.TensorShapeProto(); } input.ReadMessage(shape_); break; } case 16: { dtype_ = (global::Tensorflow.DataType) input.ReadEnum(); break; } } } } } public sealed partial class HandleData : pb::IMessage { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new HandleData()); 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.CppShapeInferenceResult.Descriptor.NestedTypes[1]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public HandleData() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public HandleData(HandleData other) : this() { isSet_ = other.isSet_; shapeAndType_ = other.shapeAndType_.Clone(); _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public HandleData Clone() { return new HandleData(this); } /// Field number for the "is_set" field. public const int IsSetFieldNumber = 1; private bool isSet_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public bool IsSet { get { return isSet_; } set { isSet_ = value; } } /// Field number for the "shape_and_type" field. public const int ShapeAndTypeFieldNumber = 2; private static readonly pb::FieldCodec _repeated_shapeAndType_codec = pb::FieldCodec.ForMessage(18, global::Tensorflow.CppShapeInferenceResult.Types.HandleShapeAndType.Parser); private readonly pbc::RepeatedField shapeAndType_ = new pbc::RepeatedField(); /// /// Only valid if <is_set>. /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public pbc::RepeatedField ShapeAndType { get { return shapeAndType_; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public override bool Equals(object other) { return Equals(other as HandleData); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public bool Equals(HandleData other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if (IsSet != other.IsSet) return false; if(!shapeAndType_.Equals(other.shapeAndType_)) return false; return Equals(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public override int GetHashCode() { int hash = 1; if (IsSet != false) hash ^= IsSet.GetHashCode(); hash ^= shapeAndType_.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 (IsSet != false) { output.WriteRawTag(8); output.WriteBool(IsSet); } shapeAndType_.WriteTo(output, _repeated_shapeAndType_codec); if (_unknownFields != null) { _unknownFields.WriteTo(output); } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public int CalculateSize() { int size = 0; if (IsSet != false) { size += 1 + 1; } size += shapeAndType_.CalculateSize(_repeated_shapeAndType_codec); if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void MergeFrom(HandleData other) { if (other == null) { return; } if (other.IsSet != false) { IsSet = other.IsSet; } shapeAndType_.Add(other.shapeAndType_); _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: { IsSet = input.ReadBool(); break; } case 18: { shapeAndType_.AddEntriesFrom(input, _repeated_shapeAndType_codec); break; } } } } } } #endregion } public sealed partial class CppShapeInferenceInputsNeeded : pb::IMessage { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CppShapeInferenceInputsNeeded()); 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.CppShapeInferenceReflection.Descriptor.MessageTypes[1]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public CppShapeInferenceInputsNeeded() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public CppShapeInferenceInputsNeeded(CppShapeInferenceInputsNeeded other) : this() { inputTensorsNeeded_ = other.inputTensorsNeeded_.Clone(); inputTensorsAsShapesNeeded_ = other.inputTensorsAsShapesNeeded_.Clone(); _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public CppShapeInferenceInputsNeeded Clone() { return new CppShapeInferenceInputsNeeded(this); } /// Field number for the "input_tensors_needed" field. public const int InputTensorsNeededFieldNumber = 1; private static readonly pb::FieldCodec _repeated_inputTensorsNeeded_codec = pb::FieldCodec.ForInt32(10); private readonly pbc::RepeatedField inputTensorsNeeded_ = new pbc::RepeatedField(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public pbc::RepeatedField InputTensorsNeeded { get { return inputTensorsNeeded_; } } /// Field number for the "input_tensors_as_shapes_needed" field. public const int InputTensorsAsShapesNeededFieldNumber = 2; private static readonly pb::FieldCodec _repeated_inputTensorsAsShapesNeeded_codec = pb::FieldCodec.ForInt32(18); private readonly pbc::RepeatedField inputTensorsAsShapesNeeded_ = new pbc::RepeatedField(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public pbc::RepeatedField InputTensorsAsShapesNeeded { get { return inputTensorsAsShapesNeeded_; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public override bool Equals(object other) { return Equals(other as CppShapeInferenceInputsNeeded); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public bool Equals(CppShapeInferenceInputsNeeded other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if(!inputTensorsNeeded_.Equals(other.inputTensorsNeeded_)) return false; if(!inputTensorsAsShapesNeeded_.Equals(other.inputTensorsAsShapesNeeded_)) return false; return Equals(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public override int GetHashCode() { int hash = 1; hash ^= inputTensorsNeeded_.GetHashCode(); hash ^= inputTensorsAsShapesNeeded_.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) { inputTensorsNeeded_.WriteTo(output, _repeated_inputTensorsNeeded_codec); inputTensorsAsShapesNeeded_.WriteTo(output, _repeated_inputTensorsAsShapesNeeded_codec); if (_unknownFields != null) { _unknownFields.WriteTo(output); } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public int CalculateSize() { int size = 0; size += inputTensorsNeeded_.CalculateSize(_repeated_inputTensorsNeeded_codec); size += inputTensorsAsShapesNeeded_.CalculateSize(_repeated_inputTensorsAsShapesNeeded_codec); if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void MergeFrom(CppShapeInferenceInputsNeeded other) { if (other == null) { return; } inputTensorsNeeded_.Add(other.inputTensorsNeeded_); inputTensorsAsShapesNeeded_.Add(other.inputTensorsAsShapesNeeded_); _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: { inputTensorsNeeded_.AddEntriesFrom(input, _repeated_inputTensorsNeeded_codec); break; } case 18: case 16: { inputTensorsAsShapesNeeded_.AddEntriesFrom(input, _repeated_inputTensorsAsShapesNeeded_codec); break; } } } } } #endregion } #endregion Designer generated code