Example #1
0
 public override void WriteTo(pb::ICodedOutputStream output)
 {
     CalcSerializedSize();
     string[] field_names = _transportationTaskFieldNames;
     if (hasObject)
     {
         output.WriteMessage(1, field_names[2], Object);
     }
     if (hasContainer)
     {
         output.WriteMessage(2, field_names[0], Container);
     }
     if (hasQuantityDelivered)
     {
         output.WriteUInt64(3, field_names[4], QuantityDelivered);
     }
     if (hasQuantityRequested)
     {
         output.WriteUInt64(4, field_names[5], QuantityRequested);
     }
     if (hasDestination)
     {
         output.WriteMessage(5, field_names[1], Destination);
     }
     if (hasSource)
     {
         output.WriteMessage(6, field_names[6], Source);
     }
     if (hasProcessingTeam)
     {
         output.WriteString(7, field_names[3], ProcessingTeam);
     }
     UnknownFields.WriteTo(output);
 }
Example #2
0
 public override void WriteTo(pb::ICodedOutputStream output)
 {
     CalcSerializedSize();
     string[] field_names = _taskFieldNames;
     if (hasId)
     {
         output.WriteUInt64(1, field_names[0], Id);
     }
     if (hasType)
     {
         output.WriteEnum(2, field_names[4], (int)Type, Type);
     }
     if (hasStatus)
     {
         output.WriteEnum(3, field_names[2], (int)Status, Status);
     }
     if (hasTransportationTask)
     {
         output.WriteMessage(4, field_names[3], TransportationTask);
     }
     if (hasNavigationTask)
     {
         output.WriteMessage(5, field_names[1], NavigationTask);
     }
     UnknownFields.WriteTo(output);
 }
Example #3
0
 public override void WriteTo(pb::ICodedOutputStream output)
 {
     CalcSerializedSize();
     string[] field_names = _eventFieldNames;
     if (hasType)
     {
         output.WriteEnum(1, field_names[4], (int)Type, Type);
     }
     if (hasSumary)
     {
         output.WriteString(2, field_names[2], Sumary);
     }
     if (hasDetail)
     {
         output.WriteString(3, field_names[1], Detail);
     }
     if (hasTimestamp)
     {
         output.WriteUInt64(4, field_names[3], Timestamp);
     }
     if (hasBt)
     {
         output.WriteMessage(5, field_names[0], Bt);
     }
     UnknownFields.WriteTo(output);
 }
Example #4
0
 public override void WriteTo(pb::ICodedOutputStream output)
 {
     CalcSerializedSize();
     string[] field_names = _packetIDFieldNames;
     if (hasConnID)
     {
         output.WriteUInt64(1, field_names[0], ConnID);
     }
     if (hasSerialNo)
     {
         output.WriteUInt32(2, field_names[1], SerialNo);
     }
     UnknownFields.WriteTo(output);
 }
Example #5
0
 public override void WriteTo(pb::ICodedOutputStream output)
 {
     CalcSerializedSize();
     string[] field_names = _agentlogFieldNames;
     if (hasTimeStamp)
     {
         output.WriteUInt64(1, field_names[2], TimeStamp);
     }
     if (hasErrorSumary)
     {
         output.WriteString(2, field_names[0], ErrorSumary);
     }
     if (hasStackTraces)
     {
         output.WriteString(3, field_names[1], StackTraces);
     }
     UnknownFields.WriteTo(output);
 }
        public override void WriteTo(pb::ICodedOutputStream output)
        {
            int size = SerializedSize;

            string[] field_names = _studentFieldNames;
            if (hasId)
            {
                output.WriteUInt64(1, field_names[1], Id);
            }
            if (hasName)
            {
                output.WriteString(2, field_names[2], Name);
            }
            if (hasAge)
            {
                output.WriteInt32(3, field_names[0], Age);
            }
            UnknownFields.WriteTo(output);
        }
 public override void WriteTo(pb::ICodedOutputStream output)
 {
     CalcSerializedSize();
     string[] field_names = _protoErrorResFieldNames;
     if (hasPayloadType)
     {
         output.WriteEnum(1, field_names[3], (int)PayloadType, PayloadType);
     }
     if (hasErrorCode)
     {
         output.WriteString(2, field_names[1], ErrorCode);
     }
     if (hasDescription)
     {
         output.WriteString(3, field_names[0], Description);
     }
     if (hasMaintenanceEndTimestamp)
     {
         output.WriteUInt64(4, field_names[2], MaintenanceEndTimestamp);
     }
     UnknownFields.WriteTo(output);
 }
Example #8
0
 public override void WriteTo(pb::ICodedOutputStream output)
 {
     CalcSerializedSize();
     string[] field_names = _beaconSignalFieldNames;
     if (hasTime)
     {
         output.WriteMessage(1, field_names[3], Time);
     }
     if (hasSeq)
     {
         output.WriteUInt64(2, field_names[1], Seq);
     }
     if (hasTeamName)
     {
         output.WriteString(3, field_names[2], TeamName);
     }
     if (hasPeerName)
     {
         output.WriteString(4, field_names[0], PeerName);
     }
     UnknownFields.WriteTo(output);
 }
Example #9
0
        public override void WriteTo(pb::ICodedOutputStream output)
        {
            int size = SerializedSize;

            string[] field_names = _statCategoryFieldNames;
            if (hasStatId)
            {
                output.WriteUInt32(1, field_names[2], StatId);
            }
            if (hasData1)
            {
                output.WriteUInt32(2, field_names[0], Data1);
            }
            if (hasData2)
            {
                output.WriteUInt32(3, field_names[1], Data2);
            }
            if (hasTotal)
            {
                output.WriteUInt64(4, field_names[3], Total);
            }
            UnknownFields.WriteTo(output);
        }
Example #10
0
        public override void WriteTo(pb::ICodedOutputStream output)
        {
            int size = SerializedSize;

            string[] field_names = _blockedEntityFieldNames;
            if (hasId)
            {
                output.WriteMessage(1, field_names[0], Id);
            }
            if (hasName)
            {
                output.WriteString(2, field_names[1], Name);
            }
            if (role_.Count > 0)
            {
                output.WritePackedUInt32Array(3, field_names[3], roleMemoizedSerializedSize, role_);
            }
            if (hasPrivileges)
            {
                output.WriteUInt64(4, field_names[2], Privileges);
            }
            UnknownFields.WriteTo(output);
        }