@@ -25,20 +25,23 @@ static ObservationReflection() {
25
25
byte [ ] descriptorData = global ::System . Convert . FromBase64String (
26
26
string . Concat (
27
27
"CjRtbGFnZW50c19lbnZzL2NvbW11bmljYXRvcl9vYmplY3RzL29ic2VydmF0" ,
28
- "aW9uLnByb3RvEhRjb21tdW5pY2F0b3Jfb2JqZWN0cyK7AgoQT2JzZXJ2YXRp " ,
28
+ "aW9uLnByb3RvEhRjb21tdW5pY2F0b3Jfb2JqZWN0cyKBAwoQT2JzZXJ2YXRp " ,
29
29
"b25Qcm90bxINCgVzaGFwZRgBIAMoBRJEChBjb21wcmVzc2lvbl90eXBlGAIg" ,
30
30
"ASgOMiouY29tbXVuaWNhdG9yX29iamVjdHMuQ29tcHJlc3Npb25UeXBlUHJv" ,
31
31
"dG8SGQoPY29tcHJlc3NlZF9kYXRhGAMgASgMSAASRgoKZmxvYXRfZGF0YRgE" ,
32
32
"IAEoCzIwLmNvbW11bmljYXRvcl9vYmplY3RzLk9ic2VydmF0aW9uUHJvdG8u" ,
33
33
"RmxvYXREYXRhSAASIgoaY29tcHJlc3NlZF9jaGFubmVsX21hcHBpbmcYBSAD" ,
34
- "KAUSHAoUZGltZW5zaW9uX3Byb3BlcnRpZXMYBiADKAUaGQoJRmxvYXREYXRh" ,
35
- "EgwKBGRhdGEYASADKAJCEgoQb2JzZXJ2YXRpb25fZGF0YSopChRDb21wcmVz" ,
36
- "c2lvblR5cGVQcm90bxIICgROT05FEAASBwoDUE5HEAFCJaoCIlVuaXR5Lk1M" ,
37
- "QWdlbnRzLkNvbW11bmljYXRvck9iamVjdHNiBnByb3RvMw==" ) ) ;
34
+ "KAUSHAoUZGltZW5zaW9uX3Byb3BlcnRpZXMYBiADKAUSRAoQb2JzZXJ2YXRp" ,
35
+ "b25fdHlwZRgHIAEoDjIqLmNvbW11bmljYXRvcl9vYmplY3RzLk9ic2VydmF0" ,
36
+ "aW9uVHlwZVByb3RvGhkKCUZsb2F0RGF0YRIMCgRkYXRhGAEgAygCQhIKEG9i" ,
37
+ "c2VydmF0aW9uX2RhdGEqKQoUQ29tcHJlc3Npb25UeXBlUHJvdG8SCAoETk9O" ,
38
+ "RRAAEgcKA1BORxABKkYKFE9ic2VydmF0aW9uVHlwZVByb3RvEgsKB0RFRkFV" ,
39
+ "TFQQABIICgRHT0FMEAESCgoGUkVXQVJEEAISCwoHTUVTU0FHRRADQiWqAiJV" ,
40
+ "bml0eS5NTEFnZW50cy5Db21tdW5pY2F0b3JPYmplY3RzYgZwcm90bzM=" ) ) ;
38
41
descriptor = pbr ::FileDescriptor . FromGeneratedCode ( descriptorData ,
39
42
new pbr ::FileDescriptor [ ] { } ,
40
- new pbr ::GeneratedClrTypeInfo ( new [ ] { typeof ( global ::Unity . MLAgents . CommunicatorObjects . CompressionTypeProto ) , } , new pbr ::GeneratedClrTypeInfo [ ] {
41
- 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 ) } )
43
+ new pbr ::GeneratedClrTypeInfo ( new [ ] { typeof ( global ::Unity . MLAgents . CommunicatorObjects . CompressionTypeProto ) , typeof ( global :: Unity . MLAgents . CommunicatorObjects . ObservationTypeProto ) , } , new pbr ::GeneratedClrTypeInfo [ ] {
44
+ 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 ) } )
42
45
} ) ) ;
43
46
}
44
47
#endregion
@@ -50,6 +53,13 @@ internal enum CompressionTypeProto {
50
53
[ pbr ::OriginalName ( "PNG" ) ] Png = 1 ,
51
54
}
52
55
56
+ internal enum ObservationTypeProto {
57
+ [ pbr ::OriginalName ( "DEFAULT" ) ] Default = 0 ,
58
+ [ pbr ::OriginalName ( "GOAL" ) ] Goal = 1 ,
59
+ [ pbr ::OriginalName ( "REWARD" ) ] Reward = 2 ,
60
+ [ pbr ::OriginalName ( "MESSAGE" ) ] Message = 3 ,
61
+ }
62
+
53
63
#endregion
54
64
55
65
#region Messages
@@ -82,6 +92,7 @@ public ObservationProto(ObservationProto other) : this() {
82
92
compressionType_ = other . compressionType_ ;
83
93
compressedChannelMapping_ = other . compressedChannelMapping_ . Clone ( ) ;
84
94
dimensionProperties_ = other . dimensionProperties_ . Clone ( ) ;
95
+ observationType_ = other . observationType_ ;
85
96
switch ( other . ObservationDataCase ) {
86
97
case ObservationDataOneofCase . CompressedData :
87
98
CompressedData = other . CompressedData ;
@@ -162,6 +173,17 @@ public ObservationProto Clone() {
162
173
get { return dimensionProperties_ ; }
163
174
}
164
175
176
+ /// <summary>Field number for the "observation_type" field.</summary>
177
+ public const int ObservationTypeFieldNumber = 7 ;
178
+ private global ::Unity . MLAgents . CommunicatorObjects . ObservationTypeProto observationType_ = 0 ;
179
+ [ global ::System . Diagnostics . DebuggerNonUserCodeAttribute ]
180
+ public global ::Unity . MLAgents . CommunicatorObjects . ObservationTypeProto ObservationType {
181
+ get { return observationType_ ; }
182
+ set {
183
+ observationType_ = value ;
184
+ }
185
+ }
186
+
165
187
private object observationData_ ;
166
188
/// <summary>Enum of possible cases for the "observation_data" oneof.</summary>
167
189
public enum ObservationDataOneofCase {
@@ -200,6 +222,7 @@ public bool Equals(ObservationProto other) {
200
222
if ( ! object . Equals ( FloatData , other . FloatData ) ) return false ;
201
223
if ( ! compressedChannelMapping_ . Equals ( other . compressedChannelMapping_ ) ) return false ;
202
224
if ( ! dimensionProperties_ . Equals ( other . dimensionProperties_ ) ) return false ;
225
+ if ( ObservationType != other . ObservationType ) return false ;
203
226
if ( ObservationDataCase != other . ObservationDataCase ) return false ;
204
227
return Equals ( _unknownFields , other . _unknownFields ) ;
205
228
}
@@ -213,6 +236,7 @@ public override int GetHashCode() {
213
236
if ( observationDataCase_ == ObservationDataOneofCase . FloatData ) hash ^= FloatData . GetHashCode ( ) ;
214
237
hash ^= compressedChannelMapping_ . GetHashCode ( ) ;
215
238
hash ^= dimensionProperties_ . GetHashCode ( ) ;
239
+ if ( ObservationType != 0 ) hash ^= ObservationType . GetHashCode ( ) ;
216
240
hash ^= ( int ) observationDataCase_ ;
217
241
if ( _unknownFields != null ) {
218
242
hash ^= _unknownFields . GetHashCode ( ) ;
@@ -242,6 +266,10 @@ public void WriteTo(pb::CodedOutputStream output) {
242
266
}
243
267
compressedChannelMapping_ . WriteTo ( output , _repeated_compressedChannelMapping_codec ) ;
244
268
dimensionProperties_ . WriteTo ( output , _repeated_dimensionProperties_codec ) ;
269
+ if ( ObservationType != 0 ) {
270
+ output . WriteRawTag ( 56 ) ;
271
+ output . WriteEnum ( ( int ) ObservationType ) ;
272
+ }
245
273
if ( _unknownFields != null ) {
246
274
_unknownFields . WriteTo ( output ) ;
247
275
}
@@ -262,6 +290,9 @@ public int CalculateSize() {
262
290
}
263
291
size += compressedChannelMapping_ . CalculateSize ( _repeated_compressedChannelMapping_codec ) ;
264
292
size += dimensionProperties_ . CalculateSize ( _repeated_dimensionProperties_codec ) ;
293
+ if ( ObservationType != 0 ) {
294
+ size += 1 + pb ::CodedOutputStream . ComputeEnumSize ( ( int ) ObservationType ) ;
295
+ }
265
296
if ( _unknownFields != null ) {
266
297
size += _unknownFields . CalculateSize ( ) ;
267
298
}
@@ -279,6 +310,9 @@ public void MergeFrom(ObservationProto other) {
279
310
}
280
311
compressedChannelMapping_ . Add ( other . compressedChannelMapping_ ) ;
281
312
dimensionProperties_ . Add ( other . dimensionProperties_ ) ;
313
+ if ( other . ObservationType != 0 ) {
314
+ ObservationType = other . ObservationType ;
315
+ }
282
316
switch ( other . ObservationDataCase ) {
283
317
case ObservationDataOneofCase . CompressedData :
284
318
CompressedData = other . CompressedData ;
@@ -334,6 +368,10 @@ public void MergeFrom(pb::CodedInputStream input) {
334
368
dimensionProperties_ . AddEntriesFrom ( input , _repeated_dimensionProperties_codec ) ;
335
369
break ;
336
370
}
371
+ case 56 : {
372
+ observationType_ = ( global ::Unity . MLAgents . CommunicatorObjects . ObservationTypeProto ) input . ReadEnum ( ) ;
373
+ break ;
374
+ }
337
375
}
338
376
}
339
377
}
0 commit comments