@@ -25,28 +25,29 @@ static TrainingAnalyticsReflection() {
25
25
byte [ ] descriptorData = global ::System . Convert . FromBase64String (
26
26
string . Concat (
27
27
"CjttbGFnZW50c19lbnZzL2NvbW11bmljYXRvcl9vYmplY3RzL3RyYWluaW5n" ,
28
- "X2FuYWx5dGljcy5wcm90bxIUY29tbXVuaWNhdG9yX29iamVjdHMi2QEKHlRy " ,
28
+ "X2FuYWx5dGljcy5wcm90bxIUY29tbXVuaWNhdG9yX29iamVjdHMi7gEKHlRy " ,
29
29
"YWluaW5nRW52aXJvbm1lbnRJbml0aWFsaXplZBIYChBtbGFnZW50c192ZXJz" ,
30
30
"aW9uGAEgASgJEh0KFW1sYWdlbnRzX2VudnNfdmVyc2lvbhgCIAEoCRIWCg5w" ,
31
31
"eXRob25fdmVyc2lvbhgDIAEoCRIVCg10b3JjaF92ZXJzaW9uGAQgASgJEhkK" ,
32
32
"EXRvcmNoX2RldmljZV90eXBlGAUgASgJEhAKCG51bV9lbnZzGAYgASgFEiIK" ,
33
- "Gm51bV9lbnZpcm9ubWVudF9wYXJhbWV0ZXJzGAcgASgFIq0DChtUcmFpbmlu" ,
34
- "Z0JlaGF2aW9ySW5pdGlhbGl6ZWQSFQoNYmVoYXZpb3JfbmFtZRgBIAEoCRIU" ,
35
- "Cgx0cmFpbmVyX3R5cGUYAiABKAkSIAoYZXh0cmluc2ljX3Jld2FyZF9lbmFi" ,
36
- "bGVkGAMgASgIEhsKE2dhaWxfcmV3YXJkX2VuYWJsZWQYBCABKAgSIAoYY3Vy" ,
37
- "aW9zaXR5X3Jld2FyZF9lbmFibGVkGAUgASgIEhoKEnJuZF9yZXdhcmRfZW5h" ,
38
- "YmxlZBgGIAEoCBIiChpiZWhhdmlvcmFsX2Nsb25pbmdfZW5hYmxlZBgHIAEo" ,
39
- "CBIZChFyZWN1cnJlbnRfZW5hYmxlZBgIIAEoCBIWCg52aXN1YWxfZW5jb2Rl" ,
40
- "chgJIAEoCRIaChJudW1fbmV0d29ya19s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2VudHMuQ29tbXVuaWNhdG9yT2JqZWN0" ,
45
+ "c2IGcHJvdG8z" ) ) ;
45
46
descriptor = pbr ::FileDescriptor . FromGeneratedCode ( descriptorData ,
46
47
new pbr ::FileDescriptor [ ] { } ,
47
48
new pbr ::GeneratedClrTypeInfo ( null , new pbr ::GeneratedClrTypeInfo [ ] {
48
- new pbr ::GeneratedClrTypeInfo ( typeof ( global ::Unity . MLAgents . CommunicatorObjects . TrainingEnvironmentInitialized ) , global ::Unity . MLAgents . CommunicatorObjects . TrainingEnvironmentInitialized . Parser , new [ ] { "MlagentsVersion" , "MlagentsEnvsVersion" , "PythonVersion" , "TorchVersion" , "TorchDeviceType" , "NumEnvs" , "NumEnvironmentParameters" } , null , null , null ) ,
49
- new pbr ::GeneratedClrTypeInfo ( typeof ( global ::Unity . MLAgents . CommunicatorObjects . TrainingBehaviorInitialized ) , global ::Unity . MLAgents . CommunicatorObjects . TrainingBehaviorInitialized . Parser , new [ ] { "BehaviorName" , "TrainerType" , "ExtrinsicRewardEnabled" , "GailRewardEnabled" , "CuriosityRewardEnabled" , "RndRewardEnabled" , "BehavioralCloningEnabled" , "RecurrentEnabled" , "VisualEncoder" , "NumNetworkLayers" , "NumNetworkHiddenUnits" , "TrainerThreaded" , "SelfPlayEnabled" , "CurriculumEnabled" } , null , null , null )
49
+ new pbr ::GeneratedClrTypeInfo ( typeof ( global ::Unity . MLAgents . CommunicatorObjects . TrainingEnvironmentInitialized ) , global ::Unity . MLAgents . CommunicatorObjects . TrainingEnvironmentInitialized . Parser , new [ ] { "MlagentsVersion" , "MlagentsEnvsVersion" , "PythonVersion" , "TorchVersion" , "TorchDeviceType" , "NumEnvs" , "NumEnvironmentParameters" , "RunOptions" } , null , null , null ) ,
50
+ new pbr ::GeneratedClrTypeInfo ( typeof ( global ::Unity . MLAgents . CommunicatorObjects . TrainingBehaviorInitialized ) , global ::Unity . MLAgents . CommunicatorObjects . TrainingBehaviorInitialized . Parser , new [ ] { "BehaviorName" , "TrainerType" , "ExtrinsicRewardEnabled" , "GailRewardEnabled" , "CuriosityRewardEnabled" , "RndRewardEnabled" , "BehavioralCloningEnabled" , "RecurrentEnabled" , "VisualEncoder" , "NumNetworkLayers" , "NumNetworkHiddenUnits" , "TrainerThreaded" , "SelfPlayEnabled" , "CurriculumEnabled" , "Config" } , null , null , null )
50
51
} ) ) ;
51
52
}
52
53
#endregion
@@ -85,6 +86,7 @@ public TrainingEnvironmentInitialized(TrainingEnvironmentInitialized other) : th
85
86
torchDeviceType_ = other . torchDeviceType_ ;
86
87
numEnvs_ = other . numEnvs_ ;
87
88
numEnvironmentParameters_ = other . numEnvironmentParameters_ ;
89
+ runOptions_ = other . runOptions_ ;
88
90
_unknownFields = pb ::UnknownFieldSet . Clone ( other . _unknownFields ) ;
89
91
}
90
92
@@ -170,6 +172,17 @@ public int NumEnvironmentParameters {
170
172
}
171
173
}
172
174
175
+ /// <summary>Field number for the "run_options" field.</summary>
176
+ public const int RunOptionsFieldNumber = 8 ;
177
+ private string runOptions_ = "" ;
178
+ [ global ::System . Diagnostics . DebuggerNonUserCodeAttribute ]
179
+ public string RunOptions {
180
+ get { return runOptions_ ; }
181
+ set {
182
+ runOptions_ = pb ::ProtoPreconditions . CheckNotNull ( value , "value" ) ;
183
+ }
184
+ }
185
+
173
186
[ global ::System . Diagnostics . DebuggerNonUserCodeAttribute ]
174
187
public override bool Equals ( object other ) {
175
188
return Equals ( other as TrainingEnvironmentInitialized ) ;
@@ -190,6 +203,7 @@ public bool Equals(TrainingEnvironmentInitialized other) {
190
203
if ( TorchDeviceType != other . TorchDeviceType ) return false ;
191
204
if ( NumEnvs != other . NumEnvs ) return false ;
192
205
if ( NumEnvironmentParameters != other . NumEnvironmentParameters ) return false ;
206
+ if ( RunOptions != other . RunOptions ) return false ;
193
207
return Equals ( _unknownFields , other . _unknownFields ) ;
194
208
}
195
209
@@ -203,6 +217,7 @@ public override int GetHashCode() {
203
217
if ( TorchDeviceType . Length != 0 ) hash ^= TorchDeviceType . GetHashCode ( ) ;
204
218
if ( NumEnvs != 0 ) hash ^= NumEnvs . GetHashCode ( ) ;
205
219
if ( NumEnvironmentParameters != 0 ) hash ^= NumEnvironmentParameters . GetHashCode ( ) ;
220
+ if ( RunOptions . Length != 0 ) hash ^= RunOptions . GetHashCode ( ) ;
206
221
if ( _unknownFields != null ) {
207
222
hash ^= _unknownFields . GetHashCode ( ) ;
208
223
}
@@ -244,6 +259,10 @@ public void WriteTo(pb::CodedOutputStream output) {
244
259
output . WriteRawTag ( 56 ) ;
245
260
output . WriteInt32 ( NumEnvironmentParameters ) ;
246
261
}
262
+ if ( RunOptions . Length != 0 ) {
263
+ output . WriteRawTag ( 66 ) ;
264
+ output . WriteString ( RunOptions ) ;
265
+ }
247
266
if ( _unknownFields != null ) {
248
267
_unknownFields . WriteTo ( output ) ;
249
268
}
@@ -273,6 +292,9 @@ public int CalculateSize() {
273
292
if ( NumEnvironmentParameters != 0 ) {
274
293
size += 1 + pb ::CodedOutputStream . ComputeInt32Size ( NumEnvironmentParameters ) ;
275
294
}
295
+ if ( RunOptions . Length != 0 ) {
296
+ size += 1 + pb ::CodedOutputStream . ComputeStringSize ( RunOptions ) ;
297
+ }
276
298
if ( _unknownFields != null ) {
277
299
size += _unknownFields . CalculateSize ( ) ;
278
300
}
@@ -305,6 +327,9 @@ public void MergeFrom(TrainingEnvironmentInitialized other) {
305
327
if ( other . NumEnvironmentParameters != 0 ) {
306
328
NumEnvironmentParameters = other . NumEnvironmentParameters ;
307
329
}
330
+ if ( other . RunOptions . Length != 0 ) {
331
+ RunOptions = other . RunOptions ;
332
+ }
308
333
_unknownFields = pb ::UnknownFieldSet . MergeFrom ( _unknownFields , other . _unknownFields ) ;
309
334
}
310
335
@@ -344,6 +369,10 @@ public void MergeFrom(pb::CodedInputStream input) {
344
369
NumEnvironmentParameters = input . ReadInt32 ( ) ;
345
370
break ;
346
371
}
372
+ case 66 : {
373
+ RunOptions = input . ReadString ( ) ;
374
+ break ;
375
+ }
347
376
}
348
377
}
349
378
}
@@ -389,6 +418,7 @@ public TrainingBehaviorInitialized(TrainingBehaviorInitialized other) : this() {
389
418
trainerThreaded_ = other . trainerThreaded_ ;
390
419
selfPlayEnabled_ = other . selfPlayEnabled_ ;
391
420
curriculumEnabled_ = other . curriculumEnabled_ ;
421
+ config_ = other . config_ ;
392
422
_unknownFields = pb ::UnknownFieldSet . Clone ( other . _unknownFields ) ;
393
423
}
394
424
@@ -551,6 +581,17 @@ public bool CurriculumEnabled {
551
581
}
552
582
}
553
583
584
+ /// <summary>Field number for the "config" field.</summary>
585
+ public const int ConfigFieldNumber = 15 ;
586
+ private string config_ = "" ;
587
+ [ global ::System . Diagnostics . DebuggerNonUserCodeAttribute ]
588
+ public string Config {
589
+ get { return config_ ; }
590
+ set {
591
+ config_ = pb ::ProtoPreconditions . CheckNotNull ( value , "value" ) ;
592
+ }
593
+ }
594
+
554
595
[ global ::System . Diagnostics . DebuggerNonUserCodeAttribute ]
555
596
public override bool Equals ( object other ) {
556
597
return Equals ( other as TrainingBehaviorInitialized ) ;
@@ -578,6 +619,7 @@ public bool Equals(TrainingBehaviorInitialized other) {
578
619
if ( TrainerThreaded != other . TrainerThreaded ) return false ;
579
620
if ( SelfPlayEnabled != other . SelfPlayEnabled ) return false ;
580
621
if ( CurriculumEnabled != other . CurriculumEnabled ) return false ;
622
+ if ( Config != other . Config ) return false ;
581
623
return Equals ( _unknownFields , other . _unknownFields ) ;
582
624
}
583
625
@@ -598,6 +640,7 @@ public override int GetHashCode() {
598
640
if ( TrainerThreaded != false ) hash ^= TrainerThreaded . GetHashCode ( ) ;
599
641
if ( SelfPlayEnabled != false ) hash ^= SelfPlayEnabled . GetHashCode ( ) ;
600
642
if ( CurriculumEnabled != false ) hash ^= CurriculumEnabled . GetHashCode ( ) ;
643
+ if ( Config . Length != 0 ) hash ^= Config . GetHashCode ( ) ;
601
644
if ( _unknownFields != null ) {
602
645
hash ^= _unknownFields . GetHashCode ( ) ;
603
646
}
@@ -667,6 +710,10 @@ public void WriteTo(pb::CodedOutputStream output) {
667
710
output . WriteRawTag ( 112 ) ;
668
711
output . WriteBool ( CurriculumEnabled ) ;
669
712
}
713
+ if ( Config . Length != 0 ) {
714
+ output . WriteRawTag ( 122 ) ;
715
+ output . WriteString ( Config ) ;
716
+ }
670
717
if ( _unknownFields != null ) {
671
718
_unknownFields . WriteTo ( output ) ;
672
719
}
@@ -717,6 +764,9 @@ public int CalculateSize() {
717
764
if ( CurriculumEnabled != false ) {
718
765
size += 1 + 1 ;
719
766
}
767
+ if ( Config . Length != 0 ) {
768
+ size += 1 + pb ::CodedOutputStream . ComputeStringSize ( Config ) ;
769
+ }
720
770
if ( _unknownFields != null ) {
721
771
size += _unknownFields . CalculateSize ( ) ;
722
772
}
@@ -770,6 +820,9 @@ public void MergeFrom(TrainingBehaviorInitialized other) {
770
820
if ( other . CurriculumEnabled != false ) {
771
821
CurriculumEnabled = other . CurriculumEnabled ;
772
822
}
823
+ if ( other . Config . Length != 0 ) {
824
+ Config = other . Config ;
825
+ }
773
826
_unknownFields = pb ::UnknownFieldSet . MergeFrom ( _unknownFields , other . _unknownFields ) ;
774
827
}
775
828
@@ -837,6 +890,10 @@ public void MergeFrom(pb::CodedInputStream input) {
837
890
CurriculumEnabled = input . ReadBool ( ) ;
838
891
break ;
839
892
}
893
+ case 122 : {
894
+ Config = input . ReadString ( ) ;
895
+ break ;
896
+ }
840
897
}
841
898
}
842
899
}
0 commit comments