code: func stateToProto(state PluginState) status.OperationalState {
  	switch state {
  	case Init:
  		return status.OperationalState_INIT
  	case OK:
  		return status.OperationalState_OK
  	default:
  		return status.OperationalState_ERROR
  	}
  }
docs: // stateToProto converts agent state type into protobuf agent state type.