2
2
// Generated by the protocol buffer compiler. DO NOT EDIT!
3
3
// source: mlagents_envs/communicator_objects/agent_action.proto
4
4
// </auto-generated>
5
- #pragma warning disable 1591 , 0612 , 3021
5
+ #pragma warning disable 1591 , 0612 , 3021 , 8981
6
6
#region Designer generated code
7
7
8
8
using pb = global ::Google . Protobuf ;
@@ -32,38 +32,48 @@ static AgentActionReflection() {
32
32
"VW5pdHkuTUxBZ2VudHMuQ29tbXVuaWNhdG9yT2JqZWN0c2IGcHJvdG8z" ) ) ;
33
33
descriptor = pbr ::FileDescriptor . FromGeneratedCode ( descriptorData ,
34
34
new pbr ::FileDescriptor [ ] { } ,
35
- new pbr ::GeneratedClrTypeInfo ( null , new pbr ::GeneratedClrTypeInfo [ ] {
36
- new pbr ::GeneratedClrTypeInfo ( typeof ( global ::Unity . MLAgents . CommunicatorObjects . AgentActionProto ) , global ::Unity . MLAgents . CommunicatorObjects . AgentActionProto . Parser , new [ ] { "VectorActionsDeprecated" , "Value" , "ContinuousActions" , "DiscreteActions" } , null , null , null )
35
+ new pbr ::GeneratedClrTypeInfo ( null , null , new pbr ::GeneratedClrTypeInfo [ ] {
36
+ new pbr ::GeneratedClrTypeInfo ( typeof ( global ::Unity . MLAgents . CommunicatorObjects . AgentActionProto ) , global ::Unity . MLAgents . CommunicatorObjects . AgentActionProto . Parser , new [ ] { "VectorActionsDeprecated" , "Value" , "ContinuousActions" , "DiscreteActions" } , null , null , null , null )
37
37
} ) ) ;
38
38
}
39
39
#endregion
40
40
41
41
}
42
42
#region Messages
43
- internal sealed partial class AgentActionProto : pb ::IMessage < AgentActionProto > {
43
+ [ global ::System . Diagnostics . DebuggerDisplayAttribute ( "{ToString(),nq}" ) ]
44
+ internal sealed partial class AgentActionProto : pb ::IMessage < AgentActionProto >
45
+ #if ! GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
46
+ , pb ::IBufferMessage
47
+ #endif
48
+ {
44
49
private static readonly pb ::MessageParser < AgentActionProto > _parser = new pb ::MessageParser < AgentActionProto > ( ( ) => new AgentActionProto ( ) ) ;
45
50
private pb ::UnknownFieldSet _unknownFields ;
46
51
[ global ::System . Diagnostics . DebuggerNonUserCodeAttribute ]
52
+ [ global ::System . CodeDom . Compiler . GeneratedCode ( "protoc" , null ) ]
47
53
public static pb ::MessageParser < AgentActionProto > Parser { get { return _parser ; } }
48
54
49
55
[ global ::System . Diagnostics . DebuggerNonUserCodeAttribute ]
56
+ [ global ::System . CodeDom . Compiler . GeneratedCode ( "protoc" , null ) ]
50
57
public static pbr ::MessageDescriptor Descriptor {
51
58
get { return global ::Unity . MLAgents . CommunicatorObjects . AgentActionReflection . Descriptor . MessageTypes [ 0 ] ; }
52
59
}
53
60
54
61
[ global ::System . Diagnostics . DebuggerNonUserCodeAttribute ]
62
+ [ global ::System . CodeDom . Compiler . GeneratedCode ( "protoc" , null ) ]
55
63
pbr ::MessageDescriptor pb ::IMessage . Descriptor {
56
64
get { return Descriptor ; }
57
65
}
58
66
59
67
[ global ::System . Diagnostics . DebuggerNonUserCodeAttribute ]
68
+ [ global ::System . CodeDom . Compiler . GeneratedCode ( "protoc" , null ) ]
60
69
public AgentActionProto ( ) {
61
70
OnConstruction ( ) ;
62
71
}
63
72
64
73
partial void OnConstruction ( ) ;
65
74
66
75
[ global ::System . Diagnostics . DebuggerNonUserCodeAttribute ]
76
+ [ global ::System . CodeDom . Compiler . GeneratedCode ( "protoc" , null ) ]
67
77
public AgentActionProto ( AgentActionProto other ) : this ( ) {
68
78
vectorActionsDeprecated_ = other . vectorActionsDeprecated_ . Clone ( ) ;
69
79
value_ = other . value_ ;
@@ -73,6 +83,7 @@ public AgentActionProto(AgentActionProto other) : this() {
73
83
}
74
84
75
85
[ global ::System . Diagnostics . DebuggerNonUserCodeAttribute ]
86
+ [ global ::System . CodeDom . Compiler . GeneratedCode ( "protoc" , null ) ]
76
87
public AgentActionProto Clone ( ) {
77
88
return new AgentActionProto ( this ) ;
78
89
}
@@ -86,6 +97,7 @@ public AgentActionProto Clone() {
86
97
/// mark as deprecated in communicator v1.3.0
87
98
/// </summary>
88
99
[ global ::System . Diagnostics . DebuggerNonUserCodeAttribute ]
100
+ [ global ::System . CodeDom . Compiler . GeneratedCode ( "protoc" , null ) ]
89
101
public pbc ::RepeatedField < float > VectorActionsDeprecated {
90
102
get { return vectorActionsDeprecated_ ; }
91
103
}
@@ -94,6 +106,7 @@ public AgentActionProto Clone() {
94
106
public const int ValueFieldNumber = 4 ;
95
107
private float value_ ;
96
108
[ global ::System . Diagnostics . DebuggerNonUserCodeAttribute ]
109
+ [ global ::System . CodeDom . Compiler . GeneratedCode ( "protoc" , null ) ]
97
110
public float Value {
98
111
get { return value_ ; }
99
112
set {
@@ -107,6 +120,7 @@ public float Value {
107
120
= pb ::FieldCodec . ForFloat ( 50 ) ;
108
121
private readonly pbc ::RepeatedField < float > continuousActions_ = new pbc ::RepeatedField < float > ( ) ;
109
122
[ global ::System . Diagnostics . DebuggerNonUserCodeAttribute ]
123
+ [ global ::System . CodeDom . Compiler . GeneratedCode ( "protoc" , null ) ]
110
124
public pbc ::RepeatedField < float > ContinuousActions {
111
125
get { return continuousActions_ ; }
112
126
}
@@ -117,16 +131,19 @@ public float Value {
117
131
= pb ::FieldCodec . ForInt32 ( 58 ) ;
118
132
private readonly pbc ::RepeatedField < int > discreteActions_ = new pbc ::RepeatedField < int > ( ) ;
119
133
[ global ::System . Diagnostics . DebuggerNonUserCodeAttribute ]
134
+ [ global ::System . CodeDom . Compiler . GeneratedCode ( "protoc" , null ) ]
120
135
public pbc ::RepeatedField < int > DiscreteActions {
121
136
get { return discreteActions_ ; }
122
137
}
123
138
124
139
[ global ::System . Diagnostics . DebuggerNonUserCodeAttribute ]
140
+ [ global ::System . CodeDom . Compiler . GeneratedCode ( "protoc" , null ) ]
125
141
public override bool Equals ( object other ) {
126
142
return Equals ( other as AgentActionProto ) ;
127
143
}
128
144
129
145
[ global ::System . Diagnostics . DebuggerNonUserCodeAttribute ]
146
+ [ global ::System . CodeDom . Compiler . GeneratedCode ( "protoc" , null ) ]
130
147
public bool Equals ( AgentActionProto other ) {
131
148
if ( ReferenceEquals ( other , null ) ) {
132
149
return false ;
@@ -142,6 +159,7 @@ public bool Equals(AgentActionProto other) {
142
159
}
143
160
144
161
[ global ::System . Diagnostics . DebuggerNonUserCodeAttribute ]
162
+ [ global ::System . CodeDom . Compiler . GeneratedCode ( "protoc" , null ) ]
145
163
public override int GetHashCode ( ) {
146
164
int hash = 1 ;
147
165
hash ^= vectorActionsDeprecated_ . GetHashCode ( ) ;
@@ -155,12 +173,17 @@ public override int GetHashCode() {
155
173
}
156
174
157
175
[ global ::System . Diagnostics . DebuggerNonUserCodeAttribute ]
176
+ [ global ::System . CodeDom . Compiler . GeneratedCode ( "protoc" , null ) ]
158
177
public override string ToString ( ) {
159
178
return pb ::JsonFormatter . ToDiagnosticString ( this ) ;
160
179
}
161
180
162
181
[ global ::System . Diagnostics . DebuggerNonUserCodeAttribute ]
182
+ [ global ::System . CodeDom . Compiler . GeneratedCode ( "protoc" , null ) ]
163
183
public void WriteTo ( pb ::CodedOutputStream output ) {
184
+ #if ! GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
185
+ output . WriteRawMessage ( this ) ;
186
+ #else
164
187
vectorActionsDeprecated_ . WriteTo ( output , _repeated_vectorActionsDeprecated_codec ) ;
165
188
if ( Value != 0F ) {
166
189
output . WriteRawTag ( 37 ) ;
@@ -171,9 +194,28 @@ public void WriteTo(pb::CodedOutputStream output) {
171
194
if ( _unknownFields != null ) {
172
195
_unknownFields . WriteTo ( output ) ;
173
196
}
197
+ #endif
174
198
}
175
199
200
+ #if ! GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
176
201
[ global ::System . Diagnostics . DebuggerNonUserCodeAttribute ]
202
+ [ global ::System . CodeDom . Compiler . GeneratedCode ( "protoc" , null ) ]
203
+ void pb ::IBufferMessage . InternalWriteTo ( ref pb ::WriteContext output ) {
204
+ vectorActionsDeprecated_ . WriteTo ( ref output , _repeated_vectorActionsDeprecated_codec ) ;
205
+ if ( Value != 0F ) {
206
+ output . WriteRawTag ( 37 ) ;
207
+ output . WriteFloat ( Value ) ;
208
+ }
209
+ continuousActions_ . WriteTo ( ref output , _repeated_continuousActions_codec ) ;
210
+ discreteActions_ . WriteTo ( ref output , _repeated_discreteActions_codec ) ;
211
+ if ( _unknownFields != null ) {
212
+ _unknownFields . WriteTo ( ref output ) ;
213
+ }
214
+ }
215
+ #endif
216
+
217
+ [ global ::System . Diagnostics . DebuggerNonUserCodeAttribute ]
218
+ [ global ::System . CodeDom . Compiler . GeneratedCode ( "protoc" , null ) ]
177
219
public int CalculateSize ( ) {
178
220
int size = 0 ;
179
221
size += vectorActionsDeprecated_ . CalculateSize ( _repeated_vectorActionsDeprecated_codec ) ;
@@ -189,6 +231,7 @@ public int CalculateSize() {
189
231
}
190
232
191
233
[ global ::System . Diagnostics . DebuggerNonUserCodeAttribute ]
234
+ [ global ::System . CodeDom . Compiler . GeneratedCode ( "protoc" , null ) ]
192
235
public void MergeFrom ( AgentActionProto other ) {
193
236
if ( other == null ) {
194
237
return ;
@@ -203,7 +246,11 @@ public void MergeFrom(AgentActionProto other) {
203
246
}
204
247
205
248
[ global ::System . Diagnostics . DebuggerNonUserCodeAttribute ]
249
+ [ global ::System . CodeDom . Compiler . GeneratedCode ( "protoc" , null ) ]
206
250
public void MergeFrom ( pb ::CodedInputStream input ) {
251
+ #if ! GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
252
+ input . ReadRawMessage ( this ) ;
253
+ #else
207
254
uint tag ;
208
255
while ( ( tag = input . ReadTag ( ) ) != 0 ) {
209
256
switch ( tag ) {
@@ -231,7 +278,42 @@ public void MergeFrom(pb::CodedInputStream input) {
231
278
}
232
279
}
233
280
}
281
+ #endif
282
+ }
283
+
284
+ #if ! GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
285
+ [ global ::System . Diagnostics . DebuggerNonUserCodeAttribute ]
286
+ [ global ::System . CodeDom . Compiler . GeneratedCode ( "protoc" , null ) ]
287
+ void pb ::IBufferMessage . InternalMergeFrom ( ref pb ::ParseContext input ) {
288
+ uint tag ;
289
+ while ( ( tag = input . ReadTag ( ) ) != 0 ) {
290
+ switch ( tag ) {
291
+ default :
292
+ _unknownFields = pb ::UnknownFieldSet . MergeFieldFrom ( _unknownFields , ref input ) ;
293
+ break ;
294
+ case 10 :
295
+ case 13 : {
296
+ vectorActionsDeprecated_ . AddEntriesFrom ( ref input , _repeated_vectorActionsDeprecated_codec ) ;
297
+ break ;
298
+ }
299
+ case 37 : {
300
+ Value = input . ReadFloat ( ) ;
301
+ break ;
302
+ }
303
+ case 50 :
304
+ case 53 : {
305
+ continuousActions_ . AddEntriesFrom ( ref input , _repeated_continuousActions_codec ) ;
306
+ break ;
307
+ }
308
+ case 58 :
309
+ case 56 : {
310
+ discreteActions_ . AddEntriesFrom ( ref input , _repeated_discreteActions_codec ) ;
311
+ break ;
312
+ }
313
+ }
314
+ }
234
315
}
316
+ #endif
235
317
236
318
}
237
319
0 commit comments