|
|
|
|
|
|
byte[] descriptorData = global::System.Convert.FromBase64String( |
|
|
|
string.Concat( |
|
|
|
"CjRtbGFnZW50c19lbnZzL2NvbW11bmljYXRvcl9vYmplY3RzL29ic2VydmF0", |
|
|
|
"aW9uLnByb3RvEhRjb21tdW5pY2F0b3Jfb2JqZWN0cyK7AgoQT2JzZXJ2YXRp", |
|
|
|
"aW9uLnByb3RvEhRjb21tdW5pY2F0b3Jfb2JqZWN0cyL3AgoQT2JzZXJ2YXRp", |
|
|
|
"KAUSHAoUZGltZW5zaW9uX3Byb3BlcnRpZXMYBiADKAUaGQoJRmxvYXREYXRh", |
|
|
|
"EgwKBGRhdGEYASADKAJCEgoQb2JzZXJ2YXRpb25fZGF0YSopChRDb21wcmVz", |
|
|
|
"c2lvblR5cGVQcm90bxIICgROT05FEAASBwoDUE5HEAFCJaoCIlVuaXR5Lk1M", |
|
|
|
"QWdlbnRzLkNvbW11bmljYXRvck9iamVjdHNiBnByb3RvMw==")); |
|
|
|
"KAUSHAoUZGltZW5zaW9uX3Byb3BlcnRpZXMYBiADKAUSOgoLc2Vuc29yX3R5", |
|
|
|
"cGUYByABKA4yJS5jb21tdW5pY2F0b3Jfb2JqZWN0cy5TZW5zb3JUeXBlUHJv", |
|
|
|
"dG8aGQoJRmxvYXREYXRhEgwKBGRhdGEYASADKAJCEgoQb2JzZXJ2YXRpb25f", |
|
|
|
"ZGF0YSopChRDb21wcmVzc2lvblR5cGVQcm90bxIICgROT05FEAASBwoDUE5H", |
|
|
|
"EAEqRQoPU2Vuc29yVHlwZVByb3RvEg8KC09CU0VSVkFUSU9OEAASCAoER09B", |
|
|
|
"TBABEgoKBlJFV0FSRBACEgsKB01FU1NBR0UQA0IlqgIiVW5pdHkuTUxBZ2Vu", |
|
|
|
"dHMuQ29tbXVuaWNhdG9yT2JqZWN0c2IGcHJvdG8z")); |
|
|
|
new pbr::GeneratedClrTypeInfo(new[] {typeof(global::Unity.MLAgents.CommunicatorObjects.CompressionTypeProto), }, new pbr::GeneratedClrTypeInfo[] { |
|
|
|
new pbr::GeneratedClrTypeInfo(typeof(global::Unity.MLAgents.CommunicatorObjects.ObservationProto), global::Unity.MLAgents.CommunicatorObjects.ObservationProto.Parser, new[]{ "Shape", "CompressionType", "CompressedData", "FloatData", "CompressedChannelMapping", "DimensionProperties" }, new[]{ "ObservationData" }, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Unity.MLAgents.CommunicatorObjects.ObservationProto.Types.FloatData), global::Unity.MLAgents.CommunicatorObjects.ObservationProto.Types.FloatData.Parser, new[]{ "Data" }, null, null, null)}) |
|
|
|
new pbr::GeneratedClrTypeInfo(new[] {typeof(global::Unity.MLAgents.CommunicatorObjects.CompressionTypeProto), typeof(global::Unity.MLAgents.CommunicatorObjects.SensorTypeProto), }, new pbr::GeneratedClrTypeInfo[] { |
|
|
|
new pbr::GeneratedClrTypeInfo(typeof(global::Unity.MLAgents.CommunicatorObjects.ObservationProto), global::Unity.MLAgents.CommunicatorObjects.ObservationProto.Parser, new[]{ "Shape", "CompressionType", "CompressedData", "FloatData", "CompressedChannelMapping", "DimensionProperties", "SensorType" }, new[]{ "ObservationData" }, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Unity.MLAgents.CommunicatorObjects.ObservationProto.Types.FloatData), global::Unity.MLAgents.CommunicatorObjects.ObservationProto.Types.FloatData.Parser, new[]{ "Data" }, null, null, null)}) |
|
|
|
})); |
|
|
|
} |
|
|
|
#endregion
|
|
|
|
|
|
|
internal enum CompressionTypeProto { |
|
|
|
[pbr::OriginalName("NONE")] None = 0, |
|
|
|
[pbr::OriginalName("PNG")] Png = 1, |
|
|
|
} |
|
|
|
|
|
|
|
internal enum SensorTypeProto { |
|
|
|
[pbr::OriginalName("OBSERVATION")] Observation = 0, |
|
|
|
[pbr::OriginalName("GOAL")] Goal = 1, |
|
|
|
[pbr::OriginalName("REWARD")] Reward = 2, |
|
|
|
[pbr::OriginalName("MESSAGE")] Message = 3, |
|
|
|
} |
|
|
|
|
|
|
|
#endregion
|
|
|
|
|
|
|
compressionType_ = other.compressionType_; |
|
|
|
compressedChannelMapping_ = other.compressedChannelMapping_.Clone(); |
|
|
|
dimensionProperties_ = other.dimensionProperties_.Clone(); |
|
|
|
sensorType_ = other.sensorType_; |
|
|
|
switch (other.ObservationDataCase) { |
|
|
|
case ObservationDataOneofCase.CompressedData: |
|
|
|
CompressedData = other.CompressedData; |
|
|
|
|
|
|
get { return dimensionProperties_; } |
|
|
|
} |
|
|
|
|
|
|
|
/// <summary>Field number for the "sensor_type" field.</summary>
|
|
|
|
public const int SensorTypeFieldNumber = 7; |
|
|
|
private global::Unity.MLAgents.CommunicatorObjects.SensorTypeProto sensorType_ = 0; |
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
|
|
|
public global::Unity.MLAgents.CommunicatorObjects.SensorTypeProto SensorType { |
|
|
|
get { return sensorType_; } |
|
|
|
set { |
|
|
|
sensorType_ = value; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
private object observationData_; |
|
|
|
/// <summary>Enum of possible cases for the "observation_data" oneof.</summary>
|
|
|
|
public enum ObservationDataOneofCase { |
|
|
|
|
|
|
if (!object.Equals(FloatData, other.FloatData)) return false; |
|
|
|
if(!compressedChannelMapping_.Equals(other.compressedChannelMapping_)) return false; |
|
|
|
if(!dimensionProperties_.Equals(other.dimensionProperties_)) return false; |
|
|
|
if (SensorType != other.SensorType) return false; |
|
|
|
if (ObservationDataCase != other.ObservationDataCase) return false; |
|
|
|
return Equals(_unknownFields, other._unknownFields); |
|
|
|
} |
|
|
|
|
|
|
if (observationDataCase_ == ObservationDataOneofCase.FloatData) hash ^= FloatData.GetHashCode(); |
|
|
|
hash ^= compressedChannelMapping_.GetHashCode(); |
|
|
|
hash ^= dimensionProperties_.GetHashCode(); |
|
|
|
if (SensorType != 0) hash ^= SensorType.GetHashCode(); |
|
|
|
hash ^= (int) observationDataCase_; |
|
|
|
if (_unknownFields != null) { |
|
|
|
hash ^= _unknownFields.GetHashCode(); |
|
|
|
|
|
|
} |
|
|
|
compressedChannelMapping_.WriteTo(output, _repeated_compressedChannelMapping_codec); |
|
|
|
dimensionProperties_.WriteTo(output, _repeated_dimensionProperties_codec); |
|
|
|
if (SensorType != 0) { |
|
|
|
output.WriteRawTag(56); |
|
|
|
output.WriteEnum((int) SensorType); |
|
|
|
} |
|
|
|
if (_unknownFields != null) { |
|
|
|
_unknownFields.WriteTo(output); |
|
|
|
} |
|
|
|
|
|
|
} |
|
|
|
size += compressedChannelMapping_.CalculateSize(_repeated_compressedChannelMapping_codec); |
|
|
|
size += dimensionProperties_.CalculateSize(_repeated_dimensionProperties_codec); |
|
|
|
if (SensorType != 0) { |
|
|
|
size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) SensorType); |
|
|
|
} |
|
|
|
if (_unknownFields != null) { |
|
|
|
size += _unknownFields.CalculateSize(); |
|
|
|
} |
|
|
|
|
|
|
} |
|
|
|
compressedChannelMapping_.Add(other.compressedChannelMapping_); |
|
|
|
dimensionProperties_.Add(other.dimensionProperties_); |
|
|
|
if (other.SensorType != 0) { |
|
|
|
SensorType = other.SensorType; |
|
|
|
} |
|
|
|
switch (other.ObservationDataCase) { |
|
|
|
case ObservationDataOneofCase.CompressedData: |
|
|
|
CompressedData = other.CompressedData; |
|
|
|
|
|
|
case 50: |
|
|
|
case 48: { |
|
|
|
dimensionProperties_.AddEntriesFrom(input, _repeated_dimensionProperties_codec); |
|
|
|
break; |
|
|
|
} |
|
|
|
case 56: { |
|
|
|
sensorType_ = (global::Unity.MLAgents.CommunicatorObjects.SensorTypeProto) input.ReadEnum(); |
|
|
|
break; |
|
|
|
} |
|
|
|
} |
|
|
|