All Downloads are FREE. Search and download functionalities are using the official Maven repository.

t.21.120.2.source-code.SoftwareMesg Maven / Gradle / Ivy

There is a newer version: 21.141.0
Show newest version
/////////////////////////////////////////////////////////////////////////////////////////////
// Copyright 2023 Garmin International, Inc.
// Licensed under the Flexible and Interoperable Data Transfer (FIT) Protocol License; you
// may not use this file except in compliance with the Flexible and Interoperable Data
// Transfer (FIT) Protocol License.
/////////////////////////////////////////////////////////////////////////////////////////////
// ****WARNING****  This file is auto-generated!  Do NOT edit this file.
// Profile Version = 21.120Release
// Tag = production/release/21.120.00-0-g2d77811
/////////////////////////////////////////////////////////////////////////////////////////////


package com.garmin.fit;



public class SoftwareMesg extends Mesg   {

    
    public static final int MessageIndexFieldNum = 254;
    
    public static final int VersionFieldNum = 3;
    
    public static final int PartNumberFieldNum = 5;
    

    protected static final  Mesg softwareMesg;
    static {
        // software
        softwareMesg = new Mesg("software", MesgNum.SOFTWARE);
        softwareMesg.addField(new Field("message_index", MessageIndexFieldNum, 132, 1, 0, "", false, Profile.Type.MESSAGE_INDEX));
        
        softwareMesg.addField(new Field("version", VersionFieldNum, 132, 100, 0, "", false, Profile.Type.UINT16));
        
        softwareMesg.addField(new Field("part_number", PartNumberFieldNum, 7, 1, 0, "", false, Profile.Type.STRING));
        
    }

    public SoftwareMesg() {
        super(Factory.createMesg(MesgNum.SOFTWARE));
    }

    public SoftwareMesg(final Mesg mesg) {
        super(mesg);
    }


    /**
     * Get message_index field
     *
     * @return message_index
     */
    public Integer getMessageIndex() {
        return getFieldIntegerValue(254, 0, Fit.SUBFIELD_INDEX_MAIN_FIELD);
    }

    /**
     * Set message_index field
     *
     * @param messageIndex The new messageIndex value to be set
     */
    public void setMessageIndex(Integer messageIndex) {
        setFieldValue(254, 0, messageIndex, Fit.SUBFIELD_INDEX_MAIN_FIELD);
    }

    /**
     * Get version field
     *
     * @return version
     */
    public Float getVersion() {
        return getFieldFloatValue(3, 0, Fit.SUBFIELD_INDEX_MAIN_FIELD);
    }

    /**
     * Set version field
     *
     * @param version The new version value to be set
     */
    public void setVersion(Float version) {
        setFieldValue(3, 0, version, Fit.SUBFIELD_INDEX_MAIN_FIELD);
    }

    /**
     * Get part_number field
     *
     * @return part_number
     */
    public String getPartNumber() {
        return getFieldStringValue(5, 0, Fit.SUBFIELD_INDEX_MAIN_FIELD);
    }

    /**
     * Set part_number field
     *
     * @param partNumber The new partNumber value to be set
     */
    public void setPartNumber(String partNumber) {
        setFieldValue(5, 0, partNumber, Fit.SUBFIELD_INDEX_MAIN_FIELD);
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy