|
|
|
|
|
|
byte[] descriptorData = global::System.Convert.FromBase64String( |
|
|
|
string.Concat( |
|
|
|
"CjRtbGFnZW50c19lbnZzL2NvbW11bmljYXRvcl9vYmplY3RzL29ic2VydmF0", |
|
|
|
"aW9uLnByb3RvEhRjb21tdW5pY2F0b3Jfb2JqZWN0cyL3AgoQT2JzZXJ2YXRp", |
|
|
|
"aW9uLnByb3RvEhRjb21tdW5pY2F0b3Jfb2JqZWN0cyKBAwoQT2JzZXJ2YXRp", |
|
|
|
"KAUSHAoUZGltZW5zaW9uX3Byb3BlcnRpZXMYBiADKAUSOgoLc2Vuc29yX3R5", |
|
|
|
"cGUYByABKA4yJS5jb21tdW5pY2F0b3Jfb2JqZWN0cy5TZW5zb3JUeXBlUHJv", |
|
|
|
"dG8aGQoJRmxvYXREYXRhEgwKBGRhdGEYASADKAJCEgoQb2JzZXJ2YXRpb25f", |
|
|
|
"ZGF0YSopChRDb21wcmVzc2lvblR5cGVQcm90bxIICgROT05FEAASBwoDUE5H", |
|
|
|
"EAEqRQoPU2Vuc29yVHlwZVByb3RvEg8KC09CU0VSVkFUSU9OEAASCAoER09B", |
|
|
|
"TBABEgoKBlJFV0FSRBACEgsKB01FU1NBR0UQA0IlqgIiVW5pdHkuTUxBZ2Vu", |
|
|
|
"dHMuQ29tbXVuaWNhdG9yT2JqZWN0c2IGcHJvdG8z")); |
|
|
|
"KAUSHAoUZGltZW5zaW9uX3Byb3BlcnRpZXMYBiADKAUSRAoQb2JzZXJ2YXRp", |
|
|
|
"b25fdHlwZRgHIAEoDjIqLmNvbW11bmljYXRvcl9vYmplY3RzLk9ic2VydmF0", |
|
|
|
"aW9uVHlwZVByb3RvGhkKCUZsb2F0RGF0YRIMCgRkYXRhGAEgAygCQhIKEG9i", |
|
|
|
"c2VydmF0aW9uX2RhdGEqKQoUQ29tcHJlc3Npb25UeXBlUHJvdG8SCAoETk9O", |
|
|
|
"RRAAEgcKA1BORxABKkYKFE9ic2VydmF0aW9uVHlwZVByb3RvEgsKB0RFRkFV", |
|
|
|
"TFQQABIICgRHT0FMEAESCgoGUkVXQVJEEAISCwoHTUVTU0FHRRADQiWqAiJV", |
|
|
|
"bml0eS5NTEFnZW50cy5Db21tdW5pY2F0b3JPYmplY3RzYgZwcm90bzM=")); |
|
|
|
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)}) |
|
|
|
new pbr::GeneratedClrTypeInfo(new[] {typeof(global::Unity.MLAgents.CommunicatorObjects.CompressionTypeProto), typeof(global::Unity.MLAgents.CommunicatorObjects.ObservationTypeProto), }, 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", "ObservationType" }, 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
|
|
|
|
|
|
|
[pbr::OriginalName("PNG")] Png = 1, |
|
|
|
} |
|
|
|
|
|
|
|
internal enum SensorTypeProto { |
|
|
|
[pbr::OriginalName("OBSERVATION")] Observation = 0, |
|
|
|
internal enum ObservationTypeProto { |
|
|
|
[pbr::OriginalName("DEFAULT")] Default = 0, |
|
|
|
[pbr::OriginalName("GOAL")] Goal = 1, |
|
|
|
[pbr::OriginalName("REWARD")] Reward = 2, |
|
|
|
[pbr::OriginalName("MESSAGE")] Message = 3, |
|
|
|
|
|
|
compressionType_ = other.compressionType_; |
|
|
|
compressedChannelMapping_ = other.compressedChannelMapping_.Clone(); |
|
|
|
dimensionProperties_ = other.dimensionProperties_.Clone(); |
|
|
|
sensorType_ = other.sensorType_; |
|
|
|
observationType_ = other.observationType_; |
|
|
|
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; |
|
|
|
/// <summary>Field number for the "observation_type" field.</summary>
|
|
|
|
public const int ObservationTypeFieldNumber = 7; |
|
|
|
private global::Unity.MLAgents.CommunicatorObjects.ObservationTypeProto observationType_ = 0; |
|
|
|
public global::Unity.MLAgents.CommunicatorObjects.SensorTypeProto SensorType { |
|
|
|
get { return sensorType_; } |
|
|
|
public global::Unity.MLAgents.CommunicatorObjects.ObservationTypeProto ObservationType { |
|
|
|
get { return observationType_; } |
|
|
|
sensorType_ = value; |
|
|
|
observationType_ = value; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
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 (ObservationType != other.ObservationType) 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(); |
|
|
|
if (ObservationType != 0) hash ^= ObservationType.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) { |
|
|
|
if (ObservationType != 0) { |
|
|
|
output.WriteEnum((int) SensorType); |
|
|
|
output.WriteEnum((int) ObservationType); |
|
|
|
} |
|
|
|
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 (ObservationType != 0) { |
|
|
|
size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) ObservationType); |
|
|
|
} |
|
|
|
if (_unknownFields != null) { |
|
|
|
size += _unknownFields.CalculateSize(); |
|
|
|
|
|
|
} |
|
|
|
compressedChannelMapping_.Add(other.compressedChannelMapping_); |
|
|
|
dimensionProperties_.Add(other.dimensionProperties_); |
|
|
|
if (other.SensorType != 0) { |
|
|
|
SensorType = other.SensorType; |
|
|
|
if (other.ObservationType != 0) { |
|
|
|
ObservationType = other.ObservationType; |
|
|
|
} |
|
|
|
switch (other.ObservationDataCase) { |
|
|
|
case ObservationDataOneofCase.CompressedData: |
|
|
|
|
|
|
break; |
|
|
|
} |
|
|
|
case 56: { |
|
|
|
sensorType_ = (global::Unity.MLAgents.CommunicatorObjects.SensorTypeProto) input.ReadEnum(); |
|
|
|
observationType_ = (global::Unity.MLAgents.CommunicatorObjects.ObservationTypeProto) input.ReadEnum(); |
|
|
|
break; |
|
|
|
} |
|
|
|
} |
|
|
|