Class CounterState$___Marshaller_93aa5d27c0d57954ec79247b055254b02d5c87a64e0764e392772b387eb7542d

    • Constructor Detail

      • CounterState$___Marshaller_93aa5d27c0d57954ec79247b055254b02d5c87a64e0764e392772b387eb7542d

        public CounterState$___Marshaller_93aa5d27c0d57954ec79247b055254b02d5c87a64e0764e392772b387eb7542d()
    • Method Detail

      • getTypeName

        public String getTypeName()
        Description copied from interface: BaseMarshaller
        Returns the full name of the message or enum type, defined in a proto file. This must not change over multiple invocations.
        Specified by:
        getTypeName in interface BaseMarshaller<CounterState>
        Returns:
        the full name of the message or enum type, defined in a proto file.
      • decode

        public CounterState decode​(int $1)
        Description copied from interface: EnumMarshaller
        Decodes an integer enum value read from a Protobuf encoded stream into a Java enum instance.

        If the numeric value is not recognized the method must return null to signal this to the library and allow the unrecognized data to be preserved. No exception should be thrown in this case.

        Specified by:
        decode in interface EnumMarshaller<CounterState>
        Parameters:
        $1 - the Protobuf enum value to decode
        Returns:
        a Java Enum instance if the value is recognized or null otherwise.
      • encode

        public int encode​(CounterState $1)
                   throws IllegalArgumentException
        Description copied from interface: EnumMarshaller
        Encodes a Java Enum into its corresponding Protobuf numeric value.
        Specified by:
        encode in interface EnumMarshaller<CounterState>
        Parameters:
        $1 - an Enum instance
        Returns:
        the corresponding numeric value from the Protobuf definition of the enum.
        Throws:
        IllegalArgumentException - if the given Enum argument is of an unexpected type or its value has no correspondence to a Protobuf enum value (this is a programming error, not a schema evolution issue).