|
|
|
|
|
|
byte[] descriptorData = global::System.Convert.FromBase64String( |
|
|
|
string.Concat( |
|
|
|
"Ci1jb21tdW5pY2F0b3Jfb2JqZWN0cy9hZ2VudF9hY3Rpb25fcHJvdG8ucHJv", |
|
|
|
"dG8SFGNvbW11bmljYXRvcl9vYmplY3RzIlIKEEFnZW50QWN0aW9uUHJvdG8S", |
|
|
|
"dG8SFGNvbW11bmljYXRvcl9vYmplY3RzImEKEEFnZW50QWN0aW9uUHJvdG8S", |
|
|
|
"EhAKCG1lbW9yaWVzGAMgAygCQh+qAhxNTEFnZW50cy5Db21tdW5pY2F0b3JP", |
|
|
|
"YmplY3RzYgZwcm90bzM=")); |
|
|
|
"EhAKCG1lbW9yaWVzGAMgAygCEg0KBXZhbHVlGAQgASgCQh+qAhxNTEFnZW50", |
|
|
|
"cy5Db21tdW5pY2F0b3JPYmplY3RzYgZwcm90bzM=")); |
|
|
|
new pbr::GeneratedClrTypeInfo(typeof(global::MLAgents.CommunicatorObjects.AgentActionProto), global::MLAgents.CommunicatorObjects.AgentActionProto.Parser, new[]{ "VectorActions", "TextActions", "Memories" }, null, null, null) |
|
|
|
new pbr::GeneratedClrTypeInfo(typeof(global::MLAgents.CommunicatorObjects.AgentActionProto), global::MLAgents.CommunicatorObjects.AgentActionProto.Parser, new[]{ "VectorActions", "TextActions", "Memories", "Value" }, null, null, null) |
|
|
|
})); |
|
|
|
} |
|
|
|
#endregion
|
|
|
|
|
|
|
vectorActions_ = other.vectorActions_.Clone(); |
|
|
|
textActions_ = other.textActions_; |
|
|
|
memories_ = other.memories_.Clone(); |
|
|
|
value_ = other.value_; |
|
|
|
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
get { return memories_; } |
|
|
|
} |
|
|
|
|
|
|
|
/// <summary>Field number for the "value" field.</summary>
|
|
|
|
public const int ValueFieldNumber = 4; |
|
|
|
private float value_; |
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
|
|
|
public float Value { |
|
|
|
get { return value_; } |
|
|
|
set { |
|
|
|
value_ = value; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
|
|
|
public override bool Equals(object other) { |
|
|
|
return Equals(other as AgentActionProto); |
|
|
|
|
|
|
if(!vectorActions_.Equals(other.vectorActions_)) return false; |
|
|
|
if (TextActions != other.TextActions) return false; |
|
|
|
if(!memories_.Equals(other.memories_)) return false; |
|
|
|
if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(Value, other.Value)) return false; |
|
|
|
return Equals(_unknownFields, other._unknownFields); |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
hash ^= vectorActions_.GetHashCode(); |
|
|
|
if (TextActions.Length != 0) hash ^= TextActions.GetHashCode(); |
|
|
|
hash ^= memories_.GetHashCode(); |
|
|
|
if (Value != 0F) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(Value); |
|
|
|
if (_unknownFields != null) { |
|
|
|
hash ^= _unknownFields.GetHashCode(); |
|
|
|
} |
|
|
|
|
|
|
output.WriteString(TextActions); |
|
|
|
} |
|
|
|
memories_.WriteTo(output, _repeated_memories_codec); |
|
|
|
if (Value != 0F) { |
|
|
|
output.WriteRawTag(37); |
|
|
|
output.WriteFloat(Value); |
|
|
|
} |
|
|
|
if (_unknownFields != null) { |
|
|
|
_unknownFields.WriteTo(output); |
|
|
|
} |
|
|
|
|
|
|
size += 1 + pb::CodedOutputStream.ComputeStringSize(TextActions); |
|
|
|
} |
|
|
|
size += memories_.CalculateSize(_repeated_memories_codec); |
|
|
|
if (Value != 0F) { |
|
|
|
size += 1 + 4; |
|
|
|
} |
|
|
|
if (_unknownFields != null) { |
|
|
|
size += _unknownFields.CalculateSize(); |
|
|
|
} |
|
|
|
|
|
|
TextActions = other.TextActions; |
|
|
|
} |
|
|
|
memories_.Add(other.memories_); |
|
|
|
if (other.Value != 0F) { |
|
|
|
Value = other.Value; |
|
|
|
} |
|
|
|
_unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
case 26: |
|
|
|
case 29: { |
|
|
|
memories_.AddEntriesFrom(input, _repeated_memories_codec); |
|
|
|
break; |
|
|
|
} |
|
|
|
case 37: { |
|
|
|
Value = input.ReadFloat(); |
|
|
|
break; |
|
|
|
} |
|
|
|
} |
|
|
|