|
|
|
|
|
|
string.Concat( |
|
|
|
"CjNtbGFnZW50c19lbnZzL2NvbW11bmljYXRvcl9vYmplY3RzL2FnZW50X2lu", |
|
|
|
"Zm8ucHJvdG8SFGNvbW11bmljYXRvcl9vYmplY3RzGjRtbGFnZW50c19lbnZz", |
|
|
|
"L2NvbW11bmljYXRvcl9vYmplY3RzL29ic2VydmF0aW9uLnByb3RvItEBCg5B", |
|
|
|
"L2NvbW11bmljYXRvcl9vYmplY3RzL29ic2VydmF0aW9uLnByb3RvIuoBCg5B", |
|
|
|
"YXRvcl9vYmplY3RzLk9ic2VydmF0aW9uUHJvdG9KBAgBEAJKBAgCEANKBAgD", |
|
|
|
"EARKBAgEEAVKBAgFEAZKBAgGEAdKBAgMEA1CJaoCIlVuaXR5Lk1MQWdlbnRz", |
|
|
|
"LkNvbW11bmljYXRvck9iamVjdHNiBnByb3RvMw==")); |
|
|
|
"YXRvcl9vYmplY3RzLk9ic2VydmF0aW9uUHJvdG8SFwoPdGVhbV9tYW5hZ2Vy", |
|
|
|
"X2lkGA4gASgJSgQIARACSgQIAhADSgQIAxAESgQIBBAFSgQIBRAGSgQIBhAH", |
|
|
|
"SgQIDBANQiWqAiJVbml0eS5NTEFnZW50cy5Db21tdW5pY2F0b3JPYmplY3Rz", |
|
|
|
"YgZwcm90bzM=")); |
|
|
|
new pbr::GeneratedClrTypeInfo(typeof(global::Unity.MLAgents.CommunicatorObjects.AgentInfoProto), global::Unity.MLAgents.CommunicatorObjects.AgentInfoProto.Parser, new[]{ "Reward", "Done", "MaxStepReached", "Id", "ActionMask", "Observations" }, null, null, null) |
|
|
|
new pbr::GeneratedClrTypeInfo(typeof(global::Unity.MLAgents.CommunicatorObjects.AgentInfoProto), global::Unity.MLAgents.CommunicatorObjects.AgentInfoProto.Parser, new[]{ "Reward", "Done", "MaxStepReached", "Id", "ActionMask", "Observations", "TeamManagerId" }, null, null, null) |
|
|
|
})); |
|
|
|
} |
|
|
|
#endregion
|
|
|
|
|
|
|
id_ = other.id_; |
|
|
|
actionMask_ = other.actionMask_.Clone(); |
|
|
|
observations_ = other.observations_.Clone(); |
|
|
|
teamManagerId_ = other.teamManagerId_; |
|
|
|
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
get { return observations_; } |
|
|
|
} |
|
|
|
|
|
|
|
/// <summary>Field number for the "team_manager_id" field.</summary>
|
|
|
|
public const int TeamManagerIdFieldNumber = 14; |
|
|
|
private string teamManagerId_ = ""; |
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
|
|
|
public string TeamManagerId { |
|
|
|
get { return teamManagerId_; } |
|
|
|
set { |
|
|
|
teamManagerId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
|
|
|
public override bool Equals(object other) { |
|
|
|
return Equals(other as AgentInfoProto); |
|
|
|
|
|
|
if (Id != other.Id) return false; |
|
|
|
if(!actionMask_.Equals(other.actionMask_)) return false; |
|
|
|
if(!observations_.Equals(other.observations_)) return false; |
|
|
|
if (TeamManagerId != other.TeamManagerId) return false; |
|
|
|
return Equals(_unknownFields, other._unknownFields); |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
if (Id != 0) hash ^= Id.GetHashCode(); |
|
|
|
hash ^= actionMask_.GetHashCode(); |
|
|
|
hash ^= observations_.GetHashCode(); |
|
|
|
if (TeamManagerId.Length != 0) hash ^= TeamManagerId.GetHashCode(); |
|
|
|
if (_unknownFields != null) { |
|
|
|
hash ^= _unknownFields.GetHashCode(); |
|
|
|
} |
|
|
|
|
|
|
} |
|
|
|
actionMask_.WriteTo(output, _repeated_actionMask_codec); |
|
|
|
observations_.WriteTo(output, _repeated_observations_codec); |
|
|
|
if (TeamManagerId.Length != 0) { |
|
|
|
output.WriteRawTag(114); |
|
|
|
output.WriteString(TeamManagerId); |
|
|
|
} |
|
|
|
if (_unknownFields != null) { |
|
|
|
_unknownFields.WriteTo(output); |
|
|
|
} |
|
|
|
|
|
|
} |
|
|
|
size += actionMask_.CalculateSize(_repeated_actionMask_codec); |
|
|
|
size += observations_.CalculateSize(_repeated_observations_codec); |
|
|
|
if (TeamManagerId.Length != 0) { |
|
|
|
size += 1 + pb::CodedOutputStream.ComputeStringSize(TeamManagerId); |
|
|
|
} |
|
|
|
if (_unknownFields != null) { |
|
|
|
size += _unknownFields.CalculateSize(); |
|
|
|
} |
|
|
|
|
|
|
} |
|
|
|
actionMask_.Add(other.actionMask_); |
|
|
|
observations_.Add(other.observations_); |
|
|
|
if (other.TeamManagerId.Length != 0) { |
|
|
|
TeamManagerId = other.TeamManagerId; |
|
|
|
} |
|
|
|
_unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
case 106: { |
|
|
|
observations_.AddEntriesFrom(input, _repeated_observations_codec); |
|
|
|
break; |
|
|
|
} |
|
|
|
case 114: { |
|
|
|
TeamManagerId = input.ReadString(); |
|
|
|
break; |
|
|
|
} |
|
|
|
} |
|
|
|